Guest User

Untitled

a guest
Apr 16th, 2019
98
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. @mysql_connect("localhost","user","pass");
  3. @mysql_select_db("otserv");
  4.  
  5. $main_content .= '<P ALIGN=CENTER>
  6. <br>
  7. <FONT SIZE=5>
  8. How to use...
  9. </FONT>
  10. <br>
  11. <br>
  12. <FONT SIZE=2 COLOR=RED>
  13. * !hunt [prize],[nick] :
  14. </FONT>
  15. <FONT SIZE=1>
  16. Example of putting a bounty on Infinity: !hunt 10000, Infinity
  17. </FONT><br>
  18. </P>
  19. <br>
  20. <br>
  21. <center>
  22. <h1>
  23. Bounty Hunters
  24. </h1>
  25. </center>
  26. <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%>
  27. <TR BGCOLOR="#505050">
  28. <TD CLASS=white width=30%>
  29. <center><B>Submitter</B></center>
  30. </TD>
  31. <TD CLASS=white width=30%>
  32. <center><B>Prize</B></center>
  33. </TD>
  34. <TD CLASS=white width=30%>
  35. <center><B>Target</B></center>
  36. </TD>
  37. <TD CLASS=white width=10%>
  38. <center><B>Killer</B></center>
  39. </TD>
  40. </TR>';
  41. $inv = @mysql_query("SELECT * FROM `bounty_hunters` ORDER BY `added` DESC");
  42. $num = 0;
  43. $color=$config['site']['darkborder'];
  44. while($tab = @mysql_fetch_array($inv)){
  45. if($num%2 == 0){$color=$config['site']['darkborder'];}else{$color=$config['site']['lightborder'];}
  46. $pid = $tab['fp_id'];
  47. $sid = $tab['sp_id'];
  48. $kid = $tab['k_id'];
  49. $killed = $tab['killed'];
  50. $prize = $tab['prize'];
  51. if($killed == 0){
  52. $kill = '<font color="red">Nobody!</font>';
  53. }else{
  54. $k = @mysql_query("SELECT * FROM `players` WHERE `id` = ".$kid."");
  55. $k1 = @mysql_fetch_array($k);
  56. $kill_name = $k1['name'];
  57. $kill = '<a href="index.php?subtopic=characters&name='.$kill_name.'">'.$kill_name.'</a>';
  58. }
  59. $f = @mysql_query("SELECT * FROM `players` WHERE `id` = ".$pid."");
  60. $f1 = @mysql_fetch_array($f);
  61. $s = @mysql_query("SELECT * FROM `players` WHERE `id` = ".$sid."");
  62. $s1 = @mysql_fetch_array($s);
  63. $fn = $f1['name'];
  64. $sn = $s1['name'];
  65.  
  66. $main_content .= '
  67. <TR BGCOLOR="'.$color.'">
  68. <TD>
  69. <center>
  70. <b>
  71. <a href="index.php?subtopic=characters&name='.$fn.'">'.$fn.'</a>
  72. </b>
  73. </center>
  74. </TD>
  75. <TD>
  76. <center>
  77. <b>
  78. '.$prize.' gp
  79. </b>
  80. </center>
  81. </TD>
  82. <TD>
  83. <center>
  84. <b>
  85. <a href="index.php?subtopic=characters&name='.$sn.'">'.$sn.'</a>
  86. </b>
  87. </center>
  88. </TD>
  89. <TD>
  90. <center>
  91. <b>
  92. '.$kill.'
  93. </b>
  94. </center>
  95. </TD>
  96. </TR>';
  97. $num++;
  98. }
  99. if($num == 0){
  100. $main_content.='<TR BGCOLOR="'.$color.'">
  101. <TD colspan=4>
  102. <center>
  103. Currently there are not any bounty hunter offer.
  104. </center>
  105. </TD>
  106. </TR>';
  107. }
  108. $main_content .='</TABLE><div align="right">Copyright &copy; <a href="http://otibia.net">oTibia.net</a>.</div>';
  109. ?>
RAW Paste Data