[customfightclass]A way to exucute a code by ingame macro? in Developers assistance 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?
[customfightclass]A way to exucute a code by ingame macro?
in Developers assistance
Posted
hi, im looking for something to execute my code e.g.
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?