mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2026-11-23 23:36:14 -05:00
Finished check command as well as gearsets and switching between classes. Property changes still have to be written though.
This commit is contained in:
1 parent
44e5430fdc
commit
e851c767df
16 files changed
+222
-58
No files matched your search
@@ -41,7 +41,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.player
|
||||
list = itemsFromDB;
|
||||
}
|
||||
|
||||
public InventoryItem getItem(ushort slot)
|
||||
public InventoryItem getItemBySlot(ushort slot)
|
||||
{
|
||||
if (slot < list.Count)
|
||||
return list[slot];
|
||||
@@ -49,6 +49,16 @@ namespace FFXIVClassic_Map_Server.actors.chara.player
|
||||
return null;
|
||||
}
|
||||
|
||||
public InventoryItem getItemById(ulong itemId)
|
||||
{
|
||||
foreach (InventoryItem item in list)
|
||||
{
|
||||
if (item.uniqueId == itemId)
|
||||
return item;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void RefreshItem(InventoryItem item)
|
||||
{
|
||||
owner.queuePacket(InventorySetBeginPacket.buildPacket(owner.actorId, inventoryCapacity, inventoryCode));
|
||||
|
||||
Reference in new issue
Block a user