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! |
i just read Not a support forum! im sorry, can you move this? :s
|
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).. |
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!) |
Quote:
|
All times are GMT -4. The time now is 09:36 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.