fanmeng123 0 Posted May 29, 2019 Share Posted May 29, 2019 Hi I'm wondering how to set to use one item on my self not others, ?no matter what my current target is. Thank you very much Link to comment https://wrobot.eu/forums/topic/11325-quest-profile-use-item-on-my-self/ Share on other sites More sharing options...
TheSmokie 242 Posted May 29, 2019 Share Posted May 29, 2019 (edited) use runcode, (not tested) Lua.LuaDoString("ClearTarget();"); Thread.sleep(25); ItemsManager.UseItem(itemId); Usefuls.WaitIsCasting(); Edited May 29, 2019 by The Smokie. Link to comment https://wrobot.eu/forums/topic/11325-quest-profile-use-item-on-my-self/#findComment-54143 Share on other sites More sharing options...
TheSmokie 242 Posted May 30, 2019 Share Posted May 30, 2019 if you want to add a if statement you can. sorry i was half dead when i wrote this code. here one thats not popo.] if (!Quest.HasQuest(Quest ID) && !ItemsManager.HasItemById(Item ID)) { Lua.LuaDoString("ClearTarget();"); Thread.sleep(25); ItemsManager.UseItem(itemId); Usefuls.WaitIsCasting(); } Really you're choice. or if (!Quest.HasQuest(Quest ID)) { Lua.LuaDoString("ClearTarget();"); If !ItemsManager.HasItemById(Item ID)) { ItemsManager.UseItem(item Id); Usefuls.WaitIsCasting(); } } Link to comment https://wrobot.eu/forums/topic/11325-quest-profile-use-item-on-my-self/#findComment-54144 Share on other sites More sharing options...
fanmeng123 0 Posted May 30, 2019 Author Share Posted May 30, 2019 7 hours ago, The Smokie. said: if you want to add a if statement you can. sorry i was half dead when i wrote this code. here one thats not popo.] if (!Quest.HasQuest(Quest ID) && !ItemsManager.HasItemById(Item ID)) { Lua.LuaDoString("ClearTarget();"); Thread.sleep(25); ItemsManager.UseItem(itemId); Usefuls.WaitIsCasting(); } Really you're choice. or if (!Quest.HasQuest(Quest ID)) { Lua.LuaDoString("ClearTarget();"); If !ItemsManager.HasItemById(Item ID)) { ItemsManager.UseItem(item Id); Usefuls.WaitIsCasting(); } } Hi Thank you so much. I'll try it. Link to comment https://wrobot.eu/forums/topic/11325-quest-profile-use-item-on-my-self/#findComment-54153 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