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. |
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.