Hello guys,
I've started adapting LongTimeEvent class from hi5 in interlude. All seems to be working fine, but I have an issue with double npcs spawn.
I have npc which suppose to spawn here x="-84021" y="243774" z="-3728" heading="54690".
I made a simple debug in QuestSpawn.addSpawn() method (which is started by Quest.addSpawn()) to check if this npc spawns single time, or maybe something executes addSpawn multiple times.
Debug displays info about a spawn like:
[28/01 18:48:31] spawning 31864 at: -84021, 243774, -3708, 54690
Nothing fancy. As you probably suspect - there is single line there, so addSpawn method is fired once.
However in game I see two npcs, one has coordinates x="-84021" y="243774" (as in XML), but z="-3708" is different, and 2nd has very similar: x="-84016" y="243778" (not like in XML), z="-3728" (as in XML).
When I change coordinates in XML to: x="-84016" y="243778" z="-3728" (x,y from 2nd spawn and z from the first one) - npc spawns just once, without problem. Thats why I suspect it might be location related.
This is how it looks like:
Any advice would be appriciated.