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

New char cities

arturhaddad

Member
Joined
Aug 14, 2010
Messages
217
Reaction score
8
If I configure all the the cities in config (to appear in houses,etc.) they all are selectable to spawn the new characters.
I want to restrict the spawn-selectable cities to the new characters may be able only like:
Thais
Carlin
Edron
Yalahar
What should I do?

Thanks ;)
 
system\application\views\create_character.php

Change this to
Code:
<label>City</label><select name='city'>
<?php 
	foreach($cities as $key=>$value) {
		echo '<option value="'.$key.'">'.$value.'</option>';
	}
?>
</select><br><br>
to this:
Code:
<label>City</label><select name='city'>
<?php 
         echo '<option value="1">Yalahar</option>
         echo '<option value="5">Thais</option>
	
?>
</select><br><br>

system\application\views\create.php

and this to
Code:
<?php 
	foreach($config['cities'] as $city => $name)  
		echo '<option value="'.$city.'">'.$name.'</option>'; ?>

to this
Code:
<?php 
         echo '<option value="1">Yalahar</option>
         echo '<option value="5">Thais</option>
'; ?>
 
config.php --

PHP:
/*List of cities, declare by using city ID and name eg. 2=>"Eternia City" etc.*/
$config['cities'] = array(1 => 'Thais', 2 => 'Carlin', 3 => 'Venore', 4 => 'Abdendriel', 5 => 'Edron', 6 => 'Darashia',  7 => 'Ankrahmun',  8 => 'Yalahar', 9  => 'Kazordoon', 10 => 'Svargrond', 11 => 'Port Hope', 12 => 'Liberty Bay' );
 
config.php --

PHP:
/*List of cities, declare by using city ID and name eg. 2=>"Eternia City" etc.*/
$config['cities'] = array(1 => 'Thais', 2 => 'Carlin', 3 => 'Venore', 4 => 'Abdendriel', 5 => 'Edron', 6 => 'Darashia',  7 => 'Ankrahmun',  8 => 'Yalahar', 9  => 'Kazordoon', 10 => 'Svargrond', 11 => 'Port Hope', 12 => 'Liberty Bay' );
You should read what he said...
Code:
If I configure all the the cities in config (to appear in houses,etc.) they all are selectable to spawn the new characters.
In othewords he wants to restrict the selectable cities when player makes new characters. But if he did it with config then the house list wouldn't contain every house,because it wouldn't show every city because he removed em at there...
 
Back
Top