reapler 154 Posted May 29, 2016 Share Posted May 29, 2016 hi, im looking for something to execute my code e.g. Spoiler internal void ApplyPoison() { if (ObjectManager.Me.IsMounted) return; if ( !ObjectManager.Me.GetMove && !ObjectManager.Me.InCombat && Lua.LuaDoString<string>("hasMainHandEnchant = GetWeaponEnchantInfo(); return hasMainHandEnchant; ") != "1" ) { Lua.LuaDoString("CancelItemTempEnchantment(1)"); ItemsManager.UseItem("Instant Poison IX"); Lua.LuaDoString("RunMacroText('/use 16')"); Thread.Sleep(3500); return; } } by a macro ingame => /applypoison Any suggestions? Link to comment Share on other sites More sharing options...
dida1990 50 Posted May 29, 2016 Share Posted May 29, 2016 Am I understanding this right? You want to press the Macro-Key first. After that WRobot should run your code? Link to comment Share on other sites More sharing options...
reapler 154 Posted May 30, 2016 Author Share Posted May 30, 2016 exactly Link to comment Share on other sites More sharing options...
dida1990 50 Posted May 30, 2016 Share Posted May 30, 2016 The only way is to press a key, then run your code an then press your macro key :) but this is hard to code :/ Gesendet von meinem D6603 mit Tapatalk Link to comment 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