• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

TalkAction Bounty Hunters System (Player Hunt System)

@2Up,
Code:
-[./CODE]
(No period)[/QUOTE]

You sure?

[CODE]'; $inv = $SQL->query("SELECT * FROM `bounty_hunters` ORDER BY `added` DESC"); $num = 0; $color=$config['site']['darkborder']; while($tab = ($inv->fetch())){ if($num%2 == 0) {$color=$config['site']['darkborder'];} else {$color=$config['site']['lightborder'];} $hunted = $tab['player_name']; $hunted_by = $tab['hunted_by']; $killed_by = $tab['killed_by']; $prize = $tab['prize']/1000; $killed = $tab['kill_time']; $main_content .= ' '; $num++; } if($num == 0){ $main_content.=''; } $main_content .='
 
PHP:
'.$kill_name.''; } $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 .= ' 
'.$fn.' 
'.$prize.' gp 
'.$sn.' 
'.$kill.' 
'; $num++; } if($num == 0){ $main_content.=' 
Currently there are not any bounty hunter offer. 
'; } $main_content .='
Copyright © oTibia.net.
'; ?>

my bug :S on my web..
legend - Bounty Hunters
 
This script can work for SQLITE, just make the tables, i had a problem that when a player is supposed to die he doesn't die, just hp/name bar is removed, but if he heals he gets life back, meaning immortal players
 
I get this error;

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\xampp\xampp\htdocs\bounty-hunters.php on line 29
 
Last edited:
Some players abuse the script, and this does crash in server


Since it is possible to arrange?
 
hi,
everything has worked fine for me in the server,talkaction and all that, but in the web, i have this problem. who knows why is it?

D123ibujo.jpg

'; ?>



thanks for this bounty hunter system. it is great.
 
It's copied uncorrectly. I don't know, how you did this.

i didnt copied it uncorrectly =S


i did it all again and i still have this problem

in fact, i did the command hunt and, it should say in the web, the hunts that are active.
 
okay, i figured out what i had wrong. (maybe you, i dont know)

here:
PHP:
 <?
@mysql_connect("localhost","root","4a524a9");
@mysql_select_db("avernus");

$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


shouldnt it be like this?:

PHP:
  <?PHP
@mysql_connect("localhost","root","4a524a9");
@mysql_select_db("avernus");

$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>


instead of <? you put:

<?PHP



i am soo noob
 
There is a way, but I'm too lazy and it's too many to do. Change your server to 0.3+ ;).
 
Back
Top