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

Wrong temple position AFTER DYING on new characters.

Nexor123

New Member
Joined
Jun 7, 2008
Messages
28
Reaction score
0
Hello!

I've set the hometown to number 2 in accountmanagement.php I THINK and it doesn't seem to work very well. When I create a new character, it works well. I can log into the game but when I die it says wrong temple position. All my sample characters have hometown = 2.

Can someone please explain how to change the hometown for new chars?

NOTE: I'm using GESIORS latest aac

EDIT :


F*** YES I SOLVED IT!!

I had to change:
$player->setTownId($newchar_town);

TO THE FOLLOWING:
$player->setTownId(2);
 
Last edited:
Maybe your town isn't set in your map editor?

else its in here; xampp\htdocs\config\config.php

this is mine:
$towns_list[0] = array(1 => 'Yalahar', 2 => 'Carlin', 5 => 'Thais', 6 => 'Venore', 8 => 'Ankrahmun'); // list of towns, id => 'name', $towns_list[0] - for world id 0
$towns_list[1] = array(1 => 'Yalahar', 2 => 'Carlin', 5 => 'Thais', 6 => 'Venore', 8 => 'Ankrahmun'); // list of towns, id => 'name', $towns_list[1] - for world id 1
 
Maybe your town isn't set in your map editor?

else its in here; xampp\htdocs\config\config.php

this is mine:

And this is mine:
// list of towns on ots
$towns_list[0] = array(2 => 'Bananasplit'); // list of towns, id => 'name', $towns_list[0] - for world id 0

Have I done anything wrong? Maybe I should post more of my config.php ? Or maybe my whole accountmanagement.php ?
 
Nope.
Keeps giving me this message:
Warning: in_array() expects parameter 2 to be array, integer given in C:\xampp\htdocs\accountmanagement.php on line 846

But the character still gets created but with 0 as town id
 
Back
Top