EQEmulator Forums

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

Zordana 06-07-2010 11:31 PM

global perl code
 
hi guys,

im actually not sure in what forum to put this.. anyway..

is there anyway to load up global perl code?

i made a little script and loading it at a /zone/npcname.pl via
include '/path/to/file.pl';

this works almost perfectly, if i use that file once.
if i include it in another file, it won't get loaded (include only loads a file on the first time its being used).. the problem is, if i load it in script a, script a works but b doesnt.. and the other way around..

i tried to add it to /plugins/globals.pl - this didnt help at all..

is there anway to globaly declare stuff?

thanks in advance!

Zordana 06-07-2010 11:35 PM

i just read Not a support forum! im sorry, can you move this? :s

Zordana 06-08-2010 11:51 PM

i tried to put it in /plugins.pl also didnt work..
i really have no clue how to declare those ONCE in a file which gets loaded everytime *sigh*
i dont want to have to put the complete source for all functions i use in EVERY quest file :/
include in every questfile doesnt work aswell (see first post)..

Zordana 06-09-2010 12:20 AM

i got the solution..
i made a new plugin file in /plugins/myfile.pl

and in quest i use plugin::TheDeclaredThingy();

and it works perfect..!

Thank you Akkadius for this (all love goes to you!)

Akkadius 06-09-2010 12:21 AM

Quote:

Originally Posted by Zordana (Post 188768)
i got the solution..
i made a new plugin file in /plugins/myfile.pl

and in quest i use plugin::TheDeclaredThingy();

and it works perfect..!

Thank you Akkadius for this (all love goes to you!)

Glad I could help bro 8 D


All times are GMT -4. The time now is 09:36 AM.

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