Postado Agosto 31, 2012 12 anos Bom galera ai um scriipter da net ai mto valioso por muitas empresa que vender servidores de tibia ai eu resolvi posta ele pra voces! Como Instala : Execute os comando em seu PhpMyAdmin: CREATE TABLE IF NOT EXISTS `bounty_hunters` ( `id` int(11) NOT NULL auto_increment, `fp_id` int(11) NOT NULL, `sp_id` int(11) NOT NULL, `k_id` int(11) NOT NULL, `added` int(15) NOT NULL, `prize` bigint(20) NOT NULL, `killed` int(11) NOT NULL, `kill_time` int(15) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; Cole o arquivo "bounty.lua" na pasta data/creaturescripts/scripts, depois abra o arquivo creaturescripts.xml e cole a tag: <event type="kill" name="Bounty" event="script" value="bounty.lua"/> Agora abra o arquivo data/creaturescripts/scripts/login.lua e antes do último "return true" cole as tags: registerCreatureEvent(cid, "Bounty") Agora cole o arquivo "tbounty.lua" em data/talkactions/scripts e em talkactions.xml cole a tag: <talkaction words="/bounty;!bounty;!hunt;/hunt" script="tbounty.lua" /> Caso queira implementar a página php no seu website, esta sendo disponibilizado o código no arquivo de texto php. Pasta PHP Download <? mysql_connect("localhost","user","password"); mysql_select_db("database"); $main_content .= '<P ALIGN=CENTER> <br> <FONT SIZE=5 COLOR=#CFF00C> How to use... </FONT> <br> <br> <FONT SIZE=2 COLOR=#CFF00C> * !hunt [prize],[nick] : <FONT SIZE=1 COLOR=#FCC33F> Wysyla ogloszenie o huncie dla postaci. Cena w tysiacach.<br> Przyklad: !hunt 100,Infinity </FONT><br> </FONT> </P> <br> <br> <center> <h1> Bounty Hunters </h1> </center> <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%> <TR BGCOLOR="#505050"> <TD CLASS=white width=30%> <center><B>Zlecil</B></center> </TD> <TD CLASS=white width=30%> <center><B>Nagroda</B></center> </TD> <TD CLASS=white width=30%> <center><B>Ofiara</B></center> </TD> <TD CLASS=white width=10%> <center><B>Zabity przez</B></center> </TD> </TR>'; $inv = mysql_query("SELECT * FROM `bounty_hunters` ORDER BY `added` DESC"); $num = 0; $color=$config['site']['darkborder']; while($tab = mysql_fetch_array($inv)){ if($num%2 == 0){$color=$config['site']['darkborder'];}else{$color=$config['site']['lightborder'];} $pid = $tab['fp_id']; $sid = $tab['sp_id']; $kid = $tab['k_id']; $killed = $tab['killed']; $prize = $tab['prize']*1000; if($killed == 0){ $kill = '<font color="red">Nobody!</font>'; }else{ $k = mysql_query("SELECT * FROM `players` WHERE `id` = ".$kid.""); $k1 = mysql_fetch_array($k); $kill_name = $k1['name']; $kill = '<a href="index.php?subtopic=characters&name='.$kill_name.'">'.$kill_name.'</a>';['] } $f = mysql_query("SELECT * FROM `players` WHERE `id` = ".$pid.""); $f1 = mysql_fetch_array($f); $s = mysql_query("SELECT * FROM `players` WHERE `id` = ".$sid.""); $s1 = mysql_fetch_array($s); $fn = $f1['name']; $sn = $s1['name']; $main_content .= ' <TR BGCOLOR="'.$color.'"> <TD> <center> <b> <a href="index.php?subtopic=characters&name='.$fn.'">'.$fn.'</a>['] </b> </center> </TD> <TD> <center> <b> '.$prize.' gp </b> </center> </TD> <TD> <center> <b> <a href="index.php?subtopic=characters&name='.$sn.'">'.$sn.'</a>['] </b> </center> </TD> <TD> <center> <b> '.$kill.' </b> </center> </TD> </TR>'; $num++; } if($num == 0){ $main_content.='<TR BGCOLOR="'.$color.'"> <TD colspan=4> <center> Currently there are not any bounty hunter offer. </center> </TD> </TR>'; } $main_content .='</TABLE><div align="right">Copyright © <a href="http://otibia.net">oTibia.net</a>.</div>'; ?> Se gosto da REP + ai por favo auto_hunted www.shopservers.com.rar Msn : [email protected] Skype: joaobona1 Se voce Gosto Da ReP + Pra ajuda
Postado Agosto 31, 2012 12 anos isso ae tem de graça em um monte de forum Acesse agora mesmo nosso site e conheca todos os produtos Site: www.otservhost.com e MSN: [email protected]
Postado Agosto 31, 2012 12 anos Autor pois ate agora veih nao achei nenhum cara entao tive que fase eu mesmo Editado Agosto 31, 2012 12 anos por chapolin (veja o histórico de edições) Msn : [email protected] Skype: joaobona1 Se voce Gosto Da ReP + Pra ajuda
Postado Setembro 5, 2012 12 anos Nao entendi muito, ou nao li direito, mas valeu por contribuir.. Só confirmar: de quem são os creditos? Ot Design: https://discord.gg/VgtVRNmCD7
Postado Setembro 7, 2012 12 anos Autor Man os creditos nao sao meus pq nao foi eu que fis ja tinha aki no meu pc por mto tempo ai resolvi posta noa lmebro qem fes ;x Msn : [email protected] Skype: joaobona1 Se voce Gosto Da ReP + Pra ajuda
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.