Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Plugins & Mods

Quests::Plugins & Mods Completed plugins for public use as well as modifications.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-13-2011, 03:38 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

It has to be a specific NPC, but you can use entity list searches to find any NPC by entity ID or NPC Type ID and then get that NPC and use the plugin on it.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #2  
Old 05-13-2011, 12:01 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,072
Default

Trevius,

This has been added to the repository.

Thanks,
~Akka
Reply With Quote
  #3  
Old 12-08-2011, 06:40 AM
pepsiphreak79
Sarnak
 
Join Date: Sep 2011
Posts: 70
Default

Can this be used by making a .pl for the mod and inserting
Sub EVENT_SPAWN {
plugin::RandomFeatures($npc);
}

will that change them on spawn?
or do i need to include a code to get the $npc variable for each specific mob?
__________________
--Any Code by me is considered open source Beta--
Not a DEV not a Coder
Just a person....
Reply With Quote
  #4  
Old 12-09-2011, 03:36 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Yes, that is how you use it. The only problem with your solution is that many things don't update properly in EVENT_SPAWN, due to it being handled at the same time the NPC is actually being sent to the client. So, to make it work properly 100% of the time, you can just start a timer from event spawn and set it to something like 1 second. Then, the NPC will spawn and a second later it will change its features randomly. Don't forget to stop the timer in the EVENT_TIMER or you will be changing the random features every second.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
Reply

Thread Tools
Display Modes

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