Guest User

Untitled

a guest
Feb 20th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.92 KB | None | 0 0
  1. arcadia,145,237,5 script Woe Rewarder 837,{
  2.  
  3. function GetReward;
  4.  
  5. if ( agitcheck() ) goto L_woeon;
  6. menu
  7. // "Neuschwanstein",L_aldeg_cas01,
  8. // "Hohenschwangau",L_aldeg_cas02,
  9. "Nuenberg",L_aldeg_cas03,
  10. // "Wuerzburg",L_aldeg_cas04,
  11. // "Rothenburg",L_aldeg_cas05,
  12. // "Repherion",L_gefg_cas01,
  13. // "Eeyolbriggar",L_gefg_cas02,
  14. "Yesnelph",L_gefg_cas03,
  15. // "Bergel",L_gefg_cas04,
  16. // "Mersetzdeitz",L_gefg_cas05,
  17. // "Bright Arbor",L_payg_cas01,
  18. "Scarlet Palace",L_payg_cas02,
  19. // "Holy Shadow",L_payg_cas03, // Saturday
  20. // "Sacred Altar",L_payg_cas04, // Sunday
  21. // "Bamboo Grove Hill",L_payg_cas05,
  22. "Kriemhild",L_prtg_cas01; // Monday
  23. // "Swanhild",L_prtg_cas02, // Tuesday
  24. // "Fadhgridh",L_prtg_cas03, // Wednesday
  25. // "Skoegul",L_prtg_cas04, // Thursday
  26. // "Gondul",L_prtg_cas05 // Friday
  27.  
  28. L_aldeg_cas01:
  29. if ( getcastledata( "aldeg_cas01", 1) != getcharid(2) ) goto L_not_owner;
  30. if ( $castle_claimed[1] ) goto L_claimed;
  31. if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
  32. mes "Receiving the reward for this castle";
  33. GetReward;
  34.  
  35. set $castle_claimed[1], 1;
  36. close;
  37. L_aldeg_cas02:
  38. if ( getcastledata( "aldeg_cas02", 1) != getcharid(2) ) goto L_not_owner;
  39. if ( $castle_claimed[2] ) goto L_claimed;
  40. if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
  41. mes "Receiving the reward for this castle";
  42. GetReward;
  43.  
  44. set $castle_claimed[2], 1;
  45. close;
  46. L_aldeg_cas03:
  47. if ( getcastledata( "aldeg_cas03", 1) != getcharid(2) ) goto L_not_owner;
  48. if ( $castle_claimed[3] ) goto L_claimed;
  49. if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
  50. mes "Receiving the reward for this castle";
  51. GetReward;
  52.  
  53. set $castle_claimed[3], 1;
  54. close;
  55. L_aldeg_cas04:
  56. if ( getcastledata( "aldeg_cas04", 1) != getcharid(2) ) goto L_not_owner;
  57. if ( $castle_claimed[4] ) goto L_claimed;
  58. if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
  59. mes "Receiving the reward for this castle";
  60. GetReward;
  61.  
  62. set $castle_claimed[4], 1;
  63. close;
  64. L_aldeg_cas05:
  65. if ( getcastledata( "aldeg_cas05", 1) != getcharid(2) ) goto L_not_owner;
  66. if ( $castle_claimed[5] ) goto L_claimed;
  67. if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
  68. mes "Receiving the reward for this castle";
  69. GetReward;
  70.  
  71. set $castle_claimed[5], 1;
  72. close;
  73.  
  74. L_gefg_cas01:
  75. if ( getcastledata( "gefg_cas01", 1) != getcharid(2) ) goto L_not_owner;
  76. if ( $castle_claimed[6] ) goto L_claimed;
  77. if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
  78. mes "Receiving the reward for this castle";
  79. GetReward;
  80.  
  81. set $castle_claimed[6], 1;
  82. close;
  83. L_gefg_cas02:
  84. if ( getcastledata( "gefg_cas02", 1) != getcharid(2) ) goto L_not_owner;
  85. if ( $castle_claimed[7] ) goto L_claimed;
  86. if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
  87. mes "Receiving the reward for this castle";
  88. GetReward;
  89.  
  90. set $castle_claimed[7], 1;
  91. close;
  92. L_gefg_cas03:
  93. if ( getcastledata( "gefg_cas03", 1) != getcharid(2) ) goto L_not_owner;
  94. if ( $castle_claimed[8] ) goto L_claimed;
  95. if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
  96. mes "Receiving the reward for this castle";
  97. GetReward;
  98.  
  99. set $castle_claimed[8], 1;
  100. close;
  101. L_gefg_cas04:
  102. if ( getcastledata( "gefg_cas04", 1) != getcharid(2) ) goto L_not_owner;
  103. if ( $castle_claimed[9] ) goto L_claimed;
  104. if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
  105. mes "Receiving the reward for this castle";
  106. GetReward;
  107.  
  108. set $castle_claimed[9], 1;
  109. close;
  110. L_gefg_cas05:
  111. if ( getcastledata( "gefg_cas05", 1) != getcharid(2) ) goto L_not_owner;
  112. if ( $castle_claimed[10] ) goto L_claimed;
  113. if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
  114. mes "Receiving the reward for this castle";
  115. GetReward;
  116.  
  117. set $castle_claimed[10], 1;
  118. close;
  119.  
  120. L_payg_cas01:
  121. if ( getcastledata( "payg_cas01", 1) != getcharid(2) ) goto L_not_owner;
  122. if ( $castle_claimed[11] ) goto L_claimed;
  123. if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
  124. mes "Receiving the reward for this castle";
  125. GetReward;
  126.  
  127. set $castle_claimed[11], 1;
  128. close;
  129. L_payg_cas02:
  130. if ( getcastledata( "payg_cas02", 1) != getcharid(2) ) goto L_not_owner;
  131. if ( $castle_claimed[12] ) goto L_claimed;
  132. if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
  133. mes "Receiving the reward for this castle";
  134. GetReward;
  135.  
  136. set $castle_claimed[12], 1;
  137. close;
  138. L_payg_cas03:
  139. if ( getcastledata( "payg_cas03", 1) != getcharid(2) ) goto L_not_owner;
  140. if ( $castle_claimed[13] ) goto L_claimed;
  141. if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
  142. mes "Receiving the reward for this castle";
  143. GetReward;
  144.  
  145. set $castle_claimed[13], 1;
  146. close;
  147. L_payg_cas04:
  148. if ( getcastledata( "payg_cas04", 1) != getcharid(2) ) goto L_not_owner;
  149. if ( $castle_claimed[14] ) goto L_claimed;
  150. if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
  151. mes "Receiving the reward for this castle";
  152. GetReward;
  153.  
  154. set $castle_claimed[14], 1;
  155. close;
  156. L_payg_cas05:
  157. if ( getcastledata( "payg_cas05", 1) != getcharid(2) ) goto L_not_owner;
  158. if ( $castle_claimed[15] ) goto L_claimed;
  159. if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
  160. mes "Receiving the reward for this castle";
  161. GetReward;
  162.  
  163. set $castle_claimed[15], 1;
  164. close;
  165.  
  166. L_prtg_cas01:
  167. if ( getcastledata( "prtg_cas01", 1) != getcharid(2) ) goto L_not_owner;
  168. if ( $castle_claimed[16] ) goto L_claimed;
  169. if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
  170. mes "Receiving the reward for this castle";
  171. GetReward;
  172.  
  173. set $castle_claimed[16], 1;
  174. close;
  175. L_prtg_cas02:
  176. if ( getcastledata( "prtg_cas02", 1) != getcharid(2) ) goto L_not_owner;
  177. if ( $castle_claimed[17] ) goto L_claimed;
  178. if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
  179. mes "Receiving the reward for this castle";
  180. GetReward;
  181.  
  182. set $castle_claimed[17], 1;
  183. close;
  184. L_prtg_cas03:
  185. if ( getcastledata( "prtg_cas03", 1) != getcharid(2) ) goto L_not_owner;
  186. if ( $castle_claimed[18] ) goto L_claimed;
  187. if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
  188. mes "Receiving the reward for this castle";
  189. GetReward;
  190.  
  191. set $castle_claimed[18], 1;
  192. close;
  193. L_prtg_cas04:
  194. if ( getcastledata( "prtg_cas04", 1) != getcharid(2) ) goto L_not_owner;
  195. if ( $castle_claimed[19] ) goto L_claimed;
  196. if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
  197. mes "Receiving the reward for this castle";
  198. GetReward;
  199.  
  200. set $castle_claimed[19], 1;
  201. close;
  202. L_prtg_cas05:
  203. if ( getcastledata( "prtg_cas05", 1) != getcharid(2) ) goto L_not_owner;
  204. if ( $castle_claimed[20] ) goto L_claimed;
  205. if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
  206. mes "Receiving the reward for this castle";
  207. GetReward;
  208.  
  209. set $castle_claimed[20], 1;
  210. close;
  211.  
  212. L_woeon:
  213. mes "A war is currently in progress";
  214. mes "If your guild owned a castle ask your guild master to see me to claim the reward";
  215. close;
  216. L_not_owner:
  217. mes "Your guild failed to take this castle";
  218. mes "If your guild owned a castle ask your guild master to claim reward from me";
  219. close;
  220. L_claimed:
  221. mes "Your guild already received the reward for this castle";
  222. close;
  223. L_not_gm:
  224. mes "Ask your guild master to see me";
  225. close;
  226. OnAgitEnd:
  227. switch ( gettime(4) ) {
  228. case 1: set $castle_claimed[16], 0; break; // Kriem - Mon
  229. case 3: set $castle_claimed[3], 0; break; // Nuen - Wed
  230. case 5: set $castle_claimed[8], 0; break; // Yesnelph - Fri
  231. case 6: set $castle_claimed[12], 0; break; // Scarlet - Sat
  232. }
  233. end;
  234.  
  235. function GetReward
  236. {
  237. set #CASHPOINTS, #CASHPOINTS + 100;
  238. dispbottom "Received 100 Celery Credits.";
  239. dispbottom "You have " + #CASHPOINTS + " Celery Credits!";
  240.  
  241. announce "Guild Leader " + strcharinfo(0) + " has received 100 Celery Credits for this week's WoE.",0;
  242. }
  243.  
  244. OnInit:
  245. waitingroom " WoE Information",0;
  246. end;
  247.  
  248. }
Add Comment
Please, Sign In to add comment