mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04: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:
@@ -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