Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 02-24-2015, 09:37 PM
epilz
Hill Giant
 
Join Date: Sep 2013
Posts: 247
Default Script help

Anyone have an example of a script that will signal mobs to assist if they are not up. I know how the CT script works, but it signals the zone. Want to signal only a few mobs to assist if they are not dead first. Any help would be awesome!

Thanks
Reply With Quote
  #2  
Old 02-24-2015, 10:14 PM
ghanja's Avatar
ghanja
Dragon
 
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
Default

Quote:
Originally Posted by epilz View Post
Anyone have an example of a script that will signal mobs to assist if they are not up. I know how the CT script works, but it signals the zone. Want to signal only a few mobs to assist if they are not dead first. Any help would be awesome!

Thanks
Bold quoted what appears to be a contradiction. Reiterate if you would please.
Reply With Quote
  #3  
Old 02-24-2015, 10:17 PM
epilz
Hill Giant
 
Join Date: Sep 2013
Posts: 247
Default

lol oops, meant to signal mobs if they are up, and assist a named if they are not killed first
Reply With Quote
  #4  
Old 02-24-2015, 10:19 PM
ghanja's Avatar
ghanja
Dragon
 
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
Default

Quote:
Originally Posted by epilz View Post
lol oops, meant to signal mobs if they are up, and assist a named if they are not killed first
Are all the ones you wish to do the assisting of the same NPC Type? If not supply the type id's.
Reply With Quote
  #5  
Old 02-24-2015, 10:30 PM
epilz
Hill Giant
 
Join Date: Sep 2013
Posts: 247
Default

this is what I am doing. If other dragons in VP are not dead and people try to skip to Phara Dar, I want to aggro those dragons to assist her to keep from people skipping the other dragons and just kill her for progression
Reply With Quote
  #6  
Old 02-24-2015, 10:55 PM
ghanja's Avatar
ghanja
Dragon
 
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
Default

Code:
sub CheatersTryingToCheat {
	my @npcassistarray = [108407,108043,etc.];
	my @npcstillalive = $entity_list->GetNPCList();
	foreach $singleentity (@npcstillalive) {
		if ($singleentity->GetNPCTypeID() ~~ @npcassistarray) {
			$singleentity->AddToHateList($npc->GetHateTop());
		}
	}
}
I mean, this is just the sheer basics of things. Though, they're going to be just swarming through walls and such. They'll go after whomever is on top of PD's hatelist at that very moment, which -could- change. (usually the "tank")

No other checks etc.

If you need more, let us know.
Reply With Quote
  #7  
Old 02-24-2015, 11:20 PM
epilz
Hill Giant
 
Join Date: Sep 2013
Posts: 247
Default

Thanks Ghanja. I will post the final results.
Reply With Quote
  #8  
Old 02-25-2015, 02:55 AM
NatedogEZ's Avatar
NatedogEZ
Developer
 
Join Date: Dec 2012
Posts: 515
Default

We did that on erivyn except the boss would enrage and start casting death touch every 1 second.. rather than pulling the other dragons heh.

Code:
sub EVENT_COMBAT {
	
	if($combat_state == 1) {
		if ($entity_list->IsMobSpawnedByNpcTypeID(108053) || #Xygoz
			$entity_list->IsMobSpawnedByNpcTypeID(108040) || #Druushk
			$entity_list->IsMobSpawnedByNpcTypeID(108047) || #Nexona
			$entity_list->IsMobSpawnedByNpcTypeID(108043) || #Hoshkar
			$entity_list->IsMobSpawnedByNpcTypeID(108050)) { #Silverwing
				#We skipped a boss.. time to die..
				$npc->AddAISpell(0, 7478, 1, -1, 1, -3000);
				quest::we(262, "Phara Dar shouts 'Foolish mortals, I am immortal with the power of my dragonkin!'");
			} else {
				quest::shout("My dragons have been defeated, but you will never defeat me!");
			}
 	} else {
		$npc->RemoveAISpell(7478);
		$npc->Heal();
		quest::setnexthpevent(80);
		quest::signal(108518);
	}
}
Spell ID 7478 - if an AOE DT.. so it pretty much wipes out everyone who tries to skip the other dragons :p
Reply With Quote
  #9  
Old 02-25-2015, 01:40 PM
epilz
Hill Giant
 
Join Date: Sep 2013
Posts: 247
Default

hahah true Nate, I was DT'd a few times on Eriryn trying to skip to PD
Reply With Quote
  #10  
Old 03-08-2015, 08:30 PM
Asylum
Sarnak
 
Join Date: Jun 2013
Posts: 81
Default

Here's my easy script that accomplishes preventing players from skipping other dragons in Ashengate. When engaging the final npc, if any of the other dragons are still alive, it does not despawn and replace itself with the correct version. This version also rapidly DT's (done with spell list assignment).

Code:
#1759 Scorchwing the Magma Inferno DT

sub EVENT_AGGRO {
	if (!$entity_list->GetMobByNpcTypeID(1750) && !$entity_list->GetMobByNpcTypeID(1752) && !$entity_list->GetMobByNpcTypeID(1754) && !$entity_list->GetMobByNpcTypeID(1755) && !$entity_list->GetMobByNpcTypeID(1757) && !$entity_list->GetMobByNpcTypeID(1761) && !$entity_list->GetMobByNpcTypeID(1762) && !$entity_list->GetMobByNpcTypeID(1763)) {
		quest::spawn2(1765,0,0,$x,$y,$z,$h);
		quest::depop_withtimer();
	}
}
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 09:42 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3