viewing paste paskie mvp room script | 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 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
prontera,155,177,4  script  MvP Challenge 1#Register    469,{
//  if ( $timer > gettimetick( 2 ) ) {
//      mes .npc$;
//      mes "Event can be started again after " +($timer - gettimetick(2))+ " second(s).";
//      close;
//  }
    $tairyuvar10006 = 0; // for debug
    if ( !getcharid( 1 ) ) {
        mes .npc$;
        mes "No party.";
        close;
    }
    if ( getpartyleader( getcharid( 1 ), 2 ) != getcharid( 0 ) ) {
        mes .npc$;
        mes "Only the party leader can activate the event.";
        close;
    }
    getpartymember getcharid( 1 );
    if ( $@partymembercount < .member_requirement ) {
        mes .npc$;
        mes "You need at least" +.member_requirement+ " members in the party.";
        close;
    }
    mes .npc$;
    mes "Hello " +strcharinfo( 0 )+ " now the challenge is " + ( $tairyuvar10006 ? "^FF0000No available" : "^00FF00available" ) + "^000000.";
    if ( $tairyuvar10006 ) close;
    else next;
    announce "Deseenle suerte a la Party [ " +getpartyname( getcharid( 1 ) )+ " ] pues ha iniciado el " +.event$+ " event.",0;
    warpparty .map$,49,50,getcharid( 1 );
    $tairyuvar10006 = 1;
    hideoffnpc "MvP Master 1";
    close;
    
OnInit:
    .map$ = "guild_vs2-1"; // map name
    .member_requirement = 2; // minimum party member allowed
    .npc$ = "[ ^FF0000" +strnpcinfo(1)+ "^000000 ]";
    .event$ = "MvP Challenge 1"; // name of the event lol
    end;
}
 
guild_vs2-1,49,50,4 script  MvP Master 1    100,{
    if ( getpartyleader( getcharid( 1 ), 2 ) != getcharid( 0 ) ) {
        mes .npc$;
        mes "No eres el lider de la party";
        close;
    }
    mes .npc$;
    mes "Activar el evento?";
    mes "Rondas restantes : " +( .totalround - .round );
    next;
    if ( select( "Si:No" ) - 1 ) close;
    .round++;
    for ( .@i = 0; .@i < .amount_spawn[ .round - 1 ]; .@i++ )
        monster .map$,0,0,"--ja--",.mobs[ rand( getarraysize( .mobs ) ) ],1,strnpcinfo(0)+"::OnKill";
    announce "Ronda [" +.round+ "]. EN GUARDIA!!!!",bc_map;
    hideonnpc strnpcinfo( 1 );
    close;
    
OnPCDieEvent:
    if ( strcharinfo(3) != .map$ || !$tairyuvar10006 ) end;
    warp "SavePoint",0,0;
    if ( getmapusers( .map$ ) ) end;
    announce "[Debug] trigger", bc_map;
    $tairyuvar10006 = 0; .round = 0;
    killmonsterall .map$;
    $timer = gettimetick(2) + 3600;
    end;
 
OnKill:
    if ( mobcount( .map$, strnpcinfo( 1 )+"::OnKill" ) ) {
        announce mobcount( .map$, strnpcinfo( 1 )+"::OnKill" )+ " Monstruo(s) quedan por derrotar",bc_map;
        end;
    }
    addrid 2, 0, getcharid(1);
    getitem .prize[ .round - 1 ], .amount[ .round - 1 ];
    if ( .round < .totalround ) hideoffnpc strnpcinfo(0);
    else { warp "prontera",155,177; $tairyuvar10006 = 0; .round = 0; $timer = gettimetick(2) + 3600; }
    end;
    
OnInit:
    hideonnpc strnpcinfo(1);
    .map$ = "guild_vs2-1"; // map name
    .npc$ = "[ ^FF0000" +strnpcinfo(1)+ "^000000 ]";
    .totalround = 5; // maximum rounds
    setarray .mobs[0],1852,1514,1853,1576,1847,1894,1399,1802,1874,1885,1980,1038,1039,1046,1059,1086,1087,1112,1115,1147,1150,1157,1159,1190,1251,1252,1272,1312,1373,1389,1418,1492,1511,1583,1623,1630,1658,1685,1688,1719,1708,1734,1751,1768,1779,1785,1832,1871; // mob id
    setarray .amount_spawn[0],3,5,7,9,10;
    setarray .prize[0],673,675,7829,7828,12103;
    setarray .amount[0],250,100,3,3,1;
    end;
}
 
guild_vs2-1 mapflag nomemo
guild_vs2-1 mapflag nowarp
guild_vs2-1 mapflag nowarpto
guild_vs2-1 mapflag noteleport
guild_vs2-1 mapflag nosave  SavePoint
Viewed 1145 times, submitted by AnnieRuru.