Trying to make my script do the following
When a player steps on the throne, message is printed and storage value is set.
What I have so far:
The script seems to just doPlayerSendCancel (cid,"You have already absorbed Verminor's spirit"). I am not sure if it is actually setting the storage value.
When a player steps on the throne, message is printed and storage value is set.
What I have so far:
Code:
function onStepIn(cid, item, position, fromPosition)
Absored = getPlayerStorageValue(cid,10001)
if item.uid == 10001 then
if Absorbed == -1 then
doPlayerSendTextMessage(cid,22,"You have absorbed Verminor's spirit")
setPlayerStorageValue(cid,10001,1)
doPlayerSendCancel (cid,"Continue the quest")
else
doPlayerSendCancel (cid,"You have already absorbed Verminor's spirit")
end
end
return 1
end