Advertisement
huertz

hollow poring

Oct 22nd, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.78 KB | None | 0 0
  1. // Evento Halloween Boss [ Hollow Poring ] v 0.925 + codigo test by [ Daemos2 ]
  2. // Changelog
  3. // [19/10/2k16]
  4. // Añadido mensaje al loguear si el Hollow Poring esta vivo
  5. // Los players en el mapa recibirán x8 Poring Coins
  6. // Quien mate al MvP se llevará x8 Poring Coins Extra
  7.  
  8. nif_fild01,1,1,0    script  HollowPoring    -1,{
  9. OnInit:
  10.     while(1){// Inicio de la iteración
  11.         set $HoPo, 0;
  12.         set $HPalive, 0;
  13.         initnpctimer;
  14.         end;
  15.  
  16. OnTimer10800000: // Respawn mínimo de 3 horas
  17. //OnTimer6000: // Respawn mínimo test de 6 segundos
  18.         stopnpctimer;
  19.         //set $HoPo, rand(61); // Respawn variable test de 60 segundos
  20.         set $HoPo, rand(7201); // Respawn variable de 7200 segundos (2 horas)
  21.         //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
  22.         set $HoPoRespawn, $HoPo + gettimetick(2);
  23.         while($HoPoRespawn > gettimetick(2)){   // Mientras que no sea la hora
  24.             sleep 1000; // Duerme 1 segundo
  25.         }
  26.         announce "The Hollow Poring have returned!",bc_all,0x00FF95; // Anuncio de aparición del Hollow Poring
  27.         set $HPalive, 1;
  28.         monster "nif_fild01",0,0,"Hollow Poring",2968,1,"HollowPoring::OnHPDead";
  29.         end;
  30.  
  31. OnHPDead: // Cuando muere:
  32.         announce "[ " +strcharinfo(0) +" ] has defeated the Hollow Poring!",bc_all,0x00FF95; // Anuncio del player que mato al Hollow Poring
  33.         getitem 7539,8; // x8 Poring Coin a quien mate al MvP
  34.         addrid(1);  // Adjunta los RIDs de todos los players del mapa al player que mato al hollow poring
  35.         getitem 7539,8; // x8 Poring Coin a todos los players de ese mapa
  36.     }// Fin de la iteracion
  37.  
  38. OnPCLoginEvent:
  39.     if($HPalive) announce "Hollow Poring is still alive!",bc_self,0x00FF95; // Al loguear, te avisa si el Hollow Poring esta vivo
  40.     end;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement