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

Problem with temple!

Mikeds

New Member
Joined
Feb 4, 2009
Messages
24
Reaction score
0
Hello!

I have problem with temple. In Sample townid is 2, but when player dies townid is 5 and temple pos is wrong.

In map have temple!
 
A simple creaturescript:
Code:
function onLogin(cid)
 if isPlayer(cid) == TRUE then
  if getPlayerStorageValue(cid, 654654) == -1 then
   addEvent(changeTown, 2 * 1000, cid=cid)
    setPlayerStorageValue(cid, 654654, 1)
   end
  end
 return TRUE
end

function changeTown(cid)
 local townPos = {x=111, y=222, z=7}
  local townId = 2
   doTeleportThing(cid, townPos, 1)
  doPlayerSetTown(cid, townId)
 return TRUE
end

:thumbup:
 
Back
Top