EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Custom (https://www.eqemulator.org/forums/forumdisplay.php?f=671)
-   -   Consumable item to Max tradeskill (https://www.eqemulator.org/forums/showthread.php?t=40932)

SirJames 09-29-2016 10:43 AM

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!

Mortow 09-29-2016 11:50 AM

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.

N0ctrnl 09-29-2016 12:02 PM

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

SirJames 09-29-2016 12:48 PM

Quote:

Originally Posted by N0ctrnl (Post 251455)
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.


All times are GMT -4. The time now is 08:46 PM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.