Ir para conteúdo

Tricoder

Héroi
  • Registro em

  • Última visita

Tudo que Tricoder postou

  1. Tricoder postou uma resposta no tópico em Mapas de Tibia
    Categoria: Mapa. Versão: 10.x Créditos: Jeffro Tópico: Larissa Azhaurn Download: BrickHouses TibiaKing.com.rar Scan: VirusTotal
  2. No caso, os monstros que usarão essas magias e não os players?
  3. Tu tem o sistema de rep? Talvez seja isso também. Se tiver, vá em \data\creaturescripts\scripts e remova.
  4. local config = { removeItem = "yes", strInName = "[TOP] ", vipStorage = COLOCA A STORAGE, vipDays = DIAS DE VIP } config.removeItem = getBooleanFromString(config.removeItem) function onUse(cid, item, fromPosition, itemEx, toPosition) if getCreatureName(cid):find(config.strInName) then return doPlayerSendCancel(cid, "Sorry, not possible.") end local name, guid = getCreatureName(cid), getPlayerGUID(cid) doRemoveItem(item.uid, config.removeItem and 1 or 0) setPlayerStorageValue(cid, config.vipStorage, (config.vipDays*24*60*60) + os.time()) doRemoveCreature(cid) db.query("UPDATE `players` SET `name` = '"..config.strInName..""..name.."' WHERE `id` = "..guid..";") return true end
  5. <?xml version="1.0" encoding="UTF-8"?> <mod name="Buy premium command" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="no"> <config name="buypremium_config"><![CDATA[ config = { days = 7, ------- QUANTIDADE DE DIAS QUE SERAO COMPRADOS item = 2500, ------ ID DO ITEM cost = 150, ------ QUANTIDADE NECESSARIA DO ITEM maxDays = 360 ----- MAXIMO DE DIAS QUE PODE COMPRAR DE PA } ]]></config> <talkaction words="!buypremium; !pacc" event="buffer"><![CDATA[ domodlib('buypremium_config') if(getPlayerPremiumDays(cid) > config.maxDays) then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You can not buy more than " .. config.days + config.maxDays .. " days of Premium Account.") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return end if(not doPlayerRemoveItem(cid, config.item, config.cost)) then doPlayerSendCancel(cid, "You don't have enough money, " .. config.days .. " days premium account costs " .. config.cost .. " gold coins.") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return end doPlayerAddPremiumDays(cid, config.days) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have bought " .. config.days .. " days of premium account.") ]]></talkaction> </mod> Está explicado no script.
  6. Juntar dois tibia.spr? Creio que não, pelo menos nunca ouvi falar sobre.
  7. Você deve colocar a porta gate of experience e alterar o valor do actionID. O actionID é de acordo com o level. Exemplo: Level 1 = 1001 Level 10 = 1010 Level 100 = 1100 Level 250 = 1250 Level 500 = 1500, e assim vai...
  8. Não entendi, ao baixar veio a pasta schemas ou não?
  9. Tricoder postou uma resposta no tópico em Tutoriais Websites
    Informações Add change log (Precisa de Admin acess) Delete change log (Precisa de Admin acess) View change log (ID, Type, Where, Date, Description) Tutorial Em htdocs, crie uma pasta chamada changelog Baixe o arquivo: changelog.rar - Scan: VirusTotal Coloque as imagens baixadas na pasta que você criou. Adicione isso na sua database: CREATE TABLE IF NOT EXISTS `z_changelog` ( `id` int(11) NOT NULL auto_increment, `type` varchar(255) NOT NULL default '', `where` varchar(255) NOT NULL default '', `date` int(11) NOT NULL default '0', `description` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ; Agora vamos criar o arquivo changelog.php: <?PHP $page = $_REQUEST['page']; $action = $_REQUEST['action']; $id = $_REQUEST['id']; $limit = 30; $offset = $page * $limit; $change_data = $SQL->query('SELECT * FROM z_changelog ORDER BY id DESC LIMIT '.$limit.' OFFSET '.$offset.''); $change_data1 = $SQL->query('SELECT * FROM z_changelog'); $change = 0; $change1 = 0; if($group_id_of_acc_logged >= $config['site']['access_admin_panel']) { $description = trim($_POST['description']); $where = trim($_POST['where']); $type = trim($_POST['type']); if (!empty($action) AND !empty($id)) { $select = $SQL->query('SELECT * FROM z_changelog WHERE date = '.$id.'')->fetch(); $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" >Change log removed</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 style="width:100%;" ><table border=0 cellspacing=1 cellpadding=4 width=100%><tr bgcolor="#505050"><td width="1%"><font class=white>ID</font></td><td width="21"><font class=white>Type</font></td><td width="21"><font class=white>Where</font></td><td width="50"><font class=white>Date</font></td><td><font class=white>Description</font></td></tr> <tr bgcolor="#F1E0C6"><td align="center">'.$select['id'].'.</td><td align="center"><img src="changelog/'.$select['type'].'.png" title="added"/></td><td align="center"><img src="changelog/'.$select['where'].'.png" title="ots"/><td>'.date("j.m.Y",$select['date']).'</td><td>'.$select['description'].'</td></tr> '; $main_content .= '</td></tr> </table> </div> </table></div></td></tr><br/><center><table border="0" cellspacing="0" cellpadding="0" ><form action="index.php?subtopic=changelog" method="post" ><tr><td style="border:0px;" ><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="Back" alt="Back" src="'.$layout_name.'/images/buttons/_sbutton_back.gif" ></div></div></td></tr></form></table></center>'; $SQL->query('DELETE FROM z_changelog WHERE date = '.$id.''); } if(empty($description) AND empty($where) AND empty($type)) { $main_content .= '<form action="index.php?subtopic=changelog" 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" >Add Changelog</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 style="width:100%;" > <tr> <td class="LabelV" ><span >Type:</span></td> <td style="width:90%;" > <SELECT NAME=type> <OPTION>Add</OPTION> <OPTION>Remove</OPTION> </SELECT> </td> </tr> <tr> <td class="LabelV" ><span >Where:</span></td> <td style="width:90%;" > <SELECT NAME=where> <OPTION>Server</OPTION> <OPTION>Website</OPTION> </SELECT> </td> </tr> <tr> <td class="LabelV" ><span >Description:</span></td> <td style="width:90%;" > <textarea type="text" name="description" size="50" maxlength="150" rows="5" cols="60"></textarea> </td> </tr> </table> </div> </table></div></td></tr><br/><table style="width:100%;" ><tr align="center"><td><table border="0" cellspacing="0" cellpadding="0" ><tr><td style="border:0px;" ><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></form></table></td><td><table border="0" cellspacing="0" cellpadding="0" ><form action="index.php?subtopic=changelog" method="post" ><tr><td style="border:0px;" ><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="Back" alt="Back" src="'.$layout_name.'/images/buttons/_sbutton_back.gif" ></div></div></td></tr></form></table></td></tr></table>'; } else { if(empty($description)){ $show_msgs[] = "Description field is empty!."; } if(!empty($show_msgs)){ //show 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($show_msgs as $show_msg) { $main_content .= '<li>'.$show_msg; } $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/>'; //show form $main_content .= '<form action="index.php?subtopic=changelog" 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" >Add Changelog</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 style="width:100%;" > <tr> <td class="LabelV" ><span >Type:</span></td> <td style="width:90%;" > <SELECT NAME=type> <OPTION>Add</OPTION> <OPTION>Remove</OPTION> </SELECT> </td> </tr> <tr> <td class="LabelV" ><span >Where:</span></td> <td style="width:90%;" > <SELECT NAME=where> <OPTION>Server</OPTION> <OPTION>Website</OPTION> </SELECT> </td> </tr> <tr> <td class="LabelV" ><span >Description:</span></td> <td style="width:90%;" > <textarea type="text" name="description" size="50" maxlength="150" rows="10" cols="60"></textarea> </td> </tr> </table> </div> </table></div></td></tr><br/><table style="width:100%;" ><tr align="center"><td><table border="0" cellspacing="0" cellpadding="0" ><tr><td style="border:0px;" ><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></form></table></td><td><table border="0" cellspacing="0" cellpadding="0" ><form action="index.php?subtopic=changelog" method="post" ><tr><td style="border:0px;" ><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="Back" alt="Back" src="'.$layout_name.'/images/buttons/_sbutton_back.gif" ></div></div></td></tr></form></table></td></tr></table>'; } else { $SQL->query('INSERT INTO `z_changelog` (`id`,`type`, `where`,`date`, `description`) VALUES (NULL, "'.$type.'", "'.$where.'", '.time().', "'.$description.'");'); $id = $SQL->query('SELECT * FROM z_changelog WHERE `description` = "'.$description.'";')->fetch(); $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" >Change log added</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 style="width:100%;" ><table border=0 cellspacing=1 cellpadding=4 width=100%><tr bgcolor="#505050"><td width="1%"><font class=white>ID</font></td><td width="21"><font class=white>Type</font></td><td width="21"><font class=white>Where</font></td><td width="50"><font class=white>Date</font></td><td><font class=white>Description</font></td></tr> <tr bgcolor="#F1E0C6"><td align="center">'.$id['id'].'.</td><td align="center"><img src="changelog/'.$type.'.png" title="added"/></td><td align="center"><img src="changelog/'.$where.'.png" title="ots"/><td>'.date("j.m.Y",$id['date']).'</td><td>'.$description.'</td></tr> '; $main_content .= '</td></tr> </table> </div> </table></div></td></tr><br/><center><table border="0" cellspacing="0" cellpadding="0" ><form action="index.php?subtopic=changelog" method="post" ><tr><td style="border:0px;" ><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="Back" alt="Back" src="'.$layout_name.'/images/buttons/_sbutton_back.gif" ></div></div></td></tr></form></table></center>'; } } } foreach($change_data1 as $log) { $change1++; } foreach($change_data as $log) { $change++; if(is_int($change / 2)) $bgcolor = $config['site']['darkborder']; else $bgcolor = $config['site']['lightborder']; $change_rows .= ' <tr bgcolor="'.$bgcolor.'"><td align="center">'.$log['id'].'.</td><td align="center"><img src="changelog/'.$log['type'].'.png" title="added"/></td><td align="center"><img src="changelog/'.$log['where'].'.png" title="ots"/><td>'.date("j.m.Y",$log['date']).'</td><td>'.$log['description'].''; if($group_id_of_acc_logged >= $config['site']['access_admin_panel']) { $change_rows .= '<a href="index.php?subtopic=changelog&action=delete&id='.$log['date'].'"><img src="'.$layout_name.'/images/news/delete.png" border="0"></a>'; } $change_rows .= '</td></tr>'; if ($change < $limit) { } else $show_link_to_next_page = TRUE; } if($change == 0) { $main_content .= '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR="'.$config['site']['vdarkborder'].'"><TD CLASS=white><B>Server Status</B></TD></TR><TR BGCOLOR='.$config['site']['darkborder'].'><TD><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1><TR><TD>There is no change logs for the moment.</TD></TR></TABLE></TD></TR></TABLE><BR>'; } else { $main_content .= '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR="'.$config['site']['vdarkborder'].'"><TD CLASS=white><B>Change logs</B></TD></TR><TR BGCOLOR='.$config['site']['darkborder'].'><TD><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1><TR><TD>Currently '.$change1.' change logs in total.</TD></TR></TABLE></TD></TR></TABLE><BR>'; $main_content .= '<table border=0 cellspacing=1 cellpadding=4 width=100%><tr bgcolor="#505050"><td width="1%"><font class=white>ID</font></td><td width="21"><font class=white>Type</font></td><td width="21"><font class=white>Where</font></td><td width="50"><font class=white>Date</font></td><td><font class=white>Description</font></td></tr>'.$change_rows.'</table>'; if($page > 0) { $main_content .= '<TR><TD WIDTH=100% ALIGN=right VALIGN=bottom><A HREF="index.php?subtopic=changelog&page='.($page - 1).'" CLASS="size_xxs">Previous Page</A></TD></TR>'; } if($show_link_to_next_page) { $main_content .= ' | <TR><TD WIDTH=100% ALIGN=right VALIGN=bottom><A HREF="index.php?subtopic=changelog&page='.($page + 1).'" CLASS="size_xxs">Next Page</A></TD></TR>'; } } ?> Agora em index.php, adicione: case "changelog"; $topic = "Changelogs"; $subtopic = "changelog"; include("changelog.php"); break; Créditos: Pitufo
  10. Tutorial Baixe o arquivo: Begin page.rar - Scan: VirusTotal Coloque os arquivos na pasta htdocs ou www Crie uma pasta com o nome example Coloque nessa pasta todos os arquivos do seu website Agora abra o index.php, procure por http://helzera.net/?subtopic=latestnews e mude para http://seuip/example/ Depois procure por isso: E faça as alterações. Créditos: Frostie
  11. Tricoder postou uma resposta no tópico em Websites
    Download: zivera.rar Scan: VirusTotal
  12. Tricoder postou uma resposta no tópico em Suporte Tibia OTServer
    Quando abre o .exe aparece lá no inicio
  13. Tricoder postou uma resposta no tópico em Suporte Tibia OTServer
    Qual seu TFS?
  14. Tricoder postou uma resposta no tópico em Suporte Tibia OTServer
    Já tentou esse? \data\creaturescripts\scripts\login.lua registerCreatureEvent(cid, "redSkullAmulet") \data\creaturescripts\creaturescripts.xml <event type="death" name="redSkullAmulet" event="script" value="redamulet.lua"/> \data\creaturescripts\scripts\redamulet.lua function onDeath(cid, corpse, deathList) local ID_ITEM = 0 if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == ID_ITEM) and (getCreatureSkullType(cid) == SKULL_RED or getCreatureSkullType(cid) == SKULL_BLACK) then doPlayerRemoveItem(cid, ID_ITEM, 1) doCreatureSetDropLoot(cid, false) end return true end Mude o ID_ITEM para o ID do amulet
  15. Tutorial Crie um arquivo chamado lottery.php e coloque: <?PHP $main_content .= '<center><h1>Lottery</h1><h3>Lotterys held at 9:00, 14:00, 19:00 and 24:00 hour, polish time.</h3></center><br><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><tr BGCOLOR="'.$config['site']['vdarkborder'].'"><td CLASS=white><center><b>Player Name</b></center></td><td CLASS=white width=184 colspan=2><center><b>Winning Item</b></center></td><td width=100 CLASS=white><center><b>World</b></center></td></tr>'; $lottery = $SQL->query('SELECT id, name, item, world_id FROM lottery WHERE world_id = 0 ORDER BY id DESC;'); foreach($lottery as $result) { $players++; if(is_int($players / 2)) $bgcolor = $config['site']['lightborder']; else $bgcolor = $config['site']['darkborder']; $main_content .= '<TR BGCOLOR='.$bgcolor.'><TD WIDTH=35%><center><a href="?subtopic=characters&name='.urlencode($result['name']).'">'.$result['name'].'</a></center></td><TD WIDTH=5%><img src=\'/images/'.urlencode($result['item']).'.gif\'></td><TD WIDTH=30%><b>'.$result['item'].'</b></td><TD WIDTH=30%><center>NOME DO SEU SERVIDOR</center></td></tr>'; } $main_content .= '</table>'; ?> Agora abra index.php e procure por: case "latestnews": $topic = "Latest News"; $subtopic = "latestnews"; include("latestnews.php"); break; E em cima, coloque: case "lottery"; $subtopic = "lottery"; $topic = "Lottery"; include("lottery.php"); break; Créditos: Meferot
  16. Tricoder postou uma resposta no tópico em Websites
    Tutorial Baixe: shopsystem v.1.1.rar Scan: VirusTotal Pasta de imagens coloque em /www/ config_shop.php coloque em /www/config/ shopsystem.php coloque em /www/pages/ Créditos: nevix
  17. Abra o arquivo index.php e depois de: include 'layout/overall/header.php'; Coloque: // Front page server information box by Raggaer. Improved by Znote. (Using cache system and Znote SQL functions) // Create a cache system $infoCache = new Cache('engine/cache/serverInfo'); $infoCache->setExpiration(60); // This will be a short cache (60 seconds) if ($infoCache->hasExpired()) { // Fetch data from database $data = array( 'newPlayer' => mysql_select_single("SELECT `name` FROM `players` ORDER BY `id` DESC LIMIT 1"), 'bestPlayer' => mysql_select_single("SELECT `name`, `level` FROM `players` ORDER BY `experience` DESC LIMIT 1"), 'playerCount' => mysql_select_single("SELECT COUNT(`id`) as `count` FROM `players`"), 'accountCount' => mysql_select_single("SELECT COUNT(`id`) as `count` FROM `accounts`"), 'guildCount' => mysql_select_single("SELECT COUNT(`id`) as `count` FROM `guilds`") ); // Initiate default values where needed if ($data['playerCount'] !== false && $data['playerCount']['count'] > 0) $data['playerCount'] = $data['playerCount']['count']; else $data['playerCount'] = 0; if ($data['accountCount'] !== false && $data['accountCount']['count'] > 0) $data['accountCount'] = $data['accountCount']['count']; else $data['accountCount'] = 0; if ($data['guildCount'] !== false && $data['guildCount']['count'] > 0) $data['guildCount'] = $data['guildCount']['count']; else $data['guildCount'] = 0; // Store data to cache $infoCache->setContent($data); $infoCache->save(); } else { // Load data from cache $data = $infoCache->load(); } ?> <!-- Render HTML for server information --> <table border="0" cellspacing="0"> <tr class="yellow"> <td><center>Server Information</center></td> </tr> <tr> <td> <center>Welcome to our newest player: <a href="characterprofile.php?name=<?php echo $data['newPlayer']['name']; ?>"> <?php echo $data['newPlayer']['name']; ?> </a> </center> </td> </tr> <tr> <td> <center>The best player is: <a href="characterprofile.php?name=<?php echo $data['bestPlayer']['name']; ?>"> <?php echo $data['bestPlayer']['name']; ?> </a> level: <?php echo $data['bestPlayer']['level']; ?> congratulations! </center> </td> </tr> <tr> <td> <center>We have <b><?php echo $data['accountCount']; ?></b> accounts in our database, <b><?php echo $data['playerCount']; ?></b> players, and <b><?php echo $data['guildCount']; ?></b> guilds </center> </td> </tr> </table> Créditos: Znote
  18. VERSÃO: 8.60 OU INFERIOR. Tutorial Baixe: Desktop.rar - Scan: VirusTotal Mova os arquivos highscores.php e high.css para a pasta znote. Abra o arquivo engine/function/general.php e procure por: online Substitua o online_list, por: function online_list() { $count = user_count_online(); $query = mysql_query("SELECT `name`, `level`, `vocation`, `lookfeet`, `lookhead`, `looklegs`, `lookbody`, `looktype`, `lookaddons` FROM `players` WHERE `online`='1' ORDER BY `name` DESC;"); for ($i = 0; $i < $count; $i++) { $row = mysql_fetch_row($query); $array[] = $row; } if (isset($array)) { return $array; } else { return false; } } Créditos: Raggaer
  19. Screenshot Instalando Coloque onde você quiser no characterprofile.php; <?php /*/ / Znote AAC 1.4+ detailed character info (HP, MP, lvL, Exp, skills) / HTML code based on code from Gesior /*/ $tableWidth = 540; if ($config['TFSVersion'] != 'TFS_10') { $playerData = mysql_select_multi("SELECT `value` FROM `player_skills` WHERE `player_id`='$user_id' LIMIT 7;"); $playerData['fist'] = $playerData[0]['value']; unset($playerData[0]); $playerData['club'] = $playerData[1]['value']; unset($playerData[1]); $playerData['sword'] = $playerData[2]['value']; unset($playerData[2]); $playerData['axe'] = $playerData[3]['value']; unset($playerData[3]); $playerData['dist'] = $playerData[4]['value']; unset($playerData[4]); $playerData['shield'] = $playerData[5]['value']; unset($playerData[5]); $playerData['fish'] = $playerData[6]['value']; unset($playerData[6]); $player = mysql_select_single("SELECT `health`, `healthmax`, `mana`, `manamax`, `experience`, `maglevel`, `level` FROM `players` WHERE `id`='$user_id' LIMIT 1;"); $playerData['magic'] = $player['maglevel']; $playerData['exp'] = array( 'now' => $player['experience'], 'next' => (int)(level_to_experience($player['level']+1) - $player['experience']), 'percent' => (int)(($player['experience'] - level_to_experience($player['level'])) / (level_to_experience($player['level']+1) - $player['experience']) * 100) ); $playerData['health'] = array( 'now' => $player['health'], 'max' => $player['healthmax'], 'percent' => (int)($player['health'] / $player['healthmax'] * 100), ); $playerData['mana'] = array( 'now' => $player['mana'], 'max' => $player['manamax'], 'percent' => (int)($player['mana'] / $player['manamax'] * 100), ); } else { $player = mysql_select_single("SELECT `health`, `healthmax`, `mana`, `manamax`, `experience`, `skill_fist`, `skill_club`, `skill_sword`, `skill_axe`, `skill_dist`, `skill_shielding`, `skill_fishing`, `maglevel`, `level` FROM `players` WHERE `id`='$user_id' LIMIT 1;"); $playerData = array( 'fist' => $player['skill_fist'], 'club' => $player['skill_club'], 'sword' => $player['skill_sword'], 'axe' => $player['skill_axe'], 'dist' => $player['skill_dist'], 'shield' => $player['skill_shielding'], 'fish' => $player['skill_fishing'], 'magic' => $player['maglevel'], 'exp' => array( 'now' => $player['experience'], 'next' => (int)(level_to_experience($player['level']+1) - $player['experience']), 'percent' => (int)(($player['experience'] - level_to_experience($player['level'])) / (level_to_experience($player['level']+1) - $player['experience']) * 100) ), 'health' => array( 'now' => $player['health'], 'max' => $player['healthmax'], 'percent' => (int)($player['health'] / $player['healthmax'] * 100), ), 'mana' => array( 'now' => $player['mana'], 'max' => $player['manamax'], 'percent' => (int)($player['mana'] / $player['manamax'] * 100), ) ); } // Incase they have more health/mana than they should due to equipment bonus etc if ($playerData['exp']['percent'] > 100) $playerData['exp']['percent'] = 100; if ($playerData['health']['percent'] > 100) $playerData['health']['percent'] = 100; if ($playerData['mana']['percent'] > 100) $playerData['mana']['percent'] = 100; //data_dump($playerData, false, "Player Data"); ?> <!-- PLAYER SKILLS TABLE --> <table cellspacing="1" cellpadding="4" style="width: <?php echo $tableWidth; ?>px;"> <tr class="yellow"> <th>Fist</th> <th>Club</th> <th>Sword</th> <th>Axe</th> <th>Dist</th> <th>Shield</th> <th>Fish</th> <th>Magic</th> </tr> <tr> <td bgcolor="#D4C0A1" align="left"> <?php echo $playerData['fist']; ?> </td> <td bgcolor="#D4C0A1" align="left"> <?php echo $playerData['club']; ?> </td> <td bgcolor="#D4C0A1" align="left"> <?php echo $playerData['sword']; ?> </td> <td bgcolor="#D4C0A1" align="left"> <?php echo $playerData['axe']; ?> </td> <td bgcolor="#D4C0A1" align="left"> <?php echo $playerData['dist']; ?> </td> <td bgcolor="#D4C0A1" align="left"> <?php echo $playerData['shield']; ?> </td> <td bgcolor="#D4C0A1" align="left"> <?php echo $playerData['fish']; ?> </td> <td bgcolor="#D4C0A1" align="left"> <?php echo $playerData['magic']; ?> </td> </tr> </table> <!-- PLAYER INFO TABLE --> <table cellspacing="1" cellpadding="4" style="width: <?php echo $tableWidth; ?>px;"> <tr> <td bgcolor="#F1E0C6" align="left" width="20%"> <b>Player HP:</b> </td> <td bgcolor="#F1E0C6" align="left"> <?php echo $playerData['health']['now'].'/'.$playerData['health']['max']; ?> <div style="width: 100%; height: 3px; border: 1px solid #000;"> <div style="background: red; width: <?php echo $playerData['health']['percent']; ?>%; height: 3px;"> </div> </div> </td> </tr> <tr> <td bgcolor="#D4C0A1" align="left"> <b>Player MP:</b> </td> <td bgcolor="#D4C0A1" align="left"> <?php echo $playerData['mana']['now'].'/'.$playerData['mana']['max']; ?> <div style="width: 100%; height: 3px; border: 1px solid #000;"> <div style="background: blue; width: <?php echo $playerData['mana']['percent']; ?>%; height: 3px;"> </div> </div> </td> </tr> <tr> <td bgcolor="#D4C0A1" align="left"> <b>Player XP:</b> </td> <td bgcolor="#D4C0A1" align="left"> <?php echo number_format($playerData['exp']['now'], 0, "", " "); ?> Experience. </td> </tr> <tr> <td bgcolor="#F1E0C6" align="left"> <b>To Next Lvl:</b> </td> <td bgcolor="#F1E0C6" align="left"> Need <b><?php echo number_format($playerData['exp']['next'], 0, "", " "); ?> experience (<?php echo 100-$playerData['exp']['percent']; ?>%)</b> to Level <b><?php echo $player['level']+1; ?></b>. <div title="99.320604545 %" style="width: 100%; height: 3px; border: 1px solid #000;"> <div style="background: red; width: <?php echo $playerData['exp']['percent']; ?>%; height: 3px;"></div> </div> </td> </tr> </table> <!-- END detailed character info --> Créditos: znote
  20. No próprio link que passei já informa. Altere player:addExperience(x.exp) Para player:addMount(mountId) Entre parenteses coloque o id
  21. http://www.tibiaking.com/forum/topic/56686-sistema-de-task-mounts/#entry333458
  22. Introdução Versão: 7.6 à 10.79. Utilize o tibia.dat e tibia.spr originais. Você poderá baixar versões do Tibia neste link. items.otb oficiais. ATENÇÃO Para todos aqueles que usam mapas RL, antes de fazer quaisquer alterações ao item.otb e items.xml do RME, é recomendável arrumar seu mapa, porque os mapas disponibilizados em alguns fóruns, dependendo de sua versão, podem trazer futuros problemas por terem sido modificados em outros map editor. Requisitos Microsoft Visual C++ 2010: Windows 32B | Windows 64B Microsoft Visual C++ 2011/12: Windows 32B & 64B Microsoft Visual C++ 2013: Windows 32 & 64B Versão antiga 10.76 do items.otb RME items.otb oficial 10.78/10.79 Download | Scan | Sources Créditos hjnilsson - Sources Kruger Developers - items.otb + actualização ricker75 - Disponibilização Larissa Azhaurn - Tópico e Scan.
  23. 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 price = xxx --Preço para trocar de sexo. if msgcontains(msg:lower(), "change") or msgcontains(msg:lower(), "sex") then selfSay("Do you wanna change your sex? It will cost {"..price.." gold}.", cid) talkState[talkUser] = 1 return true elseif msgcontains(msg:lower(), "yes") and talkState[talkUser] == 1 then if doPlayerRemoveMoney(cid, price) then doPlayerSetSex(cid, getPlayerSex(cid) == 0 and 1 or 0) selfSay("You sucefully changed your sex.", cid) talkState[talkUser] = 0 return true else selfSay("You do not have enough gold.", cid) talkState[talkUser] = 0 return true end elseif msgcontains(msg:lower(), "no") and talkState[talkUser] == 1 then selfSay("Ok, bye.", cid) talkState[talkUser] = 0 return true end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Script: zipter98

Informação Importante

Confirmação de Termo