viewing paste Unknown #15158 | 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 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
//        //=====//     /==/     /==/          /==/      
//       //     //     /==/     /==/  /=/     /==/        
//      //=====//              /==/  /=/             /==============/     /========/   /==//===/    /==/     /==/
//     //=//////    /==/      /==//=/       /==/    /==/==/==/==/==/     /     /  /   /==/         /==/     /==/
//    // ==        /==/      /==//=/       /==/    /==/  /==/  /==/     ======/  /   /==/         /==/     /==/
//   //   ==      /==/      /==/  /=/     /==/    /==/  /==/  /==/     / /===/  /   /==/         /==/     /==/
//  //     ==    /==/      /==/   /=/    /==/    /==/  /==/  /==/     / /===/  /   /==/         /==/=====/==/
// //       ==  /==/      /==/    /=/   /==/    /==/  /==/  /==/     /========/   /==/         /==///////==/
// ================ rAthena Script ==================================================
// ============== Information =======================================================
// = iRO Daily Quest : Swab the Deck
// = Made by :
// = Rikimaru
//===== Current Version: ===============================================
//= 1.4
//===== Compatible With: ===============================================
//= any rAthena SVN
//===== Description: ===================================================
//= The iRO Daily Quest : Swab the Deck
//= Usefull for having fun in a Server with a Mini Quest
//= Has a counter of 20 Hours until the Players can do the Quest agian.
//===== Additional Comments: ===========================================
//= 1.3 Finished Scripting all NPC's [Rikimaru]
//= 1.4 Fixed a saved Variable Typo [Rikimaru]
//======================================================================
//============== DO NOT REMOVE MY CREDITS AND CLAIM MY WORK AS YOURS ===
alberta,104,60,5        script  [Quest] First Mate      748,{
//============================= Settings ==========================
set .@npcname$,"[ [Quest] First Mate ]";
set .BeadID,6222;
//======================= End =====================================
if(countitem(6221) > 0 && gettimetick(2) - exchangedalready > (60 * 60 * 20)) {
mes .@npcname$;
mes "Hey,how many Mystic Leaf Cat Balls";
mes "do you want to exchange to Shiny Beads?";
mes .@npcname$;
mes "Input the Amount of the Mystic Leaf Cat Balls,which you want to exchange.";
mes "If you input 0 , you're going to cancel the deal.";
input @beadamount;
if (@beadamount == 0) {
}
mes .@npcname$;
mes "Do you really want to exchange";
mes ":"+ @beadamount +" Mystic Leaf Cat Balls";
mes "for "+ @beadamount +" Shiny Beads?";
switch(select("Yes!:No!")) {
        case 1:
        mes .@npcname$;
        mes "Okay converting... ... ...";
        if(countitem(6221) < @beadamount) goto l_noitem;
        delitem 6221,@beadamount;
        getitem .BeadID,@beadamount;
        set BaseExp,+50000000;// CHANGE THE EXP AMOUNT!!
        set JobExp,+40000000;// CHANGE THE EXP AMOUNT!!
        set exchangedalready,gettimetick(2);
        next;
        mes .@npcname$;
        mes "Okay you can exchange the Shiny Beads at the Second Mate.";
        close;
        case 2:
        mes .@npcname$;
        mes "Okay goodbye!";
        close;
        }
l_noitem:
mes .@npcname$;
mes "I'm sorry,but you're missing some items!";
}
mes .@npcname$;
mes "Hey , do you want to do the Daily Quest?";
switch(select("Yes,sure!:No,bye!:Cancel")) {
        case 1:
        mes .@npcname$;
        mes "Okay you have to go to the alberta Ship";
        mes "and enter one of the Portals and Catch A rat!";
        next;
        mes .@npcname$;
        mes "If you catch it,you'll get a Mystic Cat Ball,";
        mes "if you got it,come back to me,if you failed,";
        mes "come back to me and get a new Cat Ball,to";
        mes "catch the rats!";
        next;
        mes .@npcname$;
        mes "So,here take this,";
        mes "and come back when you finished.";
        getitem 12408,1;
        close;
        case 2:
        mes .@npcname$;
        mes "Okay,goodbye!";
        close;
        case 3:
        close;
        }
}
// ============================ End of the First Mate Script ===================================
alberta,107,59,5        script  [Quest] Second Mate     100,{
set .@npcname$,"^0000FF[ [Quest] Second Mate ]^000000";
set .BeadID,6222;
setarray @ItemID[0],5170,5773,5691,505,5578,5692;
setarray @Cost[0],50,50,50,1,30,50;
setarray @itemcount[0],1,1,1,2,1,1;
mes .@npcname$;
mes "Hello ["+strcharinfo(0)+"],do";
mes "you want to buy some items?";
mes "You'll have to give me Shiny";
mes "Beads for the Items!";
        if (select("Yes,sure","No,nevermind!") == 2)
                close;
        next;
        mes .@npcname$;
        mes "Item = Cost";
        for( set .@i, 0; .@i < getarraysize(@ItemID); set .@i, .@i + 1 ) {
                mes "^0000ff"+@itemcount[.@i]+"x "+getitemname(@ItemID[.@i])+"^000000 = ^00aa00"+@Cost[.@i]+"^000000";
                if( .@i < 1 )
                        set .@menu$, getitemname(@ItemID[.@i]);
                else
                        set .@menu$, .@menu$+":"+getitemname(@ItemID[.@i]);
        }
 
        next;
        select(.@menu$);
        set @choice, @menu - 1;
 
        mes @npcname$;
        if(countitem(.BeadID) <@Cost[@choice]) {
                mes "You need more Shiny Beads for "+@itemcount[@choice]+"x '"+getitemname(@ItemID[@choice])+"'";
                close;
        }
        mes "Are u realy sure to trade "+@itemcount[@choice]+"x '^ff0000"+getitemname(@ItemID[@choice])+"^000000' for ^00aa00"+@Cost[@choice]+"^000000 Shiny Beads?";
        if(select("No! Cancel!:Yes, Trade me!") == 1 ) {
                mes "Canceled the Trade";
                close;
        }
 
        set .@new, .BeadID - @Cost[@choice];
        if( .@new < 0 )
                set .@new, 0;
        delitem .BeadID,@Cost[@choice];
        getitem @ItemID[@choice], @itemcount[@choice];
        mes "The Trade was succesfull. Have fun with the Item!";
        close;
}
Viewed 271 times, submitted by unknown.