viewing paste Unknown #14389 | 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
prontera,150,150,3  script  Farming Room    731,{
    set .@n$,"^008800[Farming Room]^000000";
    mes .@n$;
    mes "Would you like to join the Treasure Hunting Event?";
    next;
    if(select("~ Yes:~ No") == 2){
        mes .@n$;
        mes "Oh, okay!";
        close;
    }
    mes .@n$;
    mes "There you go!";
    close2;
    warp "bossnia_01",0,0;
    end;
}
//bossnia_01,0,0,0,0    monster Treasure Chest  1002,300,120000,0,0
//bossnia_01,0,0,0,0    monster Event Poring    1002,300,120000,0,0
//bossnia_01    mapflag restricted  3
        
        
        
-   script  grptbased   -1,{
 
OnInit:
    monster "bossnia_01", 0,0, "Resident Monster", 1002, 500, strnpcinfo(0)+"::Onaaa";
    .itemid = 969;
    end;
Onaaa:
    monster "bossnia_01", 0,0, "Resident Monster", 1002, 1, strnpcinfo(0)+"::Onaaa";
    if ( !getcharid(1) ) {
        getitem .itemid, 1;     
    }
    else {
        .@killer = getcharid(3);
        getpartymember getcharid(1), 1;
        getpartymember getcharid(1), 2;
        for ( .@i = 0; .@i < $@partymembercount; .@i++ ) {
            if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) {
                attachrid $@partymemberaid[.@i];
                if ( strcharinfo(3) == "bossnia_01" ) {
                    .@count++;
                }
            }
        }
        if ( .@count < 2 ) .@itemget = 1;
        else if ( .@count < 3 ) .@itemget = 2;
        else if ( .@count < 4 ) .@itemget = 3;
        else if ( .@count < 5 ) .@itemget = 4;
        else if ( .@count < 6 ) .@itemget = 5;
        else if ( .@count < 7 ) .@itemget = 6;
        else if ( .@count < 8 ) .@itemget = 7;
        else if ( .@count < 9 ) .@itemget = 8;
        else if ( .@count < 10 ) .@itemget = 9;
        else if ( .@count < 11 ) .@itemget = 10;
        else if ( .@count < 11 ) .@itemget = 11;
        else if ( .@count < 11 ) .@itemget = 12;
        else if ( .@count < 11 ) .@itemget = 13;
        else if ( .@count < 11 ) .@itemget = 14;
        else if ( .@count < 11 ) .@itemget = 15;
        for ( .@i = 0; .@i < $@partymembercount; .@i++ ) {
            if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) {
                attachrid $@partymemberaid[.@i];
                if ( .@killer == getcharid(3) ) {
                    getitem .itemid, .@itemget;
                }
                else if ( strcharinfo(3) == "bossnia_01" && checkidle() < 40 ) { // must not idle more than 60 seconds
                    getitem .itemid, 1;
                }
            }
        }
    }
    end;
}
 
-   script  farmroomz   -1,{
OnInit:
    bindatcmd "farm",strnpcinfo(3)+"::OnFarm";
    end;
OnFarm:
    warp "bossnia_01",0,0;
    end;
}
Viewed 531 times, submitted by Guest.