Ir para conteúdo

Posts Recomendados

No meu server quando vou criar o character , tem as 3 bolinha para marcar as 3 cidades, mas nao tem o nome delas!

 

config.php

 

 

// CHARACTER config, format: ID_of_vocation => 'Name of Character to copy', load vocation name from $vocation_name[0] (below)

$config['site']['newchar_vocations'][0] = array(1 => 'Sorcerer Sample', 2 => 'Druid Sample', 3 => 'Paladin Sample', 4 => 'Knight Sample');

$config['site']['newchar_vocations'][1] = array(1 => 'Sorcerer Sample', 2 => 'Druid Sample', 3 => 'Paladin Sample', 4 => 'Knight Sample');

// sample, if rook only: $config['site']['newchar_vocations'][0] = array(0 => 'Rook Sample');

$config['site']['newchar_towns'][0] = array(2 => 'Woltria', 3 => 'Bazordoon', 4 => 'Nevor');

$config['site']['newchar_towns'][1] = array(1,2);

// sample, if all players should spawn in one city (city with ID 4): uncoment!!

//$config['site']['newchar_towns'] = array(4);

 

// list of vocations on ots (world 0)

$vocation_name[0][0] = array(0 => 'None', 1 => 'Sorcerer', 2 => 'Druid', 3 => 'Paladin', 4 => 'Knight'); // id => 'name' , $vocation_name[0] - promotion level 0, $vocation_name[0] - for world ID 0

$vocation_name[0][1] = array(1 => 'Master Sorcerer', 2 => 'Elder Druid', 3 => 'Royal Paladin', 4 => 'Elite Knight'); // id => 'name' , $vocation_name[1] - promotion level 1, $vocation_name[0] - for world ID 0

// list of vocations on ots (world 1)

$vocation_name[1][0] = array(0 => 'None', 1 => 'Sorcerer', 2 => 'Druid', 3 => 'Paladin', 4 => 'Knight'); // id => 'name' , $vocation_name[0] - promotion level 0, $vocation_name[1] - for world ID 1

$vocation_name[1][1] = array(1 => 'Master Sorcerer', 2 => 'Elder Druid', 3 => 'Royal Paladin', 4 => 'Elite Knight'); // id => 'name' , $vocation_name[1] - promotion level 1, $vocation_name[1] - for world ID 1

 

// list of towns on ots

$towns_list[0] = array(2 => 'Woltria', 3 => 'Bazordoon', 4 => 'Nevor'); // list of towns, id => 'name', $towns_list[0] - for world id 0

$towns_list[1] = array(2 => 'Woltria', 3 => 'Bazordoon', 4 => 'Nevor'); // list of towns, id => 'name', $towns_list[1] - for world id 1

 

 

 

 

E em accountmanagement.php

 

 

 

$main_content .= 'checked="checked" ';

$main_content .= '>female<br/></td></tr></table></div></div></table></div>';

if(count($config['site']['newchar_towns'][$world_id]) > 1 || count($config['site']['newchar_vocations'][$world_id]) > 1)

$main_content .= '<div class="InnerTableContainer" > <table style="width:100%;" ><tr>';

if(count($config['site']['newchar_vocations'][$world_id]) > 1)

{

$main_content .= '<td><table class="TableContent" width="100%" ><tr class="Odd" valign="top"><td width="160"><br /><b>Selecione a vocação:</b></td><td><table class="TableContent" width="100%" >';

foreach($config['site']['newchar_vocations'][$world_id] as $char_vocation_key => $sample_char)

{

$main_content .= '<tr><td><input type="radio" name="newcharvocation" value="'.$char_vocation_key.'" ';

if($newchar_vocation == $char_vocation_key)

$main_content .= 'checked="checked" ';

$main_content .= '>'.$vocation_name[$world_id][0][$char_vocation_key].'</td></tr>';

}

$main_content .= '</table></table></td>';

}

if(count($config['site']['newchar_towns'][$world_id]) > 1)

{

$main_content .= '<td><table class="TableContent" width="100%" ><tr class="Odd" valign="top"><td width="160"><br /><b>Select your city:</b></td><td><table class="TableContent" width="100%" >';

foreach($config['site']['newchar_towns'][$world_id] as $town_id)

{

$main_content .= '<tr><td><input type="radio" name="newchartown" value="'.$town_id.'" ';

if($newchar_town == $town_id)

$main_content .= 'checked="checked" ';

$main_content .= '>'.$towns_list[$world_id][$town_id].'</td></tr>';

}

$main_content .= '</table></table></td>';

}

if(count($config['site']['newchar_towns'][$world_id]) > 1 || count($config['site']['newchar_vocations'][$world_id]) > 1)

$main_content .= '</tr></table></div>';

$main_content .= '</table></div></td></tr><br/><table style="width:100%;" ><tr align="center" ><td><table border="0" cellspacing="0" cellpadding="0" ><tr><td style="border:0px;" ><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Submit" alt="Submit" src="'.$layout_name.'/images/buttons/_sbutton_submit.gif" ></div></div></td><tr></form></table></td><td><table border="0" cellspacing="0" cellpadding="0" ><form action="?subtopic=accountmanagement" method="post" ><tr><td style="border:0px;" ><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$layout_name.'/images/buttons/_sbutton_back.gif" ></div></div></td></tr></form></table></td></tr></table>';

}

else

{

 

 

 

 

@EDIT

CONSEGUI RESOLVER SOZINHO PODEM FECHAR O TOPICO

Editado por Lucaswc15
Link para o comentário
https://xtibia.com/forum/topic/186763-problema-com-cidades/
Compartilhar em outros sites

×
×
  • Criar Novo...