Jensen- 25 Posted August 3, 2018 Share Posted August 3, 2018 got problem with quest item that is looted from mob https://classicdb.ch/?item=3467#unlocks wrobot doesnt detect it can finish step cuz of it any fix? or workaround? Link to comment https://wrobot.eu/forums/topic/9888-item-not-detected/ Share on other sites More sharing options...
Droidz 2738 Posted August 3, 2018 Share Posted August 3, 2018 Hello, sorry I never found how to detect keys on vanilla (if someone have lua code for that) Link to comment https://wrobot.eu/forums/topic/9888-item-not-detected/#findComment-46334 Share on other sites More sharing options...
Jensen- 25 Posted August 3, 2018 Author Share Posted August 3, 2018 item goes to keyring and its not deteced any1 could help me with a macro or code to move key from keyring to backpack Link to comment https://wrobot.eu/forums/topic/9888-item-not-detected/#findComment-46335 Share on other sites More sharing options...
Jensen- 25 Posted August 3, 2018 Author Share Posted August 3, 2018 Just now, Droidz said: Hello, sorry I never found how to detect keys on vanilla (if someone have lua code for that) when i move key from keyring to backpack everything works fine Link to comment https://wrobot.eu/forums/topic/9888-item-not-detected/#findComment-46336 Share on other sites More sharing options...
Droidz 2738 Posted August 3, 2018 Share Posted August 3, 2018 https://github.com/MOUZU/Blizzard-WoW-Interface/blob/d162a4c0d198a4381b5b6573d975635ed7316702/1.12.1/FrameXML/ContainerFrame.lua#L52 Not tested, but try: local itemIdSearch = 3467; local bag = KEYRING_CONTAINER; for slot = 1,MAX_CONTAINER_ITEMS do local itemLink = GetContainerItemLink(bag,slot); local _, itemCount = GetContainerItemInfo(bag,slot); if itemLink and itemCount then local _,_,itemId = string.find(itemLink, '.*|Hitem:(%d+):.*'); if itemId and tonumber(itemId) == itemIdSearch then print("Key found"); return end end end print("Key no found"); FNV316 and Jensen- 2 Link to comment https://wrobot.eu/forums/topic/9888-item-not-detected/#findComment-46337 Share on other sites More sharing options...
FNV316 65 Posted August 3, 2018 Share Posted August 3, 2018 (edited) It works, thanks Droidz! Very handy code for some quests KeyExample.xml Edited August 16, 2018 by FNV316 Added working Quester example Link to comment https://wrobot.eu/forums/topic/9888-item-not-detected/#findComment-46340 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