Hey! I've been searching here and haven't really gotten the "right" answer - even though this seems to be very simple.
I just wanted to ask how to have a bag containing items as a reward. Containing, for example, a few gold coins and an amulet maybe?
This is my regular script, which I want to make into a container with the dark armor.
Thanks!
I just wanted to ask how to have a bag containing items as a reward. Containing, for example, a few gold coins and an amulet maybe?
This is my regular script, which I want to make into a container with the dark armor.
Code:
function onUse(cid, item, frompos, item2, topos)
if item.actionid == 1000 then
queststatus = getPlayerStorageValue(cid, 5000)
if queststatus == -1 then
setPlayerStorageValue(cid, 5000, 1)
doPlayerAddItem(cid, 2489, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found a dark armor.")
else
doPlayerSendTextMessage(cid, 22, "It is empty.")
end
end
return TRUE
end
Thanks!