Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Evento Halloween Boss [ Hollow Poring ] v 0.925 + codigo test by [ Daemos2 ]
- // Changelog
- // [19/10/2k16]
- // Añadido mensaje al loguear si el Hollow Poring esta vivo
- // Los players en el mapa recibirán x8 Poring Coins
- // Quien mate al MvP se llevará x8 Poring Coins Extra
- nif_fild01,1,1,0 script HollowPoring -1,{
- OnInit:
- while(1){// Inicio de la iteración
- set $HoPo, 0;
- set $HPalive, 0;
- initnpctimer;
- end;
- OnTimer10800000: // Respawn mínimo de 3 horas
- //OnTimer6000: // Respawn mínimo test de 6 segundos
- stopnpctimer;
- //set $HoPo, rand(61); // Respawn variable test de 60 segundos
- set $HoPo, rand(7201); // Respawn variable de 7200 segundos (2 horas)
- //announce "Hollow Poring sale en " + $HoPo + " segundos.",bc_all,0x00FF95; // Anuncio test de cuantos segundos falta para que salga el Hollow Poring pasado el tiempo mínimo
- set $HoPoRespawn, $HoPo + gettimetick(2);
- while($HoPoRespawn > gettimetick(2)){ // Mientras que no sea la hora
- sleep 1000; // Duerme 1 segundo
- }
- announce "The Hollow Poring have returned!",bc_all,0x00FF95; // Anuncio de aparición del Hollow Poring
- set $HPalive, 1;
- monster "nif_fild01",0,0,"Hollow Poring",2968,1,"HollowPoring::OnHPDead";
- end;
- OnHPDead: // Cuando muere:
- announce "[ " +strcharinfo(0) +" ] has defeated the Hollow Poring!",bc_all,0x00FF95; // Anuncio del player que mato al Hollow Poring
- getitem 7539,8; // x8 Poring Coin a quien mate al MvP
- addrid(1); // Adjunta los RIDs de todos los players del mapa al player que mato al hollow poring
- getitem 7539,8; // x8 Poring Coin a todos los players de ese mapa
- }// Fin de la iteracion
- OnPCLoginEvent:
- if($HPalive) announce "Hollow Poring is still alive!",bc_self,0x00FF95; // Al loguear, te avisa si el Hollow Poring esta vivo
- end;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement