Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 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 by Hrist, Nero, Feen, Phyress
  6.  
  7. amatsu,97,121,4 script Mr Claus 718,{
  8. if(#DoneQuest == 1)
  9. {
  10. mes "[Mr Claus]";
  11. mes "Ohoho! Don't be a naughty one or else that will turn into coal.";
  12. close;
  13. end;
  14. }
  15. if ( countitem(7557) < 1 ){
  16.  
  17.  
  18. mes "[Mr Claus]";
  19. mes " Ho! Ho! Ho! Merry Christmas to you "+strcharinfo(0)+" what brings you here?";
  20. next;
  21. mes "+strcharinfor(0)+";
  22. mes "I bring delightful news to you! But it is in a form of a letter.";
  23. next;
  24. mes "[Mr Claus]";
  25. mes "Jolly Good! Let me see that letter my good man.";
  26. mes "Hmm... Splendid! This is indeed a Christmas Miracle! Here my good man, here is my humble gift for you!";
  27. next;
  28. close;
  29.  
  30. }
  31.  
  32. //7211 is Item ID and 20 is amount
  33. delitem 7557,1;
  34.  
  35.  
  36. //You can put "//" if you don't want announce.
  37. //mes "So you have all the items...and in exchange I will give you a nice reward.";
  38.  
  39. // This is the reward system..
  40. set .@Random,rand(1,100);
  41. //3%
  42. if( .@Random == 1 ) setarray .@ItemID,8025;
  43.  
  44. //10%
  45. else if( .@Random < 10 ) setarray .@ItemID,7055;
  46.  
  47. //20%
  48. else if( .@Random < 30 ) setarray .@ItemID,17506;
  49.  
  50. //30%
  51. else if( .@Random < 60 ) setarray .@ItemID,17470;
  52.  
  53. //40%
  54. else if( .@Random <= 100 ) setarray .@ItemID,5434;
  55.  
  56. //90% - disabled :(
  57. //else if( .@Random < 90 ) setarray .@ItemID,5528,7086,7090;
  58. else end;
  59.  
  60. set .@Random,rand( getarraysize(.@ItemID) );
  61. if( getarraysize(.@ItemID) )
  62.  
  63. //getitem v change the 1 to how many items you want to get...
  64. getitem .@ItemID[.@Random],1;
  65. set #DoneQuest, 1;
  66. if( .@ItemID[.@Random])
  67. announce "Congratulations to "+strcharinfo(0)+" who received " + getitemname(.@ItemID[.@Random]) + " after helping in saving Christmas!",0;
  68.  
  69. close;
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement