[implemented] GetCharacterInfo() or GetClassInfo() returning wrong values
Hey there Chip,
the function GetCharacterInfo() is returning the classId of a character as 4th return parameter: Code:
--- @return name string,gender [Gender|#Gender],level integer,classId integer,raceId integer,alliance [Alliance|#Alliance],id string,locationId integer But the function GetClassInfo(classIdndex) is using the classIndex and not the classId so it will not return any data for the classId 6 Code:
--- @return defId integer,lore string,normalIconKeyboard textureName,pressedIconKeyboard textureName,mouseoverIconKeyboard textureName,isSelectable bool,ingameIconKeyboard textureName,ingameIconGamepad textureName,normalIconGamepad textureName,pressedIconGamepad textureName Code:
[Empty String] Code:
6 What about a new function GetClassIndexById(classId) using an internally build mapping table between classID and classIndex so we do not need to rebuild it and build our own code each time? |
I replied on Gitter but I'll reply here too for others. GetClassInfo takes an index, from use with GetNumClasses(), not a classId.
|
Thanks.
I'm somehow confused why there isn't a returning value "classIndex" within function GetCharacterInfo() then. This is somehow annoying: Need to build a mapping table between classId and classIndex then :-( Please move the thread to the WishList @sirinsidiator @ZOS What about a new function GetClassIndexById(classId) using an internally build mapping table between classID and classIndex so we do not need to rebuild it and build our own code each time? |
Yeah, we can do that.
|
All times are GMT -6. The time now is 03:19 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI