Advertisement
rhenchu

Christmas CLaus

Dec 18th, 2014
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. //Break the Seal Quest by Albert
  2. //Made Oct 06,2010
  3. //Edited July 18 with Percentage - Tested and working
  4. //Edited and Finalized on December 15 for bRO
  5. //Edited for Christmas Event 2014
  6. //Edited by Hrist, Nero, Feen, Phyress
  7.  
  8. amatsu,97,121,4 script Mr Claus 718,{
  9.  
  10. if ( countitem(7557) < 1 ){
  11.  
  12.  
  13. mes "[Mr Claus]";
  14. mes " Ho! Ho! Ho! Merry Christmas to you "+strcharinfo(0)+" what brings you here?";
  15. next;
  16. mes "["+strcharinfo(0)+"]";
  17. mes "Nothing.. Just passing by.";
  18. next;
  19. close;
  20.  
  21.  
  22. }
  23.  
  24.  
  25. //You can put "//" if you don't want announce.
  26. mes "["+strcharinfo(0)+"]";
  27. mes "I bring delightful news to you! But it is in a form of a letter.";
  28. next;
  29. mes "[Mr Claus]";
  30. mes "Jolly Good! Let me see that letter my good man.";
  31. next;
  32. //7211 is Item ID and 20 is amount
  33. delitem 7557,1;
  34. mes "[Mr Claus]";
  35. mes "Hmm... Splendid! This is indeed a Christmas Miracle! Here my good man, here is my humble gift for you!";
  36.  
  37.  
  38. // This is the reward system..
  39. set .@Random,rand(1,100);
  40. //3%
  41. if( .@Random == 1 ) setarray .@ItemID,8025;
  42.  
  43. //10%
  44. else if( .@Random < 10 ) setarray .@ItemID,7055;
  45.  
  46. //20%
  47. else if( .@Random < 30 ) setarray .@ItemID,17506;
  48.  
  49. //30%
  50. else if( .@Random < 60 ) setarray .@ItemID,17470;
  51.  
  52. //40%
  53. else if( .@Random <= 100 ) setarray .@ItemID,5434;
  54.  
  55. //90% - disabled :(
  56. //else if( .@Random < 90 ) setarray .@ItemID,5528,7086,7090;
  57. else end;
  58.  
  59. set .@Random,rand( getarraysize(.@ItemID) );
  60. if( getarraysize(.@ItemID) )
  61.  
  62. //getitem v change the 1 to how many items you want to get...
  63. getitem .@ItemID[.@Random],1;
  64.  
  65. if( .@ItemID[.@Random])
  66. announce "Congratulations to "+strcharinfo(0)+" who received " + getitemname(.@ItemID[.@Random]) + " after helping in saving Christmas!",0;
  67. close;
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement