Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Custom

Quests::Custom Custom Quests here

Reply
 
Thread Tools Display Modes
  #1  
Old 09-29-2016, 10:43 AM
SirJames
Fire Beetle
 
Join Date: Aug 2009
Location: mount doom
Posts: 6
Default Consumable item to Max tradeskill

I'm attempting to create an item, that when "right clicked" will consume itself and up that characters tradeskill value.


I've created a simple book item and put it into my database (lets call it db# 12345).

Then i placed a perl file called: script_12345.pl into my quests\items\
folder. I have a sub for EVENT_ITEM_CLICK.


It appears this event never fires, as my code is never run.



Am I going about this wrong? What is the easiest way to create an item, that when right clicked will destory itself and skill up a given skill?


Thanks!
Reply With Quote
  #2  
Old 09-29-2016, 11:50 AM
Mortow's Avatar
Mortow
Hill Giant
 
Join Date: Apr 2013
Posts: 215
Default

I think the script file should be in your \quest\global\items folder. The ID number of the item in your database is irrelevant to the script#. You have to place the script# in the scriptfield column of that item in your database.
Reply With Quote
  #3  
Old 09-29-2016, 12:02 PM
N0ctrnl's Avatar
N0ctrnl
Discordant
 
Join Date: Jan 2007
Posts: 443
Default

For items, script IDs are specifically called out. In the database it's the 'scriptfileid' column. If you're using the PEQ editor, look for "Script File ID". So if you put 999 in there, it'd call quests/global/items/script_999.pl
__________________
Ender - Lead GM/Developer
Vegarlson Asylum Server - http://www.vegarlson-server.org/
Reply With Quote
  #4  
Old 09-29-2016, 12:48 PM
SirJames
Fire Beetle
 
Join Date: Aug 2009
Location: mount doom
Posts: 6
Default

Quote:
Originally Posted by N0ctrnl View Post
For items, script IDs are specifically called out. In the database it's the 'scriptfileid' column. If you're using the PEQ editor, look for "Script File ID". So if you put 999 in there, it'd call quests/global/items/script_999.pl


Ahh, theres my problem. I assumed it would auto pick it up, like for NPCs.


I've added the #2016 to the script file id field on my item in question and placed my script_2016.pl in the "quest/global/items/" folder.

I will try this tonight and let everyone know how it goes.
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 04:44 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