Quote:
Originally Posted by LethaL
Hi we've just implemented Peace Areas in spawn point on our servers then people started to heal from the peace zones and summoners attacking with their pets in them so i wounder if there's any solution to that? If there isn't i'd rather remove them totally.
Thanks in advance.
|
Solution to summoners attacking from peace zone (not only GK Respawn, all peace zones)
With this fix summoners are unable to use summon inside peace zone, not matter what action you send to summon, only when you go out of the peace zone will start to react.
Compile it yourself... i spent like 1 hour to compile it, since no one is going to share a compiler, im not going to compile nothing for other people.
You dont know how to do ? Learn as I did...
Code:
class summon_fix_peace : default_npc {
handler:
EventHandler CREATED() {
myself->AddTimerEx(901,100);
}
EventHandler TIMER_FIRED_EX(timer_id) {
if (myself.master.in_peacezone == 1) {
if (timer_id == 901) {
myself->AddPetDefaultDesire_Follow(20000xx.xx0000);
myself->AddTimerEx(902,3000);
}
if (timer_id == 902) myself->AddTimerEx(902,1000);
}
}
else if (timer_id == 901) myself->AddTimerEx(901,1000);
else if (timer_id == 902) {
RemoveAllDesire();
myself->AddTimerEx(901,1000);
}
}
}
Use this class between summons class and default_npc
Handlers CREATED and TIMER_FIRED_EX that exits already in others classes will need to add super; if you wish this work with them too.
If you want the compiled code, send a PM, please, leachers and people with 1 post dont try it, i will not answer.