Ir para conteúdo

Absolute

Héroi
  • Registro em

  • Última visita

Tudo que Absolute postou

  1. Quando da erro no XML é erro de linha, adicione desta maneira, qual seu TFS?
  2. --- Criado por Absolute --- function onSay(cid, words, param) file = io.open('absolute.txt','r') notice = file:read(-1) doShowTextDialog(cid,7528,notice) file:close() end /\ noticieabs.lua da talkactions/scripts. Talkactions.xml: <talkaction words="!notice" script="noticeabs.lua"/> Na pasta principal do servidor onde fica o TFS etc, coloque um arquivo com o nome de absolute.txt e dentro coloque a noticia. Quando o player executar !notice irá ver o que você colocou escrito
  3. Troque por: <?php $cache_sec = 10; $info = array( 0 => array('Brazil', '15/07/2014') ); $id=0; if(isset($_POST['world'])) { $f = null; foreach($config['site']['worlds'] as $k => $v) if($v == $_POST['world']) { $f = true; $id = $k; break; } if(!$f) $_POST['world'] = $config['site']['worlds'][0]; } else $_POST['world'] = $config['site']['worlds'][0]; $order = 'name_asc'; if(isset($_REQUEST['order']) && in_array($_REQUEST['order'], array('name_desc', 'level_asc','level_desc','vocation_asc','vocation_desc'))) $order = $_REQUEST['order']; if(count($config['site']['worlds']) > 1) { $main_content = '<form action="?subtopic=whoisonline" method="post"> <div class="TableContainer"> <table class="Table1" cellpadding="0" cellspacing="0"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif)"></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif)"></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif)"></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif)"></span> <div class="Text">World Selection</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif)"></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif)"></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif)"></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif)"></span> </div> </div> <tr> <td> <div class="InnerTableContainer"> <table width="100%"> <tr> <td style="vertical-align:middle" class="LabelV150">World Name:</td> <td style="width:170px"> <select size="1" name="world" style="width:165px">'; foreach($config['site']['worlds'] as $v) $main_content .= '<option value="'.$v.'"'.($v == $_POST['world'] ? ' selected="selected"' : '').'>'.$v.'</option>'; $main_content .= ' </select> </td> <td style="text-align:left"> <div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)"> <div onmouseover="MouseOverBigButton(this)" onmouseout="MouseOutBigButton(this)"><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif)"></div> <input class="ButtonText" type="image" name="Submit" alt="Submit" src="'.$layout_name.'/images/buttons/_sbutton_submit.gif"/> </div> </div> </td> </tr> </table> </div> </td> </tr> </table> </div> </form><br/> '; } $main_content .= '<div class="TableContainer"> <table class="Table1" cellpadding="0" cellspacing="0"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif)"></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif)"></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif)"></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif)"></span> <div class="Text">World Information</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif)"></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif)"></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif)"></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif)"></span> </div> </div> <tr> <td> <div class="InnerTableContainer"> <table width="100%"> <tr> <td class="LabelV150">Status:</td> <td>Online</td> </tr> <tr> <td class="LabelV150">Players Online:</td> <td>'; $f = 'cache/whoisonline-'.$_POST['world'].'-'.$order.'.tmp'; $ff = 'cache/whoisonline-'.$_POST['world'].'-record.tmp'; if(file_exists($f) && filemtime($f) > (time() - $cache_sec)) { $cp = file_get_contents($f); $cached = null; if(file_exists($f) && filemtime($f) > (time() - $cache_sec)) { $e = explode('|', file_get_contents($ff)); $n = $e[0]; $c = $e[1]; $cached = true; } } else { $cp = ''; $n = 0; $q = 'SELECT name,level,vocation,promotion FROM players WHERE world_id='.$id.' AND online=1'; if(in_array($order, array('name_asc','name_desc','level_asc','level_desc'))) $q .= ' ORDER BY '.str_replace('_', ' ', $order); if(in_array($order, array('vocation_asc','vocation_desc'))) { $a = array(); $q .= ' ORDER BY level desc'; foreach($SQL->query($q)->fetchAll() as $p) $a[] = array($p['name'], $p['level'], $vocation_name[$id][$p['promotion']][$p['vocation']]); function cmp($a, $b) { return $a[2][0] == $b[2][0] ? 0 : $GLOBALS['order'] == 'vocation_asc' ? ($a[2][0] < $b[2][0] ? -1 : 1) : ($a[2][0] > $b[2][0] ? -1 : 1); } usort($a, 'cmp'); foreach($a as $p) { $n++; $cp .= '<tr class="'.(is_int($n/2)?'Even':'Odd').'" style="text-align:right"><td style="width:70%;text-align:left"><a href="?subtopic=characters&name='.urlencode($p[0]).'">'.$p[0].'</a></td><td style="width:10%">'.$p[1].'</td><td style="width:20%">'.str_replace(' ','*',$p[2]).'</td></tr>'; } } else { $l = array(); foreach($SQL->query($q)->fetchAll() as $p) { $n++; $cp .= '<tr class="'.(is_int($n/2)?'Even':'Odd').'" style="text-align:right"><td style="width:70%;text-align:left">'; if($order == 'name_asc') { $tmp = strtoupper($p['name'][0]); if(!in_array($tmp, $l)) { $l[] = $tmp; $cp .= '<a name="'.$tmp.'"></a>'; } } $cp .= '<a href="?subtopic=characters&name='.urlencode($p['name']).'">'.$p['name'].'</a></td><td style="width:10%">'.$p['level'].'</td><td style="width:20%">'.str_replace(' ','*',$vocation_name[$id][$p['promotion']][$p['vocation']]).'</td></tr>'; } } file_put_contents($f, $cp); } if(!$cached) { $r=$SQL->query('SELECT MAX(record) as r,MAX(timestamp) as t FROM server_record WHERE world_id='.$id)->fetch(); $c = $r['r'].' players (on '.date('M*d*Y,*H:i:s*T', $r['t']).')'; file_put_contents($ff, $n.'|'.$c); } $main_content .= $n.'</td> </tr> <tr> <td class="LabelV150">Online Record:</td> <td>'.$c.'</td> </tr> <tr> <td class="LabelV150">Creation Date:</td> <td>'.$info[$id][1].'</td> </tr> <tr> <td class="LabelV150">Location:</td> <td>'.$info[$id][0].'</td> </tr> <tr> <td class="LabelV150">PvP Type:</td> <td>'; $w=strtolower($config['server']['worldType']); if(in_array($w, array('pvp','2','normal','open','openpvp'))) $main_content .= 'Open PvP'; elseif(in_array($w, array('no-pvp','nopvp','non-pvp','nonpvp','1','safe','optional','optionalpvp'))) $main_content .= 'Optional PvP'; elseif(in_array($w, array('pvp-enforced','pvpenforced','pvp-enfo','pvpenfo','pvpe','enforced','enfo','3','war','hardcore','hardcorepvp'))) $main_content .= 'Hardcore PvP'; $main_content .= '</td> </tr> </table> </div> </td> </tr> </table> </div><br/> <div class="TableContainer"> <table class="Table2" cellpadding="0" cellspacing="0"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif)"></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif)"></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif)"></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif)"></span> <div class="Text">Players Online'; if($order == 'name_asc') $main_content .= '<span class="TableHeadlineNavigation"> [ <a href="#A">A</a> <a href="#B">B</a> <a href="#C">C</a> <a href="#D">D</a> <a href="#E">E</a> <a href="#F">F</a> <a href="#G">G</a> <a href="#H">H</a> <a href="#I">I</a> <a href="#J">J</a> <a href="#K">K</a> <a href="#L">L</a> <a href="#M">M</a> <a href="#N">N</a> <a href="#O">O</a> <a href="#P">P</a> <a href="#Q">Q</a> <a href="#R">R</a> <a href="#S">S</a> <a href="#T">T</a> <a href="#U">U</a> <a href="#V">V</a> <a href="#W">W</a> <a href="#X">X</a> <a href="#Y">Y</a> <a href="#Z">Z</a> ]**</span>'; $main_content .= '</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif)"></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif)"></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif)"></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif)"></span> </div> </div> <tr> <td> <div class="InnerTableContainer"> <table width="100%"><tr class="LabelH"><td style="text-align:left;width:90%">Name**<small style="font-weight:normal">[<a href="?subtopic=whoisonline&world='.$_POST['world'].'&order=name_'.($order == 'name_asc' ? 'desc' : 'asc').'">sort</a>]</small> <img class="sortarrow" src="'.$layout_name.'/images/'.($order == 'name_asc' ? 'content/order_desc' : ($order == 'name_desc' ? 'content/order_asc' : 'news/blank')).'.gif"/></td><td>Level**<small style="font-weight:normal">[<a href="?subtopic=whoisonline&world='.$_POST['world'].'&order=level_'.($order == 'level_asc' ? 'desc' : 'asc').'">sort</a>]</small> <img class="sortarrow" src="'.$layout_name.'/images/'.($order == 'level_asc' ? 'content/order_desc' : ($order == 'level_desc' ? 'content/order_asc' : 'news/blank')).'.gif"/></td><td>Vocation**<small style="font-weight:normal">[<a href="?subtopic=whoisonline&world='.$_POST['world'].'&order=vocation_'.($order == 'vocation_asc' ? 'desc' : 'asc').'">sort</a>]</small> <img class="sortarrow" src="'.$layout_name.'/images/'.($order == 'vocation_asc' ? 'content/order_desc' : ($order == 'vocation_desc' ? 'content/order_asc' : 'news/blank')).'.gif"/></td></tr>'.$cp.' </table> </div> </table></div></td></tr><br/><form action="?subtopic=characters" method="post"><div class="TableContainer"> <table class="Table1" cellpadding="0" cellspacing="0"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif)"></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif)"></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif)"></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif)"></span> <div class="Text">Search Character</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif)"></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif)"></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif)"></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif)"></span> </div> </div> <tr> <td> <div class="InnerTableContainer"> <table width="100%"><tr><td style="vertical-align:middle" class="LabelV150">Character Name:</td><td style="width:170px"><input style="width:165px" name="name" value="" size="29" maxlength="29"/></td><td><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)"><div onmouseover="MouseOverBigButton(this)" onmouseout="MouseOutBigButton(this)"><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif)"></div><input class="ButtonText" type="image" name="Submit" alt="Submit" src="'.$layout_name.'/images/buttons/_sbutton_submit.gif"></div></div></td></tr> </table> </div> </table></div></td></tr></form></center>'; ?>
  4. Linux? Se for você tem que dar permissão no arquivo serverstatus, caso contrário poste seu whoisonline.php que dou um jeitinho Brasileiro rs.
  5. Qual modelo do seu Roteador?
  6. Absolute postou uma resposta no tópico em Recursos e ferramentas de Design
    LUKI ABSOLUTE ME CONVOCOU AQUI LINDO VLW KKKK, Com certeza o solicitante vai amar u.u
  7. Acesse seu o navegador pelo gateway e siga os passos.
  8. Tente assim: local cfg = { bless = { 1, 2, 3, 4, 5 }, cost = 50000 } function onSay(cid, words, param, channel) for i = 1, table.maxn(cfg.bless) do if(getPlayerBlessing(cid, cfg.bless)) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doCreatureSay(cid, "You have already been blessed.", TALKTYPE_ORANGE_1) return true end end if (getPlayerMoney(cid) < cfg.cost) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doSendAnimatedText(getCreaturePosition(cid), "$$$", TEXTCOLOR_WHITE) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You do not have enough money.") elseif(doPlayerRemoveMoney(cid, cfg.cost) == TRUE) then for i = 1, table.maxn(cfg.bless) do doPlayerAddBlessing(cid, cfg.bless) end doSendDistanceShoot(pos, {x = pos.x + x * i, y = pos.y + y * i, z = pos.z}, 28) doSendMagicEffect({x = pos.x + x * 6, y = pos.y + y * 6, z = pos.z}, CONST_ME_FIREAREA) doSendAnimatedText(getCreaturePosition(cid), "BLESSED!", TEXTCOLOR_RED) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have been blessed by the gods.") end return true end
  9. Perfeito, qualquer erro atualize me avisando!
  10. Ai tu vai em criar nova database e nela clica em Importar e pronto.
  11. Não é possível brother, crie uma nova coluna e importe, vai dar conflito MYSQL
  12. Absolute postou uma resposta no tópico em Recursos e ferramentas de Design
    Vou achar pra ti @Edit Download PS5 4Shared: http://www.4shared.com/rar/nNhXbgAM/Photoshop_CS5_Portatil_By_Guil.html
  13. Ninguém está discutindo, estamos debatendo qual Linux melhor para ajuda-lo, e em minha opinião é o Debian, já que você fugiu do assunto tudo bem, e só pra constar, se for recomendar recomenda ubuntU porque ubuntO não existe. Abraços.
  14. Óbvio que muda as libs rs, todos turiais de open tibia pedem pra adicionar as novas libs na source list. Se é feito porque recomendar?
  15. Absolute postou uma resposta no tópico em Recursos e ferramentas de Design
    AEUHUEHAUHEA sim, mt zuado?
  16. Absolute postou uma resposta no tópico em Recursos e ferramentas de Design
    Se servir cara, não sou poh* nenhuma de designer, mas tentei +- AUEHAUEHAUEAEHA
  17. Absolute postou uma resposta no tópico em Recursos e ferramentas de Design
    Sem erro Brother, vou tentar fazer aqui não manjo mt mas vamos ver no que dá AUEHAUEHAUHEA Logo e o escrito?
  18. Iniciantes? Que eu saiba Ubuntu e Debian são exatamente os mesmos comandos, muda só no Centos, Fedora, ex o yum pelo apt e tudo mais Debian é uma versão "comprimida" do ubuntu.
  19. Vai no seu phpmyadmin e execute no sql: INSERT INTO `z_news_tickers` (`date`, `author`, `image_id`, `text`, `hide_ticker`) VALUES (1274867862, 1, 1, 'Absolute é uma Delicia!', 0); @Erro: Isso ocorre porque está sem news ticker.
  20. Absolute postou uma resposta no tópico em Recursos e ferramentas de Design
    O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de OTServ Geral" Para: "Diversos → Gráficos → Suporte Gráficos"
  21. Brother, no caso é só trocar e por: setCreatureMaxMana(cid, getCreatureMaxMana(cid) + 200) Trocar as funções como ai MaxMana CreatureMaxMana Health por Mana, no caso a adição de mana tem o nome MANA com as mesmas funções.
  22. Absolute postou uma resposta no tópico em Playground (Off-topic)
    Questão de calculo: Havia um demente no Playground, chegou outro quantos ficam?
  23. Cara, sem dúvida alguma o 1.0, os tfs antigos 0.3.6, 0.4 e companhia estão com diversos erros que não foram atualizados/arrumados. O 1.0 não apresenta bugs, porém me parece uma nova plataforma totalmente diferente, são novas funções e tudo mais, porém bem legal aprender hehe.
  24. Olá linduxos do TK, trago hoje um script que venho modificando, é um script talkaction de comprar vida, ideal para servidores baiaks, exp alta e tudo mais. Com um simples comando seus jogadores poderão comprar vida. O dinheiro é removido ao usar o comando e é adicionado no mesmo momento vida ao char Vamos ao que interessa, em data/talkactions/talkactions.xml adicione a seguinte linha: <talkaction words="!comprarvida" event="script" value="comprarvida.lua"/> Pós adicionar a linha, vá em data/talkactions/scripts e crie um arquivo com o nome de comprarvida.lua e adicione o seguinte: function onSay(cid, words, param) if doPlayerRemoveItem(cid,2160,50) and getCreatureMaxHealth(cid) <= 2107735400 then setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) + 200) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MORTAREA) doPlayerPopupFYI(cid, "voce recebeu 200 de life por 500k.") else doPlayerPopupFYI(cid, "Voce nao tem 500k ou ja atingiu o limite máximo de vida.") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FLAMEAREA) end return TRUE end Configuração a seu gosto/servidor: if doPlayerRemoveItem(cid,2160,50) = 2160 é o número do item, no caso aí está por gold (crystal coins) ; ,50 = quantia de crystal coins que irá custar. Caso deseja fazer por um item vip, uma moeda vip algo específico coloque em 2160 o id do item, exemplo: 5985,QUANTIA. no caso 1. setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) + 200) = +200 é o tanto de vida que o personagem irá ganhar ao comprar. <= 2107735400 then = Máximo de vida que o player pode ter, no caso este número é o tanto que o client do tibia suporta (todos os servidores) As mensagens são visíveis e poderão ser editadas. doPlayerPopupFYI(cid = as magias irão aparecer em janelas para fechar, caso queira que apareça no Default substitua a parte por: doPlayerSendTextMessage(cid . Creditos: Absolute Subwat Caso haja alguma dúvida/crítica/elogio, comente! Espero ver vários servidores usando Absolute.

Informação Importante

Confirmação de Termo