Atavism Version 2018.1AGIS API

atavism.agis.plugins
Class QuestClient

java.lang.Object
  extended by atavism.agis.plugins.QuestClient

public class QuestClient
extends java.lang.Object


Nested Class Summary
static class QuestClient.AbandonQuestMessage
           
static class QuestClient.CanPlayerStartQuestMessage
          Message used to verify if the player meets the requirements to start the specified quest.
static class QuestClient.CompleteQuestMessage
           
static class QuestClient.ConcludeMessage
          Message from a mob (quest behavior) is telling us (usually quest state obj) that the quest has been concluded player is subject because it is going to the player's quest state
static class QuestClient.ConcludeUpdateMessage
           
static class QuestClient.GetQuestItemReqsMessage
          This is used when looting an item and we need to know what quest items a player requires
static class QuestClient.GetQuestStatusMessage
          (usually quest behavior) asking quest plugin for the status of various quest states
static class QuestClient.NewQuestStateMessage
          client accepted a quest, so the quest behavior has created a quest state object and is now alerting the quest plugin about it so it can keep track of it
static class QuestClient.OfferQuestMessage
          Message used to try start the specified quest.
static class QuestClient.QuestItemUpdateMessage
           
static class QuestClient.QuestResponseMessage
          client is responding to server, accepting or declining quest
static class QuestClient.RequestConcludeMessage
           
static class QuestClient.RequestQuestInfoMessage
          (usually proxy plugin) asking for quest info
static class QuestClient.RequestQuestProgressMessage
           
static class QuestClient.StartQuestMessage
          Message used to try start the specified quest.
static class QuestClient.StateStatusChangeMessage
          the quest plugin (usually via quest state object) has updated its state, and is alerting others (usually quest behavior) so that they can let the player know if their available actions have changed (such as ability to turn in a quest)
static class QuestClient.TaskUpdateMessage
           
 
Field Summary
static MessageType MSG_TYPE_ABANDON_QUEST
           
static MessageType MSG_TYPE_CAN_PLAYER_START_QUEST
           
static MessageType MSG_TYPE_COMPLETE_QUEST
           
static MessageType MSG_TYPE_CONCLUDE_QUEST
           
static MessageType MSG_TYPE_GET_QUEST_STATUS
           
static MessageType MSG_TYPE_NEW_QUESTSTATE
           
static MessageType MSG_TYPE_OFFER_QUEST
           
static MessageType MSG_TYPE_QUEST_CONCLUDE_UPDATE
           
static MessageType MSG_TYPE_QUEST_HISTORY_LOG_INFO
           
static MessageType MSG_TYPE_QUEST_INFO
           
static MessageType MSG_TYPE_QUEST_ITEM_REQS
           
static MessageType MSG_TYPE_QUEST_ITEM_UPDATE
           
static MessageType MSG_TYPE_QUEST_LOG_INFO
           
static MessageType MSG_TYPE_QUEST_RESP
           
static MessageType MSG_TYPE_QUEST_STATE_INFO
           
static MessageType MSG_TYPE_QUEST_STATE_STATUS_CHANGE
           
static MessageType MSG_TYPE_QUEST_TASK_UPDATE
           
static MessageType MSG_TYPE_REMOVE_QUEST_RESP
           
static MessageType MSG_TYPE_REQ_CONCLUDE_QUEST
           
static MessageType MSG_TYPE_REQ_QUEST_INFO
           
static MessageType MSG_TYPE_REQ_QUEST_PROGRESS
           
static MessageType MSG_TYPE_REQ_RESET_QUESTS
           
static MessageType MSG_TYPE_START_QUEST
           
static byte QuestStatusCompleted
           
static byte QuestStatusConcluded
           
static byte QuestStatusDNE
           
static byte QuestStatusInProgress
           
static byte QuestTypeActive
           
static byte QuestTypeAll
           
static byte QuestTypeCompleted
           
 
Constructor Summary
QuestClient()
           
 
Method Summary
static boolean canPlayerStartQuest(OID playerOid, int questID)
           
static void completeQuest(OID npcOid, OID playerOid, OID questID, int chosenItem)
           
static java.util.HashMap<java.lang.Integer,QuestState> getActiveQuests(OID playerOid)
          makes a request to the questplugin to get the players active quests
static java.util.HashMap<java.lang.Integer,java.lang.Boolean> getAllQuests(OID playerOid)
           
static java.util.ArrayList<java.lang.Integer> getCompletedQuests(OID playerOid)
           
static java.util.List<java.lang.Integer> getQuestItemReqs(OID playerOid)
           
static void offerQuestToPlayer(OID playerOid, OID offererOid, java.util.LinkedList<java.lang.Integer> quests, boolean deleteItem)
          Sends the StartQuestMessage telling the system that the player should be trying to start the given quest.
static void requestConclude(OID mobOid, OID playerOid)
           
static void requestQuestInfo(OID mobOid, OID playerOid)
           
static void resetQuests(OID playerOid)
           
static boolean startQuestForPlayer(OID playerOid, int questID)
          Sends the StartQuestMessage telling the system that the player should be trying to start the given quest.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QuestStatusDNE

public static final byte QuestStatusDNE
See Also:
Constant Field Values

QuestStatusInProgress

public static final byte QuestStatusInProgress
See Also:
Constant Field Values

QuestStatusCompleted

public static final byte QuestStatusCompleted
See Also:
Constant Field Values

QuestStatusConcluded

public static final byte QuestStatusConcluded
See Also:
Constant Field Values

QuestTypeActive

public static final byte QuestTypeActive
See Also:
Constant Field Values

QuestTypeCompleted

public static final byte QuestTypeCompleted
See Also:
Constant Field Values

QuestTypeAll

public static final byte QuestTypeAll
See Also:
Constant Field Values

MSG_TYPE_REQ_QUEST_INFO

public static final MessageType MSG_TYPE_REQ_QUEST_INFO

MSG_TYPE_REQ_CONCLUDE_QUEST

public static final MessageType MSG_TYPE_REQ_CONCLUDE_QUEST

MSG_TYPE_QUEST_INFO

public static final MessageType MSG_TYPE_QUEST_INFO

MSG_TYPE_GET_QUEST_STATUS

public static final MessageType MSG_TYPE_GET_QUEST_STATUS

MSG_TYPE_QUEST_RESP

public static final MessageType MSG_TYPE_QUEST_RESP

MSG_TYPE_NEW_QUESTSTATE

public static final MessageType MSG_TYPE_NEW_QUESTSTATE

MSG_TYPE_CONCLUDE_QUEST

public static final MessageType MSG_TYPE_CONCLUDE_QUEST

MSG_TYPE_OFFER_QUEST

public static final MessageType MSG_TYPE_OFFER_QUEST

MSG_TYPE_START_QUEST

public static final MessageType MSG_TYPE_START_QUEST

MSG_TYPE_CAN_PLAYER_START_QUEST

public static final MessageType MSG_TYPE_CAN_PLAYER_START_QUEST

MSG_TYPE_QUEST_STATE_STATUS_CHANGE

public static final MessageType MSG_TYPE_QUEST_STATE_STATUS_CHANGE

MSG_TYPE_QUEST_LOG_INFO

public static final MessageType MSG_TYPE_QUEST_LOG_INFO

MSG_TYPE_QUEST_HISTORY_LOG_INFO

public static final MessageType MSG_TYPE_QUEST_HISTORY_LOG_INFO

MSG_TYPE_QUEST_STATE_INFO

public static final MessageType MSG_TYPE_QUEST_STATE_INFO

MSG_TYPE_REMOVE_QUEST_RESP

public static final MessageType MSG_TYPE_REMOVE_QUEST_RESP

MSG_TYPE_REQ_RESET_QUESTS

public static final MessageType MSG_TYPE_REQ_RESET_QUESTS

MSG_TYPE_QUEST_ITEM_REQS

public static final MessageType MSG_TYPE_QUEST_ITEM_REQS

MSG_TYPE_QUEST_ITEM_UPDATE

public static final MessageType MSG_TYPE_QUEST_ITEM_UPDATE

MSG_TYPE_QUEST_TASK_UPDATE

public static final MessageType MSG_TYPE_QUEST_TASK_UPDATE

MSG_TYPE_REQ_QUEST_PROGRESS

public static final MessageType MSG_TYPE_REQ_QUEST_PROGRESS

MSG_TYPE_COMPLETE_QUEST

public static final MessageType MSG_TYPE_COMPLETE_QUEST

MSG_TYPE_QUEST_CONCLUDE_UPDATE

public static final MessageType MSG_TYPE_QUEST_CONCLUDE_UPDATE

MSG_TYPE_ABANDON_QUEST

public static final MessageType MSG_TYPE_ABANDON_QUEST
Constructor Detail

QuestClient

public QuestClient()
Method Detail

getActiveQuests

public static java.util.HashMap<java.lang.Integer,QuestState> getActiveQuests(OID playerOid)
makes a request to the questplugin to get the players active quests

Parameters:
playerOid - player

getCompletedQuests

public static java.util.ArrayList<java.lang.Integer> getCompletedQuests(OID playerOid)

getAllQuests

public static java.util.HashMap<java.lang.Integer,java.lang.Boolean> getAllQuests(OID playerOid)

requestQuestInfo

public static void requestQuestInfo(OID mobOid,
                                    OID playerOid)

requestConclude

public static void requestConclude(OID mobOid,
                                   OID playerOid)

resetQuests

public static void resetQuests(OID playerOid)

getQuestItemReqs

public static java.util.List<java.lang.Integer> getQuestItemReqs(OID playerOid)

completeQuest

public static void completeQuest(OID npcOid,
                                 OID playerOid,
                                 OID questID,
                                 int chosenItem)

canPlayerStartQuest

public static boolean canPlayerStartQuest(OID playerOid,
                                          int questID)

offerQuestToPlayer

public static void offerQuestToPlayer(OID playerOid,
                                      OID offererOid,
                                      java.util.LinkedList<java.lang.Integer> quests,
                                      boolean deleteItem)
Sends the StartQuestMessage telling the system that the player should be trying to start the given quest.

Parameters:
playerOid -
questID -

startQuestForPlayer

public static boolean startQuestForPlayer(OID playerOid,
                                          int questID)
Sends the StartQuestMessage telling the system that the player should be trying to start the given quest.

Parameters:
playerOid -
questID -


Copyright © 2018 Dragonsan Studios Sp. z o.o.