Ir para conteúdo

darcioantonio

Membro
  • Registro em

  • Última visita

Tudo que darcioantonio postou

  1. e ai nada ? kkk
  2. TFS 0.4 Tem como fazer isso no OT CLIENT.Quando o personagem passar em um tile aparecer uma dessa com imagens ?
  3. darcioantonio postou uma resposta no tópico em Tutoriais sobre Clients
    tem como colocar imagens no tutu ?
  4. UP tem como ?
  5. precizo de 2 Magias 1º vc fala ela e ela sai como se fosse um tiro em linha reta, se colidir com algum player causa um poco de dano e para. 2º Um item granada ou algo do gênero, que vc usa cai no chão e depois de uns 2 segundos explode. 3º e ultimo, queria um script que quando o player pisasse no chao tipo o jogo ia marcar o jogador com todos os itens , lvl experiencia e tals, ai o jogador ia ser teletransportado para uma arena, e la ele nao ia ter nada nem item nem nada, e teria um lvl base com tanto de hp e de mana e ia ganhar uns equips, ai quando ele saice da arena pra voltar pra main sland, voltaria do mesmo geito que estava antes.
  6. tem em mysql ???
  7. darcioantonio postou uma resposta no tópico em Suporte Tibia OTServer
    up
  8. Galera no meu game quando preciono ctrl + z abre uma caixa para relatar os bugs erros etc pra onde isso vai ? o caminho pra eu poder olhar / ver oque ta pegando.
  9. Man testei mas o player não guanhã a recompensa não depois de uma hora
  10. Se liga no arquivo tem isso <?php require_once 'engine/init.php'; include 'layout/overall/header.php'; protect_page(); admin_only($user_data); // Encryption (if select field has $key 0, it will return false, so add $enc + $key will return 100, subtract and you get 0, not false). $enc = 100; // Don't bother to think about cross site scripting here, since they can't access the page unless they are admin anyway. // start if (empty($_POST) === false) { // BAN system! if (!empty($_POST['ban_char']) && !empty($_POST['ban_type']) && !empty($_POST['ban_action']) && !empty($_POST['ban_reason']) && !empty($_POST['ban_time']) && !empty($_POST['ban_comment'])) { if (user_character_exist($_POST['ban_char'])) { // Decrypt and store values $charname = $_POST['ban_char']; $typeid = (int)$_POST['ban_type'] - $enc; $actionid = (int)$_POST['ban_action'] - $enc; $reasonid = (int)$_POST['ban_type'] - $enc; $time = (int)$_POST['ban_time'] - $enc; $comment = $_POST['ban_comment']; //var_dump($charname, $typeid, $actionid, $reasonid, $time, $comment); if (set_rule_violation($charname, $typeid, $actionid, $reasonid, $time, $comment)) { $errors[] = 'Violation entry has been set for '. $charname .'.'; } else { $errors[] = 'Website character name: '. $config['website_char'] .' does not exist. Create this character name or configure another name in config.php'; $errors[] = 'Website failed to recognize a character it can represent while inserting a rule violation.'; } } else { $errors[] = 'Character '. getValue($_POST['ban_char']) .' does not exist.'; } } // delete character: if (empty($_POST['del_name']) === false) { if (user_character_exist($_POST['del_name'])) { user_delete_character(user_character_id($_POST['del_name'])); $errors[] = 'Character '. getValue($_POST['del_name']) .' permanently deleted.'; } else { $errors[] = 'Character '. getValue($_POST['del_name']) .' does not exist.'; } } // Reset password for char name if (empty($_POST['reset_pass']) === false && empty($_POST['new_pass']) === false) { // reset_pass = character name if (user_character_exist($_POST['reset_pass'])) { $acc_id = user_character_account_id($_POST['reset_pass']); if ($acc_id != $session_user_id) { if ($config['TFSVersion'] == 'TFS_02' || $config['TFSVersion'] == 'TFS_10') { user_change_password($acc_id, $_POST['new_pass']); } else if ($config['TFSVersion'] == 'TFS_03') { user_change_password03($acc_id, $_POST['new_pass']); } $errors[] = 'The password to the account of character name: '. getValue($_POST['reset_pass']) .' has been set to: '. getValue($_POST['new_pass']) .'.'; } else { header('Location: changepassword.php'); exit(); } } } // Give points to character if (empty($_POST['points_char']) === false && empty($_POST['points_value']) === false) { $char = sanitize($_POST['points_char']); $points = (int)$_POST['points_value']; data_dump($_POST, false, "post data"); $account = mysql_select_single("SELECT `account_id` FROM `players` WHERE `name`='$char' LIMIT 1;"); data_dump($account, false, "fetching account id from players table"); $znote_account = mysql_select_single("SELECT `id`, `points` FROM `znote_accounts` WHERE `account_id`='". $account['account_id'] ."';"); data_dump($znote_account, false, "Fetching existing points from znote_accounts"); data_dump( array( 'Old:' => $znote_account['points'], 'New:' => $points, 'Total:' => ($znote_account['points'] + $points) ), false, "Points calculation:"); $points += $znote_account['points']; mysql_update("UPDATE `znote_accounts` SET `points`='$points' WHERE `account_id`='". $account['account_id'] ."';"); } // 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' || $config['TFSVersion'] == 'TFS_10') { 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 '. getValue($_POST['position_name']) .' recieved the ingame position: '. $pos .'.'; } } else { $errors[] = 'Character '. getValue($_POST['position_name']) .' does not exist.'; } } // Teleport Player if (isset($_POST['from']) && in_array($_POST['from'], ['all', 'only'])) { $from = $_POST['from']; if ($from === 'only') { if (empty($_POST['player_name']) || !user_character_exist($_POST['player_name'])) { $errors[] = 'Character '. getValue($_POST['player_name']) .' does not exist.'; } } if (!sizeof($errors)) { $to = $_POST['to']; $teleportQuery = 'UPDATE `players` SET '; if ($to == 'home') { $teleportQuery .= '`posx` = 0, `posy` = 0, `posz` = 0 '; } else if ($to == 'town') { $teleportQuery .= '`posx` = 0, `posy` = 0, `posz` = 0, `town_id` = ' . (int) getValue($_POST['town']) . ' '; } else if ($to == 'xyz') { $teleportQuery .= '`posx` = ' . (int) getValue($_POST['x']) . ', `posy` = ' . (int) getValue($_POST['y']) . ', `posz` = ' . (int) getValue($_POST['z']) . ' '; } if ($from === 'only') { $teleportQuery .= ' WHERE `name` = \'' . getValue($_POST['player_name']). '\''; } mysql_update($teleportQuery); } } // If empty post } // Display whatever output we figure out to add if (empty($errors) === false){ echo '<font color="red"><b>'; echo output_errors($errors); echo '</b></font>'; } // end ?> <h1>Admin Page.</h1> <p> <?php $basic = user_znote_data('version', 'installed', 'cached'); if ($basic['version'] !== $version) { mysql_update("UPDATE `znote` SET `version`='$version';"); $basic = user_znote_data('version', 'installed', 'cached'); } echo "Running Znote AAC Version: ". $basic['version'] .".<br>"; echo "Last cached on: ". getClock($basic['cached'], true) .".<br>"; ?> </p> <ul> <li> <b>Permanently delete/erase character from database:</b> <form type="submit" action="" method="post"> <input type="text" name="del_name" placeholder="Character name..."> </form> </li> <li> <b>Ban character and/or account:</b> <form action="" method="post"> <table style="background-color:lightblue;"> <!-- row 1 --> <tr> <td> <input type="text" name="ban_char" placeholder="Character name..."> </td> </tr> <!-- row 2 --> <tr> <td> <select name="ban_type"> <?php foreach ($config['ban_type'] as $key=>$value) { echo "<option value=\"". ($enc + $key) ."\">". $value ."</option>"; } ?> </select> <select name="ban_action"> <?php foreach ($config['ban_action'] as $key=>$value) { echo "<option value=\"". ($enc + $key) ."\">". $value ."</option>"; } ?> </select> <select name="ban_time"> <?php foreach ($config['ban_time'] as $key=>$value) { echo "<option value=\"". ($enc + $key) ."\">". $value ."</option>"; } ?> </select> </td> </tr> <!-- row 3 --> <tr> <td> Ban reason: <select name="ban_reason"> <?php foreach ($config['ban_reason'] as $key=>$value) { echo "<option value=\"". ($enc + $key) ."\">". $value ."</option>"; } ?> </select> </td> </tr> <!-- row 4 --> <tr> <td> Violation comment: (max 60 cols). <input type="text" name="ban_comment" maxlength="60" placeholder="Ban for botting rotworms."> <input type="submit" value="Set Violation"> </td> </tr> </table> </form> </li> <li> <b>Reset password to the account of character name:</b> <form action="" method="post"> <input type="text" name="reset_pass" placeholder="Character name"> <input type="text" name="new_pass" placeholder="New password"> <input type="submit" value="Change Password"> </form> </li> <li> <b>Set character name to position:</b> <?php if ($config['TFSVersion'] == 'TFS_03' && count($config['ingame_positions']) == 5) { ?> <font color="red">ERROR: You forgot to add (Senior Tutor) rank in config.php!</font> <?php } ?> <form action="" method="post"> <input type="text" name="position_name" placeholder="Character name"> <select name="position_type"> <?php foreach ($config['ingame_positions'] as $key=>$value) { echo "<option value=\"". $key ."\">". $value ."</option>"; } ?> </select> <input type="submit" value="Set Position"> </form> </li> <li> <b>Give shop points to character:</b> <form action="" method="post"> <input type="text" name="points_char" placeholder="Character name"> <input type="text" name="points_value" placeholder="Points"> <input type="submit" value="Give Points"> </form> </li> <li> <b>Teleport Player</b> <form action="" method="post"> <table> <tr> <td>Type:</td> <td> <select name="from"> <option value="all">All</option> <option value="only">Only</option> </select> </td> </tr> <tr> <td>Player</td> <td><input type="text" name="player_name" placeholder="Player Name"></td> </tr> <tr> <td>To</td> <td> <select name="to"> <option value="home">Hometown</option> <option value="town">Specific Town</option> <option value="xyz">Specific Position</option> </select> </td> </tr> <tr> <td>Town</td> <td> <select name="town"> <?php foreach($config['towns'] as $townId => $townName) { echo '<option value="' . $townId . '">' . $townName . '</option>'; } ?> </select> </td> </tr> <tr> <td>Position</td> <td> <input type="text" name="x" placeholder="Position X"> <input type="text" name="y" placeholder="Position Y"> <input type="text" name="z" placeholder="Position Z"> </td> </tr> <tr> <td></td> <td><input type="submit" value="teleport"></td></td> </tr> </tr> </table> </form> </li> </ul> <div id="twitter"><?php include 'twtrNews.php'; ?></div> <?php include 'layout/overall/footer.php'; ?> Esta dando esse erro aqui [Sat Apr 22 22:09:54 2017] [error] [client 184.66.109.45] PHP Parse error: syntax error, unexpected '[' in /var/www/admin.php on line 108 Arrumei éra so apagar umas linhas la kkk agora fico aism <?php require_once 'engine/init.php'; include 'layout/overall/header.php'; protect_page(); admin_only($user_data); // Encryption (if select field has $key 0, it will return false, so add $enc + $key will return 100, subtract and you get 0, not false). $enc = 100; // Don't bother to think about cross site scripting here, since they can't access the page unless they are admin anyway. // start if (empty($_POST) === false) { // BAN system! if (!empty($_POST['ban_char']) && !empty($_POST['ban_type']) && !empty($_POST['ban_action']) && !empty($_POST['ban_reason']) && !empty($_POST['ban_time']) && !empty($_POST['ban_comment'])) { if (user_character_exist($_POST['ban_char'])) { // Decrypt and store values $charname = $_POST['ban_char']; $typeid = (int)$_POST['ban_type'] - $enc; $actionid = (int)$_POST['ban_action'] - $enc; $reasonid = (int)$_POST['ban_type'] - $enc; $time = (int)$_POST['ban_time'] - $enc; $comment = $_POST['ban_comment']; //var_dump($charname, $typeid, $actionid, $reasonid, $time, $comment); if (set_rule_violation($charname, $typeid, $actionid, $reasonid, $time, $comment)) { $errors[] = 'Violation entry has been set for '. $charname .'.'; } else { $errors[] = 'Website character name: '. $config['website_char'] .' does not exist. Create this character name or configure another name in config.php'; $errors[] = 'Website failed to recognize a character it can represent while inserting a rule violation.'; } } else { $errors[] = 'Character '. getValue($_POST['ban_char']) .' does not exist.'; } } // delete character: if (empty($_POST['del_name']) === false) { if (user_character_exist($_POST['del_name'])) { user_delete_character(user_character_id($_POST['del_name'])); $errors[] = 'Character '. getValue($_POST['del_name']) .' permanently deleted.'; } else { $errors[] = 'Character '. getValue($_POST['del_name']) .' does not exist.'; } } // Reset password for char name if (empty($_POST['reset_pass']) === false && empty($_POST['new_pass']) === false) { // reset_pass = character name if (user_character_exist($_POST['reset_pass'])) { $acc_id = user_character_account_id($_POST['reset_pass']); if ($acc_id != $session_user_id) { if ($config['TFSVersion'] == 'TFS_02' || $config['TFSVersion'] == 'TFS_10') { user_change_password($acc_id, $_POST['new_pass']); } else if ($config['TFSVersion'] == 'TFS_03') { user_change_password03($acc_id, $_POST['new_pass']); } $errors[] = 'The password to the account of character name: '. getValue($_POST['reset_pass']) .' has been set to: '. getValue($_POST['new_pass']) .'.'; } else { header('Location: changepassword.php'); exit(); } } } // Give points to character if (empty($_POST['points_char']) === false && empty($_POST['points_value']) === false) { $char = sanitize($_POST['points_char']); $points = (int)$_POST['points_value']; data_dump($_POST, false, "post data"); $account = mysql_select_single("SELECT `account_id` FROM `players` WHERE `name`='$char' LIMIT 1;"); data_dump($account, false, "fetching account id from players table"); $znote_account = mysql_select_single("SELECT `id`, `points` FROM `znote_accounts` WHERE `account_id`='". $account['account_id'] ."';"); data_dump($znote_account, false, "Fetching existing points from znote_accounts"); data_dump( array( 'Old:' => $znote_account['points'], 'New:' => $points, 'Total:' => ($znote_account['points'] + $points) ), false, "Points calculation:"); $points += $znote_account['points']; mysql_update("UPDATE `znote_accounts` SET `points`='$points' WHERE `account_id`='". $account['account_id'] ."';"); } // 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' || $config['TFSVersion'] == 'TFS_10') { 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 '. getValue($_POST['position_name']) .' recieved the ingame position: '. $pos .'.'; } } else { $errors[] = 'Character '. getValue($_POST['position_name']) .' does not exist.'; } } // Teleport Player // If empty post } // Display whatever output we figure out to add if (empty($errors) === false){ echo '<font color="red"><b>'; echo output_errors($errors); echo '</b></font>'; } // end ?> <h1>Admin Page.</h1> <p> <?php $basic = user_znote_data('version', 'installed', 'cached'); if ($basic['version'] !== $version) { mysql_update("UPDATE `znote` SET `version`='$version';"); $basic = user_znote_data('version', 'installed', 'cached'); } echo "Running Znote AAC Version: ". $basic['version'] .".<br>"; echo "Last cached on: ". getClock($basic['cached'], true) .".<br>"; ?> </p> <ul> <li> <b>Permanently delete/erase character from database:</b> <form type="submit" action="" method="post"> <input type="text" name="del_name" placeholder="Character name..."> </form> </li> <li> <b>Ban character and/or account:</b> <form action="" method="post"> <table style="background-color:lightblue;"> <!-- row 1 --> <tr> <td> <input type="text" name="ban_char" placeholder="Character name..."> </td> </tr> <!-- row 2 --> <tr> <td> <select name="ban_type"> <?php foreach ($config['ban_type'] as $key=>$value) { echo "<option value=\"". ($enc + $key) ."\">". $value ."</option>"; } ?> </select> <select name="ban_action"> <?php foreach ($config['ban_action'] as $key=>$value) { echo "<option value=\"". ($enc + $key) ."\">". $value ."</option>"; } ?> </select> <select name="ban_time"> <?php foreach ($config['ban_time'] as $key=>$value) { echo "<option value=\"". ($enc + $key) ."\">". $value ."</option>"; } ?> </select> </td> </tr> <!-- row 3 --> <tr> <td> Ban reason: <select name="ban_reason"> <?php foreach ($config['ban_reason'] as $key=>$value) { echo "<option value=\"". ($enc + $key) ."\">". $value ."</option>"; } ?> </select> </td> </tr> <!-- row 4 --> <tr> <td> Violation comment: (max 60 cols). <input type="text" name="ban_comment" maxlength="60" placeholder="Ban for botting rotworms."> <input type="submit" value="Set Violation"> </td> </tr> </table> </form> </li> <li> <b>Reset password to the account of character name:</b> <form action="" method="post"> <input type="text" name="reset_pass" placeholder="Character name"> <input type="text" name="new_pass" placeholder="New password"> <input type="submit" value="Change Password"> </form> </li> <li> <b>Set character name to position:</b> <?php if ($config['TFSVersion'] == 'TFS_03' && count($config['ingame_positions']) == 5) { ?> <font color="red">ERROR: You forgot to add (Senior Tutor) rank in config.php!</font> <?php } ?> <form action="" method="post"> <input type="text" name="position_name" placeholder="Character name"> <select name="position_type"> <?php foreach ($config['ingame_positions'] as $key=>$value) { echo "<option value=\"". $key ."\">". $value ."</option>"; } ?> </select> <input type="submit" value="Set Position"> </form> </li> <li> <b>Give shop points to character:</b> <form action="" method="post"> <input type="text" name="points_char" placeholder="Character name"> <input type="text" name="points_value" placeholder="Points"> <input type="submit" value="Give Points"> </form> </li> <li> <b>Teleport Player</b> <form action="" method="post"> <table> <tr> <td>Type:</td> <td> <select name="from"> <option value="all">All</option> <option value="only">Only</option> </select> </td> </tr> <tr> <td>Player</td> <td><input type="text" name="player_name" placeholder="Player Name"></td> </tr> <tr> <td>To</td> <td> <select name="to"> <option value="home">Hometown</option> <option value="town">Specific Town</option> <option value="xyz">Specific Position</option> </select> </td> </tr> <tr> <td>Town</td> <td> <select name="town"> <?php foreach($config['towns'] as $townId => $townName) { echo '<option value="' . $townId . '">' . $townName . '</option>'; } ?> </select> </td> </tr> <tr> <td>Position</td> <td> <input type="text" name="x" placeholder="Position X"> <input type="text" name="y" placeholder="Position Y"> <input type="text" name="z" placeholder="Position Z"> </td> </tr> <tr> <td></td> <td><input type="submit" value="teleport"></td></td> </tr> </tr> </table> </form> </li> </ul> <?php include 'layout/overall/footer.php'; ?>
  11. Não sei muito bem mas é asim ? FIZ ISSO MAS MESMO ASIM NADA ACONTECE
  12. Galera boa noite se algum souber da um a luz ai Quando logo na minha conta master pra editar o site e taus não esta dando pra acessar a pagina ( Admin Page ) Ai quando clico nela fica a sim
  13. Galera tenho uma vps linux ai fiz um tutu de um otro site ai para por o site pra rodar do linux ubunto vai tudo ok mas quando abro o site olha oq da
  14. Tenho um site pronto e tenho uma vps linux ubunto como coloco o site pra ficar on na vps? tenho um dominio tambem .com.br
  15. Galera nao sei se é aqui que pede se nao for pfv mude para o lugar correto tenho uma vps linux e estou com problemas pra por o game online ja coloquei o game la compilei pra linux ja mas na hora de iniciar da isso [16:53:35.243] The Forgotten Server 0.4 [16:53:35.243] Compiled with GNU C++ version 4.6.3. [16:53:35.243] A server developed by Fir3element and Sekk. [16:53:35.243] >> Loading config (config.lua) [16:53:35.244] >> Opening logs [16:53:35.254] > Using SHA1 encryption [16:53:35.254] >> Loading RSA key [16:53:35.255] >> Starting SQL connection [16:53:35.257] Failed connecting to database - MYSQL ERROR: Access denied for user 'root'@'localhost' (using password: NO) (1045) [16:53:35.257] > ERROR: Couldn't estabilish connection to SQL database! ja vi por esse tutorial aqui http://www.tibiaking.com/forum/forums/topic/34368-linux-apache-mysql-phpmyadmin-compilar-otserv-debian-e-ubuntu/ mas na hora de instalar o INSTALAR APACHE, MYSQL E PHPMYADMIN Da um erro asim Err http://ubuntu.mirror.cambrium.nl lucid/main i386 Packages 404 Not Found [IP: 2a02:58:3:2:80::1 80] Ign http://ubuntu.mirror.cambrium.nl lucid/main Translation-en W: Failed to fetch http://ubuntu.mirror.cambrium.nl/ubuntu/dists/lucid/main/binary-i386/Packages 404 Not Found [IP: 2a02:58:3:2:80::1 80] E: Some index files failed to download. They have been ignored, or old ones used instead. E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? root@subsequent-prose:~/otserv#
  16. nao man falo um npc q vc possa colocar os itens pra vender, ou tipo no mu global q vc abria uma loginha. versão 8.60
  17. Existe algum sistema de venda de itens asim, tipo eu vo la faço uma hunt ai pego alguns items e coloco pra vender na loginha para que player possao comprar ?.
  18. Galera vi em um OT Pokemon que quando o personagem da diagonal nao tem aquele delay chato como ranco isso pra quando der diagonal o personagem andar normal e cantinuar o flool de andar lizo.
  19. darcioantonio postou uma resposta no tópico em Suporte Tibia OTServer
    Olha mano usei asim e nao deu nao sei como coloca o codigo da um help ai... local Iposs1 = {x = 1125, y = 865, z = 6, stackpos=1} local Iposs2 = {x = 1125, y = 866, z = 6, stackpos=1} local Iposs3 = {x = 1125, y = 867, z = 6, stackpos=1} local Iposs4 = {x = 1125, y = 868, z = 6, stackpos=1} local Iposs5 = {x = 1125, y = 869, z = 6, stackpos=1} local Iposs6 = {x = 1126, y = 869, z = 6, stackpos=1} local Iposs7 = {x = 1127, y = 869, z = 6, stackpos=1} local Iposs8 = {x = 1127, y = 868, z = 6, stackpos=1} local Iposs9 = {x = 1127, y = 867, z = 6, stackpos=1} local Iposs10 = {x = 1127, y = 866, z = 6, stackpos=1} local Iposs11 = {x = 1127, y = 865, z = 6, stackpos=1} local localboss = {x = 1165, y = 808, z = 8} local boss = "Devorador de Cristais" local tempo = 1 local minutes = 1 function doRemoveBossEvent() local boss = "Devorador de Cristais" local m = getTopCreature(boss).uid if m ~= 0 and isMonster(m) then doRemoveCreature(m) end end local config = { items = { --{position = posição_do_item, itemid = id_do_item}, {position = {x = 1125, y = 864, z = 6}, itemid = 2146}, {position = {x = 1127, y = 864, z = 6}, itemid = 2147}, }, players = { --{position = posição_do_jogador, toPos = posição_final, vocation = ID_das_vocações}, {position = {x = 1126, y = 865, z = 6}, toPos = {x = 1165, y = 812, z = 8}, vocation = {1,2,3,4,5,6}}, --{position = {x = 1126, y = 866, z = 6}, toPos = {x = 1165, y = 812, z = 8}, vocation = {1,2,3,4,5,6}}, -- {position = {x = 1126, y = 867, z = 6}, toPos = {x = 1165, y = 812, z = 8}, vocation = {1,2,3,4,5,6}}, --{position = {x = 1126, y = 868, z = 6}, toPos = {x = 1165, y = 812, z = 8}, vocation = {1,2,3,4,5,6}}, } } function onUse(cid) local items, quest_players = {}, {} for _, item in pairs(config.items) do local position_item = getTileItemById(item.position, item.itemid).uid if position_item > 0 then table.insert(items, position_item) else return doPlayerSendCancel(cid, "Esta faltando 1 Fragmento A no pilar da esquerda ou 1 Fragmento B no pilar da direita.") end end for _, player in pairs(config.players) do local pid = getTopCreature(player.position).uid if isPlayer(pid) and isInArray(player.vocation, getPlayerVocation(pid)) then table.insert(quest_players, pid) else return doPlayerSendCancel(cid, "Ha algum jogador faltando.") end end for i = 1, #items do doRemoveItem(items[i]) end for i = 1, #quest_players do doPlayerSendTextMessage(quest_players[i], MESSAGE_INFO_DESCR, "Boa sorte!") doTeleportThing(quest_players[i], config.players[i].toPos) doCreateItem(386,1,Iposs1) doCreateItem(386,1,Iposs2) doCreateItem(386,1,Iposs3) doCreateItem(386,1,Iposs4) doCreateItem(386,1,Iposs5) doCreateItem(386,1,Iposs6) doCreateItem(386,1,Iposs7) doCreateItem(386,1,Iposs8) doCreateItem(386,1,Iposs9) doCreateItem(386,1,Iposs10) doCreateItem(386,1,Iposs11) addEvent(function() local item1 = getTileItemById({x=1125, y=865, z=6}, 386) local item2 = getTileItemById({x=1125, y=866, z=6}, 386) local item3 = getTileItemById({x=1125, y=867, z=6}, 386) local item4 = getTileItemById({x=1125, y=868, z=6}, 386) local item5 = getTileItemById({x=1125, y=869, z=6}, 386) local item6 = getTileItemById({x=1126, y=869, z=6}, 386) local item7 = getTileItemById({x=1127, y=869, z=6}, 386) local item8 = getTileItemById({x=1127, y=868, z=6}, 386) local item9 = getTileItemById({x=1127, y=867, z=6}, 386) local item10 = getTileItemById({x=1127, y=866, z=6}, 386) local item11 = getTileItemById({x=1127, y=865, z=6}, 386) doRemoveItem(item1.uid, 1) doRemoveItem(item2.uid, 1) doRemoveItem(item3.uid, 1) doRemoveItem(item4.uid, 1) doRemoveItem(item5.uid, 1) doRemoveItem(item6.uid, 1) doRemoveItem(item7.uid, 1) doRemoveItem(item8.uid, 1) doRemoveItem(item9.uid, 1) doRemoveItem(item10.uid, 1) doRemoveItem(item11.uid, 1) end, tempo*60*1000) end doCreateMonster(boss, localboss) addEvent(doRemoveBossEvent, minutes*60*1000) return true end
  20. darcioantonio postou uma resposta no tópico em Suporte Tibia OTServer
    Irei Testar
  21. darcioantonio postou uma resposta no tópico em Suporte Tibia OTServer
    acho q duplico
  22. darcioantonio postou uma resposta no tópico em Suporte Tibia OTServer
    Alguma action para remover o boss do jogo caso os player não consigam matar ele. tinha usado isso mas nao deu certo local boss = "Devorador de Cristais" doRemoveMonster(boss, 1) queria algo sem por location pq so vai ter 1 no game so.
  23. se ta brincando q é so isso lol vo testar aq vlw Deu esse erro aq e nao removeu os itens Arrumei ja era so fazer isso aq function onUse(cid, item, fromPos, item2, toPos) local premios = {2152, 2145, 2152, 12813, 12757, 12654, 13058, 13059, 13060, 12813, 12757, 12654, 2145, 2152, 2152} local randomChance = math.random(1, #premios) local tppos = {x=1121, y=866, z=6} local tempo = 1 -- tempo em min doPlayerAddExperience(cid,1000) doPlayerAddItem(cid, premios[randomChance]) doPlayerAddItem(cid,2152,50) doSendMagicEffect(getCreaturePosition(cid), 17) doTeleportThing(cid,tppos) addEvent(function() local item1 = getTileItemById({x=1125, y=865, z=6}, 386) local item2 = getTileItemById({x=1125, y=866, z=6}, 386) local item3 = getTileItemById({x=1125, y=867, z=6}, 386) local item4 = getTileItemById({x=1125, y=868, z=6}, 386) local item5 = getTileItemById({x=1125, y=869, z=6}, 386) local item6 = getTileItemById({x=1126, y=869, z=6}, 386) local item7 = getTileItemById({x=1127, y=869, z=6}, 386) local item8 = getTileItemById({x=1127, y=868, z=6}, 386) local item9 = getTileItemById({x=1127, y=867, z=6}, 386) local item10 = getTileItemById({x=1127, y=866, z=6}, 386) local item11 = getTileItemById({x=1127, y=865, z=6}, 386) doRemoveItem(item1.uid, 1) doRemoveItem(item2.uid, 1) doRemoveItem(item3.uid, 1) doRemoveItem(item4.uid, 1) doRemoveItem(item5.uid, 1) doRemoveItem(item6.uid, 1) doRemoveItem(item7.uid, 1) doRemoveItem(item8.uid, 1) doRemoveItem(item9.uid, 1) doRemoveItem(item10.uid, 1) doRemoveItem(item11.uid, 1) end, tempo*60*1000) return true end

Informação Importante

Confirmação de Termo