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

Temple Position Is Wrong

david alejand

New Member
Joined
Apr 28, 2012
Messages
14
Reaction score
1
Hello friends , I take care of her knowledge to help me solve this problem I have ,

what happens is that I opened my web server pag and I think the character and entered the server well but die when trying to enter and says "Temple position is wrong"

and check config.lua , config.php , phpmyadmin in acc manager and the map editor and everything is fine with the coordinates 1000 1000 7 Town 1 below some pictures.

https://i.gyazo.com/540ff97f4a5b38464772d6ef74b11da1.png

https://i.gyazo.com/cc1e16bf72cb292aaafa660ef8d75d05.png

https://i.gyazo.com/3d0d4071f94a50e207c5d52a5655a94f.png

https://i.gyazo.com/0d997316b78bb1db82b8215c94ac58b0.png

https://i.gyazo.com/edc5d4460c75160282f92ef4753fcea4.png

And I hope you can help me , thanks :,v

I Use Google Translator
 
show a screenshot of the player that can't login its entry in the database, show its town id and x, y, z position.
there is a screen shot of an entry but we have no idea if that is for the character.
 
chance this in config
Code:
$config['towns'] = array( 1 => 'war', );

to this
Code:
$config['towns'] = array( '1' => 'war');

I should of caught this sooner, the index of an array starts at 0 in php, you had it set to 1, which i am surprised you didn't get an error on the site.

Whatever calls the config array thought the 1 was the index value and not the townid.

Think of it like this
Code:
$a = array(
'1'  // index 0
'2', // index 1
'3'  // index 2
// etc
);
This is why you will most of the time you will see a local variable of an iterator set to 0.
 
Last edited:
chance this in config
Code:
$config['towns'] = array( 1 => 'war', );

to this
Code:
$config['towns'] = array( '1' => 'war');

I should of caught this sooner, the index of an array starts at 0 in php, you had it set to 1, which i am surprised you didn't get an error on the site.

Whatever calls the config array thought the 1 was the index value and not the townid.

Think of it like this
Code:
$a = array(
'1'  // index 0
'2', // index 1
'3'  // index 2
// etc
);


Change the line that you gave me but still the same , I became a new player appeared in the temple, died after trying to enter gave me the error
 
They helped me and elsewhere ,
I had to edit this other line $ config [ ' available_towns '] = array ( 1); estsa where 1 is the id of your town city where they want to appear the player
 
Back
Top