function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid,3000) == -1 then
doPlayerAddItem(cid,2493)
doPlayerAddItem(cid,2494)
doPlayerAddItem(cid,2495)
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"congrats")
setPlayerStorageValue(cid,3000,1)
doSendMagicEffect(getPlayerPosition(cid),28)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"empty")
end
return 1
end
<action actionid="3000" event="script" value="quests/Demon eq.lua"/>
Just use actionid 2000 from the system.lua script. Then add an uniqueid and add the items you want in the chest.do i have to do this for every quest?:/
and ive got a chest that i want to give k armor and k legs.. i have added them scripts, but altered them so they should give the items.. I am using action id 3000 and unique id as k armor and i dont understand why there not working, the chests just open?
Just use actionid 2000 from the system.lua script. Then add an uniqueid and add the items you want in the chest.
You can add more items, this is not limited to 1 item, the system.lua script will add them in a bag when it's more then 1 item, so don't add a bag in the chest yourself.