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 01-02-2015, 09:32 AM
Bandor
Hill Giant
 
Join Date: May 2014
Posts: 209
Default The Ultimate Guard

So ive been looking around through page of page of quest submission/Q&A , but havent been able to find anything relating to this...Im trying to write a script for the ultimate guard, A Npc who is permaroot but aggros any npc that is within a certain range of him. I know the range part would be fairly easy with Event timer or whatever it is ( Ive seen the plugin before just to tired to remember exact name) but I have no idea how to make him attack npcs. Trying to avoid faction if possible but will use it if I must. Anyone know of a way of achieving this using perl?
__________________
Owner and Developer - Everquest: A New World
Reply With Quote
  #2  
Old 01-02-2015, 01:04 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,594
Default

You can do this in Perl, yes, but writing them to attack on a timer on proximity-based entities isn't as good as just having them aggro the NPC. Doing this with faction would be the much simpler route. There is an npc_aggro column in npc_types which you can turn on and off to make an NPC aggro on to other NPCs. If you haven't deleted the Mines of Gloomingdeep (tutorialb, zone 189) guards, you can take a look at how their faction works and what the faction of the trash in their zone looks like. Hopefully this will help you out.
Reply With Quote
  #3  
Old 01-02-2015, 01:16 PM
chrsschb's Avatar
chrsschb
Dragon
 
Join Date: Nov 2008
Location: GA
Posts: 904
Default

What KC said. There's a faction that's KOS to all. I believe simply using that will take care of your issue. Then you just need to set the guard to have an appropriate aggro range.
__________________
Clumsy's World: Resurgence [2019-Present]
Clumsy's World 2.0 [2014-2016]
Clumsy's World [2006-2012]
Reply With Quote
  #4  
Old 01-02-2015, 06:13 PM
Bandor
Hill Giant
 
Join Date: May 2014
Posts: 209
Default

Would making him KOS to all make him attack players aswell?
__________________
Owner and Developer - Everquest: A New World
Reply With Quote
  #5  
Old 01-13-2015, 11:40 AM
Bohbo
Hill Giant
 
Join Date: Dec 2012
Posts: 116
Default

Try this I wrote this today for an encounter.

Code:
sub EVENT_SPAWN{
        $x = $npc->GetX();
        $y = $npc->GetY();
		$z = $npc->GetZ();
		#$h = $npc->GetH();
		
	quest::set_proximity($x - 70, $x + 70, $y - 70, $y + 70);
	$zoneid = $npc->GetZoneID();
	quest::setnexthpevent(90);
}


sub EVENT_ENTER {
        my $n = $client->GetName();
        quest::emote("you dare challenge me $n?");
		quest::attack($n);
		quest::movepc($zoneid, $x, $y, $z); #summons player to him on agro

}
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 11:32 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