Jump to content

[customfightclass]A way to exucute a code by ingame macro?


reapler

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?

Link to comment
Share on other sites

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

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...