CheatsBCN
New Member
- Joined
- Mar 6, 2012
- Messages
- 131
- Reaction score
- 1
hello i have 3 quests in same room and i only want people to be able to choose one of em. on remeres map i know that on the chest box u gotta put the item id and then it will give u the item and put the storage value of the item number to 1, but if i want to set the storage of the others quest to 1 how should i proceed? i tryed adding this actions and this script for the 3
PHP:
<action uniqueid="2453" event="script" value="arcane staff.lua" />
<action uniqueid="8931" event="script" value="epiphany.lua" />
<action uniqueid="2352" event="script" value="crystal arrow.lua" />
PHP:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 2453 or item.uid == 2352 or item.uid == 8931 then
queststatus = getPlayerStorageValue(cid,2453)
queststatus2 = getPlayerStorageValue(cid,2352)
queststatus3 = getPlayerSorageValue(cid,8931)
if queststatus == -1 or queststatus2 == -1 or queststatus3 == -1 or then
doPlayerSendTextMessage(cid,22,"You have found the Epiphany!.")
doPlayerAddItem(cid,8931,1 )
setPlayerStorageValue(cid,2453,1)
setPlayerStorageValue(cid,8931,1)
setPlayerStorageValue(cid,2352,1)
else
doPlayerSendTextMessage(cid,22,"It is empty!")
end
else
return 0
end
return 1
end