kito2
www.masteria.net
Ok, I will try that on weekend, love ya!
hey what about if i put
arena = { frompos = {x=1022,y=1017,z=7}, topos = {x=1037,y=1025,z=7} } ----Put you event area here
and change from z=7 to z=3 and there are missing some tiles above will it still work? Ty
For floors it wont work.
nplayer1pos = {x=32359, y=31726, z=7} --place player will be teleported when die
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), FALSE)
doTeleportThing(cid, nplayer1pos, FALSE)
Ahh, so there should be walking tiles, that's why Im having errors!
Updated all and doesn't work... When players get teleporteds, the same error is displayed...
Code:[1:6:56.082] [Error - CreatureScript Interface] [1:6:56.082] domodlib('football-lib') [1:6:56.082] function onLogin(cid) [1:6:56.082] [1:6:56.082] if getPlayerStorageValue(cid,check) > 0 then [1:6:56.082] if isInRange(getCreaturePosition(cid), arena.frompos, arena.topos) then [1:6:56.082] doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), FALSE) [1:6:56.082] doSendMagicEffect(getCreaturePosition(cid), 10) [1:6:56.082] setPlayerStorageValue(cid,check,-1) [1:6:56.082] else [1:6:56.082] setPlayerStorageValue(cid,check,-1) [1:6:56.082] end [1:6:56.082] end [1:6:56.082] registerCreatureEvent(cid, "Log") [1:6:56.082] registerCreatureEvent(cid, "Arena") [1:6:56.082] registerCreatureEvent(cid, "Attk") [1:6:56.082] [1:6:56.082] return true [1:6:56.082] end [1:6:56.082] [1:6:56.082] :onLogin [1:6:56.082] Description: [1:6:56.082] data/lib/032-position.lua:2: attempt to index local 'fromPosition' (a nil value) [1:6:56.082] stack traceback: [1:6:56.082] data/lib/032-position.lua:2: in function 'isInRange' [1:6:56.082] [string "LuaInterface::loadBuffer"]:5: in function <[string "LuaInterface::loadBuffer"]:2>