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 01-10-2015, 10:29 PM
Bohbo
Hill Giant
 
Join Date: Dec 2012
Posts: 116
Default

I apparently don't have all the default plugins.... I thought i had everything checked on the compile though. I tried it on global and an NPC and no response with the sendtoinstance command.

I will get this part solved first i suppose.

EDIT: I have the Instances.pl file in my plugins folder. So should be active right?
Reply With Quote
  #2  
Old 01-10-2015, 10:41 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,072
Default

Quote:
Originally Posted by Bohbo View Post
I apparently don't have all the default plugins.... I thought i had everything checked on the compile though. I tried it on global and an NPC and no response with the sendtoinstance command.

I will get this part solved first i suppose.

EDIT: I have the Instances.pl file in my plugins folder. So should be active right?
Yes, that has the SendTo.

http://wiki.eqemulator.org/p?Perl_Pl...ster_Reference
Reply With Quote
  #3  
Old 01-10-2015, 11:24 PM
Bohbo
Hill Giant
 
Join Date: Dec 2012
Posts: 116
Default

Quote:
Originally Posted by Akkadius View Post
You really make me feel like a noob! However you are tremendously helpful I can't thank you enough. I renamed my perl install and copied db version to replace it. That seems fine. I put in my DB info in mysql.pl file and rebooted server. I still don't seem to have those commands. Do i have to manually load a list it seems like it should be working from there right?

EDIT: I figured it out! I had made a players.pl file in globals and i didn't use the global_player one. Wish me luck on the rest!

EDIT: Once in the instance effects are working YOU ARE THE MAN!
Reply With Quote
  #4  
Old 01-11-2015, 12:16 AM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,072
Default

Good to hear!
Reply With Quote
  #5  
Old 01-23-2019, 11:08 AM
pharone1
Sarnak
 
Join Date: May 2005
Posts: 56
Default

I implemented this last night, so it still works in 2019 for anyone concerned.

I initially had trouble getting it to work, but that was just because I am still new to how EQemu works over all. Thanks for the help in Discord Akkadius.

Here are my tips for anyone else wanting to implement this and is very new to EQemu like myself:
  • Create 7 NPCs in your database (1 for effects and 6 for weapons) in the npc_types table
  • I named my weapon NPCs 'weapon'
  • I named my effects NPC 'effect'
  • $effect_npc
  • Change the values for $effect_npc and $mob_# (ex $mob_1) to the npctypeid for the effects and weapon npcs you created
  • Change the instanceversion value to 0 in the script UNLESS you have an instanceversion 1 to zone in to for Overthere

I know all of these things seem super insanely simple to figure out if you have been using EQemu for a while now, but for someone like myself that had never even opened a .pl file before, I was pretty lost lol.

My biggest problem was that I had no idea what an instance version even was little lone how to create and/or access one. In the end, I ended up modifying the script (as stated above) to simply use instanceversion 0 instead, and everything started working.

In the end, I learned a lot about how to modify these pl files, so it was a great exercise.

Also, I was wondering how I could find out if parts of my script were even firing off, and it occurred to me that I can use the $client->Message function to send messages to the player to let me know when certain parts of the script ran. To do this, just add the following to any spot in the script where you would want a message to pop up on the players chat window (for example: to see if the event_spawn was running).

$client->Message(15, "*** Debug *** Entered XYZ part of the code.");

When the script comes across that line, it will say "*** Debug *** Entered XYZ part of the code." in the chat window for the player, so you know your script is running and it got to that part of the script. Makes debugging a bit easier.

This works great, and I have already used it to identify some weapon skins I want to use.

Oh one last thing about the weapon skins. When you click on one of the NPCs holding the weapons, the npc tells you the IDs of the weapons that NPC is wielding. This is the idfileid (I think that's what the field is called in the items table). You need to add the letter IT to the front of that number when you go to add the weapon skin to another weapon. For example, if the id was 12345, the actual skin id is IT12345.

I hope this helps anyone looking to try this out in the future.
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 01:08 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