-
Vodkart reagiu a uma resposta no tópico: [NPC] Fixando BUG de o NPC comprar itens equipados nos slots(corpo)!
-
Trade Offline V2.0
[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
-
[NPC] Fixando BUG de o NPC comprar itens equipados nos slots(corpo)!
https://pastebin.com/cpH7UnJi Vai perceber que fiz umas alterações e o erro parou e o npc a principio esta funcionando normalmente.
-
[NPC] Fixando BUG de o NPC comprar itens equipados nos slots(corpo)!
Boa tarde! Coloquei no meu servidor e esta dando esse erro:
-
Fabiano Alberto alterou sua foto pessoal
-
(GESIOR) PAGINA HIGHSCORES COM OPÇÃO DE VER TOP POR VOCAÇÃO
.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!
-
Editor site Visual
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.
-
-
ERRO COMPILAR TFS 0.4 LINUX UBUNTU 20.04
.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.
-
-
Fabiano Alberto reagiu a uma resposta no tópico: [AJUDA REP++]ALAVANCA QUE TELEPORTA TODOS OS PLAYERS QUE ESTIVE EM UMA SALA...
-
[AJUDA REP++]ALAVANCA QUE TELEPORTA TODOS OS PLAYERS QUE ESTIVE EM UMA SALA...
@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".
-
[AJUDA REP++]ALAVANCA QUE TELEPORTA TODOS OS PLAYERS QUE ESTIVE EM UMA SALA...
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
-
[HELP ME +REP] Função para comparar se o player ta atacando monstro ou outro player
Deu na mesma ;S
-
[HELP ME +REP] Função para comparar se o player ta atacando monstro ou outro player
Ainda não funcionou, esta atacando porem nao da dano porque nao entra na condição do if
-
Fabiano Alberto reagiu a uma resposta no tópico: [HELP ME +REP] Função para comparar se o player ta atacando monstro ou outro player
-
Fabiano Alberto reagiu a uma resposta no tópico: [HELP ME +REP] Função para comparar se o player ta atacando monstro ou outro player
-
[HELP ME +REP] Função para comparar se o player ta atacando monstro ou outro player
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
-
[HELP ME +REP] Função para comparar se o player ta atacando monstro ou outro player
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+
-
-
-
AndreAzevedo reagiu a uma resposta no tópico: [Resolvido] {AJUDA} Adicionando novos itens com sprites proprias...
- [DUVIDA BASICA] Como iniciar o server 10.x em linux apos ter compilado?
-
-
-
-
(Resolvido)Como Exportar DataBase?
Seria importa no caso, crie uma database no phpmyadmin e clique em importar na pagina e selecione a database desejada.
-
[AJUDA] Alterar dados no Featured Article
Va na pasta do site e abra o arquivo latestnews.php, edite lá..