mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 05:54:50 +02:00
More GetInventory changes.
This commit is contained in:
parent
044d7e5207
commit
b955c38a2a
6 changed files with 8 additions and 8 deletions
|
@ -4,9 +4,9 @@ function onEventStarted(player, npc)
|
|||
Spl = GetStaticActor("Spl000");
|
||||
magickedPrism = 3020615;
|
||||
|
||||
if not player:GetInventory(INVENTORY_NORMAL):HasItem(magickedPrism) then
|
||||
if not player:GetItemPackage(INVENTORY_NORMAL):HasItem(magickedPrism) then
|
||||
callClientFunction(player, "delegateEvent", player, Spl, "processEventELNAURE", 2);
|
||||
local invCheck = player:GetInventory(INVENTORY_NORMAL):AddItem(magickedPrism, 10, 1);
|
||||
local invCheck = player:GetItemPackage(INVENTORY_NORMAL):AddItem(magickedPrism, 10, 1);
|
||||
if invCheck == INV_ERROR_SUCCESS then
|
||||
player:SendGameMessage(player, GetWorldMaster(), 25246, MESSAGE_TYPE_SYSTEM, magickedPrism, 10);
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue