viewing paste venatu event | 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
/*
    http://www.emistry.net/board/index.php?threads/custom-monster-invasion.218/
    
    event Information:
 
    Spawns every 10minutes.
    ( xx:00; xx:10; xx:20; xx:30; xx:40; xx:50; )
    Monster ID : 1679 (Venatu)
    Monster Amount : 10
    Place Spawned : prontera
    When start : Broadcast: "10x Venatu has Spawned in Prontera"
    When a player killed one Venatu: Broadcast: "PlayerName kill 1x Venatu." (bc color Yellow)
    Venatu Monster Left: 9". (bc color Orange) Until "Venatu Monster Left: 1".
    Then if all the monster are killed it will Broadcast: "All Venatu Monsters are Killed. They will be back next 10 minutes."
        
*/
 
-   script  Sample  -1,{
OnInit:
// mob id + amount
setarray .mob_id,1679,10;
// map
.map$ = "prontera";
.mob_name$ = getmonsterinfo( .mob_id[0],MOB_NAME );
.npc_name$ = strnpcinfo(0);
end;
 
OnMinute00:
OnMinute10:
OnMinute20:
OnMinute30:
OnMinute40:
OnMinute50:
    killmonster .map$,"All";
    announce .mob_id[1]+"x "+.mob_name$+" has spawned in "+.map$,0;
    monster .map$,0,0,.mob_name$,.mob_id[0],.mob_id[1],.npc_name$+"::OnKill";
    .count = .mob_id[1];
    end;
    
OnKill:
    .count--;
    if( .count ){
        announce .mob_name$+" Left "+.count,0,0xFF7F50;
    }else{
        announce "All "+.mob_name$+" Monsters are Killed. They will be back next 10 minutes.",0,0xFF7F50;
    }
    end;
}
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
Viewed 1182 times, submitted by Emistry.