Something's wrong 
Would be great if someone who got a little more knowlegde could fix it.
Its a quest scripts that will give a different reward to different vocations.
PLixoRR Help ^_^
Would be great if someone who got a little more knowlegde could fix it.
Its a quest scripts that will give a different reward to different vocations.
Code:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 1112 then
queststatus = getPlayerStorageValue(cid,1111)
if queststatus == -1 and getPlayerVocation(cid) == 1 or 2 then
doPlayerSendTextMessage(cid,22,"You have found a Wand of Starstorm.")
doPlayerAddItem(cid,8920,1)
setPlayerStorageValue(cid,1111,1)
elseif queststatus == -1 and getPlayerVocation(cid) == 3 then
doPlayerSendTextMessage(cid,22,"You have found a bow and an arrow.")
doPlayerAddItem(cid,8858,1)
doPlayerAddItem(cid,7364,1)
setPlayerStorageValue(cid,1111,1)
elseif queststatus == -1 and getPlayerVocation(cid) == 4 then
doPlayerSendTextMessage(cid,22,"You have found a Solar Blade.")
doPlayerAddItem(cid,8931,1)
setPlayerStorageValue(cid,1111,1)
else
doPlayerSendTextMessage(cid,22,"You have already chosen your reward.")
end
end
return 1
end
PLixoRR Help ^_^