Can anyone help me?
I made this:
This is a Debug character on Znote Acc
- Teleport offline player to pos x:1054 y:1045 z:7
- Have a 12 hours of cooldown per account
Can help in the functions?
Thanks
I made this:
PHP:
<?php require_once 'engine/init.php'; protect_page();
include 'layout/overall/header.php';
if (user_logged_in() === true) {
// fetch data
$char_count = user_character_list_count($session_user_id);
$char_array = user_character_list($user_data['id']);
$characters = array();
if ($char_array !== false) {
foreach ($char_array as $value) {
$characters[] = $value['name'];
}
}
}
if (empty($_GET['name'])) {
// Display the guild list
?>
<h1>Desbug character:</h1>
<img src="/layout/images/bullet.gif"> Solo se puede usar una vez cada 24 horas.<br><br>
<!----------------------------------------------------->
<?php
// Set character position
if (empty($_POST['position_name']) === false && empty($_POST['position_type']) === false) {
if (user_character_exist($_POST['position_name'])) {
if (array_key_exists($_POST['position_type'], $config['ingame_positions'])) {
if ($config['TFSVersion'] == 'TFS_02') {
set_ingame_position($_POST['position_name'], $_POST['position_type']);
} else if ($config['TFSVersion'] == 'TFS_03') {
set_ingame_position03($_POST['position_name'], $_POST['position_type']);
}
$pos = 'Undefined';
foreach ($config['ingame_positions'] as $key=>$value) {
if ($key == $_POST['position_type']) {
$pos = $value;
}
}
$errors[] = 'Character '. $_POST['position_name'] .' recieved the ingame position: '. $pos .'.';
}
} else {
$errors[] = 'Character '. $_POST['position_name'] .' does not exist.';
}
}
?>
<!----------------------------------------------------->
<ul><li>Escoge tu personaje: <a href=/createcharacter.php>No tienes ninguno?</a>
<form action="" method="post">
<select name="position_name">
<?php
for ($i = 0; $i < $char_count; $i++) {
echo '<option value="'. $characters[$i] .'">'. $characters[$i] .'</option>';
}
?>
</select>
<select name="position_type">
<?php
echo "<option value=1>Player</option>";
?>
</select>
<input type="submit" value="Desbug character">
</form>
</li>
<?php
} // display form if user has a character in guild
include 'layout/overall/footer.php'; ?>
This is a Debug character on Znote Acc
- Teleport offline player to pos x:1054 y:1045 z:7
- Have a 12 hours of cooldown per account
Can help in the functions?
Thanks