EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Variable for gender? (https://www.eqemulator.org/forums/showthread.php?t=22118)

JrFaust 12-19-2006 12:53 PM

Variable for gender?
 
Is there a variable for poling a PC's and or NPC's gender for use in quests?

Thanks for your time,
Rob

Aerewen 12-19-2006 06:18 PM

not that i'm aware of...

but it might be possible to use the hotkey variable settings to get it output in say/shout commands... i don't remember them off the top of my head tho...

it was like %o %m etc etc.. you can probably find them by searching the eqlive knowledgebase at http://station.sony.com/

Cripp 12-20-2006 04:33 AM

try using
Code:

$npc->GetBaseGender()
for returning the gender value for the NPC..
as for client.. this MIGHT work im not posotive..
Code:

$npc->CastToClient()->GetBaseGender()
so you could use this..
Code:

if ($npc->GetBaseGender() == 1)
hope this helps.. :)

JrFaust 12-20-2006 03:04 PM

Thanks for the help the code $npc->GetBaseGender() does get the NPC's gender for me.
I now need to find a way to report the user's gender I tried the %O variable for say/shout which reports Him/Her/it but looks like perl ignores it.

Well if there really isn't a command or variable to report the user's gender I'd like to request one. Please and thank you.

Thanks for your time,
Rob

Cripp 12-20-2006 05:49 PM

just out of curiosity... try this...
Code:

$client->GetBaseGender()
might not work though probably not.. but try

JrFaust 12-21-2006 12:11 PM

Hummmmm
 
If you read this post before I edited it never mind I realize now why I'm not a programmer.

Any how that code does report user's gender, Woot.

Thanks for the help,
Rob


All times are GMT -4. The time now is 12:42 AM.

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