Advertisement
Guest User

Untitled

a guest
Jul 17th, 2020
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.74 KB | None | 0 0
  1. ***---> Server/Common/service.h or CommonDefines.h <---***
  2.  
  3. // Aggiungere:
  4. #define ENABLE_NOTICE_REGEN
  5.  
  6.  
  7. ***---> Server/game/src/regen.cpp <---***
  8.  
  9. // Cercare nella funzione: "static void regen_spawn(LPREGEN regen, bool bOnce)"
  10.  
  11.         if (ch && !bOnce)
  12.             ch->SetRegen(regen);
  13.            
  14. // Sostituire con:
  15.  
  16.         if (ch && !bOnce)
  17. #ifdef ENABLE_NOTICE_REGEN
  18.         {
  19.             if (ch->IsMonster() && ch->GetMobRank() >= MOB_RANK_BOSS)
  20.             {
  21.                 char buf[256];
  22.                 snprintf(buf, sizeof(buf), "[***<< BalanzaDev - Notice Boss >>***]---> %s e' di nuovo fra noi e sta facendo scappare i nostri soldati, correte in soccorso!", ch->GetName());
  23.                 SendNotice(buf);
  24.             }
  25.             ch->SetRegen(regen);
  26.         }
  27. #else
  28.             ch->SetRegen(regen);
  29. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement