Atavism Version 2018.1AGIS API

atavism.agis.plugins
Class AgisInventoryClient

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

public class AgisInventoryClient
extends java.lang.Object

AGIS-specific calls for sending/getting messages to the AgisInventoryPlugin


Nested Class Summary
static class AgisInventoryClient.alterCurrencyMessage
          Message used to alter the amount of the specified currency a player has.
static class AgisInventoryClient.CheckComponentMessage
           
static class AgisInventoryClient.checkCurrencyMessage
          Message used to check if the player has enough of the specified currency
static class AgisInventoryClient.CreateStorageMessage
           
static class AgisInventoryClient.DoesInventoryHasSufficientSpaceMessage
          Message used to request the generation of an item based on the templateID specified and then to add the item to the players inventory.
static class AgisInventoryClient.EquippedItemUsedMessage
          Message used to alter the amount of the specified currency a player has.
static class AgisInventoryClient.generateItemMessage
          Message used to request the generation of an item based on the templateID specified and then to add the item to the players inventory.
static class AgisInventoryClient.generateLootEffectMessage
          Message used to request the generation of Items from loot tabel for player.
static class AgisInventoryClient.generateLootMessage
          Message used to request the generation of loot for a mob.
static class AgisInventoryClient.getGenericItemDataMessage
          Unused Message class, look to remove this in the near future as it looks to be obsolete.
static class AgisInventoryClient.getLootListMessage
          Message used to request the list of loot for the specified mob is sent down to the requesting player.
static class AgisInventoryClient.getMerchantListMessage
          Message used to request the list of items the specified merchant sells to be sent to the requesting player.
static class AgisInventoryClient.getSpecificItemDataMessage
          Message used to request information about a list of items to be sent down to a players client.
static class AgisInventoryClient.GetStorageContentsMessage
           
static class AgisInventoryClient.ItemAcquiredStatusMessage
          Message indicating that a player has either acquired or lost an item.
static class AgisInventoryClient.ItemEquipStatusMessage
          Message indicating an item is being equipped or unequipped.
static class AgisInventoryClient.LockpickMessage
          The lockpick message that sends holds the player's skill.
static class AgisInventoryClient.lootAllMessage
          Message used to indicate a player wants to loot all items from the specified mob.
static class AgisInventoryClient.lootItemMessage
          Message used to indicate the player wants to loot the specified the item from the specified mob.
static class AgisInventoryClient.moveBagMessage
          Message used to move a bag from one bag slot into another.
static class AgisInventoryClient.OpenStorageMessage
           
static class AgisInventoryClient.placeBagMessage
          Message used to put a bag item from the players inventory into a bag slot.
static class AgisInventoryClient.purchaseItemFromMerchantMessage
          Message used to request the purchase of the specified item from the specified NPC.
static class AgisInventoryClient.purchaseItemMessage
          Message used to request the purchase of an item.
static class AgisInventoryClient.QuestItemsListMessage
          Message used to update item collection quest status.
static class AgisInventoryClient.removeBagMessage
          Message used to remove a bag from the players bag slots and put it back into the inventory.
static class AgisInventoryClient.removeGenericItemMessage
          Message used to remove an item from the players inventory based on the type of item.
static class AgisInventoryClient.removeSpecificItemMessage
          Message used to remove a specific item from the players inventory.
static class AgisInventoryClient.RequestOpenMobMessage
          Message indicating the player is trying to open a mob (likely a chest or other resource object).
static class AgisInventoryClient.SendInventoryUpdateMessage
          Message used to request an inventory update message be sent so the other parts of the server know what items the player has.
static class AgisInventoryClient.sendPurchaseMailMessage
          Message used to send a piece of mail containing an item a player purchased from the online store.
static class AgisInventoryClient.SendStorageItemsAsMailMessage
           
 
Field Summary
static java.lang.String INV_METHOD_AMMO_TYPE
           
static java.lang.String INV_METHOD_SLOT
           
static java.lang.String INV_METHOD_TYPE
           
static java.lang.String INV_METHOD_WEAPON_TYPE
           
static java.lang.String MSG_INV_SLOT
           
static MessageType MSG_TYPE_ACTIVATE_CHEST
           
static MessageType MSG_TYPE_AGIS_INV_FIND
           
static MessageType MSG_TYPE_ALTER_CURRENCY
           
static MessageType MSG_TYPE_ALTER_ITEM_COUNT
           
static MessageType MSG_TYPE_CHECK_CURRENCY
           
static MessageType MSG_TYPE_CREATE_STORAGE
           
static MessageType MSG_TYPE_DELETE_MAIL
           
static MessageType MSG_TYPE_DOES_INVENTORY_HAS_SUFFICIENT_SPACE
           
static MessageType MSG_TYPE_EDIT_LOCK
           
static MessageType MSG_TYPE_EQUIP_ITEM_IN_SLOT
           
static MessageType MSG_TYPE_EQUIPPED_ITEM_USED
           
static MessageType MSG_TYPE_GENERATE_ITEM
           
static MessageType MSG_TYPE_GENERATE_ITEM_NEEDS_RESPONSE
           
static MessageType MSG_TYPE_GENERATE_LOOT
           
static MessageType MSG_TYPE_GENERATE_LOOT_EFFECT
           
static MessageType MSG_TYPE_GET_ACCOUNT_ITEM_COUNT
           
static MessageType MSG_TYPE_GET_BANK_ITEMS
           
static MessageType MSG_TYPE_GET_GENERIC_ITEM_DATA
           
static MessageType MSG_TYPE_GET_ITEM_STORE
           
static MessageType MSG_TYPE_GET_LOOT_LIST
           
static MessageType MSG_TYPE_GET_MAIL
           
static MessageType MSG_TYPE_GET_MERCHANT_LIST
           
static MessageType MSG_TYPE_GET_SKINS
           
static MessageType MSG_TYPE_GET_SPECIFIC_ITEM_DATA
           
static MessageType MSG_TYPE_GET_STORAGE_CONTENTS
           
static MessageType MSG_TYPE_ITEM_ACQUIRE_STATUS_CHANGE
           
static MessageType MSG_TYPE_ITEM_ACTIVATED
           
static MessageType MSG_TYPE_ITEM_EQUIP_STATUS_CHANGE
           
static MessageType MSG_TYPE_LOCKPICK
           
static MessageType MSG_TYPE_LOOT_ALL
           
static MessageType MSG_TYPE_LOOT_CHEST
           
static MessageType MSG_TYPE_LOOT_ITEM
           
static MessageType MSG_TYPE_MAIL_READ
           
static MessageType MSG_TYPE_MAIL_TAKE_ITEM
           
static MessageType MSG_TYPE_MOVE_BAG
           
static MessageType MSG_TYPE_MOVE_ITEM
           
static MessageType MSG_TYPE_OPEN_STORAGE
           
static MessageType MSG_TYPE_PICKUP_ITEM
           
static MessageType MSG_TYPE_PLACE_BAG
           
static MessageType MSG_TYPE_PURCHASE_ITEM
           
static MessageType MSG_TYPE_PURCHASE_ITEM_FROM_MERCHANT
           
static MessageType MSG_TYPE_PURCHASE_SKIN
           
static MessageType MSG_TYPE_PURCHASE_STORE_ITEM
           
static MessageType MSG_TYPE_QUEST_ITEMS_LIST
           
static MessageType MSG_TYPE_RELOAD_ITEMS
           
static MessageType MSG_TYPE_REMOVE_BAG
           
static MessageType MSG_TYPE_REMOVE_GENERIC_ITEM
           
static MessageType MSG_TYPE_REMOVE_SPECIFIC_ITEM
           
static MessageType MSG_TYPE_REPAIR_ITEMS
           
static MessageType MSG_TYPE_REQ_OPEN_MOB
           
static MessageType MSG_TYPE_RETRIEVE_ITEM_FROM_BANK
           
static MessageType MSG_TYPE_RETURN_MAIL
           
static MessageType MSG_TYPE_RETURNBOOLEAN_CHECK_COMPONENTS
           
static MessageType MSG_TYPE_SELL_ITEM
           
static MessageType MSG_TYPE_SEND_INV_UPDATE
           
static MessageType MSG_TYPE_SEND_MAIL
           
static MessageType MSG_TYPE_SEND_PURCHASE_MAIL
           
static MessageType MSG_TYPE_SEND_STORAGE_ITEMS_AS_MAIL
           
static MessageType MSG_TYPE_SET_AMMO
           
static MessageType MSG_TYPE_SET_SKIN_COLOUR
           
static MessageType MSG_TYPE_SET_WEAPON
           
static MessageType MSG_TYPE_STORE_ITEM_IN_BANK
           
static MessageType MSG_TYPE_TRADE_COMPLETE
           
static MessageType MSG_TYPE_TRADE_OFFER_REQ
           
static MessageType MSG_TYPE_TRADE_OFFER_UPDATE
           
static MessageType MSG_TYPE_TRADE_START
           
static MessageType MSG_TYPE_TRADE_START_REQ
           
static java.lang.String MSG_TYPE_TRADE_START_REQ_PARTNER
           
static MessageType MSG_TYPE_TRADE_START_REQ_RESPONSE
           
static MessageType MSG_TYPE_USE_ACCOUNT_ITEM
           
static byte tradeBusy
           
static byte tradeCancelled
           
static byte tradeFailed
           
static byte tradeSuccess
           
 
Constructor Summary
AgisInventoryClient()
           
 
Method Summary
static void alterCurrency(OID oid, int currencyType, int delta)
          Sends the AlterCurrencyMessage.
static java.lang.Boolean checkComponents(OID id, java.util.LinkedList<java.lang.Integer> components, java.util.LinkedList<java.lang.Integer> componentCounts)
          Sends the CheckComponentMessage checking if the player has enough of the given item types.
static java.lang.Boolean checkCurrency(OID playerOid, int currencyID, int cost)
          Sends the CheckCurrency Message.
static java.lang.Boolean checkSpecificComponents(OID id, java.util.LinkedList<java.lang.Integer> reqComponentIDs, java.util.LinkedList<java.lang.Integer> reqStackSizes, java.util.LinkedList<java.lang.Long> components, java.util.LinkedList<java.lang.Integer> componentCounts)
          Sends the CheckComponentMessage checking if the player has the specific items given.
static OID createStorage(OID oid, java.lang.String storageName, int storageSize, boolean playerStorage)
           
static OID createStorage(OID oid, java.lang.String storageName, int storageSize, int lockLimit, boolean playerStorage)
           
static void deleteMail(OID oid, OID mailID)
          Sends the DeleteMailMessage.
static boolean doesInventoryHaveSufficientSpace(OID oid, java.util.HashMap<java.lang.Integer,java.lang.Integer> itemsToGenerate)
           
static void equippedItemUsed(OID oid, java.lang.String useType)
          Sends the EquippedItemUsedMessage.
static OID findItem(OID mobOid, AgisEquipSlot slot)
          Sends the RemoveOrFindItemMessage, returning the OID of the item if finds.
static java.lang.Integer findItemAmmoType(OID mobOid, AgisEquipSlot slot)
          Sends the RemoveOrFindItemMessage, returning the OID of the item if finds.
static OID findItemOfType(OID mobOid, java.lang.String itemType)
          Sends the RemoveOrFindItemMessage, returning the OID of the item if finds.
static OID findWeaponOfType(OID mobOid, java.lang.String weaponType)
          Sends the RemoveOrFindItemMessage, returning the OID of the item if finds.
static void generateItem(OID oid, int templateID, java.lang.String itemName, int count, java.util.HashMap<java.lang.String,java.io.Serializable> itemProps)
          Sends the GenerateItemMessage.
static java.util.HashMap<java.lang.Integer,java.lang.Integer> generateItems(OID oid, java.util.HashMap<java.lang.Integer,java.lang.Integer> itemsToGenerate, boolean failIfNotAllInserted)
           
static void generateItemsNoResponse(OID oid, java.util.HashMap<java.lang.Integer,java.lang.Integer> itemsToGenerate, boolean failIfNotAllInserted)
           
static void generateLoot(OID oid, OID tagOwner)
          Sends the GenerateLootMessage.
static void generateLootEffect(OID oid, java.util.HashMap<java.lang.Integer,java.lang.Float> lootsChance)
          Sends the GenerateLootEffectMessage.
static void generatePlayerLoot(OID oid, OID tagOwner, Point loc)
          Sends the GenerateLootMessage.
static int getAccountItemCount(OID oid, int itemID)
           
static java.util.ArrayList<java.lang.String> getAccountSkins(OID oid)
           
static Template getGenericItemData(OID oid, int itemID)
          Sends a Message asking for the Template for an item to be returned.
static void getLootList(OID oid, OID mobOid)
          Sends the GetLootListMessage.
static void getMail(OID oid)
          Sends the GetMailMessage.
static void getMerchantList(OID oid, OID mobOid)
          Sends the GetMerchantListMessage.
static void getSpecificItemData(OID oid, OID targetOid, java.util.ArrayList<java.lang.Long> itemOids)
          Sends the GetSpecificItemDataMessage.
static java.util.LinkedList<OID> getStorageContents(OID oid, OID storageOid)
           
static java.util.LinkedList<OID> getStorageContents(OID oid, java.lang.String storageName)
           
static void itemAcquiredStatusChange(OID oid, AgisItem item, boolean acquried)
          Sends the ItemAcquriedStatusMessage telling the system that the player has either acquired or lost an item.
static void itemEquipStatusChanged(OID oid, AgisItem itemToEquip, AgisItem itemToUnequip, java.lang.String slot)
          Sends the ItemEquipStatusMessage telling the system that an item has been equipped.
static void lootAll(OID oid, OID mobOid)
          Sends the LootAllMessage.
static void lootItem(OID oid, OID itemOid, OID mobOid)
          Sends the LootItemMessage.
static void mailRead(OID oid, OID mailID)
          Sends the MailReadMessage.
static void moveBag(OID oid, int bagSpotNum, int newSpotNum)
          Sends the MoveBagMessage.
static void openNonPlayerStorage(OID oid, OID storageOid)
          Sends open storage message by id
static void openNonPlayerStorage(OID oid, OID storageOid, int lockLimit)
           
static void openStorage(OID oid, java.lang.String storageName)
          Sends open storage message by name
static void pickLock(OID PlayerOid, OID targetOid, int skillLevel)
          Called by lockpick effect and sends message to AgisInventoryPlugin
static void placeBag(OID oid, OID itemOid, int bagSpotNum)
          Sends the PlaceBagMessage.
static java.lang.Boolean purchaseItem(OID playerOid, int itemID, int count)
          Sends the PurchaseItem Message.
static void purchaseItemFromMerchant(OID oid, OID mobOid, int itemID, int count)
          Sends the PurchaseItemFromMerchantMessage.
static void removeBag(OID oid, int bagSpotNum, int containerId, int slotId)
          Sends the RemoveBagMessage.
static void removeGenericItem(OID oid, int itemID, boolean removeStack, int numToRemove)
          Sends the RemoveGenericItemMessage.
static void removeGenericItems(OID oid, java.util.HashMap<java.lang.Integer,java.lang.Integer> itemsToRemove, boolean removeStack)
           
static void removeSpecificItem(OID oid, java.util.HashMap<OID,java.lang.Integer> itemsToRemove, boolean removeStack)
           
static void removeSpecificItem(OID oid, OID itemOid, boolean removeStack, int numToRemove)
          Sends the RemoveSpecificItemMessage.
static void requestOpenMob(OID mobOid, OID playerOid)
          Sends the RequestOpenMobMessage
static void sendAccountMail(OID oid, OID accountID, java.lang.String subject, java.lang.String message, int currencyType, int currencyAmount, java.util.HashMap<java.lang.Integer,java.lang.Integer> items)
           
static void sendMail(OID oid, java.lang.String recipient, java.lang.String subject, java.lang.String message, int currencyType, int currencyAmount, boolean CoD)
          Sends the SendMailMessage.
static void sendPurchaseMail(OID oid, OID characterOid, boolean isAccountMail, int itemID, int count)
          Sends the SendPurchaseMailMessage.
static void sendStorageItemsAsMail(OID oid, OID storageOid)
           
static void takeMailItem(OID oid, OID mailID, int itemPos)
          Sends the TakeMailItemMessage.
static void tradeStart(OID requesterOid, OID partnerOid)
          Sends a message to start a Trade.
static void tradeUpdate(OID requesterOid, OID partnerOid, java.util.LinkedList<OID> offerItems, boolean accepted, boolean cancelled)
          Sends a message to update the status of the trade (such as the items offered has changed or a player has accepted/declined).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSG_TYPE_AGIS_INV_FIND

public static final MessageType MSG_TYPE_AGIS_INV_FIND

MSG_TYPE_TRADE_START_REQ

public static final MessageType MSG_TYPE_TRADE_START_REQ

MSG_TYPE_TRADE_START_REQ_PARTNER

public static final java.lang.String MSG_TYPE_TRADE_START_REQ_PARTNER
See Also:
Constant Field Values

MSG_TYPE_TRADE_START_REQ_RESPONSE

public static final MessageType MSG_TYPE_TRADE_START_REQ_RESPONSE

MSG_TYPE_TRADE_START

public static final MessageType MSG_TYPE_TRADE_START

MSG_TYPE_TRADE_COMPLETE

public static final MessageType MSG_TYPE_TRADE_COMPLETE

MSG_TYPE_TRADE_OFFER_REQ

public static final MessageType MSG_TYPE_TRADE_OFFER_REQ

MSG_TYPE_TRADE_OFFER_UPDATE

public static final MessageType MSG_TYPE_TRADE_OFFER_UPDATE

MSG_TYPE_ITEM_ACQUIRE_STATUS_CHANGE

public static final MessageType MSG_TYPE_ITEM_ACQUIRE_STATUS_CHANGE

MSG_TYPE_ITEM_EQUIP_STATUS_CHANGE

public static final MessageType MSG_TYPE_ITEM_EQUIP_STATUS_CHANGE

MSG_TYPE_REQ_OPEN_MOB

public static final MessageType MSG_TYPE_REQ_OPEN_MOB

MSG_TYPE_REMOVE_SPECIFIC_ITEM

public static final MessageType MSG_TYPE_REMOVE_SPECIFIC_ITEM

MSG_TYPE_REMOVE_GENERIC_ITEM

public static final MessageType MSG_TYPE_REMOVE_GENERIC_ITEM

MSG_TYPE_GET_SPECIFIC_ITEM_DATA

public static final MessageType MSG_TYPE_GET_SPECIFIC_ITEM_DATA

MSG_TYPE_GET_GENERIC_ITEM_DATA

public static final MessageType MSG_TYPE_GET_GENERIC_ITEM_DATA

MSG_TYPE_GENERATE_ITEM

public static final MessageType MSG_TYPE_GENERATE_ITEM

MSG_TYPE_GENERATE_ITEM_NEEDS_RESPONSE

public static final MessageType MSG_TYPE_GENERATE_ITEM_NEEDS_RESPONSE

MSG_TYPE_PLACE_BAG

public static final MessageType MSG_TYPE_PLACE_BAG

MSG_TYPE_MOVE_BAG

public static final MessageType MSG_TYPE_MOVE_BAG

MSG_TYPE_REMOVE_BAG

public static final MessageType MSG_TYPE_REMOVE_BAG

MSG_TYPE_MOVE_ITEM

public static final MessageType MSG_TYPE_MOVE_ITEM

MSG_TYPE_LOOT_ITEM

public static final MessageType MSG_TYPE_LOOT_ITEM

MSG_TYPE_LOOT_ALL

public static final MessageType MSG_TYPE_LOOT_ALL

MSG_TYPE_LOOT_CHEST

public static final MessageType MSG_TYPE_LOOT_CHEST

MSG_TYPE_GENERATE_LOOT

public static final MessageType MSG_TYPE_GENERATE_LOOT

MSG_TYPE_GENERATE_LOOT_EFFECT

public static final MessageType MSG_TYPE_GENERATE_LOOT_EFFECT

MSG_TYPE_GET_LOOT_LIST

public static final MessageType MSG_TYPE_GET_LOOT_LIST

MSG_TYPE_GET_MERCHANT_LIST

public static final MessageType MSG_TYPE_GET_MERCHANT_LIST

MSG_TYPE_PURCHASE_ITEM_FROM_MERCHANT

public static final MessageType MSG_TYPE_PURCHASE_ITEM_FROM_MERCHANT

MSG_TYPE_PURCHASE_ITEM

public static final MessageType MSG_TYPE_PURCHASE_ITEM

MSG_TYPE_SELL_ITEM

public static final MessageType MSG_TYPE_SELL_ITEM

MSG_TYPE_PICKUP_ITEM

public static final MessageType MSG_TYPE_PICKUP_ITEM

MSG_TYPE_QUEST_ITEMS_LIST

public static final MessageType MSG_TYPE_QUEST_ITEMS_LIST

MSG_TYPE_SEND_INV_UPDATE

public static final MessageType MSG_TYPE_SEND_INV_UPDATE

MSG_TYPE_CHECK_CURRENCY

public static final MessageType MSG_TYPE_CHECK_CURRENCY

MSG_TYPE_ALTER_CURRENCY

public static final MessageType MSG_TYPE_ALTER_CURRENCY

MSG_TYPE_EDIT_LOCK

public static final MessageType MSG_TYPE_EDIT_LOCK

MSG_TYPE_GET_SKINS

public static final MessageType MSG_TYPE_GET_SKINS

MSG_TYPE_PURCHASE_SKIN

public static final MessageType MSG_TYPE_PURCHASE_SKIN

MSG_TYPE_SET_WEAPON

public static final MessageType MSG_TYPE_SET_WEAPON

MSG_TYPE_SET_SKIN_COLOUR

public static final MessageType MSG_TYPE_SET_SKIN_COLOUR

MSG_TYPE_GET_ACCOUNT_ITEM_COUNT

public static final MessageType MSG_TYPE_GET_ACCOUNT_ITEM_COUNT

MSG_TYPE_ALTER_ITEM_COUNT

public static final MessageType MSG_TYPE_ALTER_ITEM_COUNT

MSG_TYPE_USE_ACCOUNT_ITEM

public static final MessageType MSG_TYPE_USE_ACCOUNT_ITEM

MSG_TYPE_ITEM_ACTIVATED

public static final MessageType MSG_TYPE_ITEM_ACTIVATED

MSG_TYPE_RETURNBOOLEAN_CHECK_COMPONENTS

public static final MessageType MSG_TYPE_RETURNBOOLEAN_CHECK_COMPONENTS

MSG_TYPE_SET_AMMO

public static final MessageType MSG_TYPE_SET_AMMO

MSG_TYPE_EQUIPPED_ITEM_USED

public static final MessageType MSG_TYPE_EQUIPPED_ITEM_USED

MSG_TYPE_REPAIR_ITEMS

public static final MessageType MSG_TYPE_REPAIR_ITEMS

MSG_TYPE_GET_BANK_ITEMS

public static final MessageType MSG_TYPE_GET_BANK_ITEMS

MSG_TYPE_STORE_ITEM_IN_BANK

public static final MessageType MSG_TYPE_STORE_ITEM_IN_BANK

MSG_TYPE_RETRIEVE_ITEM_FROM_BANK

public static final MessageType MSG_TYPE_RETRIEVE_ITEM_FROM_BANK

MSG_TYPE_CREATE_STORAGE

public static final MessageType MSG_TYPE_CREATE_STORAGE

MSG_TYPE_OPEN_STORAGE

public static final MessageType MSG_TYPE_OPEN_STORAGE

MSG_TYPE_SEND_STORAGE_ITEMS_AS_MAIL

public static final MessageType MSG_TYPE_SEND_STORAGE_ITEMS_AS_MAIL

MSG_TYPE_GET_STORAGE_CONTENTS

public static final MessageType MSG_TYPE_GET_STORAGE_CONTENTS

MSG_TYPE_EQUIP_ITEM_IN_SLOT

public static final MessageType MSG_TYPE_EQUIP_ITEM_IN_SLOT

MSG_TYPE_DOES_INVENTORY_HAS_SUFFICIENT_SPACE

public static final MessageType MSG_TYPE_DOES_INVENTORY_HAS_SUFFICIENT_SPACE

MSG_TYPE_ACTIVATE_CHEST

public static final MessageType MSG_TYPE_ACTIVATE_CHEST

MSG_TYPE_GET_MAIL

public static final MessageType MSG_TYPE_GET_MAIL

MSG_TYPE_MAIL_READ

public static final MessageType MSG_TYPE_MAIL_READ

MSG_TYPE_MAIL_TAKE_ITEM

public static final MessageType MSG_TYPE_MAIL_TAKE_ITEM

MSG_TYPE_RETURN_MAIL

public static final MessageType MSG_TYPE_RETURN_MAIL

MSG_TYPE_DELETE_MAIL

public static final MessageType MSG_TYPE_DELETE_MAIL

MSG_TYPE_SEND_MAIL

public static final MessageType MSG_TYPE_SEND_MAIL

MSG_TYPE_SEND_PURCHASE_MAIL

public static final MessageType MSG_TYPE_SEND_PURCHASE_MAIL

MSG_TYPE_GET_ITEM_STORE

public static final MessageType MSG_TYPE_GET_ITEM_STORE

MSG_TYPE_PURCHASE_STORE_ITEM

public static final MessageType MSG_TYPE_PURCHASE_STORE_ITEM

MSG_TYPE_RELOAD_ITEMS

public static final MessageType MSG_TYPE_RELOAD_ITEMS

MSG_TYPE_LOCKPICK

public static final MessageType MSG_TYPE_LOCKPICK

INV_METHOD_SLOT

public static final java.lang.String INV_METHOD_SLOT
See Also:
Constant Field Values

INV_METHOD_AMMO_TYPE

public static final java.lang.String INV_METHOD_AMMO_TYPE
See Also:
Constant Field Values

MSG_INV_SLOT

public static final java.lang.String MSG_INV_SLOT
See Also:
Constant Field Values

INV_METHOD_TYPE

public static final java.lang.String INV_METHOD_TYPE
See Also:
Constant Field Values

INV_METHOD_WEAPON_TYPE

public static final java.lang.String INV_METHOD_WEAPON_TYPE
See Also:
Constant Field Values

tradeSuccess

public static final byte tradeSuccess
See Also:
Constant Field Values

tradeCancelled

public static final byte tradeCancelled
See Also:
Constant Field Values

tradeFailed

public static final byte tradeFailed
See Also:
Constant Field Values

tradeBusy

public static final byte tradeBusy
See Also:
Constant Field Values
Constructor Detail

AgisInventoryClient

public AgisInventoryClient()
Method Detail

findItem

public static OID findItem(OID mobOid,
                           AgisEquipSlot slot)
Sends the RemoveOrFindItemMessage, returning the OID of the item if finds.

Parameters:
mobOid -
slot -
Returns:

findItemOfType

public static OID findItemOfType(OID mobOid,
                                 java.lang.String itemType)
Sends the RemoveOrFindItemMessage, returning the OID of the item if finds.

Parameters:
mobOid -
slot -
Returns:

findWeaponOfType

public static OID findWeaponOfType(OID mobOid,
                                   java.lang.String weaponType)
Sends the RemoveOrFindItemMessage, returning the OID of the item if finds.

Parameters:
mobOid -
slot -
Returns:

findItemAmmoType

public static java.lang.Integer findItemAmmoType(OID mobOid,
                                                 AgisEquipSlot slot)
Sends the RemoveOrFindItemMessage, returning the OID of the item if finds.

Parameters:
mobOid -
slot -
Returns:

tradeStart

public static void tradeStart(OID requesterOid,
                              OID partnerOid)
Sends a message to start a Trade.

Parameters:
requesterOid -
partnerOid -

tradeUpdate

public static void tradeUpdate(OID requesterOid,
                               OID partnerOid,
                               java.util.LinkedList<OID> offerItems,
                               boolean accepted,
                               boolean cancelled)
Sends a message to update the status of the trade (such as the items offered has changed or a player has accepted/declined).

Parameters:
requesterOid -
partnerOid -
offerItems -
accepted -
cancelled -

itemAcquiredStatusChange

public static void itemAcquiredStatusChange(OID oid,
                                            AgisItem item,
                                            boolean acquried)
Sends the ItemAcquriedStatusMessage telling the system that the player has either acquired or lost an item.

Parameters:
oid -
item -
equipping -

itemEquipStatusChanged

public static void itemEquipStatusChanged(OID oid,
                                          AgisItem itemToEquip,
                                          AgisItem itemToUnequip,
                                          java.lang.String slot)
Sends the ItemEquipStatusMessage telling the system that an item has been equipped.

Parameters:
oid -
itemToEquip -
itemToUnequip -

requestOpenMob

public static void requestOpenMob(OID mobOid,
                                  OID playerOid)
Sends the RequestOpenMobMessage

Parameters:
mobOid -
playerOid -

removeSpecificItem

public static void removeSpecificItem(OID oid,
                                      OID itemOid,
                                      boolean removeStack,
                                      int numToRemove)
Sends the RemoveSpecificItemMessage.

Parameters:
oid -
itemOid -
removeStack -
numToRemove -

removeSpecificItem

public static void removeSpecificItem(OID oid,
                                      java.util.HashMap<OID,java.lang.Integer> itemsToRemove,
                                      boolean removeStack)

removeGenericItem

public static void removeGenericItem(OID oid,
                                     int itemID,
                                     boolean removeStack,
                                     int numToRemove)
Sends the RemoveGenericItemMessage.

Parameters:
oid -
itemID -
removeStack -
numToRemove -

removeGenericItems

public static void removeGenericItems(OID oid,
                                      java.util.HashMap<java.lang.Integer,java.lang.Integer> itemsToRemove,
                                      boolean removeStack)

getSpecificItemData

public static void getSpecificItemData(OID oid,
                                       OID targetOid,
                                       java.util.ArrayList<java.lang.Long> itemOids)
Sends the GetSpecificItemDataMessage. Used to send down information about an item to a players client.

Parameters:
oid -
targetOid -
itemOids -

getGenericItemData

public static Template getGenericItemData(OID oid,
                                          int itemID)
Sends a Message asking for the Template for an item to be returned.

Parameters:
oid -
itemID -
Returns:

generateItem

public static void generateItem(OID oid,
                                int templateID,
                                java.lang.String itemName,
                                int count,
                                java.util.HashMap<java.lang.String,java.io.Serializable> itemProps)
Sends the GenerateItemMessage.

Parameters:
oid -
templateID -
itemName -
itemProps -

generateItems

public static java.util.HashMap<java.lang.Integer,java.lang.Integer> generateItems(OID oid,
                                                                                   java.util.HashMap<java.lang.Integer,java.lang.Integer> itemsToGenerate,
                                                                                   boolean failIfNotAllInserted)

generateItemsNoResponse

public static void generateItemsNoResponse(OID oid,
                                           java.util.HashMap<java.lang.Integer,java.lang.Integer> itemsToGenerate,
                                           boolean failIfNotAllInserted)

placeBag

public static void placeBag(OID oid,
                            OID itemOid,
                            int bagSpotNum)
Sends the PlaceBagMessage.

Parameters:
oid -
itemOid -
bagSpotNum -

moveBag

public static void moveBag(OID oid,
                           int bagSpotNum,
                           int newSpotNum)
Sends the MoveBagMessage.

Parameters:
oid -
bagSpotNum -
newSpotNum -

removeBag

public static void removeBag(OID oid,
                             int bagSpotNum,
                             int containerId,
                             int slotId)
Sends the RemoveBagMessage.

Parameters:
oid -
bagSpotNum -
containerId -
slotId -

lootItem

public static void lootItem(OID oid,
                            OID itemOid,
                            OID mobOid)
Sends the LootItemMessage.

Parameters:
oid -
itemOid -
mobOid -

lootAll

public static void lootAll(OID oid,
                           OID mobOid)
Sends the LootAllMessage.

Parameters:
oid -
mobOid -

generateLootEffect

public static void generateLootEffect(OID oid,
                                      java.util.HashMap<java.lang.Integer,java.lang.Float> lootsChance)
Sends the GenerateLootEffectMessage.

Parameters:
oid -

generateLoot

public static void generateLoot(OID oid,
                                OID tagOwner)
Sends the GenerateLootMessage.

Parameters:
oid -

generatePlayerLoot

public static void generatePlayerLoot(OID oid,
                                      OID tagOwner,
                                      Point loc)
Sends the GenerateLootMessage.

Parameters:
oid -

getLootList

public static void getLootList(OID oid,
                               OID mobOid)
Sends the GetLootListMessage.

Parameters:
oid -
mobOid -

getMerchantList

public static void getMerchantList(OID oid,
                                   OID mobOid)
Sends the GetMerchantListMessage.

Parameters:
oid -
mobOid -

purchaseItemFromMerchant

public static void purchaseItemFromMerchant(OID oid,
                                            OID mobOid,
                                            int itemID,
                                            int count)
Sends the PurchaseItemFromMerchantMessage.

Parameters:
oid -
mobOid -

purchaseItem

public static java.lang.Boolean purchaseItem(OID playerOid,
                                             int itemID,
                                             int count)
Sends the PurchaseItem Message. Sends back a boolean response indicating whether or not the purchase succeeded.

Parameters:
playerOid -
itemID -
count -
Returns:

getMail

public static void getMail(OID oid)
Sends the GetMailMessage.

Parameters:
oid -

mailRead

public static void mailRead(OID oid,
                            OID mailID)
Sends the MailReadMessage.

Parameters:
oid -
mailID -

takeMailItem

public static void takeMailItem(OID oid,
                                OID mailID,
                                int itemPos)
Sends the TakeMailItemMessage.

Parameters:
oid -
mailID -

deleteMail

public static void deleteMail(OID oid,
                              OID mailID)
Sends the DeleteMailMessage.

Parameters:
oid -
mailID -

sendMail

public static void sendMail(OID oid,
                            java.lang.String recipient,
                            java.lang.String subject,
                            java.lang.String message,
                            int currencyType,
                            int currencyAmount,
                            boolean CoD)
Sends the SendMailMessage.

Parameters:
oid -
recipient -
subject -
message -
itemOID -

sendAccountMail

public static void sendAccountMail(OID oid,
                                   OID accountID,
                                   java.lang.String subject,
                                   java.lang.String message,
                                   int currencyType,
                                   int currencyAmount,
                                   java.util.HashMap<java.lang.Integer,java.lang.Integer> items)

sendPurchaseMail

public static void sendPurchaseMail(OID oid,
                                    OID characterOid,
                                    boolean isAccountMail,
                                    int itemID,
                                    int count)
Sends the SendPurchaseMailMessage.

Parameters:
oid -
itemID -

checkCurrency

public static java.lang.Boolean checkCurrency(OID playerOid,
                                              int currencyID,
                                              int cost)
Sends the CheckCurrency Message. Sends back a boolean response indicating whether or not the player has enough of the specified currency.

Parameters:
playerOid -
itemID -
count -
Returns:

alterCurrency

public static void alterCurrency(OID oid,
                                 int currencyType,
                                 int delta)
Sends the AlterCurrencyMessage.

Parameters:
oid -
currencyType -
delta -

equippedItemUsed

public static void equippedItemUsed(OID oid,
                                    java.lang.String useType)
Sends the EquippedItemUsedMessage.

Parameters:
oid -
useType -
itemOid -

getAccountSkins

public static java.util.ArrayList<java.lang.String> getAccountSkins(OID oid)

getAccountItemCount

public static int getAccountItemCount(OID oid,
                                      int itemID)

checkComponents

public static java.lang.Boolean checkComponents(OID id,
                                                java.util.LinkedList<java.lang.Integer> components,
                                                java.util.LinkedList<java.lang.Integer> componentCounts)
Sends the CheckComponentMessage checking if the player has enough of the given item types.

Parameters:
id -
components -
componentCounts -
Returns:

checkSpecificComponents

public static java.lang.Boolean checkSpecificComponents(OID id,
                                                        java.util.LinkedList<java.lang.Integer> reqComponentIDs,
                                                        java.util.LinkedList<java.lang.Integer> reqStackSizes,
                                                        java.util.LinkedList<java.lang.Long> components,
                                                        java.util.LinkedList<java.lang.Integer> componentCounts)
Sends the CheckComponentMessage checking if the player has the specific items given.

Parameters:
id -
reqComponentIDs -
reqStackSizes -
components -
componentCounts -
Returns:

pickLock

public static void pickLock(OID PlayerOid,
                            OID targetOid,
                            int skillLevel)
Called by lockpick effect and sends message to AgisInventoryPlugin

Parameters:
oid -
skillLevel -

createStorage

public static OID createStorage(OID oid,
                                java.lang.String storageName,
                                int storageSize,
                                boolean playerStorage)

createStorage

public static OID createStorage(OID oid,
                                java.lang.String storageName,
                                int storageSize,
                                int lockLimit,
                                boolean playerStorage)

openStorage

public static void openStorage(OID oid,
                               java.lang.String storageName)
Sends open storage message by name

Parameters:
oid -
storageName -

openNonPlayerStorage

public static void openNonPlayerStorage(OID oid,
                                        OID storageOid)
Sends open storage message by id

Parameters:
oid -
storageOid -

openNonPlayerStorage

public static void openNonPlayerStorage(OID oid,
                                        OID storageOid,
                                        int lockLimit)

sendStorageItemsAsMail

public static void sendStorageItemsAsMail(OID oid,
                                          OID storageOid)

getStorageContents

public static java.util.LinkedList<OID> getStorageContents(OID oid,
                                                           java.lang.String storageName)

getStorageContents

public static java.util.LinkedList<OID> getStorageContents(OID oid,
                                                           OID storageOid)

doesInventoryHaveSufficientSpace

public static boolean doesInventoryHaveSufficientSpace(OID oid,
                                                       java.util.HashMap<java.lang.Integer,java.lang.Integer> itemsToGenerate)


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