NvD 7 Posted May 3, 2016 Share Posted May 3, 2016 Hello All, Anyone can help me out with this: - problem: i am trying to make a quest and i need to use an item *from quest" but i have two problems: 1 - the below uses the item (from quest) but is not working all the time (i believe worked once after i have dismounted first) 2 - the below kills the target (and shouldn't) What i have used: RunCode: if (ObjectManager.Target.IsValid && !ObjectManager.Target.IsAlive) { ItemsManager.UseItem(itemId); } } Thread.Sleep(3000); Pulse: simple quest with InteractWithNPC Regards, N Link to comment https://wrobot.eu/forums/topic/2963-use-item-from-quest-on-target/ Share on other sites More sharing options...
dida1990 51 Posted May 3, 2016 Share Posted May 3, 2016 I can't help you with that, but can give you another solution :) On the bottom of the InteractWithNpc there is a field called "Macro when interact. Full lua code". Just insert UseItemByName(itemID) and you are done. And it is a lot faster during the start of your profile :) Link to comment https://wrobot.eu/forums/topic/2963-use-item-from-quest-on-target/#findComment-13648 Share on other sites More sharing options...
Droidz 2738 Posted May 3, 2016 Share Posted May 3, 2016 Hello, to ignore fight, you can run this c# code before pulse quest: http://wrobot.eu/forums/topic/2681-snippets-codes-for-quest-profiles/?do=findComment&comment=13088 To use item on hostile npc, you can also use this: http://wrobot.eu/forums/topic/2681-snippets-codes-for-quest-profiles/?do=findComment&comment=12204 What version of Wow do you play? Link to comment https://wrobot.eu/forums/topic/2963-use-item-from-quest-on-target/#findComment-13650 Share on other sites More sharing options...
NvD 7 Posted May 3, 2016 Author Share Posted May 3, 2016 version 6.2.4 Link to comment https://wrobot.eu/forums/topic/2963-use-item-from-quest-on-target/#findComment-13651 Share on other sites More sharing options...
NvD 7 Posted May 3, 2016 Author Share Posted May 3, 2016 also, i found out that i need to use gatherer since the item id http://www.wowhead.com/item=35123/microfilm is dropping and i have to loot them any suggestions on how to achieve this? quest: http://www.wowhead.com/quest=11728/lupus-pupus item from quest (that needs to be used 1st): http://www.wowhead.com/item=35121/wolf-bait item that needs to be garthere from mob (after few seconds): http://www.wowhead.com/object=187981/wolf-droppings (when you open this you get http://www.wowhead.com/item=35123/microfilm) and i need 8 of these :D so it needs to be something that repeats. never used If statements, any tutorials for this? :) Link to comment https://wrobot.eu/forums/topic/2963-use-item-from-quest-on-target/#findComment-13653 Share on other sites More sharing options...
NvD 7 Posted May 4, 2016 Author Share Posted May 4, 2016 and Droidz, the code from http://wrobot.eu/forums/topic/2681-snippets-codes-for-quest-profiles/#comment-12204 is working only if the cast is instant, but what about if the cast needs 2-3 sec to finalize? Link to comment https://wrobot.eu/forums/topic/2963-use-item-from-quest-on-target/#findComment-13663 Share on other sites More sharing options...
Droidz 2738 Posted May 8, 2016 Share Posted May 8, 2016 On 4/5/2016 at 2:10 AM, NvD said: and Droidz, the code from http://wrobot.eu/forums/topic/2681-snippets-codes-for-quest-profiles/#comment-12204 is working only if the cast is instant, but what about if the cast needs 2-3 sec to finalize? After ItemsManager.UseItem(itemId); add Usefuls.WaitIsCasting(); On 3/5/2016 at 11:51 AM, NvD said: also, i found out that i need to use gatherer since the item id Microfilm is dropping and i have to loot them any suggestions on how to achieve this? quest: Lupus Pupus item from quest (that needs to be used 1st): Wolf Bait item that needs to be garthere from mob (after few seconds): Wolf Droppings (when you open this you get Microfilm) and i need 8 of these :D so it needs to be something that repeats. never used If statements, any tutorials for this? :) Before pulse this quest, add step type "RunCode" with param: wManager.wManagerSetting.CurrentSetting.ListHarvest.Add(187981); Link to comment https://wrobot.eu/forums/topic/2963-use-item-from-quest-on-target/#findComment-13764 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