• 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 with script for quest!

skully

New Member
Joined
Jan 15, 2012
Messages
50
Reaction score
0
Hello OTLanders,

I'm using the following script for a quest.

Lua:
function onStepIn(cid, item, position, fromPosition)
    tileback = {x=2179, y=771, z=12, stackpos=255}
	
	if (getPlayerStorageValue(cid,887) < 1) then
		if (getPlayerStorageValue(cid,888) < 1) then
			if (getPlayerStorageValue(cid,889) < 1) then
	        	doTeleportThing(cid, tileback)
			doSendMagicEffect(tileback,10)
            	doPlayerSendTextMessage(cid,22,"You did not touch all 3 the statues yet...")
		else
		end
		else
end
	else
	end
	return true
end

A player needs to touch 3 statues, before he is able to go through the teleporter.
But what happens is when a player touches 1 statue he is already able to go through the teleporter
 
use this! sorry my bad english!

function onStepIn(cid, item, position, fromPosition)
tileback = {x=2179, y=771, z=12, stackpos=255}

if (getPlayerStorageValue(cid,887) > 1) then
if (getPlayerStorageValue(cid,888) > 1) then
if (getPlayerStorageValue(cid,889) > 1) then
doTeleportThing(cid, tileback)
doSendMagicEffect(tileback,10)
doPlayerSendTextMessage(cid,22,"You did not touch all 3 the statues yet...")
end
end
end
return true
end
 
Back
Top