May 29, 20196 yr 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
May 29, 20196 yr use runcode, (not tested) Lua.LuaDoString("ClearTarget();"); Thread.sleep(25); ItemsManager.UseItem(itemId); Usefuls.WaitIsCasting(); Edited May 29, 20196 yr by The Smokie.
May 30, 20196 yr 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(); } }
May 30, 20196 yr Author 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.
Create an account or sign in to comment