• 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!

[Help] Quest door script.

Galgula

New Member
Joined
Nov 15, 2007
Messages
28
Reaction score
0
Since no one helps on LUA&XML section i decided to try here..
I've found a cool evulotions script but i got problem with it on TFS.
I got something wrong with a door script and dont know what is it :S

script:

Code:
--Action by Wallaby- baseado na Porta do postman by eu mesmo.. action que foi baseada na lvl door  
-- quando for por no mapa, em propriedades poe actionID 5019 e vai funfa =]

function onUse(cid, item, frompos, item2, topos)
	
	
	if item.itemid == 1223 then
  			queststatus = getPlayerStorageValue(cid,1234561)
 			queststatus2 = getPlayerStorageValue(cid,1234562)
 			queststatus3 = getPlayerStorageValue(cid,1234563)
 			queststatus4 = getPlayerStorageValue(cid,1234564)
 			queststatus5 = getPlayerStorageValue(cid,1234565)
 			queststatus6 = getPlayerStorageValue(cid,1234566)
 			queststatus7 = getPlayerStorageValue(cid,1234567)
  
  		if queststatus == -1 or queststatus2 == -1 or queststatus3 == -1 or queststatus4 == -1 or queststatus5 == -1 or queststatus6 == -1 or queststatus7 == -1 then
  			doPlayerSendTextMessage(cid,22,"You havn't open the seven quests.")
	

		
else
pos = getPlayerPosition(cid)	
			if pos.x == topos.x then
				if pos.y < topos.y then
					pos.y = topos.y + 1
				else
					pos.y = topos.y - 1
				end
			elseif pos.y == topos.y then
				if pos.x < topos.x then
					pos.x = topos.x + 1
				else
					pos.x = topos.x - 1
				end
			else

doPlayerSendTextMessage(cid,22,'Stand in front of the door.')
				return 1
			end

			doTeleportThing(cid,pos)
			doSendMagicEffect(topos,12)
			end
		return 1
	else
		return 0
	end
end
in actions:
Code:
<action itemid="1223" script="questdoor.lua" />
as i understand from this..
u need to finish 7 quests and only if u finish them u can open the door.
i did it all and finished all the 7 quests but the door isnt open yet :S

P.S:
It seems to be that the door is like not coded because when i try to open it. it says:
"The door seems to be sealed against unwanted intruders."
and if it was coded like the script then it should say:
"You havn't open the seven quests."


Sorry for bad english, i hope you will understand it 0.o
 
Back
Top