Ir para conteúdo

mullino

Membro
  • Registro em

  • Última visita

Tudo que mullino postou

  1. obrigado pela dica... onde consigo a otx oficial?? vc teria para passar? opa uso linux debian 8 64 bits mas nao entendo muito bem estou aprendendo agora vou chamar vc no whats
  2. entrei eles diseram que minha maquina nao é monitorada q eu q tenho q ver se é erro na maquina!!! e oq é DDos? hoje derubarao meu server logando umas 50 accountmananger de uma vez ate cair tentei ir kikando eles mas nao consegui!!
  3. ola Galera do TK Contratei um vps da 4youstart fire bost 2 e add mais 1 gb de ram ficando asim 2 vCPU 3 gb ram 20 gb hd 200 megas de trafego meu mapa tem 51 MB o problema e que depois de ums 5 minutos de server online ele da erro e fexa sozinho killed eu olhei e o uso da memoria foi la emcima de uma vez e fez o server cair mas nao e o mapa pq nao tem 20 players online estou achando que é agun problema na maguina mas nao sei dizer ao serto pois sou novo em linux e nao sei olha oq esta consumindo muita memoria ja troquei a distrito do meu server 3 x uso The OTX Server Version: (2.1.70 - 1591) - Codename: (Mycological) Compilied with GNU C++ version 4.9.2 for arch 64 Bits alguem pode ajudar
  4. obrigado amigo ajudou de mais
  5. boa tarde galerinha do tk vcs podem me ajudar com esse erro minha distrito ja e 64 bits ja abri todos os monstros xml npcs xml mods xml todos pelo notpad e nao tinha erro todos coloquei UTF -8 mas depois de 5 minutos online o server apresenta o erro novamente error : string is not in UTF-8 error : string is not in UTF-8 error : string is not in UTF-8 error : string is not in UTF-8 error : string is not in UTF-8 error : string is not in UTF-8 error : string is not in UTF-8 error : string is not in UTF-8 > Broadcasted message: "[Warning] O Mapa Revoluction-Server vai ser limpo, guarde seus itens.". > CLEAN: Removed 1808 items from 1629 tiles (1629 were marked) in 0.016 seconds. > Broadcasted message: "O mapa Revoluction-Server foi limpo.". error : string is not in UTF-8 error : string is not in UTF-8 error : string is not in UTF-8 error : string is not in UTF-8
  6. minha distrito ja e 64 bits ja abri todos os monstros xml npcs xml mods xml todos pelo notpad e nao tinha erro todos coloquei UTF -8 mas depois de 5 minutos online o server apresenta o erro novamente
  7. apareceu issu na distrito buss erro e depois killed esse killed ja tinha aparecido antes ae comprei mais memoria no vps ae tinha resolvido agora deu denovo e tem esse erro tbm q nao para de aparecer error-string-is-not-in-utf-8 error : string is not in UTF-8
  8. ola galerinha do tk como diz o topico apareceu esse erro na minha distrito derrubando meu server alguem sabe oq pode ser ?? BUS ERRO e fexou so apareceu issu e o server caiu...
  9. ja olhei todos estao normal e o erro perciste ja nao sei mais oq fazer
  10. <?php if(!defined('INITIALIZED')) exit; $name = ''; if(isset($_REQUEST['name'])) $name = (string) $_REQUEST['name']; if(!empty($name)) { $player = new Player(); $player->find($name); if($player->isLoaded()) { $number_of_rows = 0; $account = $player->getAccount(); $main_content .= '<table border="0" cellspacing="1" cellpadding="4" width="100%"><tr bgcolor="'.$config['site']['vdarkborder'].'"><td colspan="2" style="font-weight:bold;color:white">Character Information</td></tr>'; $bgcolor = (($number_of_rows++ % 2 == 1) ? $config['site']['darkborder'] : $config['site']['lightborder']); $main_content .= '<tr bgcolor="' . $bgcolor . '"><td width="20%">Name:</td><td style="font-weight:bold;color:' . (($player->isOnline()) ? 'green' : 'red') . '">' . htmlspecialchars($player->getName()) . ''; if($player->isBanned() || $account->isBanned()) $main_content .= '<span style="color:red">[BANNED]</span>'; if($player->isNamelocked()) $main_content .= '<span style="color:red">[NAMELOCKED]</span>'; $main_content .= '<br /><img src="' . $config['site']['outfit_images_url'] . '?id=' . $player->getLookType() . '&addons=' . $player->getLookAddons() . '&head=' . $player->getLookHead() . '&body=' . $player->getLookBody() . '&legs=' . $player->getLookLegs() . '&feet=' . $player->getLookFeet() . '" alt="" /></td></tr>'; $playerNamelocks = new DatabaseList('PlayerNamelocks'); $filter = new SQL_Filter(new SQL_Field('player_id'), SQL_Filter::EQUAL, $player->getID()); $playerNamelocks->setFilter($filter); if(count($playerNamelocks) > 0) { $old_names_text = array(); foreach($playerNamelocks as $oldName) { $old_names_text[] = 'until ' . date("j F Y, g:i a", $oldName->getDate()) . ' known as <b>' . htmlspecialchars($oldName->getName()) . '</b>'; } $bgcolor = (($number_of_rows++ % 2 == 1) ? $config['site']['darkborder'] : $config['site']['lightborder']); $main_content .= '<tr bgcolor="' . $bgcolor . '"><td>Old Names:</td><td>' . implode('<br />', $old_names_text) . '</td></tr>'; } if(in_array($player->getGroup(), $config['site']['groups_support'])) { $bgcolor = (($number_of_rows++ % 2 == 1) ? $config['site']['darkborder'] : $config['site']['lightborder']); $main_content .= '<tr bgcolor="' . $bgcolor . '"><td>Group:</td><td>' . htmlspecialchars(Website::getGroupName($player->getGroup())) . '</td></tr>'; } $bgcolor = (($number_of_rows++ % 2 == 1) ? $config['site']['darkborder'] : $config['site']['lightborder']); $main_content .= '<tr bgcolor="' . $bgcolor . '"><td>Sex:</td><td>' . htmlspecialchars((($player->getSex() == 0) ? 'female' : 'male')) . '</td></tr>'; $expNext = Functions::getExpForLevel($player->getLevel() + 1); $expLeft = bcsub($expNext, $player->getExperience(), 0); $bgcolor = (($number_of_rows++ % 2 == 1) ? $config['site']['darkborder'] : $config['site']['lightborder']); $main_content .= '<tr bgcolor="' . $bgcolor . '"><td>Profession:</td><td>' . htmlspecialchars(Website::getVocationName($player->getVocation(), $player->getPromotion())) . '</td></tr>'; $v = $SQL->query('SELECT (SELECT COUNT(`death_id`) FROM `killers` k LEFT JOIN `player_killers` pk ON `k`.`id` = `pk`.`kill_id` LEFT JOIN `players` p ON `pk`.`player_id` = `p`.`id` WHERE `k`.`unjustified` >= 0 AND `player_id` = ' . $player->getId() . '), COUNT(`player_id`) FROM `player_deaths` WHERE `player_id` = '.$player->getId())->fetch(); $bgcolor = (($number_of_rows++ % 2 == 1) ? $config['site']['darkborder'] : $config['site']['lightborder']); $main_content .= '<tr bgcolor='.$bgcolor.'><td>Kills and Deaths:</td><td>' . htmlspecialchars($v[0]) . ' kills and ' . htmlspecialchars($v[1]) . ' deaths</td></tr>'; $bgcolor = (($number_of_rows++ % 2 == 1) ? $config['site']['darkborder'] : $config['site']['lightborder']); $main_content .= '<tr bgcolor="' . $bgcolor . '"><td>Level:</td><td>' . htmlspecialchars($player->getLevel()) . ' (You need <b>' . $expLeft . ' EXP</b> to Level <b>' . ($player->getLevel() + 1) . '</b>)</td></tr>'; $bgcolor = (($number_of_rows++ % 2 == 1) ? $config['site']['darkborder'] : $config['site']['lightborder']); $bgcolor = (($number_of_rows++ % 2 == 1) ? $config['site']['darkborder'] : $config['site']['lightborder']); $rank_of_player = $player->getRank(); if(!empty($rank_of_player)) { $bgcolor = (($number_of_rows++ % 2 == 1) ? $config['site']['darkborder'] : $config['site']['lightborder']); $main_content .= '<tr bgcolor="' . $bgcolor . '"><td>Guild:</td><td>' . htmlspecialchars($rank_of_player->getName()) . ' of the <a href="?subtopic=guilds&action=show&guild='. $rank_of_player->getGuild()->getID() .'">' . htmlspecialchars($rank_of_player->getGuild()->getName()) . '</a></td></tr>'; } $bgcolor = (($number_of_rows++ % 2 == 1) ? $config['site']['darkborder'] : $config['site']['lightborder']); $main_content .= '<tr bgcolor="' . $bgcolor . '"><td>Last login:</td><td>' . (($player->getLastLogin() > 0) ? date("j F Y, g:i a", $player->getLastLogin()) : 'Never logged in.') . '</td></tr>'; if($player->getCreateDate() > 0) { $bgcolor = (($number_of_rows++ % 2 == 1) ? $config['site']['darkborder'] : $config['site']['lightborder']); $main_content .= '<tr bgcolor="' . $bgcolor . '"><td>Created:</td><td>' . date("j F Y, g:i a", $player->getCreateDate()) . '</td></tr>'; } $comment = $player->getComment(); $newlines = array("\r\n", "\n", "\r"); $comment_with_lines = str_replace($newlines, '<br />', $comment, $count); if($count < 50) $comment = $comment_with_lines; if(!empty($comment)) { $bgcolor = (($number_of_rows++ % 2 == 1) ? $config['site']['darkborder'] : $config['site']['lightborder']); $main_content .= '<tr bgcolor="' . $bgcolor . '"><td>Comment:</td><td>' . $comment . '</td></tr>'; } $hpPercent = max(0, min(100, $player->getHealth() / max(1, $player->getHealthMax()) * 100)); $manaPercent = max(0, min(100, $player->getMana() / max(1, $player->getManaMax()) * 100)); $main_content .= '</TABLE><br><center><table width=25% ><td BGCOLOR="'.$config['site']['lightborder'].'" ><b>Health:</b></td> <td BGCOLOR="'.$config['site']['lightborder'].'">'.$player->getHealth().'/'.$player->getHealthMax().'<div style="width: 100%; height: 3px; border: 1px solid #000;"><div style="background: red; width: ' . $hpPercent . '%; height: 3px;"></td> <tr><td BGCOLOR="'.$config['site']['darkborder'].'"><b>Mana:</b></td><td BGCOLOR="'.$config['site']['darkborder'].'">' . $player->getMana() . '/' . $player->getManaMax() . '<div style="width: 100%; height: 3px; border: 1px solid #000;"><div style="background: blue; width: '.$manaPercent.'%; height: 3px;"></table></td>'; $itemsList = $player->getItems(); $main_content .= '<br><table with=100% style="border: solid 1px #888888;" CELLSPACING="1"><TR>'; foreach ($list as $number_of_items_showed => $slot) { if($slot == '8') // add Soul before show 'feet' { $main_content .= '<td style="background-color: '.$config['site']['darkborder'].'; text-align: center;">Soul:<br/>'. $player->getSoul() .'</td>'; } if($itemsList->getSlot($slot) === false) // item does not exist in database { $main_content .= '<TD style="background-color: '.$config['site']['darkborder'].';"><img src="' . $config['site']['item_images_url'] . $slot . $config['site']['item_images_extension'] . '" width="45"/></TD>'; } else { $main_content .= '<TD style="background-color: '.$config['site']['darkborder'].';"><img src="' . $config['site']['item_images_url'] . $itemsList->getSlot($slot)->getID() . $config['site']['item_images_extension'] . '" width="45"/></TD>'; } if($number_of_items_showed % 3 == 2) { $main_content .= '</tr><tr>'; } if($slot == '8') // add Capacity after show 'feet' { $main_content .= '<td style="background-color: '.$config['site']['darkborder'].'; text-align: center;">Cap:<br/>'. $player->getCap() .'</td></center>'; } } if($config['site']['show_skills_info']) { $main_content .= '</table><br><table cellspacing="0" cellpadding="0" border="1" width="200"> <tbody> <tr> <td style="text-align: center;"><a href="?subtopic=highscores&list=experience&world=' . $player->getWorldID() . '"><img src="images/skills/level.gif" alt="" style="border-style: none"/></td> <td style="text-align: center;"><a href="?subtopic=highscores&list=magic&world=' . $player->getWorldID() . '"><img src="images/skills/ml.gif" alt="" style="border-style: none"/></td> <td style="text-align: center;"><a href="?subtopic=highscores&list=fist&world=' . $player->getWorldID() . '"><img src="images/skills/fist.gif" alt="" style="border-style: none"/></td> <td style="text-align: center;"><a href="?subtopic=highscores&list=club&world=' . $player->getWorldID() . '"><img src="images/skills/club.gif" alt="" style="border-style: none"/></td> <td style="text-align: center;"><a href="?subtopic=highscores&list=sword&world=' . $player->getWorldID() . '"><img src="images/skills/sword.gif" alt="" style="border-style: none"/></td> <td style="text-align: center;"><a href="?subtopic=highscores&list=axe&world=' . $player->getWorldID() . '"><img src="images/skills/axe.gif" alt="" style="border-style: none"/></td> <td style="text-align: center;"><a href="?subtopic=highscores&list=distance&world=' . $player->getWorldID() . '"><img src="images/skills/dist.gif" alt="" style="border-style: none"/></td> <td style="text-align: center;"><a href="?subtopic=highscores&list=shield&world=' . $player->getWorldID() . '"><img src="images/skills/def.gif" alt="" style="border-style: none"/></td> <td style="text-align: center;"><a href="?subtopic=highscores&list=fishing&world=' . $player->getWorldID() . '"><img src="images/skills/fish.gif" alt="" style="border-style: none"/></td> </tr> <tr> <tr bgcolor="' . $config['site']['darkborder'] . '"><td style="text-align: center;"><strong>Level</strong></td> <td style="text-align: center;"><strong>ML</strong></td> <td style="text-align: center;"><strong>Fist</strong></td> <td style="text-align: center;"><strong>Mace</strong></td> <td style="text-align: center;"><strong>Sword</strong></td> <td style="text-align: center;"><strong>Axe</strong></td> <td style="text-align: center;"><strong>Dist</strong></td> <td style="text-align: center;"><strong>Def</strong></td> <td style="text-align: center;"><strong>Fish</strong></td> </tr> <tr> <tr bgcolor="' . $config['site']['lightborder'] . '"><td style="text-align: center;">' . $player->getLevel() . '</td> <td style="text-align: center;">' . $player->getMagLevel().'</td> <td style="text-align: center;">' . $player->getSkill(0) . '</td> <td style="text-align: center;">' . $player->getSkill(1) . '</td> <td style="text-align: center;">' . $player->getSkill(2) . '</td> <td style="text-align: center;">' . $player->getSkill(3) . '</td> <td style="text-align: center;">' . $player->getSkill(4) . '</td> <td style="text-align: center;">' . $player->getSkill(5) . '</td> <td style="text-align: center;">' . $player->getSkill(6) . '</td> </tr> </tbody> </table> <div style="text-align: center;">&nbsp;<br />&nbsp;</div></center>'; } $deads = 0; //deaths list $player_deaths = $SQL->query('SELECT ' . $SQL->fieldName('id') . ', ' . $SQL->fieldName('date') . ', ' . $SQL->fieldName('level') . ' FROM ' . $SQL->tableName('player_deaths') . ' WHERE ' . $SQL->fieldName('player_id') . ' = '.$player->getId().' ORDER BY ' . $SQL->fieldName('date') . ' DESC LIMIT 10'); foreach($player_deaths as $death) { $bgcolor = (($number_of_rows++ % 2 == 1) ? $config['site']['darkborder'] : $config['site']['lightborder']); $deads++; $dead_add_content .= "<tr bgcolor=\"".$bgcolor."\"><td width=\"20%\" align=\"center\">".date("j M Y, H:i", $death['date'])."</td><td>"; $killers = $SQL->query('SELECT ' . $SQL->tableName('environment_killers') . '.' . $SQL->fieldName('name') . ' AS monster_name, ' . $SQL->tableName('players') . '.' . $SQL->fieldName('name') . ' AS player_name, ' . $SQL->tableName('players') . '.' . $SQL->fieldName('deleted') . ' AS player_exists FROM ' . $SQL->tableName('killers') . ' LEFT JOIN ' . $SQL->tableName('environment_killers') . ' ON ' . $SQL->tableName('killers') . '.' . $SQL->fieldName('id') . ' = ' . $SQL->tableName('environment_killers') . '.' . $SQL->fieldName('kill_id') . ' LEFT JOIN ' . $SQL->tableName('player_killers') . ' ON ' . $SQL->tableName('killers') . '.' . $SQL->fieldName('id') . ' = ' . $SQL->tableName('player_killers') . '.' . $SQL->fieldName('kill_id') . ' LEFT JOIN ' . $SQL->tableName('players') . ' ON ' . $SQL->tableName('players') . '.' . $SQL->fieldName('id') . ' = ' . $SQL->tableName('player_killers') . '.' . $SQL->fieldName('player_id') . ' WHERE ' . $SQL->tableName('killers') . '.' . $SQL->fieldName('death_id') . ' = ' . $SQL->quote($death['id']) . ' ORDER BY ' . $SQL->tableName('killers') . '.' . $SQL->fieldName('final_hit') . ' DESC, ' . $SQL->tableName('killers') . '.' . $SQL->fieldName('id') . ' ASC')->fetchAll(); $i = 0; $count = count($killers); foreach($killers as $killer) { $i++; if($i == 1) { if($count <= 4) $dead_add_content .= "killed at level <b>".$death['level']."</b> by "; elseif($count > 4 and $count < 10) $dead_add_content .= "slain at level <b>".$death['level']."</b> by "; elseif($count > 9 and $count < 15) $dead_add_content .= "crushed at level <b>".$death['level']."</b> by "; elseif($count > 14 and $count < 20) $dead_add_content .= "eliminated at level <b>".$death['level']."</b> by "; elseif($count > 19) $dead_add_content .= "annihilated at level <b>".$death['level']."</b> by "; } elseif($i == $count) $dead_add_content .= " and "; else $dead_add_content .= ", "; if($killer['player_name'] != "") { if($killer['monster_name'] != "") $dead_add_content .= htmlspecialchars($killer['monster_name'])." summoned by "; if($killer['player_exists'] == 0) $dead_add_content .= "<a href=\"?subtopic=characters&name=".urlencode($killer['player_name'])."\">"; $dead_add_content .= htmlspecialchars($killer['player_name']); if($killer['player_exists'] == 0) $dead_add_content .= "</a>"; } else $dead_add_content .= htmlspecialchars($killer['monster_name']); } $dead_add_content .= "</td></tr>"; } $main_content .= '<br /> <table border="0" cellspacing="1" cellpadding="4" width="100%"> <tbody><tr bgcolor="#505050"><td colspan="2" class="white"> <img id="btnDeaths" style="vertical-align:middle;cursor:pointer;" src="images/show.gif"> <b>Character Deaths</b></td> </tr></tbody> </table>'; $main_content .= '<table id="tableDeaths" border="0" cellspacing="1" cellpadding="4" width="100%" style="display:none;">' . $dead_add_content . '</table>'; //frags by Mateus Fiereck $frags_limit = 999; $player_frags = $SQL->query('SELECT `player_deaths`.*, `players`.`name`, `killers`.`unjustified` FROM `player_deaths` LEFT JOIN `killers` ON `killers`.`death_id` = `player_deaths`.`id` LEFT JOIN `player_killers` ON `player_killers`.`kill_id` = `killers`.`id` LEFT JOIN `players` ON `players`.`id` = `player_deaths`.`player_id` WHERE `player_killers`.`player_id` = '.$player->getId().' AND `killers`.`unjustified` = 0 ORDER BY `date` DESC LIMIT 0,'.$frags_limit.';'); if (count($player_frags)) { $main_content .= '<br /> <table border="0" cellspacing="1" cellpadding="4" width="100%"> <tbody><tr bgcolor="#505050"><td colspan="2" class="white"> <img id="btnJustified" style="vertical-align:middle;cursor:pointer;" src="images/show.gif"> <b>Frags Justified</b></td> </tr></tbody> </table>'; $frags = 0; $frag_add_content .= '<table id="tableJustified" border="0" cellspacing="1" cellpadding="4" width="100%" style="display:none;">'; foreach($player_frags as $frag) { $frags++; if (is_int($number_of_rows / 2)) $bgcolor = $config['site']['darkborder']; else $bgcolor = $config['site']['lightborder']; $number_of_rows++; $frag_add_content .= "<tr bgcolor=\"".$bgcolor."\"> <td width=\"20%\" align=\"center\">".date("j M Y, H:i", $frag['date'])."</td> <td>".(($player->getSex() == 0) ? 'She' : 'He')." fragged <a href=\"index.php?subtopic=characters&name=".$frag['name']."\">".$frag['name']."</a> at level ".$frag['level'].""; $frag_add_content .= ". (".(($frag['unjustified'] == 0) ? "<font size=\"1\" color=\"green\">Justified</font>" : "<font size=\"1\" color=\"red\">Unjustified</font>").")</td></tr>"; } if($frags >= 1) $main_content .= $frag_add_content . '</TABLE>'; } $player_frags2 = $SQL->query('SELECT `player_deaths`.*, `players`.`name`, `killers`.`unjustified` FROM `player_deaths` LEFT JOIN `killers` ON `killers`.`death_id` = `player_deaths`.`id` LEFT JOIN `player_killers` ON `player_killers`.`kill_id` = `killers`.`id` LEFT JOIN `players` ON `players`.`id` = `player_deaths`.`player_id` WHERE `player_killers`.`player_id` = '.$player->getId().' AND `killers`.`unjustified` = 1 ORDER BY `date` DESC LIMIT 0,'.$frags_limit.';'); if (count($player_frags2)) { $main_content .= '<br /> <table border="0" cellspacing="1" cellpadding="4" width="100%"> <tbody><tr bgcolor="#505050"><td colspan="2" class="white"> <img id="btnUnjustified" style="vertical-align:middle;cursor:pointer;" src="images/show.gif"> <b>Frags Unjustified</b></td> </tr></tbody> </table>'; $frags2 = 0; $frag_add_content2 .= '<table id="tableUnjustified" border="0" cellspacing="1" cellpadding="4" width="100%" style="display:none;">'; foreach($player_frags2 as $frag) { $frags2++; if (is_int($number_of_rows / 2)) $bgcolor = $config['site']['darkborder']; else $bgcolor = $config['site']['lightborder']; $number_of_rows++; $frag_add_content2 .= "<tr bgcolor=\"".$bgcolor."\"> <td width=\"20%\" align=\"center\">".date("j M Y, H:i", $frag['date'])."</td> <td>".(($player->getSex() == 0) ? 'She' : 'He')." fragged <a href=\"index.php?subtopic=characters&name=".$frag['name']."\">".$frag['name']."</a> at level ".$frag['level'].""; $frag_add_content2 .= ". (".(($frag['unjustified'] == 0) ? "<font size=\"1\" color=\"green\">Justified</font>" : "<font size=\"1\" color=\"red\">Unjustified</font>").")</td></tr>"; } if($frags2 >= 1) $main_content .= $frag_add_content2 . '</TABLE>'; } $main_content .= '<br /> <table border="0" cellspacing="1" cellpadding="4" width="100%"> </tr></tbody> </table>'; $main_content .= '<table id="tableTasks" border="0" cellspacing="1" cellpadding="4" width="100%" style="display:none;">'; foreach ($tasks as $task) { $task_query = $SQL->query('SELECT `player_storage`.`value` FROM `player_storage` WHERE `player_storage`.`player_id` = '.$player->getId().' AND `player_storage`.`key` = '.$task[1].' ;'); $qtd = 0; foreach ($task_query as $t) { if (is_numeric($t['value'])) { $qtd = $t['value'] - 1; } else { $qtd = $t['value']; } } if (is_int($number_of_rows / 2)) $bgcolor = $config['site']['darkborder']; else $bgcolor = $config['site']['lightborder']; $number_of_rows++; $main_content .= "<tr bgcolor=\"".$bgcolor."\"> <td width=\"20%\" align=\"center\">".$task[0]."</td> <td>".$qtd." / ".$task[2]."</td></tr>"; } $main_content .= '</table>'; $main_content .= " <script> $(function() { $('#btnDeaths').click(function() { $('#tableDeaths').toggle(); if ($(this).attr('src') == 'images/show.gif') { $(this).attr('src', 'images/hide.gif'); } else { $(this).attr('src', 'images/show.gif'); } }); $('#btnJustified').click(function() { $('#tableJustified').toggle(); if ($(this).attr('src') == 'images/show.gif') { $(this).attr('src', 'images/hide.gif'); } else { $(this).attr('src', 'images/show.gif'); } }); $('#btnUnjustified').click(function() { $('#tableUnjustified').toggle(); if ($(this).attr('src') == 'images/show.gif') { $(this).attr('src', 'images/hide.gif'); } else { $(this).attr('src', 'images/show.gif'); } }); $('#btnTasks').click(function() { $('#tableTasks').toggle(); if ($(this).attr('src') == 'images/show.gif') { $(this).attr('src', 'images/hide.gif'); } else { $(this).attr('src', 'images/show.gif'); } }); })</script>"; /* //frags list by Xampy $frags_limit = 10; // frags limit to show? // default: 10 $player_frags = $SQL->query('SELECT `player_deaths`.*, `players`.`name`, `killers`.`unjustified` FROM `player_deaths` LEFT JOIN `killers` ON `killers`.`death_id` = `player_deaths`.`id` LEFT JOIN `player_killers` ON `player_killers`.`kill_id` = `killers`.`id` LEFT JOIN `players` ON `players`.`id` = `player_deaths`.`player_id` WHERE `player_killers`.`player_id` = '.$player->getId().' ORDER BY `date` DESC LIMIT 0,'.$frags_limit.';'); if(count($player_frags)) { $frags = 0; $frag_add_content .= '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><br><TR BGCOLOR='.$config['site']['vdarkborder'].'><TD COLSPAN=2 CLASS=white><B>Frags List</B></TD></TR>'; foreach($player_frags as $frag) { $frags++; if(is_int($number_of_rows / 2)) $bgcolor = $config['site']['darkborder']; else $bgcolor = $config['site']['lightborder']; $number_of_rows++; $frag_add_content .= "<tr bgcolor=\"".$bgcolor."\"> <td width=\"20%\" align=\"center\">".date("j M Y, H:i", $frag['date'])."</td> <td>".(($player->getSex() == 0) ? 'She' : 'He')." fragged <a href=\"index.php?subtopic=characters&name=".$frag[name]."\">".$frag[name]."</a> at level ".$frag[level].""; $frag_add_content .= ". (".(($frag[unjustified] == 0) ? "<font size=\"1\" color=\"green\">Justified</font>" : "<font size=\"1\" color=\"red\">Unjustified</font>").")</td></tr>"; } if($frags >= 1) $main_content .= $frag_add_content . '</TABLE>'; } */ if(!$player->getHideChar()) { if($account->getRLName()) { $bgcolor = (($number_of_rows++ % 2 == 1) ? $config['site']['darkborder'] : $config['site']['lightborder']); $main_content .= '<TR BGCOLOR="' . $bgcolor . '"><TD WIDTH=20%>Real name:</TD><TD>' . $account->getRLName() . '</TD></TR>'; } if($account->getLocation()) { $bgcolor = (($number_of_rows++ % 2 == 1) ? $config['site']['darkborder'] : $config['site']['lightborder']); $main_content .= '<TR BGCOLOR="' . $bgcolor . '"><TD WIDTH=20%>Location:</TD><TD>' . $account->getLocation() . '</TD></TR>'; } if($account->isBanned()) { if($account->getBanTime() > 0) $main_content .= '<font color="red"> [Banished until '.date("j F Y, G:i", $account->getBanTime()).']</font>'; else $main_content .= '<font color="red"> [Banished FOREVER]</font>'; } $main_content .= '</TD></TR></TABLE>'; $main_content .= '<br><TABLE BORDER=0><TR><TD></TD></TR></TABLE><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR="'.$config['site']['vdarkborder'].'"><TD COLSPAN=5 CLASS=white><B>Characters</B></TD></TR> <TR BGCOLOR="' . $bgcolor . '"><TD><B>Name</B></TD><TD><B>World</B></TD><TD><B>Level</B></TD><TD><b>Status</b></TD><TD><B></B></TD></TR>'; $account_players = $account->getPlayersList(); $player_number = 0; foreach($account_players as $player_list) { if(!$player_list->getHideChar()) { $player_number++; $bgcolor = (($number_of_rows++ % 2 == 1) ? $config['site']['darkborder'] : $config['site']['lightborder']); if(!$player_list->isOnline()) $player_list_status = '<font color="red">Offline</font>'; else $player_list_status = '<font color="green">Online</font>'; $main_content .= '<TR BGCOLOR="' . $bgcolor . '"><TD WIDTH=30%><NOBR>'.$player_number.'. '.htmlspecialchars($player_list->getName()); $main_content .= ($player_list->isDeleted()) ? '<font color="red"> [DELETED]</font>' : ''; $main_content .= '</NOBR></TD><TD WIDTH=15%>'.$config['site']['worlds'][$player_list->getWorld()].'</TD><TD WIDTH=30%>'.$player_list->getLevel().' '.htmlspecialchars($vocation_name[$player_list->getPromotion()][$player_list->getVocation()]).'</TD><TD WIDTH="10%"><b>'.$player_list_status.'</b></TD><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION="?subtopic=characters" METHOD=post><TR><TD><INPUT TYPE="hidden" NAME="name" VALUE="'.htmlspecialchars($player_list->getName()).'"><INPUT TYPE=image NAME="View '.htmlspecialchars($player_list->getName()).'" ALT="View '.htmlspecialchars($player_list->getName()).'" SRC="'.$layout_name.'/images/buttons/sbutton_view.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD></TR></FORM></TABLE></TD></TR>'; } } $main_content .= '</TABLE></TD><TD></TD></TR></TABLE>'; } } else $search_errors[] = 'Character <b>'.htmlspecialchars($name).'</b> does not exist.'; } if(!empty($search_errors)) { $main_content .= '<div class="SmallBox" > <div class="MessageContainer" > <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);" /></div> <div class="BoxFrameEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="BoxFrameEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="ErrorMessage" > <div class="BoxFrameVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></div> <div class="BoxFrameVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></div> <div class="AttentionSign" style="background-image:url('.$layout_name.'/images/content/attentionsign.gif);" /></div><b>The Following Errors Have Occurred:</b><br/>'; foreach($search_errors as $search_error) $main_content .= '<li>'.$search_error; $main_content .= '</div> <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);" /></div> <div class="BoxFrameEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="BoxFrameEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> </div></div><br/>'; } $main_content .= '<BR><FORM ACTION="?subtopic=characters" METHOD=post><TABLE WIDTH=100% BORDER=0 CELLSPACING=1 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site']['vdarkborder'].'" CLASS=white><B>Search Character</B></TD></TR><TR><TD BGCOLOR="'.$config['site']['darkborder'].'"><TABLE BORDER=0 CELLPADDING=1><TR><TD>Name:&nbsp;</TD><TD><INPUT NAME="name" VALUE=""SIZE=29 MAXLENGTH=29></TD><TD><INPUT TYPE=image NAME="Submit" SRC="'.$layout_name.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD></TR></TABLE></TD></TR></TABLE></FORM>'; $main_content .= '</TABLE>';
  11. descupa reviver o topico mas tbm estou com esse erro na distrito uso linux debian 8 Ninjajordyy has logged out. error : string is not in UTF-8 error : string is not in UTF-8 alguem ajuda arrumar??
  12. remover a linha hduasdhuasdsahd ou mano obrigado o errro parou graçias poderia ajudar com outro erro >> Revoluction Server server Online! error : string is not in UTF-8 error : string is not in UTF-8 Minner Quatro has logged in. Minner Cinco has logged in. Three Elder has logged in. Faith has logged in. Shunkanido has logged in. Squash has logged in. My Name Is has logged in. Laboratorio has logged in. Toquioo has logged in. Full has logged in. First Druid has logged in. Toquio has logged in. Twopowpaul has logged in. Minner Tres has logged in. Minner Dois has logged in. Minner Um has logged in. error : string is not in UTF-8 error : string is not in UTF-8 Laboratorinho has logged in. Four Eld has logged in. Sex Elder has logged in. error : string is not in UTF-8Ra's Al Ghul has logged in. error : string is not in UTF-8 error : string is not in UTF-8 error : string is not in UTF-8 error : string is not in UTF-8 esse erro sabe resolver? error : string is not in UTF-8
  13. local config = { loginMessage = getConfigValue('loginMessage'), useFragHandler = getBooleanFromString(getConfigValue('useFragHandler')) } local function effectAnel(cid) if isPlayer(cid) then if getPlayerSlotItem(cid,9) and getPlayerSlotItem(cid,9).uid > 0 and getPlayerSlotItem(cid,9).itemid == 7697 then doSendMagicEffect(getThingPos(cid), 36) end addEvent(effectAnel, 3000, cid) end end function onLogin(cid) if getCreatureOutfit(cid).lookType == 306 and getPlayerStorageValue(cid, 121219) ~= 1 then doCreatureChangeOutfit(cid, getPlayerSex(cid) == 0 and {lookType = 136} or {lookType = 128}) end if(getBooleanFromString(getConfigValue('accountManager')) == false) then if (getCreatureName(cid) == "Account Manager") then return doRemoveCreature(cid, true) end end if getPlayerSlotItem(cid,9) and getPlayerSlotItem(cid,9).uid > 0 and getPlayerSlotItem(cid,9).itemid == 7697 then effectAnel(cid) end local loss = getConfigValue('deathLostPercent') if(loss ~= nil) then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10) end local accountManager = getPlayerAccountManager(cid) if(accountManager == MANAGER_NONE) then local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage if(lastLogin > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "." else str = str .. " Please choose your outfit." doPlayerSendOutfitWindow(cid) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) elseif(accountManager == MANAGER_NAMELOCK) then addEvent(valid(doCreatureSay), 500, cid, "Hello, it appears that your character has been locked for name violating rules, what new name would you like to have?", TALKTYPE_PRIVATE_NP, true, cid) elseif(accountManager == MANAGER_ACCOUNT) then addEvent(valid(doCreatureSay), 500, cid, "Hello, type {account} to manage your account. If you would like to start over, type {cancel} anywhere.", TALKTYPE_PRIVATE_NP, true, cid) else addEvent(valid(doCreatureSay), 500, cid, "Hello, type {account} to create an account or {recover} to recover an account.", TALKTYPE_PRIVATE_NP, true, cid) end if(not isPlayerGhost(cid)) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) end if getPlayerStorageValue(cid, 54304) > 0 then doPlayerSetStorageValue(cid, 54304, 0) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Bem Vindo!") doCreatureSay(getCreatureByName("[Server Information]"), "[DOUBLE POINTS]: Receba pontos em dobro para qualquer valores! Promoção por tempo LIMITADO!.", TALKTYPE_PRIVATE, false, cid) if getPlayerLevel(cid) < 717217 then registerCreatureEvent(cid, "AdvanceTeleport") end registerCreatureEvent(cid, "DesertDeath") registerCreatureEvent(cid, "DesertCombat") registerCreatureEvent(cid, "BattleDeath") registerCreatureEvent(cid, "ZombieThink") registerCreatureEvent(cid, "ZombieDeath") registerCreatureEvent(cid, "BattleCombat") registerCreatureEvent(cid, "FireStorm") registerCreatureEvent(cid, "ctf") registerCreatureEvent(cid, "zombieevent") registerCreatureEvent(cid, "Idle") registerCreatureEvent(cid, "tpquest") registerCreatureEvent(cid, "CombatDodge") registerCreatureEvent(cid, "recompensa") registerCreatureEvent(cid, "SkullAmulet") registerCreatureEvent(cid, "BountyHunter") registerCreatureEvent(cid, "PlayerDeath") registerCreatureEvent(cid, "rewardpoints") registerCreatureEvent(cid, "ArmyKill") registerCreatureEvent(cid, "autoloot") registerCreatureEvent(cid, "Auto Loot") registerCreatureEvent(cid, "RecordIp") registerCreatureEvent(cid, "KillTOPLevel") registerCreatureEvent(cid, "onPrepareDeathinifi") registerCreatureEvent(cid, "prevetloss") if (InitArenaScript ~= 0) then InitArenaScript = 1 -- make arena rooms free for i = 42300, 42309 do setGlobalStorageValue(i, 0) setGlobalStorageValue(i+100, 0) end end registerCreatureEvent(cid, "Mail") if(getPlayerOperatingSystem(cid) >= CLIENTOS_OTCLIENT_LINUX) then registerCreatureEvent(cid, "ExtendedOpcode") end registerCreatureEvent(cid, "ReportBug") if(config.useFragHandler) then registerCreatureEvent(cid, "SkullCheck") end registerCreatureEvent(cid, "GuildEvents") registerCreatureEvent(cid, "critical") registerCreatureEvent(cid, "BroadDeath") registerCreatureEvent(cid, "AdvanceSave") registerCreatureEvent(cid, "GuildMotd") registerCreatureEvent(cid, "fraglook") registerCreatureEvent(cid, "blesscheck") registerCreatureEvent(cid, "DeathBroadcast") registerCreatureEvent(cid, "addons") registerCreatureEvent(cid, "onPrepareDeath") registerCreatureEvent(cid, "Fraglook") registerCreatureEvent(cid, "antimb") registerCreatureEvent(cid, "antimagebomb") registerCreatureEvent(cid, "FimVip") registerCreatureEvent(cid, "ExpVip") registerCreatureEvent(cid, "VipReceive") registerCreatureEvent(cid, "redSkullAmulet") registerCreatureEvent(cid, "FullHpMana") registerCreatureEvent(cid, "killitem") registerCreatureEvent(cid, "huntdeath") registerCreatureEvent(cid, "loguthunt") registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, "CastleExp") registerCreatureEvent(cid, "entrosaLogout") registerCreatureEvent(cid, "AdvEffect") registerCreatureEvent(cid, "GonkaKill") registerCreatureEvent(cid, "GonkaKill2") registerCreatureEvent(cid, "StoraGe") registerCreatureEvent(cid, "hunted") registerCreatureEvent(cid, "TopEffect") registerCreatureEvent(cid, "dodge") registerCreatureEvent(cid, "town") registerCreatureEvent(cid, "recompensaLvl") if getPlayerStorageValue(cid, 48902) == -1 then setPlayerStorageValue(cid, 48902, 0) end registerCreatureEvent(cid, "critical") if getPlayerName(cid) == "Account Manager" and #getPlayersByIp(getPlayerIp(cid)) > 10 then return false end if getPlayerSlotItem(cid, 2).itemid == 7889 then doPlayerAddBlessing(cid, 1) doPlayerAddBlessing(cid, 2) doPlayerAddBlessing(cid, 3) doPlayerAddBlessing(cid, 4) doPlayerAddBlessing(cid, 5) doSendMagicEffect(getPlayerPosition(cid), 49) else doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) end if getPlayerStorageValue(cid, 48903) == -1 and getPlayerStorageValue(cid, 48902) == -1 then setPlayerStorageValue(cid, 48903, 0) setPlayerStorageValue(cid, 48902, 0) end if getPlayerStorageValue(cid, 12036) == -1 then setPlayerStorageValue(cid, 12036, 1) end return true end ta ae amigo
  14. Bom dia Galera Do TK alguem pode me ajudar com um erro no login lua??? o erro e esse [Error - CreatureScript Interface] data/creaturescripts/scripts/login.lua:onLogin Description: (luaDoCreatureSay) Creature not found Sex Elder has logged in. [Error - CreatureScript Interface] data/creaturescripts/scripts/login.lua:onLogin Description: (luaDoCreatureSay) Creature not found Second Druid has logged in. [Error - CreatureScript Interface] data/creaturescripts/scripts/login.lua:onLogin Description: (luaDoCreatureSay) Creature not found creio que esse erro e por causa do script do gonka mas quando eu tiro esse onloguin do loguin lua o script do gonka nao funciona mais... segue o script do gonka..... function onDeath(cid, corpse, killer) if isMonster(killer[1]) and isPlayer(cid) and getCreatureName(killer[1]) == 'Gonka' then doRemoveCreature(killer[1]) setGlobalStorageValue(15421, -1) end return true end local function teleportHim(cid) if isPlayer(cid) then doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) end end function onKill(cid, target) if isPlayer(cid) and isMonster(target) then if getCreatureName(target) == "Gonka" then doBroadcastMessage(""..getPlayerSex(cid) == 0 and "A jogadora " or "O jogador "..""..getCreatureName(cid).." matou o terrível Gonka e recebeu o outfit supremo! Parabens!",25) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Você conseguiu matar o Gonka e ganhou o outfit supremo! Você tem 30 segundos para pegar o loot dele.") doPlayerSetStorageValue(cid, 121219, 1) addEvent(teleportHim, 30000, cid) addEvent(setGlobalStorageValue, 30000, 15421, -1) end end return true end function onLogin(cid) registerCreatureEvent(cid, "GonkaKill") registerCreatureEvent(cid, "GonkaKill2") return true end
  15. Aguem poderia me ajuda O meu gesior acc funciona normal mas nao aparece o status online escrito de verde nem quantos players esta online so mostra players online mas nao mostra a quantidade de players online alguem pode ajudar??? agora se eu clica em cima aparece quantos player tem online mas o status online escrito de verde nao aparece agluem pode me ajudar arrumar issu?? if($config['status']['serverStatus_online'] == 1) echo ''.$number_of_players_online.'<br />Players Online'; else echo '<font color="red"><b>Server<br />OFFLINE</b></font>';
  16. mullino postou uma resposta no tópico em Códigos C++
    descupa reviver o topico mas poderia ajudar no meu nao tem essa parte if(checkText(text, tmp) && it != Vocations::getInstance()->getLastVocation() && it->first == it->second->getFromVocation() && it->first != 0) tem essa if(checkText(text, asLowerCaseString(it->second->getName())) && it->first == it->second->getFromVocation() && it->first != 0)
  17. alguen pode me ajudar fiz todo o procedimento mas meu site nem o phpmyadmin nem mysql quer funcionar helppp ja conpilei so falta o site para poder colocar meu server online ajuda ae galera root@root:~# apt-get update Hit http://ftp.debian.org jessie-updates InRelease Hit http://security.debian.org jessie/updates InRelease Ign http://ftp.debian.org jessie InRelease Hit http://ftp.debian.org jessie Release.gpg Hit http://security.debian.org jessie/updates/main Sources Hit http://ftp.debian.org jessie Release Hit http://security.debian.org jessie/updates/main amd64 Packages Hit http://security.debian.org jessie/updates/main Translation-en Hit http://ftp.debian.org jessie-updates/main Sources Get:1 http://ftp.debian.org jessie-updates/main amd64 Packages/DiffIndex [10.9 kB] Get:2 http://ftp.debian.org jessie-updates/main Translation-en/DiffIndex [3,688 B] Hit http://ftp.debian.org jessie/main Sources Hit http://ftp.debian.org jessie/main amd64 Packages Hit http://ftp.debian.org jessie/main Translation-en Fetched 14.5 kB in 3s (4,583 B/s) Reading package lists... Done root@root:~# apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... The following packages were automatically installed and are no longer required: dbconfig-common javascript-common libaio1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libgd3 libjs-jquery libjs-sphinxdoc libjs-underscore libmcrypt4 libonig2 libqdbm14 libvpx1 libxpm4 ssl-cert Use 'apt-get autoremove' to remove them. Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@root:~# apt-get autoremove Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: dbconfig-common javascript-common libaio1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libgd3 libjs-jquery libjs-sphinxdoc libjs-underscore libmcrypt4 libonig2 libqdbm14 libvpx1 libxpm4 ssl-cert 0 upgraded, 0 newly installed, 15 to remove and 0 not upgraded. After this operation, 5,905 kB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 57480 files and directories currently installed.) Removing dbconfig-common (1.8.47+nmu3+deb8u1) ... Removing javascript-common (11) ... Removing libaio1:amd64 (0.3.110-1) ... Removing libaprutil1-dbd-sqlite3:amd64 (1.5.4-1) ... Removing libaprutil1-ldap:amd64 (1.5.4-1) ... Removing libgd3:amd64 (2.1.0-5+deb8u11) ... Removing libjs-sphinxdoc (1.2.3+dfsg-1) ... Removing libjs-jquery (1.7.2+dfsg-3.2) ... Removing libjs-underscore (1.7.0~dfsg-1) ... Removing libmcrypt4 (2.5.8-3.3) ... Removing libonig2:amd64 (5.9.5-3.2+deb8u1) ... Removing libqdbm14 (1.8.78-5+b1) ... Removing libvpx1:amd64 (1.3.0-3+deb8u1) ... Removing libxpm4:amd64 (1:3.5.12-0+deb8u1) ... Removing ssl-cert (1.0.35) ... Processing triggers for man-db (2.7.0.2-5) ... Processing triggers for libc-bin (2.19-18+deb8u10) ... root@root:~# apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@root:~# apt-get install apache2 Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: apache2-bin apache2-data apache2-utils libaprutil1-dbd-sqlite3 libaprutil1-ldap ssl-cert Suggested packages: apache2-doc apache2-suexec-pristine apache2-suexec-custom openssl-blacklist The following NEW packages will be installed: apache2 apache2-bin apache2-data apache2-utils libaprutil1-dbd-sqlite3 libaprutil1-ldap ssl-cert 0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/1,661 kB of archives. After this operation, 5,402 kB of additional disk space will be used. Do you want to continue? [Y/n] y Preconfiguring packages ... Selecting previously unselected package libaprutil1-dbd-sqlite3:amd64. (Reading database ... 57137 files and directories currently installed.) Preparing to unpack .../libaprutil1-dbd-sqlite3_1.5.4-1_amd64.deb ... Unpacking libaprutil1-dbd-sqlite3:amd64 (1.5.4-1) ... Selecting previously unselected package libaprutil1-ldap:amd64. Preparing to unpack .../libaprutil1-ldap_1.5.4-1_amd64.deb ... Unpacking libaprutil1-ldap:amd64 (1.5.4-1) ... Selecting previously unselected package apache2-bin. Preparing to unpack .../apache2-bin_2.4.10-10+deb8u11_amd64.deb ... Unpacking apache2-bin (2.4.10-10+deb8u11) ... Selecting previously unselected package apache2-utils. Preparing to unpack .../apache2-utils_2.4.10-10+deb8u11_amd64.deb ... Unpacking apache2-utils (2.4.10-10+deb8u11) ... Selecting previously unselected package apache2-data. Preparing to unpack .../apache2-data_2.4.10-10+deb8u11_all.deb ... Unpacking apache2-data (2.4.10-10+deb8u11) ... Selecting previously unselected package apache2. Preparing to unpack .../apache2_2.4.10-10+deb8u11_amd64.deb ... Unpacking apache2 (2.4.10-10+deb8u11) ... Selecting previously unselected package ssl-cert. Preparing to unpack .../ssl-cert_1.0.35_all.deb ... Unpacking ssl-cert (1.0.35) ... Processing triggers for man-db (2.7.0.2-5) ... Processing triggers for systemd (215-17+deb8u7) ... Setting up libaprutil1-dbd-sqlite3:amd64 (1.5.4-1) ... Setting up libaprutil1-ldap:amd64 (1.5.4-1) ... Setting up apache2-bin (2.4.10-10+deb8u11) ... Setting up apache2-utils (2.4.10-10+deb8u11) ... Setting up apache2-data (2.4.10-10+deb8u11) ... Setting up apache2 (2.4.10-10+deb8u11) ... Enabling module mpm_event. Enabling module authz_core. Enabling module authz_host. Enabling module authn_core. Enabling module auth_basic. Enabling module access_compat. Enabling module authn_file. Enabling module authz_user. Enabling module alias. Enabling module dir. Enabling module autoindex. Enabling module env. Enabling module mime. Enabling module negotiation. Enabling module setenvif. Enabling module filter. Enabling module deflate. Enabling module status. Enabling module reqtimeout. Enabling conf charset. Enabling conf localized-error-pages. Enabling conf other-vhosts-access-log. Enabling conf security. Enabling conf serve-cgi-bin. Enabling site 000-default. Setting up ssl-cert (1.0.35) ... Processing triggers for systemd (215-17+deb8u7) ... root@root:~# cd /var/www root@root:/var/www# apt-get install php5 Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libapache2-mod-php5 libonig2 libqdbm14 php5-cli php5-common php5-json php5-readline Suggested packages: php-pear php5-user-cache The following NEW packages will be installed: libapache2-mod-php5 libonig2 libqdbm14 php5 php5-cli php5-common php5-json php5-readline 0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/5,438 kB of archives. After this operation, 21.5 MB of additional disk space will be used. Do you want to continue? [Y/n] y Selecting previously unselected package libonig2:amd64. (Reading database ... 57797 files and directories currently installed.) Preparing to unpack .../libonig2_5.9.5-3.2+deb8u1_amd64.deb ... Unpacking libonig2:amd64 (5.9.5-3.2+deb8u1) ... Selecting previously unselected package libqdbm14. Preparing to unpack .../libqdbm14_1.8.78-5+b1_amd64.deb ... Unpacking libqdbm14 (1.8.78-5+b1) ... Selecting previously unselected package php5-common. Preparing to unpack .../php5-common_5.6.33+dfsg-0+deb8u1_amd64.deb ... Unpacking php5-common (5.6.33+dfsg-0+deb8u1) ... Selecting previously unselected package php5-json. Preparing to unpack .../php5-json_1.3.6-1_amd64.deb ... Unpacking php5-json (1.3.6-1) ... Selecting previously unselected package php5-cli. Preparing to unpack .../php5-cli_5.6.33+dfsg-0+deb8u1_amd64.deb ... Unpacking php5-cli (5.6.33+dfsg-0+deb8u1) ... Selecting previously unselected package libapache2-mod-php5. Preparing to unpack .../libapache2-mod-php5_5.6.33+dfsg-0+deb8u1_amd64.deb ... Unpacking libapache2-mod-php5 (5.6.33+dfsg-0+deb8u1) ... Selecting previously unselected package php5. Preparing to unpack .../php5_5.6.33+dfsg-0+deb8u1_all.deb ... Unpacking php5 (5.6.33+dfsg-0+deb8u1) ... Selecting previously unselected package php5-readline. Preparing to unpack .../php5-readline_5.6.33+dfsg-0+deb8u1_amd64.deb ... Unpacking php5-readline (5.6.33+dfsg-0+deb8u1) ... Processing triggers for man-db (2.7.0.2-5) ... Setting up libonig2:amd64 (5.9.5-3.2+deb8u1) ... Setting up libqdbm14 (1.8.78-5+b1) ... Setting up php5-common (5.6.33+dfsg-0+deb8u1) ... Creating config file /etc/php5/mods-available/pdo.ini with new version php5_invoke: Enable module pdo for cli SAPI php5_invoke: Enable module pdo for apache2 SAPI Creating config file /etc/php5/mods-available/opcache.ini with new version php5_invoke: Enable module opcache for cli SAPI php5_invoke: Enable module opcache for apache2 SAPI Setting up php5-json (1.3.6-1) ... php5_invoke: Enable module json for cli SAPI php5_invoke: Enable module json for apache2 SAPI Setting up php5-cli (5.6.33+dfsg-0+deb8u1) ... update-alternatives: using /usr/bin/php5 to provide /usr/bin/php (php) in auto mode update-alternatives: using /usr/bin/phar5 to provide /usr/bin/phar (phar) in auto mode Creating config file /etc/php5/cli/php.ini with new version Setting up libapache2-mod-php5 (5.6.33+dfsg-0+deb8u1) ... Creating config file /etc/php5/apache2/php.ini with new version Module mpm_event disabled. Enabling module mpm_prefork. apache2_switch_mpm Switch to prefork apache2_invoke: Enable module php5 Setting up php5 (5.6.33+dfsg-0+deb8u1) ... Setting up php5-readline (5.6.33+dfsg-0+deb8u1) ... Creating config file /etc/php5/mods-available/readline.ini with new version php5_invoke: Enable module readline for cli SAPI php5_invoke: Enable module readline for apache2 SAPI Processing triggers for libc-bin (2.19-18+deb8u10) ... Processing triggers for libapache2-mod-php5 (5.6.33+dfsg-0+deb8u1) ... root@root:/var/www# /etc/init.d/apache2 restart [ ok ] Restarting apache2 (via systemctl): apache2.service. root@root:/var/www# apt-get install mysql-server Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libaio1 mysql-server-5.5 mysql-server-core-5.5 Suggested packages: tinyca The following NEW packages will be installed: libaio1 mysql-server mysql-server-5.5 mysql-server-core-5.5 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/5,278 kB of archives. After this operation, 52.8 MB of additional disk space will be used. Do you want to continue? [Y/n] y Preconfiguring packages ... Selecting previously unselected package libaio1:amd64. (Reading database ... 57898 files and directories currently installed.) Preparing to unpack .../libaio1_0.3.110-1_amd64.deb ... Unpacking libaio1:amd64 (0.3.110-1) ... Selecting previously unselected package mysql-server-core-5.5. Preparing to unpack .../mysql-server-core-5.5_5.5.59-0+deb8u1_amd64.deb ... Unpacking mysql-server-core-5.5 (5.5.59-0+deb8u1) ... Selecting previously unselected package mysql-server-5.5. Preparing to unpack .../mysql-server-5.5_5.5.59-0+deb8u1_amd64.deb ... Unpacking mysql-server-5.5 (5.5.59-0+deb8u1) ... Selecting previously unselected package mysql-server. Preparing to unpack .../mysql-server_5.5.59-0+deb8u1_all.deb ... Unpacking mysql-server (5.5.59-0+deb8u1) ... Processing triggers for man-db (2.7.0.2-5) ... Processing triggers for systemd (215-17+deb8u7) ... Setting up libaio1:amd64 (0.3.110-1) ... Setting up mysql-server-core-5.5 (5.5.59-0+deb8u1) ... Setting up mysql-server-5.5 (5.5.59-0+deb8u1) ... 180315 16:48:41 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead. 180315 16:48:41 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap. 180315 16:48:41 [Note] /usr/sbin/mysqld (mysqld 5.5.59-0+deb8u1) starting as process 4526 ... Setting up mysql-server (5.5.59-0+deb8u1) ... Processing triggers for libc-bin (2.19-18+deb8u10) ... Processing triggers for systemd (215-17+deb8u7) ... root@root:/var/www# apt-get install libapache2-mod-auth-mysql Reading package lists... Done Building dependency tree Reading state information... Done Package libapache2-mod-auth-mysql is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'libapache2-mod-auth-mysql' has no installation candidate root@root:/var/www# Package libapache2-mod-auth-mysql is not available, but is referred to by another package. -bash: Package: command not found root@root:/var/www# This may mean that the package is missing, has been obsoleted, or -bash: This: command not found root@root:/var/www# is only available from another source -bash: is: command not found root@root:/var/www# root@root:/var/www# E: Package 'libapache2-mod-auth-mysql' has no installation candidate -bash: E:: command not found root@root:/var/www# apt-get install php5-mysql Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: php5-mysql 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/65.8 kB of archives. After this operation, 309 kB of additional disk space will be used. Selecting previously unselected package php5-mysql. (Reading database ... 58086 files and directories currently installed.) Preparing to unpack .../php5-mysql_5.6.33+dfsg-0+deb8u1_amd64.deb ... Unpacking php5-mysql (5.6.33+dfsg-0+deb8u1) ... Processing triggers for libapache2-mod-php5 (5.6.33+dfsg-0+deb8u1) ... Setting up php5-mysql (5.6.33+dfsg-0+deb8u1) ... Creating config file /etc/php5/mods-available/mysql.ini with new version php5_invoke: Enable module mysql for cli SAPI php5_invoke: Enable module mysql for apache2 SAPI Creating config file /etc/php5/mods-available/mysqli.ini with new version php5_invoke: Enable module mysqli for cli SAPI php5_invoke: Enable module mysqli for apache2 SAPI Creating config file /etc/php5/mods-available/pdo_mysql.ini with new version php5_invoke: Enable module pdo_mysql for cli SAPI php5_invoke: Enable module pdo_mysql for apache2 SAPI Processing triggers for libapache2-mod-php5 (5.6.33+dfsg-0+deb8u1) ... root@root:/var/www# apt-get install mysql-server php5-mysql phpmyadmin Reading package lists... Done Building dependency tree Reading state information... Done mysql-server is already the newest version. php5-mysql is already the newest version. The following extra packages will be installed: dbconfig-common javascript-common libgd3 libjs-jquery libjs-sphinxdoc libjs-underscore libmcrypt4 libvpx1 libxpm4 php-gettext php-tcpdf php5-gd php5-mcrypt Suggested packages: libgd-tools libmcrypt-dev mcrypt php5-imagick The following NEW packages will be installed: dbconfig-common javascript-common libgd3 libjs-jquery libjs-sphinxdoc libjs-underscore libmcrypt4 libvpx1 libxpm4 php-gettext php-tcpdf php5-gd php5-mcrypt phpmyadmin 0 upgraded, 14 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/13.5 MB of archives. After this operation, 49.8 MB of additional disk space will be used. Do you want to continue? [Y/n] y Preconfiguring packages ... Selecting previously unselected package libvpx1:amd64. (Reading database ... 58097 files and directories currently installed.) Preparing to unpack .../libvpx1_1.3.0-3+deb8u1_amd64.deb ... Unpacking libvpx1:amd64 (1.3.0-3+deb8u1) ... Selecting previously unselected package libxpm4:amd64. Preparing to unpack .../libxpm4_1%3a3.5.12-0+deb8u1_amd64.deb ... Unpacking libxpm4:amd64 (1:3.5.12-0+deb8u1) ... Selecting previously unselected package libgd3:amd64. Preparing to unpack .../libgd3_2.1.0-5+deb8u11_amd64.deb ... Unpacking libgd3:amd64 (2.1.0-5+deb8u11) ... Selecting previously unselected package dbconfig-common. Preparing to unpack .../dbconfig-common_1.8.47+nmu3+deb8u1_all.deb ... Unpacking dbconfig-common (1.8.47+nmu3+deb8u1) ... Selecting previously unselected package javascript-common. Preparing to unpack .../javascript-common_11_all.deb ... Unpacking javascript-common (11) ... Selecting previously unselected package libjs-jquery. Preparing to unpack .../libjs-jquery_1.7.2+dfsg-3.2_all.deb ... Unpacking libjs-jquery (1.7.2+dfsg-3.2) ... Selecting previously unselected package libjs-underscore. Preparing to unpack .../libjs-underscore_1.7.0~dfsg-1_all.deb ... Unpacking libjs-underscore (1.7.0~dfsg-1) ... Selecting previously unselected package libjs-sphinxdoc. Preparing to unpack .../libjs-sphinxdoc_1.2.3+dfsg-1_all.deb ... Unpacking libjs-sphinxdoc (1.2.3+dfsg-1) ... Selecting previously unselected package libmcrypt4. Preparing to unpack .../libmcrypt4_2.5.8-3.3_amd64.deb ... Unpacking libmcrypt4 (2.5.8-3.3) ... Selecting previously unselected package php-gettext. Preparing to unpack .../php-gettext_1.0.11-1_all.deb ... Unpacking php-gettext (1.0.11-1) ... Selecting previously unselected package php-tcpdf. Preparing to unpack .../php-tcpdf_6.0.093+dfsg-1+deb8u1_all.deb ... Unpacking php-tcpdf (6.0.093+dfsg-1+deb8u1) ... Selecting previously unselected package php5-gd. Preparing to unpack .../php5-gd_5.6.33+dfsg-0+deb8u1_amd64.deb ... Unpacking php5-gd (5.6.33+dfsg-0+deb8u1) ... Selecting previously unselected package php5-mcrypt. Preparing to unpack .../php5-mcrypt_5.6.33+dfsg-0+deb8u1_amd64.deb ... Unpacking php5-mcrypt (5.6.33+dfsg-0+deb8u1) ... Selecting previously unselected package phpmyadmin. Preparing to unpack .../phpmyadmin_4%3a4.2.12-2+deb8u2_all.deb ... Unpacking phpmyadmin (4:4.2.12-2+deb8u2) ... Processing triggers for man-db (2.7.0.2-5) ... Processing triggers for libapache2-mod-php5 (5.6.33+dfsg-0+deb8u1) ... Processing triggers for hicolor-icon-theme (0.13-1) ... Setting up libvpx1:amd64 (1.3.0-3+deb8u1) ... Setting up libxpm4:amd64 (1:3.5.12-0+deb8u1) ... Setting up libgd3:amd64 (2.1.0-5+deb8u11) ... Setting up dbconfig-common (1.8.47+nmu3+deb8u1) ... Setting up javascript-common (11) ... apache2_invoke: Enable configuration javascript-common Setting up libjs-jquery (1.7.2+dfsg-3.2) ... Setting up libjs-underscore (1.7.0~dfsg-1) ... Setting up libjs-sphinxdoc (1.2.3+dfsg-1) ... Setting up libmcrypt4 (2.5.8-3.3) ... Setting up php-gettext (1.0.11-1) ... Setting up php-tcpdf (6.0.093+dfsg-1+deb8u1) ... Setting up php5-gd (5.6.33+dfsg-0+deb8u1) ... Creating config file /etc/php5/mods-available/gd.ini with new version php5_invoke: Enable module gd for cli SAPI php5_invoke: Enable module gd for apache2 SAPI Setting up php5-mcrypt (5.6.33+dfsg-0+deb8u1) ... Creating config file /etc/php5/mods-available/mcrypt.ini with new version php5_invoke: Enable module mcrypt for cli SAPI php5_invoke: Enable module mcrypt for apache2 SAPI Setting up phpmyadmin (4:4.2.12-2+deb8u2) ... dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.conf Creating config file /etc/dbconfig-common/phpmyadmin.conf with new version Creating config file /etc/phpmyadmin/config-db.php with new version granting access to database phpmyadmin for phpmyadmin@localhost: success. verifying access for phpmyadmin@localhost: success. creating database phpmyadmin: success. verifying database phpmyadmin exists: success. populating database via sql... done. dbconfig-common: flushing administrative password Processing triggers for libc-bin (2.19-18+deb8u10) ... Processing triggers for libapache2-mod-php5 (5.6.33+dfsg-0+deb8u1) ... root@root:/var/www# echo "include /etc/phpmyadmin/apache.conf" | sudo tee -a /etc/apache2/apache2.conf -bash: sudo: command not found root@root:/var/www# ln -fvs /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf ln: failed to create symbolic link ‘/etc/apache2/conf.d/phpmyadmin.conf’: No such file or directory root@root:/var/www# /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf -bash: /etc/phpmyadmin/apache.conf: Permission denied root@root:/var/www# /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf -bash: /etc/phpmyadmin/apache.conf: Permission denied root@root:/var/www# /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf -bash: /etc/phpmyadmin/apache.conf: Permission denied root@root:/var/www# /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf /etc/phpmyadmin/apache.conf: line 3: Alias: command not found /etc/phpmyadmin/apache.conf: line 5: syntax error near unexpected token `newline' /etc/phpmyadmin/apache.conf: line 5: `<Directory /usr/share/phpmyadmin>' root@root:/var/www# ln -fvs /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf ln: failed to create symbolic link ‘/etc/apache2/conf.d/phpmyadmin.conf’: No such file or directory root@root:/var/www# /etc/init.d/apache2 restart [ ok ] Restarting apache2 (via systemctl): apache2.service. root@root:/var/www#
  18. o problema que comprei a vps com esse ja !!! teria como trocar??
  19. Boa Tarde Galerinha Do Tk Vcs Podem Me Ajuda No Erro com Meu Vps??? Comprei UmA Vps Da 4youstart Rede garantida: 200 MbpsSistema Operacional: Debian 8.0 64 Bits Com Muito custo Consegui Compilar Meu Otserver La Usando O Putty e o WinSCP O Problema Agora é O MySQL E O PhpMyadmin q nao instala da erros Segui esse tutorial Daki do Tk quando Vou dar o comando apt-get update Da Esse Erro root@root:~# apt-get update Hit http://security.debian.org jessie/updates InRelease Hit http://ftp.debian.org jessie-updates InRelease Ign http://ftp.de.debian.org squeeze InRelease Ign http://ftp.debian.org jessie InRelease Ign http://ftp.de.debian.org squeeze Release.gpg Hit http://security.debian.org jessie/updates/main Sources Ign http://ftp.de.debian.org squeeze Release Get:1 http://ftp.debian.org jessie-updates/main amd64 Packages/DiffIndex [10.9 kB] Hit http://security.debian.org jessie/updates/main amd64 Packages Get:2 http://ftp.debian.org jessie-updates/main Translation-en/DiffIndex [3,688 B] Hit http://security.debian.org jessie/updates/main Translation-en Hit http://ftp.debian.org jessie Release.gpg Hit http://ftp.debian.org jessie-updates/main Sources Hit http://ftp.debian.org jessie Release Hit http://ftp.debian.org jessie/main Sources Hit http://ftp.debian.org jessie/main amd64 Packages Hit http://ftp.debian.org jessie/main Translation-en Err http://ftp.de.debian.org squeeze/main amd64 Packages 404 Not Found Ign http://ftp.de.debian.org squeeze/main Translation-en_US Ign http://ftp.de.debian.org squeeze/main Translation-en Fetched 14.5 kB in 2s (5,768 B/s) W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze/main/binary-amd64/Packages 404 Not Found E: Some index files failed to download. They have been ignored, or old ones used instead. root@root:~# Coloquei o meu site na pasta www que estava vazia se alguem puder me ajudar fico muinto grato
  20. ola amigo vc Consegui essa script que vc citou q o char tall conseguio aprimorar x items +6??
  21. Achei oq eu Precisava..... Muito Obrigado@julhinhuu foi de grande ajuda vc!! esta ae pra quen quiser!! Simple Task.xml <?xml version="1.0" encoding="UTF-8"?> <mod name="Simple Task" version="3.0" author="Vodkart" contact="#####.com" enabled="yes"> <config name="task_func"><![CDATA[ tasktabble = { ["troll"] = {monster_race={"troll","frost troll","furious troll","island troll","swamp troll","troll champion","troll legionnaire"}, storage_start = 200201, storage = 91001,count = 150,exp = 200,money = 250}, ["globin"] = {monster_race={"goblin","goblin assassin","goblin leader"}, storage_start = 200202, storage = 91002,count = 150,exp = 300,money = 300}, ["rotworm"] = {monster_race={"rotworm","carrion worm"}, storage_start = 200203, storage = 91003,count = 300,exp = 1000,money = 800}, ["cyclops"] = {monster_race={"cyclops","cyclops smith","cyclops drone"}, storage_start = 200204, storage = 91004,count = 500,exp = 3000,money = 800}, ["green djinn"] = {monster_race={"green djinn","efreet"}, storage_start = 200205, storage = 91005,count = 500,exp = 10000,money = 5000}, ["blue djinn"] = {monster_race={"blue djinn","marid"}, storage_start = 200206, storage = 91006,count = 500,exp = 10000,money = 5000}, ["pirate one"] = {monster_race={"pirate buccaneer","pirate corsair","pirate cutthroat","pirate ghost","pirate marauder","pirate skeleton"}, storage_start = 200207, storage = 91007,count = 300,exp = 10000,money = 5000}, ["pirate two"] = {monster_race={"pirate buccaneer","pirate corsair","pirate cutthroat","pirate ghost","pirate marauder","pirate skeleton"}, storage_start = 200208, storage = 91008,count = 300,exp = 10000,money = 5000}, ["minotaur"] = {monster_race={"minotaur","minotaur archer","minotaur mage","minotaur guard"}, storage_start = 200209, storage = 91009,count = 20}, ["necromancer"] = {monster_race={"necromancer","priestess"}, storage_start = 200210, storage = 91010,count= 400}, ["carniphila"] = {monster_race={"carniphila"}, storage_start = 200211, storage = 91011,count= 150, exp = 2500}, ["stone golem"] = {monster_race={"stone golem"}, storage_start = 200212, storage = 91012,count= 220, exp = 2000}, ["ice golem"] = {monster_race={"ice golem"}, storage_start = 200213, storage = 91013,count= 300, exp = 12000}, ["dragon"] = {monster_race={"dragon","dragon lord","frost dragon"}, storage_start = 200214, storage = 91014,count= 250, exp = 50000}, ["mutated rat"] = {monster_race={"mutated rat"}, storage_start = 200215, storage = 91015,count = 210, exp = 25000, money = 10000}, ["giant spider"] = {monster_race={"giant spider"}, storage_start = 200215, storage = 91016,count = 500, exp = 50000, money = 15000}, ["hydra"] = {monster_race={"hydra"}, storage_start = 200217, storage = 91017,count = 5000, exp = 2000, money = 15000, reward = {{6433,1},{7434,1},{2197,1},{2476,1}}}, ["sea serpent"] = {monster_race={"sea serpent"}, storage_start = 200218, storage = 91018,count = 1500, exp = 70000, money = 30000}, ["behemoth"] = {monster_race={"behemoth"}, storage_start = 200219, storage = 91019,count = 1800, exp = 50000, money = 30000, reward = {{6391,1},{5741,1}}}, ["serpent spawn"] = {monster_race={"serpent spawn"}, storage_start = 200220, storage = 91020,count = 1400, exp = 70000, money = 30000}, ["demon"] = {monster_race={"demon"}, storage_start = 200221, storage = 91021,count = 6666, exp = 70000, money = 200000, reward = {{2495,1},{2496,1},{2520,1},{2472,1}}}, ["quara"] = {monster_race={"quara predator","quara constrictor","quara hydromancer","quara mantassin","quara pincher"}, storage_start = 200222, storage = 91022,count = 300, exp = 40000, money = 50000}, ["quara scout"] = {monster_race={"quara predator scout","quara constrictor scout","quara hydromancer scout","quara mantassin scout","quara pincher scout"}, storage_start = 200223, storage = 91023,count = 300, exp = 50000, money = 60000} } configbosses_task = { {race = "minotaur",Playerpos = {x = 189, y = 57, z = 7}, FromPosToPos = {{x = 186, y = 54, z = 7},{x = 193, y = 60, z = 7}},time = 5}, {race = "necromancer",Playerpos = {x = 196, y = 39, z = 7}, FromPosToPos = {{x = 195, y = 37, z = 7},{x = 198, y = 41, z = 7}}, time = 5}, {race = "dragon",Playerpos = {x = 208, y = 59, z = 7}, FromPosToPos = {{x = 206, y = 56, z = 7},{x = 209, y = 65, z = 7}}, time = 5} } function CheckTask(cid) for k, v in pairs(tasktabble) do if getPlayerStorageValue(cid,v.storage_start) >= 1 then return true end end return false end function finisheAllTask(cid) local config = { exp = {true,100000}, money = {true,200000}, items ={false,{{2124,2},{2173,1}}}, premium ={true,5} } local x = true for k, v in pairs(tasktabble) do if tonumber(getPlayerStorageValue(cid,v.storage)) then x = false end end if x == true then setPlayerStorageValue(cid, 521456, 0) local b = getGlobalStorageValue(63005) if b == -1 then b = 1 end if b < 11 then setGlobalStorageValue(63005,b+1) doBroadcastMessage('[Task Mission Complete] '..getCreatureName(cid)..' was the '..b..' to finish the task!.') doPlayerAddPremiumDays(cid, config.premium[1] == true and config.premium[2] or 0) doPlayerAddExp(cid, config.exp[1] == true and config.exp[2] or 0) doPlayerAddMoney(cid, config.money[1] == true and config.money[2] or 0) if config.items[1] == true then doAddItemsFromList(cid,config.items[2]) end doItemSetAttribute(doPlayerAddItem(cid, 7369), "name", "trophy "..getCreatureName(cid).." completed all the task.") end end end function HavePlayerPosition(cid, from, to) return isInRange(getPlayerPosition(cid), from, to) and true or false end function getRankStorage(cid, value, max, RankName) -- by vodka local str ="" str = "--[".. (RankName == nil and "RANK STORAGE" or ""..RankName.."") .."]--\n\n" local query = db.getResult("SELECT `player_id`, `value` FROM `player_storage` WHERE `key` = "..value.." ORDER BY cast(value as INTEGER) DESC;") if (query:getID() ~= -1) then k = 1 repeat if k > max then break end str = str .. "\n " .. k .. ". "..getPlayerNameByGUID(query:getDataString("player_id")).." - [" .. query:getDataInt("value") .. "]" k = k + 1 until not query:next() end return doShowTextDialog(cid, 2529, str) end function getItemsInContainerById(container, itemid) -- Function By Kydrai local items = {} if isContainer(container) and getContainerSize(container) > 0 then for slot=0, (getContainerSize(container)-1) do local item = getContainerItem(container, slot) if isContainer(item.uid) then local itemsbag = getItemsInContainerById(item.uid, itemid) for i=0, #itemsbag do table.insert(items, itemsbag[i]) end else if itemid == item.itemid then table.insert(items, item.uid) end end end end return items end function doPlayerAddItemStacking(cid, itemid, quant) -- by mkalo local item = getItemsInContainerById(getPlayerSlotItem(cid, 3).uid, itemid) local piles = 0 if #item > 0 then for i,x in pairs(item) do if getThing(x).type < 100 then local it = getThing(x) doTransformItem(it.uid, itemid, it.type+quant) if it.type+quant > 100 then doPlayerAddItem(cid, itemid, it.type+quant-100) end else piles = piles+1 end end else return doPlayerAddItem(cid, itemid, quant) end if piles == #item then doPlayerAddItem(cid, itemid, quant) end end function getItemsFromList(items) -- by vodka local str = '' if table.maxn(items) > 0 then for i = 1, table.maxn(items) do str = str .. items[i][2] .. ' ' .. getItemNameById(items[i][1]) if i ~= table.maxn(items) then str = str .. ', ' end end end return str end function doAddItemsFromList(cid,items) -- by vodka if table.maxn(items) > 0 then for i = 1, table.maxn(items) do local count = items[i][2] while count > 0 do if isItemStackable(items[i][1]) then doPlayerAddItemStacking(cid, items[i][1], 1) else doPlayerAddItem(cid, items[i][1],1) end count = count - 1 end end end end function pairsByKeys(t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 local iter = function () i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] end end return iter end ]]></config> <event type="login" name="TaskLogin" event="script"><![CDATA[ function onLogin(cid) registerCreatureEvent(cid, "KillTask") return true end]]></event> <talkaction words="/task;!task" event="buffer"><![CDATA[ domodlib('task_func') local param = string.lower(param) if param == "rank" then getRankStorage(cid, 521456, 20, "Task Rank Finalizadas") return true end local str = "" str = str .. "Task Completed :\n\n" for k, v in pairsByKeys(tasktabble) do local contagem = getPlayerStorageValue(cid, v.storage) if (contagem == -1) then contagem = 1 end str = str..k.." = ".. (not tonumber(contagem) and "["..contagem.."]" or "["..((contagem)-1).."/"..v.count.."]") .."\n" end str = str .. "" return doShowTextDialog(cid, 8983, str) ]]></talkaction> <event type="kill" name="KillTask" event="script"><![CDATA[ domodlib('task_func') function onKill(cid, target, lastHit) if(isMonster(target) == true) then local n = string.lower(getCreatureName(target)) for race, mob in pairs(tasktabble) do if getPlayerStorageValue(cid,mob .storage_start) >= 1 then for i = 1,#mob.monster_race do if n == mob.monster_race[i] then local contagem = getPlayerStorageValue(cid, mob.storage) if (contagem == -1) then contagem = 1 end if not tonumber(contagem) then return true end if contagem > mob.count then return true end if contagem > mob.count then return true end setPlayerStorageValue(cid, mob.storage, contagem+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,""..(contagem == mob.count and "Congratulations! You finished the task of "..race.."." or "defeated. Total [" .. contagem .. "/" .. mob.count .. "] " .. race .. ".").."") end end end end end return true end]]></event> </mod> NPC/SCRIPT simple_task.lua domodlib('task_func') local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid local msg = string.lower(msg) if isInArray({"task","tasks","missao","mission"}, msg) then npcHandler:say("Me diga o nome do monstro que você deseja fazer a task!", cid) talkState[talkUser] = 1 elseif talkState[talkUser] == 1 then if tasktabble[msg] then if CheckTask(cid) ~= true then local contagem = getPlayerStorageValue(cid, tasktabble[msg].storage) if (contagem == -1) then contagem = 1 end if not tonumber(contagem) then npcHandler:say('Desculpe, mas você já terminou a task do '..msg, cid) return true end setPlayerStorageValue(cid, tasktabble[msg].storage_start, 1) npcHandler:say("Parabéns, agora você está participando da missão task do "..msg..", falta matar "..string.sub(((contagem)-1)-tasktabble[msg].count, 2).." "..msg, cid) talkState[talkUser] = 0 else npcHandler:say('Desculpe, mas você já faz parte de uma task!', cid) talkState[talkUser] = 0 end else npcHandler:say('digite o nome correto da missão task! para mais informações digite {!task}', cid) talkState[talkUser] = 1 end elseif isInArray({"receber","reward","recompensa","report","reportar"}, msg) then if CheckTask(cid) then for k, v in pairs(tasktabble) do racetype = k if getPlayerStorageValue(cid,v.storage_start) >= 1 then local contagem = getPlayerStorageValue(cid, v.storage) if (contagem == -1) then contagem = 1 end if not tonumber(contagem) then npcHandler:say('você só pode receber os items uma única vez!', cid) return true end if (((contagem)-1) >= v.count) then for _, check in pairs(configbosses_task) do if string.lower(check.race) == string.lower(racetype) then local on = getPlayersOnline() for i=1, #on do if HavePlayerPosition(on[i], check.FromPosToPos[1],check.FromPosToPos[2]) then selfSay('aguarde alguns instantes, tem pessoas fazendo a task.', cid) return true end end doTeleportThing(cid, check.Playerpos) local function checkArea(cid) if not isCreature(cid) then return LUA_ERROR end if HavePlayerPosition(cid, check.FromPosToPos[1],check.FromPosToPos[2]) then doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) end end addEvent(checkArea, check.time*60*1000, cid) end end local str = "" if v.exp ~= nil then doPlayerAddExp(cid, v.exp ) str = str.."".. (str == "" and "" or ",") .." "..v.exp.." de exp" end if v.money ~= nil then doPlayerAddMoney(cid, v.money) str = str.."".. (str == "" and "" or ",") ..""..v.money.." gps" end if v.reward ~= nil then doAddItemsFromList(cid,v.reward) str = str.."".. (str == "" and "" or ",") ..""..getItemsFromList(v.reward) end npcHandler:say("Obrigado pela sua ajuda Recompensas: "..(str == "" and "nenhuma" or ""..str.."").." por ter completado a task do "..k, cid) setPlayerStorageValue(cid, v.storage, "Finished") setPlayerStorageValue(cid, v.storage_start, 0) setPlayerStorageValue(cid, 521456, getPlayerStorageValue(cid, 521456) == -1 and 1 or getPlayerStorageValue(cid, 521456)+1) finisheAllTask(cid) else npcHandler:say('Desculpe,mas você só matou '..((contagem)-1)..' de '..v.count..' '..k, cid) end end end else npcHandler:say("você não está em nenhuma missão task", cid) end elseif isInArray({"sair","leave","exit"}, msg) then if CheckTask(cid) then talkState[talkUser] = 2 for k, v in pairs(tasktabble) do if getPlayerStorageValue(cid,v.storage_start) >= 1 then storagesair = v.storage_start local contagem = getPlayerStorageValue(cid, v.storage) if (contagem == -1) then contagem = 1 end npcHandler:say('você está participando de uma missão task do '..k..' e já tem '..((contagem)-1)..' '..k..' mortos, deseja mesmo sair?', cid) end end else npcHandler:say("você não está em nenhuma missão task", cid) end elseif msgcontains(msg, 'yes') and talkState[talkUser] == 2 then setPlayerStorageValue(cid, storagesair, 0) npcHandler:say("Você foi retirado da task com sucesso!", cid) elseif msg == "no" then selfSay("Tudo bem então", cid) talkState[talkUser] = 0 npcHandler:releaseFocus(cid) end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) NPC Ludger.xml <?xml version="1.0"?> <npc name="Ludger" script="data/npc/scripts/simple_task.lua" walkinterval="50000" floorchange="0"> <health now="100" max="100"/> <look type="129" head="95" body="116" legs="121" feet="115" addons="3"/> <parameters> <parameter key="message_greet" value="Ola |PLAYERNAME|. quer fazer uma {task}? ou {sair} de uma? tambem pode {receber} premios se terminou ela!" /> </parameters> </npc>
  22. ok obrigado fico esperando ja + rep
  23. /b alguem tem esse script
  24. ola amigo nao sei te informar a verçao pois meu ot esta no dedicado e com a tfs deles em linux mas se te ajudar e 8.60 uso o putty para acessar meu vps se tiver como olhar a verçao do tfs pelo putty ?? WARNING: The TFS Exclusive Edition has been executed as super user! It is recommended to run as a normal user. acho que e issu 4.9.2

Informação Importante

Confirmação de Termo