viewing paste Unknown #1748 | Athena

Posted on the
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
xmas,218,227,3  script  Break the Seal  710,{
//The 7211 is the item ID for the item needed and 10 is the amount.. just repeat...
if ( countitem(909) < 1 ){
    
    mes "I will ask you to get items for me in exchange for an item.";
    mes "The reward system is random, you will get items in random.";
    mes "The Reward system has percentage of success and I will tell you the percentage of each items.";
    next;
 
    mes "[Reward System]";
    mes "5% - Vendor's Ring[2], Elite Clip[2], and Falcon Clip.";
    mes "10% - Romantic Leaf";
    mes "20% - Gold";
    mes "50% - Chewing bubble gum and Dark Randgris Helm";
    mes "80% - Jellopy, Jellopy, and Jellopy";
    next;
//Edit the message if you want..
    mes "You must bring me the following items.";
    mes "20pcs. Fragment of Rossata Stone.";
    mes "30pcs. Mother's Nightmare.";
    mes "20pcs. Young Twig.";
    mes "30pcs. Pyroxene.";
    mes "30pcs. Agate.";
    mes "30pcs. Rose Quartz.";
    mes "30pcs. Muscovite.";
    mes "30pcs. Biotite.";
    mes "30pcs. Phlogopite.";
    mes "20pcs. Matchstick.";
    mes "30pcs. Peridot.";
    mes "300pcs. Cursed Seal.";
    mes "200pcs. Ancient Lips.";
    mes "300pcs. Hand Of God.";
    mes "30pcs. Mithril Coin.";
    close;
}
//7211 is Item ID and 20 is amount
delitem 909,1;
//You can put "//" if you don't want announce.
announce "Woah! "+strcharinfo(0)+" just broke the seal of Valkyrie! Wish him/her luck!",0;
mes "So you have all the items...and in exchange I will give you a nice item.";
 
// This is the reward system..
set .@Random,rand( 100 );
//5%
if( .@Random < 5 ) setarray .@ItemID,5374,5013,5072;
//20%
else if( .@Random < 20 ) setarray .@ItemID,969;
 
//10% 
else if( .@Random < 10 ) setarray .@ItemID,2270;
//50%
else if( .@Random < 50 ) setarray .@ItemID,5597,5373;
//100%
else if( .@Random < 100 ) setarray .@ItemID,909;
//90% - wala pa e :(
//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;
    close;
}
Viewed 802 times, submitted by Guest.