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

Tile : can read storage value?

darkk

New Member
Joined
May 1, 2009
Messages
15
Reaction score
0
Location
Las Vegas, US

Hello ^_^
Im looking for a tile when you step on it, it can read your storage value and if you dont have the quest finished it teleport you to PLACE1 if you already have done that quest it teleport you to PLACE2
.

i donk know if that its posible. :p

<sorry for my english>

Thanks.
 
Here you go
Lua:
function onStepIn(cid, item, position, fromPosition)
local storageValue = 9999 -- Quest storage value
local place1 = {x=999, y=999, z=7} -- Position if player has not completed the quest
local place2 = {x=999, y=999, z=7} -- Position if player has completed the quest
	if getPlayerStorageValue(cid, storageValue) == -1 then
		doTeleportThing(cid, place1)
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
	else
		doTeleportThing(cid, place2)
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
	end
return TRUE
end
 

Similar threads

Back
Top