• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Need help with Quest = acces door..

askarda

Banned User
Joined
May 15, 2008
Messages
92
Reaction score
5
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..

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
but its nothing wrong with that quest,


also I'm using Evolutions 0.7.8... can someoneplease help me?
 
Back
Top