Hi there, I want have a script working like this.. you cannot enter the door, before you have done some quest..
I tried this script but didn't work very well.. not even the msg worked..
and I used this script to give the needed datakey:
but its nothing wrong with that quest,
also I'm using Evolutions 0.7.8... can someoneplease help me?
I tried this script but didn't work very well.. not even the msg worked..
Code:
function onUse(cid, item, frompos, item2, topos)
local queststatus = getPlayerStorageValue(cid, 15209)
local questDoorUID = 15210
if(item.uid == questDoorUID and queststatus > 0) then
if(item.itemid == 1229) then
doTransformItem(item2.uid,item2.itemid-1)
else
doTransformItem(item2.uid,item2.itemid+1)
end
else
doPlayerSendTextMessage(cid, 22, "You do not have access to open this door.")
end
end
and I used this script to give the needed datakey:
Code:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 15209 then
queststatus = getPlayerStorageValue(cid,15209)
if queststatus == -1 or queststatus == 0 then
doPlayerSendTextMessage(cid,22,"You have now acces to Gm house.")
setPlayerStorageValue(cid,15209,1)
else
doPlayerSendTextMessage(cid,22,"it\'s empty.")
end
else
return 0
end
return 1
end
also I'm using Evolutions 0.7.8... can someoneplease help me?