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

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

Thread Tools Display Modes
Old 11-12-2004, 10:13 AM
Fire Beetle
Join Date: Nov 2004
Posts: 6
Default $client->getx();

Im wondering if anyone else is having problems with this or the similar commands... Im very new to perl but know other languages.

I'm Running:
11-9-04 precomiled release 60dr2,
active perl,
mysql 4.0.22 ,

Inside of /quest/default.pl
im trying to get the players current location
$client->getz(); so i can use that as an anchor to randomly spawn mobs around it ..currently im gettting a perl runtime error: cant call method "getX" on an undefined something or another , not at my computer at the moment...

Any help with this issue would be greatly appreciated.

Reply With Quote
Old 11-12-2004, 11:00 AM
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260

use $client->GetX() instead of $client->getX()

It makes a difference when coding in C++, i would assume its the same for perl integration.
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
Old 11-12-2004, 11:12 AM
Fire Beetle
Join Date: Nov 2004
Posts: 6

I'm sorry for not paying attention to what i was typing

$client->GetX(); is what i have been using im pretty sure. I will have to check once i get home.

Any other possibilities?
Reply With Quote
Old 11-12-2004, 03:39 PM
Join Date: Jul 2004
Posts: 773

the precompiled versions do not include XS classes right now, so none of the $...->...() methods work in them. I dont see any other way to get that information right now either.

for now, if you want it, you need to build your own. I hope to turn on XS classes by default, once im sure it builds consistently on windows.
Reply With Quote
Old 11-15-2004, 11:25 AM
Fire Beetle
Join Date: Nov 2004
Posts: 6

i found the ifdef statement in the code about 10 minutes before you posted it... good deal... thanks for the hand, and keep up the good work..

Reply With Quote

Thread Tools
Display Modes

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:11 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 - 2021, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3