|
|||||||||
Atavism Version 2018.1 | AGIS API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatavism.agis.plugins.AgisInventoryClient
public class AgisInventoryClient
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
|
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 |
---|
public static final MessageType MSG_TYPE_AGIS_INV_FIND
public static final MessageType MSG_TYPE_TRADE_START_REQ
public static final java.lang.String MSG_TYPE_TRADE_START_REQ_PARTNER
public static final MessageType MSG_TYPE_TRADE_START_REQ_RESPONSE
public static final MessageType MSG_TYPE_TRADE_START
public static final MessageType MSG_TYPE_TRADE_COMPLETE
public static final MessageType MSG_TYPE_TRADE_OFFER_REQ
public static final MessageType MSG_TYPE_TRADE_OFFER_UPDATE
public static final MessageType MSG_TYPE_ITEM_ACQUIRE_STATUS_CHANGE
public static final MessageType MSG_TYPE_ITEM_EQUIP_STATUS_CHANGE
public static final MessageType MSG_TYPE_REQ_OPEN_MOB
public static final MessageType MSG_TYPE_REMOVE_SPECIFIC_ITEM
public static final MessageType MSG_TYPE_REMOVE_GENERIC_ITEM
public static final MessageType MSG_TYPE_GET_SPECIFIC_ITEM_DATA
public static final MessageType MSG_TYPE_GET_GENERIC_ITEM_DATA
public static final MessageType MSG_TYPE_GENERATE_ITEM
public static final MessageType MSG_TYPE_GENERATE_ITEM_NEEDS_RESPONSE
public static final MessageType MSG_TYPE_PLACE_BAG
public static final MessageType MSG_TYPE_MOVE_BAG
public static final MessageType MSG_TYPE_REMOVE_BAG
public static final MessageType MSG_TYPE_MOVE_ITEM
public static final MessageType MSG_TYPE_LOOT_ITEM
public static final MessageType MSG_TYPE_LOOT_ALL
public static final MessageType MSG_TYPE_LOOT_CHEST
public static final MessageType MSG_TYPE_GENERATE_LOOT
public static final MessageType MSG_TYPE_GENERATE_LOOT_EFFECT
public static final MessageType MSG_TYPE_GET_LOOT_LIST
public static final MessageType MSG_TYPE_GET_MERCHANT_LIST
public static final MessageType MSG_TYPE_PURCHASE_ITEM_FROM_MERCHANT
public static final MessageType MSG_TYPE_PURCHASE_ITEM
public static final MessageType MSG_TYPE_SELL_ITEM
public static final MessageType MSG_TYPE_PICKUP_ITEM
public static final MessageType MSG_TYPE_QUEST_ITEMS_LIST
public static final MessageType MSG_TYPE_SEND_INV_UPDATE
public static final MessageType MSG_TYPE_CHECK_CURRENCY
public static final MessageType MSG_TYPE_ALTER_CURRENCY
public static final MessageType MSG_TYPE_EDIT_LOCK
public static final MessageType MSG_TYPE_GET_SKINS
public static final MessageType MSG_TYPE_PURCHASE_SKIN
public static final MessageType MSG_TYPE_SET_WEAPON
public static final MessageType MSG_TYPE_SET_SKIN_COLOUR
public static final MessageType MSG_TYPE_GET_ACCOUNT_ITEM_COUNT
public static final MessageType MSG_TYPE_ALTER_ITEM_COUNT
public static final MessageType MSG_TYPE_USE_ACCOUNT_ITEM
public static final MessageType MSG_TYPE_ITEM_ACTIVATED
public static final MessageType MSG_TYPE_RETURNBOOLEAN_CHECK_COMPONENTS
public static final MessageType MSG_TYPE_SET_AMMO
public static final MessageType MSG_TYPE_EQUIPPED_ITEM_USED
public static final MessageType MSG_TYPE_REPAIR_ITEMS
public static final MessageType MSG_TYPE_GET_BANK_ITEMS
public static final MessageType MSG_TYPE_STORE_ITEM_IN_BANK
public static final MessageType MSG_TYPE_RETRIEVE_ITEM_FROM_BANK
public static final MessageType MSG_TYPE_CREATE_STORAGE
public static final MessageType MSG_TYPE_OPEN_STORAGE
public static final MessageType MSG_TYPE_SEND_STORAGE_ITEMS_AS_MAIL
public static final MessageType MSG_TYPE_GET_STORAGE_CONTENTS
public static final MessageType MSG_TYPE_EQUIP_ITEM_IN_SLOT
public static final MessageType MSG_TYPE_DOES_INVENTORY_HAS_SUFFICIENT_SPACE
public static final MessageType MSG_TYPE_ACTIVATE_CHEST
public static final MessageType MSG_TYPE_GET_MAIL
public static final MessageType MSG_TYPE_MAIL_READ
public static final MessageType MSG_TYPE_MAIL_TAKE_ITEM
public static final MessageType MSG_TYPE_RETURN_MAIL
public static final MessageType MSG_TYPE_DELETE_MAIL
public static final MessageType MSG_TYPE_SEND_MAIL
public static final MessageType MSG_TYPE_SEND_PURCHASE_MAIL
public static final MessageType MSG_TYPE_GET_ITEM_STORE
public static final MessageType MSG_TYPE_PURCHASE_STORE_ITEM
public static final MessageType MSG_TYPE_RELOAD_ITEMS
public static final MessageType MSG_TYPE_LOCKPICK
public static final java.lang.String INV_METHOD_SLOT
public static final java.lang.String INV_METHOD_AMMO_TYPE
public static final java.lang.String MSG_INV_SLOT
public static final java.lang.String INV_METHOD_TYPE
public static final java.lang.String INV_METHOD_WEAPON_TYPE
public static final byte tradeSuccess
public static final byte tradeCancelled
public static final byte tradeFailed
public static final byte tradeBusy
Constructor Detail |
---|
public AgisInventoryClient()
Method Detail |
---|
public static OID findItem(OID mobOid, AgisEquipSlot slot)
mobOid
- slot
-
public static OID findItemOfType(OID mobOid, java.lang.String itemType)
mobOid
- slot
-
public static OID findWeaponOfType(OID mobOid, java.lang.String weaponType)
mobOid
- slot
-
public static java.lang.Integer findItemAmmoType(OID mobOid, AgisEquipSlot slot)
mobOid
- slot
-
public static void tradeStart(OID requesterOid, OID partnerOid)
requesterOid
- partnerOid
- public static void tradeUpdate(OID requesterOid, OID partnerOid, java.util.LinkedList<OID> offerItems, boolean accepted, boolean cancelled)
requesterOid
- partnerOid
- offerItems
- accepted
- cancelled
- public static void itemAcquiredStatusChange(OID oid, AgisItem item, boolean acquried)
oid
- item
- equipping
- public static void itemEquipStatusChanged(OID oid, AgisItem itemToEquip, AgisItem itemToUnequip, java.lang.String slot)
oid
- itemToEquip
- itemToUnequip
- public static void requestOpenMob(OID mobOid, OID playerOid)
mobOid
- playerOid
- public static void removeSpecificItem(OID oid, OID itemOid, boolean removeStack, int numToRemove)
oid
- itemOid
- removeStack
- numToRemove
- public static void removeSpecificItem(OID oid, java.util.HashMap<OID,java.lang.Integer> itemsToRemove, boolean removeStack)
public static void removeGenericItem(OID oid, int itemID, boolean removeStack, int numToRemove)
oid
- itemID
- removeStack
- numToRemove
- public static void removeGenericItems(OID oid, java.util.HashMap<java.lang.Integer,java.lang.Integer> itemsToRemove, boolean removeStack)
public static void getSpecificItemData(OID oid, OID targetOid, java.util.ArrayList<java.lang.Long> itemOids)
oid
- targetOid
- itemOids
- public static Template getGenericItemData(OID oid, int itemID)
oid
- itemID
-
public static void generateItem(OID oid, int templateID, java.lang.String itemName, int count, java.util.HashMap<java.lang.String,java.io.Serializable> itemProps)
oid
- templateID
- itemName
- itemProps
- 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)
public static void generateItemsNoResponse(OID oid, java.util.HashMap<java.lang.Integer,java.lang.Integer> itemsToGenerate, boolean failIfNotAllInserted)
public static void placeBag(OID oid, OID itemOid, int bagSpotNum)
oid
- itemOid
- bagSpotNum
- public static void moveBag(OID oid, int bagSpotNum, int newSpotNum)
oid
- bagSpotNum
- newSpotNum
- public static void removeBag(OID oid, int bagSpotNum, int containerId, int slotId)
oid
- bagSpotNum
- containerId
- slotId
- public static void lootItem(OID oid, OID itemOid, OID mobOid)
oid
- itemOid
- mobOid
- public static void lootAll(OID oid, OID mobOid)
oid
- mobOid
- public static void generateLootEffect(OID oid, java.util.HashMap<java.lang.Integer,java.lang.Float> lootsChance)
oid
- public static void generateLoot(OID oid, OID tagOwner)
oid
- public static void generatePlayerLoot(OID oid, OID tagOwner, Point loc)
oid
- public static void getLootList(OID oid, OID mobOid)
oid
- mobOid
- public static void getMerchantList(OID oid, OID mobOid)
oid
- mobOid
- public static void purchaseItemFromMerchant(OID oid, OID mobOid, int itemID, int count)
oid
- mobOid
- public static java.lang.Boolean purchaseItem(OID playerOid, int itemID, int count)
playerOid
- itemID
- count
-
public static void getMail(OID oid)
oid
- public static void mailRead(OID oid, OID mailID)
oid
- mailID
- public static void takeMailItem(OID oid, OID mailID, int itemPos)
oid
- mailID
- public static void deleteMail(OID oid, OID mailID)
oid
- mailID
- public static void sendMail(OID oid, java.lang.String recipient, java.lang.String subject, java.lang.String message, int currencyType, int currencyAmount, boolean CoD)
oid
- recipient
- subject
- message
- itemOID
- 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)
public static void sendPurchaseMail(OID oid, OID characterOid, boolean isAccountMail, int itemID, int count)
oid
- itemID
- public static java.lang.Boolean checkCurrency(OID playerOid, int currencyID, int cost)
playerOid
- itemID
- count
-
public static void alterCurrency(OID oid, int currencyType, int delta)
oid
- currencyType
- delta
- public static void equippedItemUsed(OID oid, java.lang.String useType)
oid
- useType
- itemOid
- public static java.util.ArrayList<java.lang.String> getAccountSkins(OID oid)
public static int getAccountItemCount(OID oid, int itemID)
public static java.lang.Boolean checkComponents(OID id, java.util.LinkedList<java.lang.Integer> components, java.util.LinkedList<java.lang.Integer> componentCounts)
id
- components
- componentCounts
-
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)
id
- reqComponentIDs
- reqStackSizes
- components
- componentCounts
-
public static void pickLock(OID PlayerOid, OID targetOid, int skillLevel)
oid
- skillLevel
- public static OID createStorage(OID oid, java.lang.String storageName, int storageSize, boolean playerStorage)
public static OID createStorage(OID oid, java.lang.String storageName, int storageSize, int lockLimit, boolean playerStorage)
public static void openStorage(OID oid, java.lang.String storageName)
oid
- storageName
- public static void openNonPlayerStorage(OID oid, OID storageOid)
oid
- storageOid
- public static void openNonPlayerStorage(OID oid, OID storageOid, int lockLimit)
public static void sendStorageItemsAsMail(OID oid, OID storageOid)
public static java.util.LinkedList<OID> getStorageContents(OID oid, java.lang.String storageName)
public static java.util.LinkedList<OID> getStorageContents(OID oid, OID storageOid)
public static boolean doesInventoryHaveSufficientSpace(OID oid, java.util.HashMap<java.lang.Integer,java.lang.Integer> itemsToGenerate)
|
Copyright © 2018 Dragonsan Studios Sp. z o.o. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |