Vou testar, se funcionar mesmo, REP +.
A ideia é ótima.
Outra coisa, o player que matar ganha um frag normal?
Vai pegar White Skull?
Por WarW0lf, 30 de jul. de 2012 em Actions e Talkactions
info
Grupo: Campones
Registrado: 29/11/08
Posts: 36
Reputação: +1
Char no Tibia: Elmon Ledius

Vou testar, se funcionar mesmo, REP +.
A ideia é ótima.
Outra coisa, o player que matar ganha um frag normal?
Vai pegar White Skull?
Sim ![]()
info
Grupo: Conde
Registrado: 10/07/08
Posts: 574
Reputação: +13
Gênero: Masculino
Char no Tibia: Hebi Of Amera

Bem legal mesmo seu script ![]()
Obrigado amigo!
Funfa sem site ?
Funfa ![]()
Tem como tu esplica melhor a parte PhpMyAdmin ?
Meu servidor é de war e sem sit funfa normalmente ?
info
Grupo: Banidos
Registrado: 30/07/12
Posts: 279
Reputação: +16
Char no Tibia: Raidou

Mano,perfeito,este sistema merece meu rep++.
Obrigado e que bom que gostou ![]()
Show meo! ^^
Vou implatar ele no meu server de narutibia ^^
Vlw por compartilhar =D
info
Grupo: Conde
Registrado: 10/12/11
Posts: 962
Reputação: +99
Gênero: Masculino

muito bom rep++
A página em php está um tanto bugada.
@Edit
Consegui a página pra gesior, sem bugs.
<?php
mysql_connect("localhost","root","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>
Sends an announcement about huncie to form. Price in thousands.<br>
Example: !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>Commissioned</B></center>
</TD>
<TD CLASS=white width=30%>
<center><B>Award</B></center>
</TD>
<TD CLASS=white width=30%>
<center><B>Offer</B></center>
</TD>
<TD CLASS=white width=10%>
<center><B>Killed By</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>';
?>
Editado Agosto 24 por RHCP
info
Grupo: Visconde
Registrado: 17/09/10
Posts: 252
Reputação: +9

aqui n funfo, tem q registra nada no creaturescripts.xml?
Só preciso dar umas ajeitadas nas escritas e efeito e cái igual luva!
Seria legal também você tentar fazer um NPC em que você pega bountry hunter com 1 player randomicamente online do serv com level próximo!
Só sugestão mas tá ótimo isso aí! Vou guardar o system pra futuros servs que vou faze pra mi u.u
info
Grupo: Campones
Registrado: 30/07/12
Posts: 66
Reputação: +26
Como funciona?
Bounty System é um script que visa o pvp.
Um player diz o comando /bounty [prize],[nick]. e a partir daí o player que foi colocado em [nick] passa a ser procurado, e o primeiro a matá-lo ganha uma recompensa.
Vamos lá...
Execute os comandos em seu PhpMyAdmin:
Vá em data/creaturescripts/scripts/,e crie um arquivo bounty.lua e cole isto:
Vá em data/creaturescripts/scripts/ e coloque isto em login.lua :
Editado Agosto 1 por Mudrock