I need some quest help. Scripted boss fight
I actually still need help. I have a bunch of mobs spawned on bleachers in theater zone.
I wanna make certain ones run over and help the bosses during the fight when the boss hits x % hp. I know how to do the HP events but im not sure how to take individual mobs and make them move. If i put it in a script with their name wouldnt all the mobs with that name move to the location? After some reading im not sure that can be done. If i can someone lemme know and possibly how to do it, if not ill thing of somthin else. |
To avoid having every NPC with the same name respond, you can always name your perl file by the NPC ID. So instead of an_orc_pawn.pl you can just have 1003.pl (or whatever). Also certain naming conventions will appear as the same name but will be different NPC ID's. #'s before a name and _'s after will allow you the same NPC appearance with a different script.
There are several different ways to get a NPC to agro at a certain time. Have the first NPC despawn and a KOS replacement spawn during the hp event is probably the easiest way to make it happen. You can also use quest objects to put the PC on the NPC's hate list, thus creating agro. |
I mean all my npcs have the same npcid. I would need to move em via theyre spawnID no?
Cant find any quest code to do that |
Quote:
This could probably most appropriately be used on a controller NPC or a boss hp event to control the other NPC's. Code:
my @NPCLIST = $entity_list->GetNPCList(); |
Quote:
K ill have to look into it, im not as good at perl as you guys. |
I haven't tested the script below, but it should work as-is I think. It is similar to what Akkadius posted, but this tells the NPCs to attack a random mob on the boss' hate list. This should let it attack players or pets. The only thing you should need to adjust is the NPCID that you want to assist in your event. Also, note that this script requires the RandomRange() plugin, which I don't think is included in the standard PEQ quests distribution. You can find that plugin in the plugins section of these forums if you don't already have it.
Code:
sub EVENT_SPAWN { |
thanks a ton ill try implementing it soon as im not so sick
|
Nice piece of code there Trevius. I might have to make use of that.
You're right about the RandomRange plugin it's not with the current quest package but will be with the next release. Several plugin's got added right after the latest release. |
Just wanted to let ya know. i tried your code its not working.
The hp event is working I tested it with a shout. Im using the spawn2 ID for NPCToRespond id number. Not sure if thats correct or not Edit: Replaced it with the normal NPCID like 999483 but all the npcs with that ID aggro in the zone lol I think i need a way to use the Spawn2 ID |
You have to use the NPCID, make a new NPC for the quest so its got a unique ID.
|
Quote:
Not that worried about it if It cant be done by the spawn2 ids. |
One way to do this without creating 50 new NPC's is to create one new NPC. When you desire the NPC to attack, send a signal to the NPC, have it depop and then respawn as the new NPC. At the same time the singal is sent, set a timer keyed to start the script Trevius provided which will get you the agro to the random PC fighting the boss. This could be done with one or ten of the 50 NPC's and you could make it happen multiple times over the course of the event.
If you want a exact example let me know and I'll post the .pl's for you to look at of a working event of this nature. |
All times are GMT -4. The time now is 10:40 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.