Ir para conteúdo

Fabiano Alberto

Membro
  • Registro em

  • Última visita

Tudo que Fabiano Alberto postou

  1. [12:56:00.738] [Error - TalkAction Interface] [12:56:00.738] data/talkactions/scripts/tradeoff.lua:onSay[12:56:00.738] Description: [12:56:00.738] data/talkactions/scripts/tradeoff.lua:50: attempt to index a boolean value[12:56:00.738] stack traceback:[12:56:00.739] data/talkactions/scripts/tradeoff.lua:50: in function <data/talkactions/scripts/tradeoff.lua:17> tenho esse erro no meu servidor, sabe dizer o pq? 8.60
  2. https://pastebin.com/cpH7UnJi Vai perceber que fiz umas alterações e o erro parou e o npc a principio esta funcionando normalmente.
  3. Boa tarde! Coloquei no meu servidor e esta dando esse erro:
  4. .Qual servidor ou website você utiliza como base? GESIOR Boa Noite! Galera, queria que a pagina de ranking do meu site tivesse a opção de ranking por vocação tambem..ja pesquisei e tentei fazer mas nao consegui..alguem pode ajudar? Você tem o código disponível? Se tiver publique-o aqui: <?php if(!defined('INITIALIZED')) exit; $list = 'experience'; if(isset($_REQUEST['list'])) $list = $_REQUEST['list']; $page = 0; if(isset($_REQUEST['page'])) $page = min(50, $_REQUEST['page']); $vocation = 'vocation'; if(isset($_REQUEST['vocation'])) $vocation = $_REQUEST['vocation']; switch($list) { case "fist": $id=Highscores::SKILL_FIST; $list_name='Fist Fighting'; break; case "club": $id=Highscores::SKILL_CLUB; $list_name='Club Fighting'; break; case "sword": $id=Highscores::SKILL_SWORD; $list_name='Sword Fighting'; break; case "axe": $id=Highscores::SKILL_AXE; $list_name='Axe Fighting'; break; case "distance": $id=Highscores::SKILL_DISTANCE; $list_name='Distance Fighting'; break; case "shield": $id=Highscores::SKILL_SHIELD; $list_name='Shielding'; break; case "fishing": $id=Highscores::SKILL_FISHING; $list_name='Fishing'; break; case "magic": $id=Highscores::SKILL__MAGLEVEL; $list_name='Magic'; break; default: $id=Highscores::SKILL__LEVEL; $list_name='Experience'; break; } $world_name = $config['server']['serverName']; $offset = $page * 100; $skills = new Highscores($id, 100, $page, $vocation); $main_content .= '<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%><TR><TD><IMG SRC="'.$layout_name.'/images/blank.gif" WIDTH=10 HEIGHT=1 BORDER=0></TD><TD><CENTER><H2>Ranking for '.htmlspecialchars($list_name).' on '.htmlspecialchars($world_name).'</H2></CENTER><BR>'; $main_content .= '<br><TABLE BORDER=0 CELLPADDING=4 CELLSPACING=1 WIDTH=100%></TABLE><TABLE BORDER=0 CELLPADDING=4 CELLSPACING=1 WIDTH=100%><TR BGCOLOR="'.$config['site']['vdarkborder'].'"><TD CLASS=whites><B>Rank</B></TD><TD WIDTH=75% CLASS=whites><B>Name</B></TD><TD WIDTH=15% CLASS=whites><b><center>Level</center></B></TD>'; if($list == "experience") $main_content .= '<TD CLASS=whites><b><center>Experience</center></B></TD>'; //$main_content .= '</TR><TR>'; $main_content .= '</TR>'; $number_of_rows = 0; foreach($skills as $skill) { if($list == "magic") $value = $skill->getMagLevel(); elseif($list == "experience") $value = $skill->getLevel(); else $value = $skill->getScore(); $bgcolor = (($number_of_rows++ % 2 == 1) ? $config['site']['darkborder'] : $config['site']['lightborder']); $main_content .= '<tr bgcolor="'.$bgcolor.'"><td style="text-align:right">'.($offset + $number_of_rows).'.</td><td><a href="?subtopic=characters&name='.urlencode($skill->getName()).'">'.($skill->getOnline()>0 ? "<font color=\"green\">".htmlspecialchars($skill->getName())."</font>" : "<font color=\"red\">".htmlspecialchars($skill->getName())."</font>").'</a><br><small>'.$skill->getLevel().' '.htmlspecialchars(Website::getVocationName($skill->getVocation())).'</small></td><td><center>'.$value.'</center></td>'; if($list == "experience") $main_content .= '<td><center>'.$skill->getExperience().'</center></td>'; $main_content .= '</tr>'; } $main_content .= '</TABLE><TABLE BORDER=0 CELLPADDING=4 CELLSPACING=1 WIDTH=100%>'; if($page > 0) $main_content .= '<TR><TD WIDTH=100% ALIGN=right VALIGN=bottom><A HREF="?subtopic=highscores&list='.urlencode($list).'&page='.($page - 1).'&vocation=' . urlencode($vocation) . '" CLASS="size_xxs">Previous Page</A></TD></TR>'; if($page < 50) $main_content .= '<TR><TD WIDTH=100% ALIGN=right VALIGN=bottom><A HREF="?subtopic=highscores&list='.urlencode($list).'&page='.($page + 1).'&vocation=' . urlencode($vocation) . '" CLASS="size_xxs">Next Page</A></TD></TR>'; $main_content .= '</TABLE></TD><TD WIDTH=5%><IMG SRC="'.$layout_name.'/images/blank.gif" WIDTH=1 HEIGHT=1 BORDER=0></TD><TD WIDTH=15% VALIGN=top ALIGN=right><TABLE BORDER=0 CELLPADDING=4 CELLSPACING=1><TR BGCOLOR="'.$config['site']['vdarkborder'].'"><TD CLASS=whites><B>Choose a skill</B></TD></TR><TR BGCOLOR="'.$config['site']['lightborder'].'"><TD><A HREF="?subtopic=highscores&list=experience" CLASS="size_xs">Experience</A><BR><A HREF="?subtopic=highscores&list=magic" CLASS="size_xs">Magic</A><BR><A HREF="?subtopic=highscores&list=shield" CLASS="size_xs">Shielding</A><BR><A HREF="?subtopic=highscores&list=distance" CLASS="size_xs">Distance</A><BR><A HREF="?subtopic=highscores&list=club" CLASS="size_xs">Club</A><BR><A HREF="?subtopic=highscores&list=sword" CLASS="size_xs">Sword</A><BR><A HREF="?subtopic=highscores&list=axe" CLASS="size_xs">Axe</A><BR><A HREF="?subtopic=highscores&list=fist" CLASS="size_xs">Fist</A><BR><A HREF="?subtopic=highscores&list=fishing" CLASS="size_xs">Fishing</A><BR></TD></TR></TABLE></TD><TD><IMG SRC="'.$layout_name.'/images/blank.gif" WIDTH=10 HEIGHT=1 BORDER=0></TD></TR></TABLE>'; Desde ja, obrigado!
  5. Bom dia galera! Alguem sabe se tem algum editorde site que seja visual? Nao precisa ser foda, ja basta um simples so para fazer coisas simples e depois o resto seja feito em codigo mesmo.
  6. .Qual servidor ou website você utiliza como base? 8.60 tfs0.4 Qual o motivo deste tópico? Não consigo compilar no linux da sempre esse erro \/ Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
  7. @Mathwsz Então cara, assim não funcionaria pois ai isso iria gerar um "conflito", pois e se os players nao cair no mesmo lugar? Ta ai o pq de apenas uma alavanca, seria apenas 1 a usar dai seriam todos teleportados para o mesmo lugar que o script "escolheu".
  8. Salve salve galera, blz? Galera queria uma ajuda em um script de uma alavanca, queria que ele teleportasse todos os players que estiverem em uma determinada área... segue o script \/\/\/\/ local config = { [0] = {position = {x = 952, y = 1933, z = 14}, chance = 19}, --- sala demonio 1 [1] = {position = {x = 998, y = 1934, z = 14}, chance = 19}, --- sala demonio 2 [2] = {position = {x = 952, y = 1959, z = 14}, chance = 19}, --- sala demonio 3 [3] = {position = {x = 998, y = 1958, z = 14}, chance = 19}, --- sala demonio 4 [4] = {position = {x = 944, y = 1947, z = 13}, chance = 15}, --- inicio da sala primaria [5] = {position = {x = 1051, y = 1947, z = 14}, chance = 9} --- sala dos baus } local inicio = {x = 944, y = 1947, z = 13} function onUse(cid, item, fromPosition, itemEx, toPosition) for i = 0, #config do if checkArea(1011, 195, 13, 998, 1936, 13) then return doPlayerSendTextMessage(cid,22,"Voce nao teve muita sorte.") elseif(config[i].chance > math.random(1,100)) then doTeleportThing(cid, config[i].position) return doPlayerSendTextMessage(cid,22,"Voce foi teleportado para algum lugar.") end end end ele está funcionando porém so esta teleportando que puxa a alavanca...Podem me ajuda? Tks
  9. Ainda não funcionou, esta atacando porem nao da dano porque nao entra na condição do if
  10. Aeeeeew era isso mesmo que estava precisando VLEEEEEEEW Galera, acho que estou fazendo o codigo errado pois agora nao esta nem hitando, nem em player nem e monster... segue abaixo o codigo \/ local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLICE) function getSpellDamage(cid, weaponSkill, weaponAttack, attackStrength) if isMonster(getCreatureTarget(cid)) then local hit = 550 local damage = -(math.random(hit * 0.7, hit)) return damage, damage end setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "getSpellDamage") end function getSpellDamage(cid, weaponSkill, weaponAttack, attackStrength) if isPlayer(getCreatureTarget(cid)) then local hit = 550 local damage = -(math.random(hit * 10.7, hit)) return damage, damage end setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "getSpellDamage") end Podem me ajudar?? Obgd
  11. Galera, estou querendo acertar um item e queria saber qual função eu uso para comparar se o player esta atacando um monstro ou outro player. obs: Estou fazendo o script em weapons. Obgd Rep+
  12. Seria importa no caso, crie uma database no phpmyadmin e clique em importar na pagina e selecione a database desejada.
  13. Va na pasta do site e abra o arquivo latestnews.php, edite lá..
  14. Os nomes que puis ali sao ficticios, eu nao ia por oq uso..
  15. Sim é mysql..Entao thiagobji meu site esta em uma hospedagem e meu ot em um dedicado, entendeu?Ai o site nao consegue acessar a database na instalação para ficar online.
  16. Esse ae ja é o diretorio do meu server..ele esta em outra maquina.. na qual o ip é esse ae
  17. Galera eu contratei uma hospedagem e um dedicado e vou deixar o site na hospedagem, queria saber como faço para o site conseguir acessar a database..pois na hora de instalar o Gesior aparece o seguinte erro "Can't load file config.lua from 5.39.85.202/pbotserv/config.lua File doesn't exist in selected directory." Obrigado a quem puder ajuda REP++ vleww
  18. Ja vi esse ai @luanluciano93 , ele é muito simples..quero um completo, eu cheguei a por ele soque da erra na instalação... STEP 4 Add samples to DB: Error occured! Error ID: More info: Character Account Manager does not exist. Cannot install sample characters! File: /var/www/install.php Line: 538
  19. Alguem sabe se roda no server 8.60, TFS 0.4??? Obrigado
  20. Entao cara..nos players tbm tao assim, ta foda isso é chato..
  21. Sem explicações galera, vou manda uma print..OBS: eu to no god..mais isso nao muda em nada..pois meus players tambem ta assim..creio que seja na sources..podem me ajuda?
  22. Entao fica on direto...descobri que eles clonan com o ot online alguém sabe das possibilidades de clona quais os bugs que clonam rep mais

Informação Importante

Confirmação de Termo