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

Lua Fix Script ;D

yes it's on that probably, because you did not specify the storage value, you only used "cid" in parameter... Need the storage value too!
 
Try
LUA:
local config = {
                                [6001] = {pos = {x=582, y=645, z=5}},
				[6002] = {pos = {x=32358, y=31780, z=9}},
				[6003] = {pos = {x=32680, y=31688, z=2}},
				[6004] = {pos = {x=32643, y=31926, z=11}},
				[6005] = {pos = {x=32360, y=32242, z=6}},
				[6006] = {pos = {x=32956, y=32076, z=5}},
				[6007] = {pos = {x=33229, y=32391, z=5}},
				[6008] = {pos = {x=33128, y=32812, z=4}},
				[6009] = {pos = {x=33266, y=31837, z=9}},
				[6010] = {pos = {x=32626, y=32744, z=4}},
				[6011] = {pos = {x=32335, y=32838, z=8}},
				[6012] = {pos = {x=32302, y=31186, z=8}}
}
function onStepIn(cid, item, position, fromPosition)
local cfg = config[getPlayerStorageValue(cid)]
	if item.actionid == 7053 and getPlayerStorageValue(cid,cfg) == 1 then	
			doTeleportThing(cid,cfg.pos)
			doSendMagicEffect(cfg.pos,10)
			setPlayerStorageValue(cid, cfg,-1)
		else
	end
return true
end
 
should work
LUA:
local config = {
                               
                     [6001] = {pos = {x=582, y=645, z=5}},
				[6002] = {pos = {x=32358, y=31780, z=9}},
				[6003] = {pos = {x=32680, y=31688, z=2}},
				[6004] = {pos = {x=32643, y=31926, z=11}},
				[6005] = {pos = {x=32360, y=32242, z=6}},
				[6006] = {pos = {x=32956, y=32076, z=5}},
				[6007] = {pos = {x=33229, y=32391, z=5}},
				[6008] = {pos = {x=33128, y=32812, z=4}},
				[6009] = {pos = {x=33266, y=31837, z=9}},
				[6010] = {pos = {x=32626, y=32744, z=4}},
				[6011] = {pos = {x=32335, y=32838, z=8}},
				[6012] = {pos = {x=32302, y=31186, z=8}}
                              
}
function onStepIn(cid, item, position, fromPosition)
for s, v in pairs(config) do
        if getPlayerStorageValue(cid,s) == 1 then  
                        doTeleportThing(cid,v.pos)
                        doSendMagicEffect(v.pos,10)
                        setPlayerStorageValue(cid, s,-1)
             
        end
end
return true
end
 
Back
Top