EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Plugins (https://www.eqemulator.org/forums/showthread.php?t=30429)

pfyon 01-28-2010 12:38 PM

Plugins
 
If I write a plugin (like Trevius's in the custom quests subforum), does it have access to the same npc/client/etc objects that the original script has access to?

I have limited experience using perl. In the languages I know fairly well (C++, Java), you would either need the objects globally accessible within the class or would need to pass a reference to the objects to the function.

trevius 01-28-2010 06:13 PM

Yeah, that is the downside to plugins; you have to pass everything to it. If you look at my RandomRoam plugin, you can see where it requires $npc to be passed to it, but then just sets it as a variable for the script to use like normal.


All times are GMT -4. The time now is 12:43 PM.

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