Advertisement
Guest User

Woe_Prize.txt

a guest
May 17th, 2012
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. disco,110,80,5 script WoE Prize 835,{
  2. if ( agitcheck() ) goto L_woeon;
  3. switch(select("Kriemhild [Primary Castle]:Scarlet Palace [Secondary Castle]")) {
  4. case 1:
  5. if ( getcastledata( "prtg_cas01", 1) != getcharid(2) ) goto L_not_owner;
  6. if ( $castle_claimed[1] ) goto L_claimed;
  7. if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
  8. mes "receiving the reward for this castle";
  9. getitem 13503,1;
  10. set $castle_claimed[1], 1;
  11. close;
  12. L_not_owner:
  13. mes "Your guild failed to take this castle";
  14. mes "If your guild owned a castle ask your guild master to claim reward from me";
  15. close;
  16. L_claimed:
  17. mes "Your guild already received the reward for this castle";
  18. close;
  19. L_not_gm:
  20. mes "Ask your Guild Master to see me";
  21. close;
  22. case 2:
  23. if ( getcastledata( "payg_cas02", 1) != getcharid(2) ) goto L_not_owner2;
  24. if ( $castle_claimed2[1] ) goto L_claimed2;
  25. if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm2;
  26. mes "receiving the reward for this castle";
  27. getitem 13504,1;
  28. set $castle_claimed2[1], 1;
  29. close;
  30. L_not_owner2:
  31. mes "Your guild failed to take this castle";
  32. mes "If your guild owned a castle ask your guild master to claim reward from me";
  33. close;
  34. L_claimed2:
  35. mes "Your guild already received the reward for this castle";
  36. close;
  37. L_not_gm2:
  38. mes "Ask your Guild Master to see me";
  39. close;
  40. }
  41. L_woeon:
  42. mes "A war is currently in progress";
  43. mes "If your guild owned a castle ask your guild master to see me to claim the reward";
  44. close;
  45. OnAgitEnd:
  46. set $castle_claimed[1], 0; // everytime woe ends the variable resets
  47. set $castle_claimed2[1], 0; // everytime woe ends the variable resets
  48. end;
  49. OnInit:
  50. waitingroom "Castle Reward",0;
  51. end;
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement