Synth
Exalted Member
Hello Emudevs,today i'm going to share a simple core modifications to make your own zone a Sanctuary made by Madness.
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).
If you have any question feel free to ask me!
Thank you!
Best regards,
Synth !
Script info:
●Allow dueling in the specified zone.
●Disables PvP between factions.
Script:
●Open Player.cpp - You can find it here: src/server/game/Entities/Player
●Find line 7636
That is the line
●Allow dueling in the specified zone.
●Disables PvP between factions.
Script:
●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 sanctuary
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).
If you have any question feel free to ask me!
Thank you!
Best regards,
Synth !