mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-02 19:42:05 -04:00
Updated method names of "RemoveItem" as Lua hates overloads.
This commit is contained in:
parent
afe79e6c5f
commit
52da0a671f
@ -272,7 +272,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.player
|
|||||||
owner.QueuePacket(InventoryEndChangePacket.BuildPacket(owner.actorId));
|
owner.QueuePacket(InventoryEndChangePacket.BuildPacket(owner.actorId));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void RemoveItem(ulong itemDBId)
|
public void RemoveItemByUniqueId(ulong itemDBId)
|
||||||
{
|
{
|
||||||
ushort slot = 0;
|
ushort slot = 0;
|
||||||
InventoryItem toDelete = null;
|
InventoryItem toDelete = null;
|
||||||
@ -314,7 +314,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.player
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void RemoveItem(ushort slot)
|
public void RemoveItemAtSlot(ushort slot)
|
||||||
{
|
{
|
||||||
if (slot >= list.Count)
|
if (slot >= list.Count)
|
||||||
return;
|
return;
|
||||||
|
@ -10,6 +10,6 @@ The param "itemDBIds" has the vars: item1 and item2.
|
|||||||
--]]
|
--]]
|
||||||
|
|
||||||
function onEventStarted(player, actor, triggerName, invActionInfo, param1, param2, param3, param4, param5, param6, param7, param8, itemDBIds)
|
function onEventStarted(player, actor, triggerName, invActionInfo, param1, param2, param3, param4, param5, param6, param7, param8, itemDBIds)
|
||||||
player:GetInventory(0x00):RemoveItem(invActionInfo.slot);
|
player:GetInventory(0x00):RemoveItemAtSlot(invActionInfo.slot);
|
||||||
player:EndEvent();
|
player:EndEvent();
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user