Can anyone see an error here?
Nevermind im not a moron. Slightly new problem. My mob spawns the npcs right the first time, then the second time he spawns them, but he keeps spawning them like every 30 secords afterwards and im not sure why.
The timer triggers after 3 minutes the first time but like i said above its like its triggering every 10-30 seconds then afterwards. I dont see anything that would make it do that, when I set the timer again i set it to 120 Code:
#azog mon |
I think it comes from the if($hpevent <= 98)
it might launch over and over as long as the HP are under 98, not pretty used with these variables, but I don't use this like that. |
Quote:
|
ok thats not it. Its also triggering the rampage timer even though nothing sets it. Also i noticed, i removed the rampage timer now it seems like the other timer isnt triggering
Code:
#azog mon |
You should try putting your npc special attacks in double quotes as it is a string. Also in your timers, use eq instead of == for strings. Also an FYI: timers continue endlessly unless you stop them, so no need to restart timers like what you have.
|
Code:
#azog mon Also I am not sure why don't put the special attacks directly on mob. |
Quote:
|
But then he regen? would it alter the hp event 98?? I don't know.
Anyway, you tested it like that? |
yeah they arent spawning at all now after the initial spawn
|
I got it working by the way, i found a missing bracket
Code:
#azog mon |
Just FYI, it is a good idea to use 'eq' as an operator to compare strings.
When you export the $timer object in this case you are using a string to identify your timer names, not an ID. So you would be looking at something similar to: Code:
if ($timer eq "SpawnAcolytes") Code:
if ($timer == "SpawnAcolytes") And as Joligario was trying to say, you want to quote your strings as a best practice: Code:
$npc->NPCSpecialAttacks(DIMUCNfAB, 0); Code:
$npc->NPCSpecialAttacks("DIMUCNfAB", 0); Hopefully that helps. ~Akka |
All times are GMT -4. The time now is 07:11 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.