Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 06-07-2010, 11:31 PM
Zordana
Sarnak
 
Join Date: Jan 2010
Posts: 38
Default 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!
Reply With Quote
  #2  
Old 06-07-2010, 11:35 PM
Zordana
Sarnak
 
Join Date: Jan 2010
Posts: 38
Default

i just read Not a support forum! im sorry, can you move this? :s
Reply With Quote
  #3  
Old 06-08-2010, 11:51 PM
Zordana
Sarnak
 
Join Date: Jan 2010
Posts: 38
Default

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)..
Reply With Quote
  #4  
Old 06-09-2010, 12:20 AM
Zordana
Sarnak
 
Join Date: Jan 2010
Posts: 38
Default

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!)
Reply With Quote
  #5  
Old 06-09-2010, 12:21 AM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,071
Default

Quote:
Originally Posted by Zordana View 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!)
Glad I could help bro 8 D
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

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


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3