Jump to content

Recommended Posts

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?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...