Hello Emudevs,today i'm going to share a simple core modifications to make your own zone a Sanctuary made by Madness.
●Allow dueling in the specified zone.
●Disables PvP between factions.
●Open Player.cpp - You can find it here: src/server/game/Entities/Player
●Find line 7636
That is the line●Replace with - NEW=COLORif (area && area->IsSanctuary()) // in sanctuaryJust change the 100 to whatever area ID you wish to use. (Use .gps in the area you wish to make a sanctuary and replace it with the ID above).if (area && area->IsSanctuary() || GetAreaId() == 100) // Replace the 100 with your area ID
If you have any question feel free to ask me!