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

Lua Temple Position Problem

Big Gunz

Active Member
Joined
Nov 17, 2011
Messages
1,064
Reaction score
32
Location
United States
I got a problem players in my ot can log in with account manager and create their account log in but when they die
they cant log in because it says :wrong temple position I cant think of anything because i already have the temple positions in my config and in the sqlite so whats the problem? if anyone can help me i will appreciate thank you :)
 
Open your map editor and click on Ctrl + T, then you will look the position of the temple and the id. Configure it here in config.lua:

Code:
	newPlayerSpawnPosX = 95
	newPlayerSpawnPosY = 117
	newPlayerSpawnPosZ = 7
	newPlayerTownId = 1

Also set the town id of the town in the sqlite in the account manager character.
 
You fixed all in config.lua?
1.. Sqlite .. you get town_id bad in SQLite Studio - town_id and edit config.lua

2..MYSQL..
why you need anyways edit positions x y z for fixed all in createchars, towns_id etc...
I give full how edit and fixed :)

in folder config open config.php and search:
PHP:
// sample, if all players should spawn in one city (city with ID 4):          
$config['site']['newchar_towns'] = array(5);

Remember edit 5 - for Town you have, for see town_id open RME , search in Map - edit towns and look number ID are and changed for 5
example:
now, for send all players to temple for bug.. use query:
SQL:
UPDATE players SET posx = 32369, posy = 32241, posz = 7;
and edit positions, for see positions is in RME or go temple and use /pos and changed positions x y z..
now for update players town_id use
SQL:
UPDATE players SET town_id = 5;
and 5.. remember edit for your town_id
 
Last edited:
If you changed it in your config.lua and it still isnt working. go to phpmyadmin and edit the account manager character. change the town id to number 1 and it should be fixed
 
Back
Top