Boss trigger event
Hey guys, I'm totally baffled as to why this won't work, but maybe you guys can help? I dumbed this down a ton to try and get the boss to move, but he still wont move
Code:
##Test Boss Quest |
This looks fine to me, except you might want to correct 'heresy.'
Upon further inspection, these commands try to give the mob a waypoint, which they seem to ignore in combat. I even tried $npc->GMMove to same effect, but the source doesn't force an update. Try updating the final command in perl_mob.cpp, XS_Mob_GMMove to: THIS->GMMove(x, y, z, heading, true); I can test this further tomorrow. |
Ok, thanks I'll give it a shot
|
I think GMMove makes them warp/gate to whatever location you use. Unfortuantely, due to how combat works, you can't really make an NPC walk to another location during combat without using a few tricks.
You could set the special attacks to H so it won't aggro and then wipe the hate list both using quest objects. Then, it should be able to walk to another location, but you will also want to set it to save its guard point. Before the move, you probably have to do something like this: Code:
$npc->NPCSpecialAttacks("H", 0); Code:
$npc->MoveTo(-324, 778, -10, 128, 1); Code:
$npc->NPCSpecialAttacks("H", 0, 0 1); I don't know the details of exactly what you are wanting to do, but it is probably not going to be as simple as you may have expected. Also, I don't know why you are setting $combat_state to 1 in EVENT_COMBAT. That is not how it works. You would do something more like this: Code:
if ($combat_state) |
I suppose you could depop and pop if the move needs to be instant.
|
That depends on if they want the NPC to walk to a destination or if they are ok with them warping to a destination. If they don't need it to walk there, then they can just have it warp there with GMMove() like you said.
|
All times are GMT -4. The time now is 01:27 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.