Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.07 KB | None | 0 0
  1. prontera,156,178,4 script Cluckers 800,{
  2. if (getgmlevel() >=60) goto cluckadmin;
  3. if ($@startcluck == 1) goto L_playcluck;
  4.  
  5. cluckcluck:
  6. if (getgmlevel() >= 60) goto cluckadmin;
  7. mes "[Cluckers]";
  8. mes "Cluck cluck! Cluuuuuck?";
  9. mes "Cluck....";
  10. close;
  11.  
  12. GM:
  13. mes "[Cluckers]";
  14. mes "Cluck cluck! Cluuuuuck? ^FF0000~Hi GM " + strcharinfo(0) + ", Wanna stop the event?~^000000";
  15. mes "Cluck cluck... CLUCK! ^FF0000~Just tell me what to do!~^000000";
  16. next;
  17. switch(select("Stop Event","Check Prize","Cancel")) {
  18. case 1:
  19. set $@startcluck,0;
  20. mes "[Cluckers]";
  21. mes "Cluck cluck! Cluuuuuck!!";
  22. announce "Cluckers event has been stop by Admin / GM , Thanks for playing",bc_all;
  23. close;
  24. case 2:
  25. mes "[Cluckers]";
  26. mes "Cluck, cluck cluck... Cluck! ^FF0000~The current prize is^000000 ^008000"+ $cluck_item_amount +" "+ getitemname($cluck_item_id) +".^000000";
  27. close;
  28. case 3:
  29. mes "[Cluckers]";
  30. mes "Cluck cluck! Cluuuuuck?";
  31. mes "Cluck....";
  32. close;
  33. }
  34.  
  35. cluckadmin:
  36. if ($@startcluck == 1) goto GM;
  37. mes "[Cluckers]";
  38. mes "Cluck cluck! Cluuuuuck? ^FF0000~Hi GM " + strcharinfo(0) + ", Wanna play today?~^000000";
  39. mes "Cluck cluck... CLUCK! ^FF0000~Just tell me what to do!~^000000";
  40. switch(select("Start Event:Check Prize:Set Prize:Not today Cluckers")) {
  41. case 1:
  42. next;
  43. mes "[Cluckers]";
  44. mes "CLUCK! ^FF0000~Sure thing!~^000000";
  45. emotion 33;
  46. close2;
  47. goto L_cluckannounce;
  48. case 2:
  49. next;
  50. mes "[Cluckers]";
  51. mes "Cluck, cluck cluck... Cluck! ^FF0000~The current prize is^000000 ^008000"+ $cluck_item_amount +" "+ getitemname($cluck_item_id) +".^000000";
  52. next;
  53. goto cluckadmin;
  54. case 3:
  55. next;
  56. mes "[Cluckers]";
  57. mes "Cluck cluck? Cluck??? ^FF0000~What should the prize for winning be? Please input the ID.~^000000";
  58. input $cluck_item_id;
  59. next;
  60. mes "[Cluckers]";
  61. mes "Cluck? cluuuck? ^FF0000~How many if this item should I give away?~^000000";
  62. input $cluck_item_amount;
  63. next;
  64. mes "[Cluckers]";
  65. mes "Cluck cluck..? Cluck. ^FF0000~So, the prize is^000000 ^008000"+ $cluck_item_amount +" "+ getitemname($cluck_item_id) +"^000000? ^FF0000Great.~^000000";
  66. emotion 33;
  67. next;
  68. goto cluckadmin;
  69. case 4:
  70. next;
  71. mes "[Cluckers]";
  72. mes "Cluck cluck cluck...";
  73. close;
  74. }
  75.  
  76. L_cluckannounce:
  77. announce "[Cluck! Cluck! Boom!] Cluckers Events The Stealing Chicken Has Been Start At Prontera!",bc_blue;
  78. initnpctimer;
  79. set(.starer$, escape_sql(strcharinfo(0)));
  80. end;
  81. OnTimer10000:
  82. announce "Go to Prontera now!!!Event will be start...",bc_blue;
  83. end;
  84. OnTimer20000:
  85. announce "Citizen of Prontera : A chicken has eaten my stuff!!!HELP....!!!",bc_all;
  86. end;
  87. OnTimer30000:
  88. announce "Click Cluckers the stealer chicken!!If You're Lucky You Get The Prize!!Ready??",bc_blue;
  89. end;
  90. OnTimer40000:
  91. announce "GO!Click Cluckers the stealer chicken and get the prize!!!",bc_all;
  92. query_sql("SELECT `key` FROM `event_log` WHERE `event` = 'Cluckers' AND `won_by` IS NULL", .@key);
  93. if(.@key)
  94. query_sql("UPDATE `event_log` SET `started_time` = NOW(), `started_by` = '" + .starer$ + "' WHERE `key` = " + .@key);
  95. else
  96. query_sql("INSERT INTO `event_log` (`started_time`, `event`, `started_by`) VALUES (NOW(), 'Cluckers', '" + .starer$ + "')");
  97. set $@startcluck,1;
  98. end;
  99.  
  100. L_playcluck:
  101. specialeffect2 2;
  102. switch( rand(24) ) {
  103. case 0:
  104. npctalk "Hahahahaha...Loe Apes Banget !!!";
  105. emotion 23;
  106. atcommand "@nuke "+strcharinfo(0);
  107. break;
  108. case 1:
  109. npctalk "Sorry kk Semua , Orang Jelek Ga Akan Dapet Hadiah~";
  110. break;
  111. case 2:
  112. npctalk "Ashh...Ngapaen Sih Colek2, Jablay Ya?:ngacir:";
  113. atcommand "@nuke "+strcharinfo(0);
  114. break;
  115. case 3:
  116. sc_start SC_FREEZE,10000,0;
  117. break;
  118. case 4:
  119. npctalk "Wakwkakwkawka...Anda Belum Beruntung";
  120. emotion 23;
  121. atcommand "@nuke "+strcharinfo(0);
  122. break;
  123. case 5:
  124. sc_start SC_SLEEP,10000,0;
  125. break;
  126. case 6:
  127. emotion 29;
  128. atcommand "@nuke "+strcharinfo(0);
  129. break;
  130. case 7:
  131. npctalk "Oi Kakak,Sudah Bosan Sama Manusia Ya?Kok Colek2 Ayam :ngakak";
  132. emotion 23;
  133. atcommand "@nuke "+strcharinfo(0);
  134. break;
  135. case 8:
  136. npctalk "Saya Ganteng Terima Kasih";
  137. emotion 23;
  138. atcommand "@nuke "+strcharinfo(0);
  139. break;
  140. case 9:
  141. nude;
  142. break;
  143. case 10:
  144. emotion 29;
  145. sc_start SC_SLEEP,10000,0;
  146. break;
  147. case 11:
  148. npctalk "http://27.111.34.120/CP";
  149. break;
  150. case 12:
  151. sc_start SC_STUN,10000,0;
  152. break;
  153. case 13:
  154. nude;
  155. break;
  156. case 14:
  157. sc_start SC_BLIND,10000,0;
  158. break;
  159. case 15:
  160. nude;
  161. break;
  162. case 16:
  163. npctalk "Kalau Colek2 Terus Saya Bunuh Terus Nih";
  164. nude;
  165. break;
  166. case 17:
  167. npctalk "http://27.111.34.120/CP";
  168. sc_start SC_CURSE,10000,0;
  169. break;
  170. case 18:
  171. npctalk "http://27.111.34.120/CP";
  172. nude;
  173. break;
  174. case 19:
  175. npctalk "Kapok Bugilll.....";
  176. sc_start SC_CURSE,10000,0;
  177. break;
  178. case 20:
  179. atcommand "@jump "+strcharinfo(0);
  180. break;
  181. case 21:
  182. atcommand "@jump "+strcharinfo(0);
  183. break;
  184. case 22:
  185. atcommand "@jump "+strcharinfo(0);
  186. break;
  187. default:
  188. if( rand(50) < 3 ) {
  189. npctalk "WOOF!...........";
  190. specialeffect2 72;
  191. announce "[Cluck! Cluck! Boom!] "+strcharinfo(0)+" won the Cluck Event! He won a "+ $cluck_item_amount +" "+getitemname($cluck_item_id)+" !",0;
  192. getitem $cluck_item_id,$cluck_item_amount;
  193. query_sql("UPDATE `event_log` SET `won_by` = '" + escape_sql(strcharinfo(0)) + "', `won_time` = NOW(), `price_id` = " + $cluck_item_id + ", `price_amount` = " + $cluck_item_amount + " WHERE `event` = 'Cluckers' AND `won_by` IS NULL");
  194. set $@startcluck,0;
  195. }
  196. else {
  197. npctalk "Cluck! CLUUUCK!!";
  198. atcommand "@nuke "+strcharinfo(0);
  199. }
  200. break;
  201. }
  202. }
  203.  
  204. - script EDCluckers -1,{
  205. OnClock2200:
  206. announce "Cluckers : Uda Malem Neh~ , WaktuNya Bobok..Gua Pamit Pulang Dolo",bc_all;
  207. disablenpc "Cluckers";
  208. end;
  209. OnClock0900:
  210. announce "Cluckers : Petok Petok Petok , Uda Pagi~ Saatnya Saya Kerja Kembali, Morning All",bc_all;
  211. enablenpc "Cluckers";
  212. end;
  213. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement