Full Version : GETONTRIGMOB
xmlspawner >>Q&A >>GETONTRIGMOB


<< Prev | Next >>

aph- 07-12-2006
I'm just trying to make a condition with GETONTRIGMOB. So.. the main function should be something like "pet trap".
user posted image
(AllowNPCTrig=True, Max/MinD=3s, ProximityRange=3)

there is the syntax, I used. It works well (there is another spawner, which reacts to cursed pet, but it isn't important) except for ignoring the condition
Controled=True & Str>150 & Summoned=False & IsBonded=True
The second way i tryed to make a condition was with PlayerTriggerProp -> that worked beuatiful.. But the CPU usage was increasing in sequence of 3s (Min/MaxD) about 30% .
I'll be glad for any help biggrin.gif
(I hope you understood my problem, sry my english xmlspawner/up22.gif xmlspawner/up22.gif )

ArteGordon- 07-13-2006
I will see if I can reproduce the cpu load issue.

aph- 07-13-2006
btw cpu is overloaded only if you combine AllowNPCTrig and PlayerTrigProp. First time I thought it could be because of range (125proximity) but it wasn't.. so when I decreased proximity to 5 or lower, cpu usage was still high. Than I tried IF condition, but it seems the GETONTRIGMOB know only values for both (PlayerMobile, BaseCreature). Things like Tamable or else are simply ignored sad.gif . I think there is missing entry in props like MobTrigProp/NPCTrigProp

ArteGordon- 07-13-2006
QUOTE (aph @ July 13, 2006 11:07 am)
btw cpu is overloaded only if you combine AllowNPCTrig and PlayerTrigProp. First time I thought it could be because of range (125proximity) but it wasn't.. so when I decreased proximity to 5 or lower, cpu usage was still high. Than I tried IF condition, but it seems the GETONTRIGMOB know only values for both (PlayerMobile, BaseCreature). Things like Tamable or else are simply ignored sad.gif . I think there is missing entry in props like MobTrigProp/NPCTrigProp

could you post the XML for the spawner? I have not been able to reproduce this.
Also, I have been able to access all props using GETONTRIGMOB including properties like Tamable.