Ir para conteúdo

Fabiano Alberto

Membro
  • Registro em

  • Última visita

  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. Fabiano Alberto alterou sua foto pessoal
  5. .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!
  6. 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.
  7. .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.
  8. Tulacala reagiu a uma resposta no tópico: Modificação no Script de Weapons
  9. @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".
  10. 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
  11. Ainda não funcionou, esta atacando porem nao da dano porque nao entra na condição do if
  12. 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
  13. 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+
  14. linhares894 reagiu a uma resposta no tópico: [Resolvido] {AJUDA}CLONER
  15. robi123 reagiu a uma resposta no tópico: [Pedido] Item que teleporta
  16. maarlonmjc reagiu a uma resposta no tópico: {URGENTE}Comando /attr bugado..
  17. Loko Pk reagiu a uma resposta no tópico: (Resolvido)Como Exportar DataBase?
  18. Seria importa no caso, crie uma database no phpmyadmin e clique em importar na pagina e selecione a database desejada.
  19. Va na pasta do site e abra o arquivo latestnews.php, edite lá..

Informação Importante

Confirmação de Termo