Ir para conteúdo

Featured Replies

Postado

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 &copy; <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 :D

  • Respostas 7
  • Visualizações 1.4k
  • Created
  • Última resposta

Top Posters In This Topic

Postado
  • 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 :D

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo