viewing paste MrsClaus | Athena

Posted on the | Last edited on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
//Break the Seal Quest by Albert
//Made Oct 06,2010
//Edited July 18 with Percentage - Tested and working
//Edited and Finalized on December 15 for bRO
//Edited for Christmas Event 2014
//Edited by Hrist, Nero, Feen, Phyress
 
amatsu,97,121,4 script  Mrs Claus       714,{
 
if ( countitem(7557) < 1 ){
       
       
        mes "[Mrs Claus]";
        mes " Oh dear! "+strcharinfo(0)+", you startled me little one! Uhm... What brings you here?";
        next;
        mes "["+strcharinfo(0)+"]";
        mes "I want more cookies and milk!";
        next;
        close;
       
 
}
 
 
//You can put "//" if you don't want announce.
        mes "["+strcharinfo(0)+"]";
        mes "I bring delightful news to you! But it is in a form of a letter.";
        next;
        mes "[Mrs Claus]";
        mes "Splendid! Let me have that letter please.";
        next;
        mes "[Mrs Claus]";
        mes "Oh dear~ Oh dear~ Oh heavens! This is indeed a delightful news! It's a Christmas Miracle!";
        next;
        //7211 is Item ID and 20 is amount
        delitem 7557,1;
        mes "[Mrs Claus]";
        mes "Your hardwork will not be in vain! Here's my present for you. Thankyou so much!";
       
 
// This is the reward system..
set .@Random,rand(1,100);
//3%
if( .@Random == 1 ) setarray .@ItemID,17511;
 
//10%
else if( .@Random < 10 ) setarray .@ItemID,17511;
 
//20%
else if( .@Random < 30 ) setarray .@ItemID,17521;
 
//30%
else if( .@Random < 60 ) setarray .@ItemID,17508;
 
//40%
else if( .@Random <= 100 ) setarray .@ItemID,17508;
 
//90% - disabled :(
//else if( .@Random < 90 ) setarray .@ItemID,5528,7086,7090;
else end;
 
set .@Random,rand( getarraysize(.@ItemID) );
if( getarraysize(.@ItemID) )
 
//getitem v change the 1 to how many items you want to get...
        getitem .@ItemID[.@Random],1;
       
if( .@ItemID[.@Random])
        announce "Congratulations to "+strcharinfo(0)+" who received " + getitemname(.@ItemID[.@Random]) + " after helping in saving Christmas!",0;
}
Viewed 370 times, submitted by rhenchu.