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 08-15-2011, 11:12 PM
revloc02c's Avatar
revloc02c
Hill Giant
 
Join Date: Aug 2010
Location: UT
Posts: 215
Default Does $userid represent a certain value from the db?

I was trying to use $userid to pass a parameter into a SQL stored procedure in my db. I expected the value to be from the id column of my toon in the character_ table (which = 1) but got something completely different (53?). I am wondering if the value contained in the $userid variable corresponds to a column in some table of the db, or does it come from somewhere else entirely (perhaps generated on the client side?). Anyone know?
Reply With Quote
  #2  
Old 08-16-2011, 12:04 AM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

It looks like it is just a number that increments as things are added to the entity list.

Try Client::AccountID()
Reply With Quote
  #3  
Old 08-16-2011, 12:08 AM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,498
Default

Yes, it is an entity id. If you want the true characterid from the database, you should use $client->CharacterID()
Reply With Quote
  #4  
Old 08-16-2011, 12:14 AM
revloc02c's Avatar
revloc02c
Hill Giant
 
Join Date: Aug 2010
Location: UT
Posts: 215
Default

Quote:
Originally Posted by lerxst2112 View Post
It looks like it is just a number that increments as things are added to the entity list.

Try Client::AccountID()
Ah-ha, that makes sense. Thanks.

Quote:
Originally Posted by joligario View Post
Yes, it is an entity id. If you want the true characterid from the database, you should use $client->CharacterID()
And thanks, just what I needed.
Reply With Quote
  #5  
Old 08-16-2011, 12:35 AM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

It looks like that gets exported as $charid as well.
Reply With Quote
  #6  
Old 08-16-2011, 01:09 AM
revloc02c's Avatar
revloc02c
Hill Giant
 
Join Date: Aug 2010
Location: UT
Posts: 215
Default

Sure enough, works like a charm too. Sheesh, I prolly shoulda just tried that. Thanks again lerxst.

I looked hard for it here under the "Variables" section but it is not listed. Should it be added in there?
Reply With Quote
  #7  
Old 08-16-2011, 02:00 AM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

Yeah, probably, but there may be others missing. I found it digging through the code, but it's on the list here as well. http://www.eqemulator.net/wiki/wikka...uestCheatSheet

If you search the code for "ExportVar" you can find them all. Some depend on which event is being triggered, but they're all pretty much in that one function.
Reply With Quote
  #8  
Old 08-16-2011, 02:38 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Yes, it was missing, so I just went ahead and added it. Anyone is welcome to create a wiki account and add/edit pages as needed, FYI.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #9  
Old 08-16-2011, 09:01 PM
revloc02c's Avatar
revloc02c
Hill Giant
 
Join Date: Aug 2010
Location: UT
Posts: 215
Default

Quote:
Originally Posted by lerxst2112 View Post
Yeah, probably, but there may be others missing. I found it digging through the code, but it's on the list here as well. http://www.eqemulator.net/wiki/wikka...uestCheatSheet
Ah okay, I didn't look there. Heh, just used to looking in the one place.

Quote:
Originally Posted by lerxst2112 View Post
If you search the code for "ExportVar" you can find them all. Some depend on which event is being triggered, but they're all pretty much in that one function.
Good info, thanks lerxst. I am sure I'll use that sometime.

Quote:
Originally Posted by trevius View Post
Anyone is welcome to create a wiki account and add/edit pages as needed, FYI.
Oh, I didn't know that. I need to look into it, thanks Trev.
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 05:37 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