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?
|
It looks like it is just a number that increments as things are added to the entity list.
Try Client::AccountID() |
Yes, it is an entity id. If you want the true characterid from the database, you should use $client->CharacterID()
|
Quote:
Quote:
|
It looks like that gets exported as $charid as well.
|
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? |
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. |
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.
|
Quote:
Quote:
Quote:
|
All times are GMT -4. The time now is 09:31 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.