viewing paste Unknown #14183 | 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
prt_in,30,100,5 script  Szörnyevent    601,{
end;
 
OnInit:
bindatcmd "szornyevent1",strnpcinfo(3)+"::OnAtcommand1";
bindatcmd "szornyevent2",strnpcinfo(3)+"::OnAtcommand2";
disablenpc "lilyevent1";
end;
 
// Szörnyidézés: !szornyevent1 x y
OnAtcommand1:
monster "guild_vs1-3",30,30,--en--,atoi(.@atcmd_parameters$[0]),atoi(.@atcmd_parameters$[1]),"Szörnyevent::OnCount";
monster "guild_vs1-3",19,50,--en--,atoi(.@atcmd_parameters$[0]),atoi(.@atcmd_parameters$[1]),"Szörnyevent::OnCount";
monster "guild_vs1-3",30,69,--en--,atoi(.@atcmd_parameters$[0]),atoi(.@atcmd_parameters$[1]),"Szörnyevent::OnCount";
monster "guild_vs1-3",49,78,--en--,atoi(.@atcmd_parameters$[0]),atoi(.@atcmd_parameters$[1]),"Szörnyevent::OnCount";
monster "guild_vs1-3",69,69,--en--,atoi(.@atcmd_parameters$[0]),atoi(.@atcmd_parameters$[1]),"Szörnyevent::OnCount";
monster "guild_vs1-3",81,50,--en--,atoi(.@atcmd_parameters$[0]),atoi(.@atcmd_parameters$[1]),"Szörnyevent::OnCount";
monster "guild_vs1-3",69,30,--en--,atoi(.@atcmd_parameters$[0]),atoi(.@atcmd_parameters$[1]),"Szörnyevent::OnCount";
monster "guild_vs1-3",49,18,--en--,atoi(.@atcmd_parameters$[0]),atoi(.@atcmd_parameters$[1]),"Szörnyevent::OnCount";
end;
 
OnCount:
    if (mobcount("this", "all") == 0) {
    announce "[Lily] Végeztetek ezzel a hullámmal!",1,0x33FFFF;
    } else {
    end;
    }
    
// Boss idézés: !szornyevent2 x y
monster "guild_vs1-3",50,71,--en--,atoi(.@atcmd_parameters$[0]),atoi(.@atcmd_parameters$[1]),"Szörnyevent::OnBossCount";
 
OnBossCount:
    if (mobcount("this", "all") == 0) {
    announce "[Lily] Sikeresen legyőztétek a bosst! Gratulálok!!",1,0x33FFFF;
    sleep2 10000;
    announce "[Lily] Készüljetek a következő harcra!",1,0x33FFFF;
    } else {
    end;
    }
    
// NPC megjelenítése középen - szabályok, stb.
if(getgmlevel() > 7) {
    OnWhisperGlobal:
    if (@whispervar0$ == "gyere"){
    enablenpc "lilyevent1";
    end;
    }
    else if (@whispervar0$ == "kifelé"){
    disablenpc "lilyevent1";
    end;
    }
}
}
 
guild_vs1-3,50,50,3 script  Lily#1::lilyevent1  601,{
end;
}
Viewed 544 times, submitted by Guest.