Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Feature Requests

Development::Feature Requests Post suggestions/feature requests here.

Reply
 
Thread Tools Display Modes
  #1  
Old 04-26-2008, 04:10 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default sub EVENT_AGRO_CLEARED

The idea for this event is to allow for something to happen when an NPC loses agro. I think it could have multiple uses. The reason I thought of it is I would like to reset an event if players lose or if agro is cleared, but I can't find any other way to do it. I thought this could be helpful for anyone writing complex events, but it would probably be used mainly by custom servers.

I have an event that will banish characters away from a named if they haven't started the event. This would allow the event to be reset in the case that players lost the event.

I can probably find other ways to do it, but the best way would be if there was an event that occurred when agro was lost.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #2  
Old 04-26-2008, 04:41 AM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

You mean... like EVENT_COMBAT? Or are you looking for something that it can't do?
Reply With Quote
  #3  
Old 04-26-2008, 05:37 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Sorry, I am not familiar with that event. What does it do exactly? I have checked the quest lexicon and the wiki here:

http://www.eqemulator.net/wiki/wikka...=QuestTutorial

But I didn't see anything that looked like it could do what I wanted. If event_combat will let me do something when the mob leaves combat, then that should work.

I need to have some NPCs set to send a signal to another NPC if they leave combat/lose agro.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #4  
Old 04-26-2008, 06:49 AM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

It basically is called when you initiate combat with a npc and leave combat. It exports $combat_state 1 for entering combat 0 for leaving combat. Or at least that is the idea.
Reply With Quote
  #5  
Old 04-27-2008, 05:37 PM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

Updated the wiki to include sub EVENT_COMBAT and the two new events in the new build.
Reply With Quote
  #6  
Old 05-05-2008, 04:56 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

I finally got around to testing this and it worked just as I needed. I was curious if there was a way to use it to actually reset combat mode on an NPC. Something like this:
Code:
If ($signal == 1 ) { quest::combat_state (0); }
If not, no biggie though. I could only think of a few rare cases where that might be useful.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
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:05 PM.


 

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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3