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 11-18-2004, 09:47 AM
mrea
Discordant
 
Join Date: Sep 2004
Location: Camp Hill,PA
Posts: 370
Default commands.pl

Didn't really know where to post this.. but I need to know where to find commands.pl? Did multiple searches (including google) but no luck. Thanks ahead of time.
__________________


Reply With Quote
  #2  
Old 11-18-2004, 10:16 AM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

You make one.

Example of one:
Code:
sub commands_init
{
   command_add("killself", "- Kills yourself.", 0);
}
sub killself
{
   $client->Kill();
}
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.
Reply With Quote
  #3  
Old 11-18-2004, 10:27 AM
Xorith
Sarnak
 
Join Date: Nov 2004
Posts: 52
Default

Why does it tell me "$client" isn't a valid variable? :P
Reply With Quote
  #4  
Old 11-18-2004, 10:41 AM
mrea
Discordant
 
Join Date: Sep 2004
Location: Camp Hill,PA
Posts: 370
Default

If i did that it wouldn't be anything different than what a perl server would have been before the addition of this right?
__________________


Reply With Quote
  #5  
Old 11-18-2004, 02:03 PM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

Quote:
Originally Posted by Xorith
Why does it tell me "$client" isn't a valid variable? :P
Because you are using a precompile which doesnt have XS Classes defined?
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.
Reply With Quote
  #6  
Old 11-18-2004, 02:13 PM
Xorith
Sarnak
 
Join Date: Nov 2004
Posts: 52
Default

I'm compiling from the CVS on a Linux box actually.

I simply did this in my Source/zone:

mv makefile makefile.bak
cp makefile.perl makefile

Then I did my make.
Reply With Quote
  #7  
Old 11-18-2004, 02:40 PM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

Line 50 in features.h:
Code:
//#define EMBPERL_XS_CLASS
Uncomment it, compile.
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.
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 12:39 PM.


 

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