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

Change new player position to x,y,z same with death

henkas

Well-Known Member
Joined
Jul 8, 2015
Messages
989
Solutions
5
Reaction score
54
Hello
using tfs 1.2
How can i change new player position to custome x,y,z and when player dies to custome x,y,z
 
Go to my-acc folder and serach for config.php

and update this line

Code:
    // list of towns
    'towns' => array(
        0 => 'No town',
        1 => 'Sample town'

And restart the server and uniform or xampp
same still spawns in town 1
// list of towns
'towns' => array(
0 => 'No town',
1 => 'West City',
2 => 'Born Temple'
),
 

Code:
    // town list used when creating character
    // won't be displayed if there is only one item (rookgaard for example)
    'character_towns' => array(1,2),

Change 1,2 to whatever town IDs you want the player to chose from when creating a character.

Code:
    // list of towns
    'towns' => array(
        1 => '',
        2 => '',
        3 => '',
        4 => '',
        5 => '',
        6 => '',
        7 => '',
        8 => '',
        9 => '',
        10 => ''
    ),

That list of towns is just for houses I believe.
 
Code:
    // town list used when creating character
    // won't be displayed if there is only one item (rookgaard for example)
    'character_towns' => array(1,2),

Change 1,2 to whatever town IDs you want the player to chose from when creating a character.

Code:
    // list of towns
    'towns' => array(
        1 => '',
        2 => '',
        3 => '',
        4 => '',
        5 => '',
        6 => '',
        7 => '',
        8 => '',
        9 => '',
        10 => ''
    ),

That list of towns is just for houses I believe.
So now when i create character it lets me to choose between town 1 and 2 so if i make only
'character_towns' => array(2) it will work i think. But then if i make only 2 my command /t will teleport me to that new player spawn, so probably i need to hide in php town selection if yes how?
 
So now when i create character it lets me to choose between town 1 and 2 so if i make only
'character_towns' => array(2) it will work i think. But then if i make only 2 my command /t will teleport me to that new player spawn, so probably i need to hide in php town selection if yes how?

If theres only 1 option, it won't let you chose so no need to hide anything.
 
So then like i said command like /t wont work because it will teleport to id 1 but town 1 will not exist. And what about player death position

Have you edited your towns in the map editor?

Every character needs a town id, else they can't log in to the server.
 
Yes it works now. But how do i need to change death player position now to custom too?

Dead players respawn on their town id. Players can change their town id with this script data\movements\scripts\citizen.lua You basically set a teleport with an actionid of 30020 or higher (30020 is town id 0, 30021 is town id 1 etc)
 
Back
Top