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 12-19-2006, 12:53 PM
JrFaust
Sarnak
 
Join Date: Aug 2005
Location: Overthere
Posts: 82
Question 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
Reply With Quote
  #2  
Old 12-19-2006, 06:18 PM
Aerewen
Hill Giant
 
Join Date: Dec 2006
Posts: 110
Default

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/
Reply With Quote
  #3  
Old 12-20-2006, 04:33 AM
Cripp's Avatar
Cripp
Discordant
 
Join Date: Oct 2003
Location: The Shire
Posts: 474
Default

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..
__________________
Nug Blazers - ServerOP / founder
^^comming... later!

www.nugblazers.com
Reply With Quote
  #4  
Old 12-20-2006, 03:04 PM
JrFaust
Sarnak
 
Join Date: Aug 2005
Location: Overthere
Posts: 82
Default

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
Reply With Quote
  #5  
Old 12-20-2006, 05:49 PM
Cripp's Avatar
Cripp
Discordant
 
Join Date: Oct 2003
Location: The Shire
Posts: 474
Default

just out of curiosity... try this...
Code:
$client->GetBaseGender()
might not work though probably not.. but try
__________________
Nug Blazers - ServerOP / founder
^^comming... later!

www.nugblazers.com
Reply With Quote
  #6  
Old 12-21-2006, 12:11 PM
JrFaust
Sarnak
 
Join Date: Aug 2005
Location: Overthere
Posts: 82
Default 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

Last edited by JrFaust; 12-21-2006 at 09:11 PM..
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 02:31 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3