X
Xikini
Guest
Short and simple. TFS 0.3.7.
How do you send a parcel to a player from the system?
Easy example,
Use an object and get sent a parcel containing a backpack.
Inside the backpack is..
a demon shield, 53 gold coins and 4 amethysts.
Thanks for checking into this for me.
Xikini
How do you send a parcel to a player from the system?
Easy example,
Use an object and get sent a parcel containing a backpack.
Inside the backpack is..
a demon shield, 53 gold coins and 4 amethysts.
Code:
<action actionid="45001" event="script" value="send_parcel_test.lua"/>
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
-- parcel unsent id = 2595
-- label id = 2599
-- parcel sent id = 2596
local backpack = doPlayerAddItem(cid,1988,1)
doAddContainerItem(backpack,2520,1)
doAddContainerItem(backpack,2148,53)
doAddContainerItem(backpack,2150,4)
return true
end
Xikini