Seminko 41 Posted November 12, 2017 Share Posted November 12, 2017 I would like to report a bug. I've been working on a project non-stop today only to find out that GetIdByName is unreliable and apparently bugged. How to reproduce this bug (tried 4 times in a row and been indeed able to reproduce it): Close WRobot and open it afresh Go to Development Tools Run this code --> it returns 0 var itemID = wManager.Wow.Helpers.ItemsManager.GetIdByName("Pet Rock"); Logging.WriteDebug("[ItemID] " + itemID); Now run this code --> it properly returns "Pet Rock" var NameID = wManager.Wow.Helpers.ItemsManager.GetNameById(20030); Logging.WriteDebug("[NameID] " + NameID); Now run the first code again and it now correctly returns Pet Rock's item id 20030. Quote [D] 23:43:58 - [ItemID] 0 [D] 23:44:03 - [NameID] Pet Rock [D] 23:44:07 - [ItemID] 20030 Anyone who is reading this, I'd appreciate if you tried reproducing it and report back. Since we don't know if it's related to Vanilla only, any WoW version is fine for now. Thanks S. EDIT: tried with Empty Wallet as well... same thing Link to comment https://wrobot.eu/forums/topic/7640-getidbyname-strange-behavior-explained/ Share on other sites More sharing options...
Droidz 2742 Posted November 13, 2017 Share Posted November 13, 2017 Hello, it is not a bug, items names are server side, you need to have item in your bag (or request item info like when you "GetNameById) for that Wow request the item name at the server ( http://wowwiki.wikia.com/wiki/API_GetItemInfo ) Seminko 1 Link to comment https://wrobot.eu/forums/topic/7640-getidbyname-strange-behavior-explained/#findComment-34905 Share on other sites More sharing options...
Seminko 41 Posted November 13, 2017 Author Share Posted November 13, 2017 13 minutes ago, Droidz said: Hello, it is not a bug, items names are server side, you need to have item in your bag (or request item info like when you "GetNameById) for that Wow request the item name at the server ( http://wowwiki.wikia.com/wiki/API_GetItemInfo ) Yea, figured it out with the guys on Discord. Let me update the description. Thanks for getting back to me Link to comment https://wrobot.eu/forums/topic/7640-getidbyname-strange-behavior-explained/#findComment-34906 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now