andy1995
.
Hi, maybe here i can found help. Can anyone who good know lua fix it?
http://pastebin.com/R6J7TLjE
Ofc repp ;P
http://pastebin.com/R6J7TLjE
Ofc repp ;P
Last edited:
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
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