Advertisement
iFoxkun

TCG/Donation Event

Nov 26th, 2011
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. //Made by Karul
  2. quiz_02,323,235,3 script TCG Event 793,{
  3.  
  4. set .Name$,"[TCG Event]";
  5. if(getgmlevel() < 99) {
  6. mes "Sorry you must be a Level 99 Admin";
  7. close;
  8. }
  9. Main:
  10. mes "What do you want to do?";
  11. switch(select("Item [" + getitemname(.ItemID) + "]:Start Event:Start Custom Event")) {
  12. case 1:
  13. mes "What item would you want for the event?";
  14. mes "Please input the item ID:";
  15. input .ItemID;
  16. goto Main;
  17. case 2:
  18. mes "Starting the event now...";
  19. close2;
  20. goto OnStart;
  21. case 3:
  22. mes "Starting the event now...";
  23. close2;
  24. goto OnCustomStart;
  25. }
  26.  
  27. OnStart:
  28. Announce "Four items were spawned around Prontera!",bc_all;
  29. sleep2 1000;
  30. set $@ran, rand(1,4);
  31. if ($@ran == 1) set .Item,"20041";
  32. if ($@ran == 2) set .Item,"20092";
  33. if ($@ran == 3) set .Item,"20107";
  34. if ($@ran == 4) set .Item,"20126";
  35. sleep2 1000;
  36. set $@ran2, rand(1,4);
  37. if ($@ran2 == 1) set .Item2,"20143";
  38. if ($@ran2 == 2) set .Item2,"20173";
  39. if ($@ran2 == 3) set .Item2,"21000";
  40. if ($@ran2 == 4) set .Item2,"21010";
  41. sleep2 1000;
  42. set $@ran3, rand(1,4);
  43. if ($@ran3 == 1) set .Item3,"21031";
  44. if ($@ran3 == 2) set .Item3,"21024";
  45. if ($@ran3 == 3) set .Item3,"21023";
  46. if ($@ran3 == 4) set .Item3,"21036";
  47. sleep2 1000;
  48. set $@ran4, rand(1,4);
  49. if ($@ran4 == 1) set .Item4,"21039";
  50. if ($@ran4 == 2) set .Item4,"21043";
  51. if ($@ran4 == 3) set .Item4,"21047";
  52. if ($@ran4 == 4) set .Item4,"21048";
  53. sleep2 1000;
  54. makeitem .Item,1,0,0,"prontera";
  55. makeitem .Item2,1,0,0,"prontera";
  56. makeitem .Item3,1,0,0,"prontera";
  57. makeitem .Item4,1,0,0,"prontera";
  58. end;
  59.  
  60. OnCustomStart:
  61. if(.ItemID==0) {
  62. mes "You have no item set up as the prize";
  63. close;
  64. }
  65. Announce "One item was spawned around Prontera!",bc_all;
  66. makeitem .ItemID,1,0,0,"prontera";
  67. end;
  68.  
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement