PDA

View Full Version : C++ Make a zone Sanctuary!



Wise
29-09-13, 08:47 PM
C++ Make a zone Sanctuary!



I know a lot of people use DBC editing to make a zone a sanctuary, but here is a simple C++ edit that will give you exactly the same results (and it's much easier to edit etc). This will allow dueling in the specified zone, but disables PvP between factions (great for a mall).



Open -> Player.cpp:

Find: (around line 7636)


if (area && area->IsSanctuary()) // in sanctuary

Replace with:

if (area && area->IsSanctuary() || GetAreaId() == 100) // Replace the 100 with your area ID
Just 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).

Apple
29-09-13, 10:22 PM
nice , thanks for sharing!