miguelshta
Member
im having this error on teleport script this is a mod script from team war ots
XML:
-- Set Town & Position
doPlayerSetTown(cid, configTWH.mapStats[map.get()].templeIDs[playerTeam.get(cid)])
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), true, true)
-- // 2 = Quest Map (No-PvP?)
elseif (configTWH.mapStats[map.get()].mapType[1] == 2) then
-- // 3 = Capture The Flag (Normal + Capture)
elseif (configTWH.mapStats[map.get()].mapType[1] == 3) then
-- // 4 = Deathmatch (Player vs All)
elseif (configTWH.mapStats[map.get()].mapType[1] == 4) then
--print("[Change-MapType] 4 = Deathmatch (Player vs All)")
-- Set Town & Position
doPlayerSetTown(cid, math.random(configTWH.mapStats[map.get()].templeIDs[1], configTWH.mapStats[map.get()].templeIDs[2]))
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), true, true)
Code:
[Error - CreatureScript Interface]
buffer:onLogin
Description:
(luaDoTeleportThing) Thing not found