View Full Version : Variable for gender?
JrFaust
12-19-2006, 12:53 PM
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 $npc->GetBaseGender() for returning the gender value for the NPC..
as for client.. this MIGHT work im not posotive..
$npc->CastToClient()->GetBaseGender()
so you could use this..
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...
$client->GetBaseGender()
might not work though probably not.. but try
JrFaust
12-21-2006, 12:11 PM
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
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.