I've read up a lot on them, but I can't seem to find it. Could anyone tell me how to make guards for a Mall area that I DON'T want PvP in?
I've read up a lot on them, but I can't seem to find it. Could anyone tell me how to make guards for a Mall area that I DON'T want PvP in?
Code:#include "StdAfx.h" #include "Setup.h" #define Zone 42; void OnEnterCombat(Player *pPlayer, Unit *pUnit) { if (pPlayer->GetZoneId() == Zone) { pPlayer->KillPlayer(); pPlayer->BroadcastMessage("Do not pvp!"); } } void SetupNoPvP(ScriptMgr* mgr){ mgr->register_hook(SERVER_HOOK_EVENT_ON_ENTER_COMBAT, &OnEnterCombat); }
Change 42, to the number of your zone.
Doesn't that eat cpu?
i think it does, you can try this guard: Board Message
remember to +Rep people that helped you out Spartansp RepackV4 How to setup Spartansp Repack
Usefull guide 1 MMOwned Morpher SFGAMES WEBSITE