Results 1 to 2 of 2
Thread: C++ Make a zone Sanctuary!
-
29-09-13, 08:47 PM #1Graphics Guru



- Join Date
- Feb 2009
- Posts
- 1,377
- Rep Power
- 24
- Reputation
- 382
C++ Make a zone Sanctuary!
Register to remove this adC++ 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)
Replace with:Code:if (area && area->IsSanctuary()) // in sanctuary
Code: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).
-
29-09-13, 10:22 PM #2
Register to remove this adnice , thanks for sharing!



Wise
Reply With Quote
Apple







