Guest User

Untitled

a guest
Aug 11th, 2019
118
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - script GlobalMvP::GlobalMvP -1,{
  2.  
  3. OnNPCKillEvent:
  4. switch(readparam(122)) {
  5. // Amon Ra
  6. case 1511:
  7. goto addpoints;
  8. end;
  9. // B_EREMES
  10. case 1647:
  11. goto addpoints;
  12. end;
  13. // Atroce
  14. case 1785:
  15. goto addpoints;
  16. end;
  17. // BACSOJIN_
  18. case 1630:
  19. goto addpoints;
  20. end;
  21. // Baphomet
  22. case 1039:
  23. goto addpoints;
  24. end;
  25. // BEELZEBUB_
  26. case 1874:
  27. goto addpoints;
  28. end;
  29. // Dark Lord
  30. case 1272:
  31. goto addpoints;
  32. end;
  33. // Detale
  34. case 1719:
  35. goto addpoints;
  36. end;
  37. // Doppelganger
  38. case 1046:
  39. goto addpoints;
  40. end;
  41. // Dracula
  42. case 1389:
  43. goto addpoints;
  44. end;
  45. // Drake
  46. case 1112:
  47. goto addpoints;
  48. end;
  49. // Eddga
  50. case 1115:
  51. goto addpoints;
  52. end;
  53. // Entweihen
  54. case 1957:
  55. goto addpoints;
  56. end;
  57. // Evil Snake Lord
  58. case 1418:
  59. goto addpoints;
  60. end;
  61. // FALLINGBISHOP
  62. case 1871:
  63. goto addpoints;
  64. end;
  65. // Garm
  66. case 1252:
  67. goto addpoints;
  68. end;
  69. // GLOOMUNDERNIGHT
  70. case 1768:
  71. goto addpoints;
  72. end;
  73. // Golden Bug
  74. case 1086:
  75. goto addpoints;
  76. end;
  77. // G_MAGALETA
  78. case 1802:
  79. goto addpoints;
  80. end;
  81. // High Priest Magaleta
  82. case 1649:
  83. goto addpoints;
  84. end;
  85. // High Wizard Katryne
  86. case 1651:
  87. goto addpoints;
  88. end;
  89. // Ifrit
  90. case 1832:
  91. goto addpoints;
  92. end;
  93. // Incantation Samurai
  94. case 1492:
  95. goto addpoints;
  96. end;
  97. // Kiel_
  98. case 1734:
  99. goto addpoints;
  100. end;
  101. // Stormy Knight
  102. case 1251:
  103. goto addpoints;
  104. end;
  105. // Ktullanux
  106. case 1779:
  107. goto addpoints;
  108. end;
  109. // Lady Tanee
  110. case 1688:
  111. goto addpoints;
  112. end;
  113. // G_SEYREN
  114. case 1640:
  115. goto addpoints;
  116. end;
  117. // Lord Knight Seyren
  118. case 1646:
  119. goto addpoints;
  120. end;
  121. // Lord of Death
  122. case 1373:
  123. goto addpoints;
  124. end;
  125. // Maya
  126. case 1147:
  127. goto addpoints;
  128. end;
  129. // Mistress
  130. case 1059:
  131. goto addpoints;
  132. end;
  133. // Moonlight flower
  134. case 1150:
  135. goto addpoints;
  136. end;
  137. // Naght Seiger
  138. case 1956:
  139. goto addpoints;
  140. end;
  141. // Orc Hero
  142. case 1087:
  143. goto addpoints;
  144. end;
  145. // Orc Lord
  146. case 1190:
  147. goto addpoints;
  148. end;
  149. // Osiris
  150. case 1038:
  151. goto addpoints;
  152. end;
  153. // Pharaoh
  154. case 1157:
  155. goto addpoints;
  156. end;
  157. // Phreeoni
  158. case 1159:
  159. goto addpoints;
  160. end;
  161. // Poripori
  162. case 1502:
  163. goto addpoints;
  164. end;
  165. // RSX
  166. case 1623:
  167. goto addpoints;
  168. end;
  169. // Sniper Shecil
  170. // Sniper Cecil
  171. case 1650:
  172. goto addpoints;
  173. end;
  174. // Tao Gunka
  175. case 1583:
  176. goto addpoints;
  177. end;
  178. // Thanatos
  179. case 1708:
  180. goto addpoints;
  181. end;
  182. // Turtle General
  183. case 1312:
  184. goto addpoints;
  185. end;
  186. // Valkyrie
  187. case 1765:
  188. goto addpoints;
  189. end;
  190. // Valkyrie rangdris
  191. case 1751:
  192. goto addpoints;
  193. end;
  194. // Vesper
  195. case 1685:
  196. goto addpoints;
  197. end;
  198. // Whitesmith Howard
  199. case 1648:
  200. goto addpoints;
  201. end;
  202. // Satan Morroc
  203. case 1917:
  204. goto addpoints;
  205. end;
  206. // Egnigem Cenia
  207. case 1658:
  208. goto addpoints;
  209. end;
  210. // Zmey Gorynych
  211. case 1885:
  212. goto addpoints;
  213. end;
  214. // Hard Rock Mamooth
  215. case 1990:
  216. goto addpoints;
  217. end;
  218. // Tendrillion
  219. case 1991:
  220. goto addpoints;
  221. end;
  222. default:
  223. end;
  224. } // End switch
  225.  
  226. addpoints:
  227. query_sql "SELECT `name` FROM `mvp` WHERE `char_id`="+getcharid(0)+"",.@name$;
  228. if ( .@name$ == "" ) { query_sql "INSERT INTO `mvp` (`char_id`,`name`,`kills`,`points`) VALUES (" + getcharid(0) + ",'" + escape_sql(strcharinfo(0)) + "',1,1)"; end; }
  229. query_sql "UPDATE `mvp` SET `kills` = (`kills` + 1), `points` = (`points` +1) WHERE `char_id`=" + getcharid(0);
  230. end;
  231.  
  232. OnInit:
  233. query_sql("CREATE TABLE IF NOT EXISTS `mvp` (`char_id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '0', `kills` int(11) unsigned NOT NULL DEFAULT '0',`points` int(11) unsigned NOT NULL DEFAULT '0', `level` int(11) unsigned NOT NULL DEFAULT '0', KEY `char_id` (`char_id`), KEY `kills` (`kills`), KEY `points` (`level`), KEY `level` (`level`)) ENGINE=MyISAM");
  234. end;
  235. }
RAW Paste Data