Stop attacking!
I'm having a little bit of a problem with this boss script and I was hoping one of you more experienced people could help me out.. I used the search function and found a similar thread to this one, but it didn't seem to tell me anything I haven't already tried or produce any solutions for me.
The point of this script is to have the boss cast his stun, and then run over to the location I have set.. I've pasted a snippet of the script below. With this he casts his stun, but continues to attack you and doesn't move to where he's supposed to.. I also wasn't sure if the timing for pause was in milliseconds or not so if it's not I'll just fix that, but that's not really the issue right now! I've tried to wipe his hate list, which just makes him go back to his spawn point.. I've also tried setting his attack flags to be unattackable/wont attack back and that doesn't work either. I'm aware that it could be done if i set a combat state and wipe his hate list, but this is going to a happen a few times during the fight. Code:
|
I'm no expert, but there doesn't seem to be any faculty for conveniently overriding the combat movement AI in the standard EQEmu code. On my server I added an NPC setting to disable combat AI movement and instead move to a script-defined loc regardless of aggro -- but I don't know how to add stuff for Perl so I wouldn't be able to offer it up myself.
Maybe there is already some trick to doing what you're going for here, but I think an explicit inclusion of alternative combat movement would probably be better anyway. (Or I guess maybe nothing on live works like that, so it wouldn't be made part of the standard code regardless? I'm new at this...) |
Have you seen http://new.eqemulator.net/forums/sho...d.php?p=184474
Looks like pause is used for waypoint pathing. I see 2 scripts that have in the on spawn event but that is it. Looks like you either need to use timers or figure out the work around to this. edit: look at \quests\eastwastes\Tain_Hammerfrost.pl |
Quote:
Quote:
Code:
quest::pause(time) - Forces the NPC to take a break for a certain time Edit: I looked at that script and tried to use $npc->MoveTo hoping it would magically override him being in combat instead of quest::moveto and that didn't work either. |
There are a lot of ways to accomplish what you want.
You can make an invs NPC and have your boss go attack it to move it there. OR if you want it to move, you have to wipe its hatelist, then when it resets, issue the move command. Its a little complicated but it can be done. |
Quote:
|
Pretty hacky :\
|
Actually, attacking an invis mob would be great for showing his anger and frustration :)
Of course, one might think he has tourrett's as well... |
Quote:
|
have you tried quest::pathto($x, $y, $z) and $npc->SetRunning() after setting him immune /non-targetable / non-aggro?
|
If your NPC spawns, then he will always go back to his spawn point after losing aggro or the pathing ends.
The best method to get around that is to spawn the NPC in a script from a controller NPC. |
Quote:
|
All times are GMT -4. The time now is 04:52 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.