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

[AAC]char creation prob

prewesh

New Member
Joined
Mar 29, 2009
Messages
12
Reaction score
0
hi i'm using gesior 0.3.4beta with cryingdamson4 PL1

my prob is that if i make a char on the website and log in game it spawns in a city temple but i don;t want that.

when i make a char with account manager it spawns the chars where i want them 2 spawn on first login.

Does somebody know how 2 fix this so that when i make a char on the website and then login the game it spawns him at a given place
for example 50 50 7 or something.
 
Edit this in your config.lua:

Code:
    newPlayerSpawnPosX = 1000
    newPlayerSpawnPosY = 1000
    newPlayerSpawnPosZ = 7
    newPlayerTownId = 1

I am not 100 % sure.. But try it out...
 
hi i'm using gesior 0.3.4beta with cryingdamson4 PL1

my prob is that if i make a char on the website and log in game it spawns in a city temple but i don;t want that.

when i make a char with account manager it spawns the chars where i want them 2 spawn on first login.

Does somebody know how 2 fix this so that when i make a char on the website and then login the game it spawns him at a given place
for example 50 50 7 or something.

Log into your database, go to the players table.
Then open set the Town_ID on all sample characters to the town you want them to spawn in. Leave x,y,z at 0.
 
Edit this in your config.lua:

Code:
    newPlayerSpawnPosX = 1000
    newPlayerSpawnPosY = 1000
    newPlayerSpawnPosZ = 7
    newPlayerTownId = 1

I am not 100 % sure.. But try it out...


that's not it, i know what you mean but those are fine.


Log into your database, go to the players table.
Then open set the Town_ID on all sample characters to the town you want them to spawn in. Leave x,y,z at 0.

that's the problem i don't want them 2 spawn in a town. it's a place not in a town where new chars can take stuff.

it's something in the acc config or something i think, but i couldn't find it yet.

when i create a char with account manager it works fine.
the only problem is when i create a char on the website.
 
accountmanagement.php line: ~654

$player = $ots->createObject('Player');
$player->setName($newchar_name);
$player->setAccount($account_logged);
$player->setGroup($char_to_copy->getGroup());
$player->setSex($newchar_sex);
$player->setVocation($char_to_copy->getVocation());
$player->setConditions($char_to_copy->getConditions());
$player->setRank($char_to_copy->getRank());
$player->setLookAddons($char_to_copy->getLookAddons());
$player->setTownId(1);
$player->setExperience($char_to_copy->getExperience());
$player->setLevel($char_to_copy->getLevel());
$player->setMagLevel($char_to_copy->getMagLevel());
$player->setHealth($char_to_copy->getHealth());
$player->setHealthMax($char_to_copy->getHealthMax());
$player->setMana($char_to_copy->getMana());
$player->setManaMax($char_to_copy->getManaMax());
$player->setManaSpent($char_to_copy->getManaSpent());
$player->setSoul($char_to_copy->getSoul());
$player->setDirection($char_to_copy->getDirection());
$player->setLookBody($char_to_copy->getLookBody());
$player->setLookFeet($char_to_copy->getLookFeet());
$player->setLookHead($char_to_copy->getLookHead());
$player->setLookLegs($char_to_copy->getLookLegs());
$player->setLookType($char_to_copy->getLookType());
$player->setCap($char_to_copy->getCap());
$player->setPosX(987);
$player->setPosY(1035);
$player->setPosZ(6);

$player->setLossExperience($char_to_copy->getLossExperience());
$player->setLossMana($char_to_copy->getLossMana());
$player->setLossSkills($char_to_copy->getLossSkills());
$player->setLossItems($char_to_copy->getLossItems());
$player->save();
Worked for me :)
 
Back
Top