Spam of ENTEREDAREA
Posted: Wed Dec 15, 2010 1:42 am
Hi everyone, I have a problem with spaming of ENTEREDAREA event.
After analyzing I came up with this:
Npc1 standing in areaX
Npc2 created in areaX using CreateNPC with real x,y,z,realm specified.
Npc1 whenever he moves, he gets ENTEREDAREA event from Npc2.
Imagine:
Npc1 wanders
Npc1 gets enteredarea event from npc2
Npc1 wanders
Npc1 gets enteredarea event from npc2
Npc1 wanders
Npc1 gets enteredarea event from npc2
Npc1 moves
Npc1 gets enteredarea event from npc2
Imagine now 5k npcs, where 10 are in the same area, spaming themselves area events all the time, and all of it times 500.
Any other thoughts why such thing happens ?
PS. QuickFix: Just use MoveObjectToLocation to the same location.
PS2. Im using pol99 2010-01-02, on Pol98 there is no such problem.
After analyzing I came up with this:
Npc1 standing in areaX
Npc2 created in areaX using CreateNPC with real x,y,z,realm specified.
Npc1 whenever he moves, he gets ENTEREDAREA event from Npc2.
Imagine:
Npc1 wanders
Npc1 gets enteredarea event from npc2
Npc1 wanders
Npc1 gets enteredarea event from npc2
Npc1 wanders
Npc1 gets enteredarea event from npc2
Npc1 moves
Npc1 gets enteredarea event from npc2
Imagine now 5k npcs, where 10 are in the same area, spaming themselves area events all the time, and all of it times 500.
Any other thoughts why such thing happens ?
PS. QuickFix: Just use MoveObjectToLocation to the same location.
PS2. Im using pol99 2010-01-02, on Pol98 there is no such problem.