Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ***---> Server/Common/service.h or CommonDefines.h <---***
- // Aggiungere:
- #define ENABLE_NOTICE_REGEN
- ***---> Server/game/src/regen.cpp <---***
- // Cercare nella funzione: "static void regen_spawn(LPREGEN regen, bool bOnce)"
- if (ch && !bOnce)
- ch->SetRegen(regen);
- // Sostituire con:
- if (ch && !bOnce)
- #ifdef ENABLE_NOTICE_REGEN
- {
- if (ch->IsMonster() && ch->GetMobRank() >= MOB_RANK_BOSS)
- {
- char buf[256];
- 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());
- SendNotice(buf);
- }
- ch->SetRegen(regen);
- }
- #else
- ch->SetRegen(regen);
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement