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

TemplePosition

Jesper_Kladden

Donator
Joined
May 16, 2008
Messages
458
Reaction score
1
Location
Sweden
How do I get the Temple position (XYZ) ?

I've tried getPlayerMasterPos(cid) and getPlayerTemplePos(cid)

None works..

*Using Mystic spirit (0.2)
 
I've tried that...

I always get the error on line:

doTeleportThing(cid, templeposition, TRUE)

"Attempt to index a number value

Stack traceback:
[C]: in function doTeleportThing" :(
 
Maybe this should work if you use town Ids in your map..

getTownName(getPlayerTown(param)) also make like !town "charname and you'll see the townname of the player !Only if you got Town Ids in map"

?

How it is supposed to return temple position?
Also, there is no getTownName(townid) function in 0.2...
 
ooh, yeah temple..
then
local teleport = getPlayerMasterPos(cid)

doTeleportThing(cid, teleport, TRUE)

Read his post? He said he tried with getPlayerMasterPos(cid).

Again, there is no function to get town/player temple position in 0.2. Youll have to use LuaSQL.
 
Back
Top