viewing paste Unknown #9569 | 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
-   script  mvp_badges  -1,{
 
OnNPCKillEvent:
if( gethominfo(0) > 0 )
 {
  set awaymode, 1;
 }
else
 {
  set awaymode, 0;
 }
    if( getmonsterinfo( killedrid,MOB_MVPEXP ) ) {
     if (awaymode == 1) { 
     if (rand(2000) <= 1) // 0,05% chance of activating.
         getitem 501,10;
         dispbottom "You Gained 1 MVP Badge for Killing this MVP.";
         dispbottom "DEBUG: Homuculus Modus.";
    }
    if (awaymode == 0) {
    if (rand(100) <= 5) // 10% chance of activating.
        getitem 501,10;
        dispbottom "You Gained 1 MVP Badge for Killing this MVP.";
        dispbottom "DEBUG: Ohne Homunculus Modus.";
    }
    
}
    end;
    
}
Viewed 692 times, submitted by Guest.