Jump to content

Key press lua, cant get it to work


morris79

Recommended Posts

Spent 3 hours on it now, cant get it to work. Have uninstall wrobot, fresh install. The only output I can get is

[F] 02:50:20 - [FightClass] Loading Fight class: C:\WRobot\\FightClass\Class1.cs
02:50:21 - [My fightclass] Is initialized.
02:50:36 - AOE
02:50:39 - BURST.
02:51:42 - BURST.
02:51:42 - AOE
02:51:46 - [My fightclass] Stop in progress.
02:51:47 - Session statistics:
Elapsed time: 00h:01m:25s
XP/HR: 0 - 0 min

When I press the keys.It does write, put nothing happens. I am total lost. Plz help me out.

Morris

 

Class1.cs

Link to comment
Share on other sites

see the first post, there's an fille attached to it. I can't get the fightclass to work, casting any spell if Ctrl is pressed. same with LAlt. Note that it's for 3.3.5 wolk. I just want the keppres to work, the rest is simple. I think it has something to do with 

private bool burstMode;

private bool aoeMode;

Can you get it 2 work? Have tried everything. 

Spoiler

using System;
using System.Collections.Generic;
using System.Threading;
using System.Windows.Forms;
using robotManager.Helpful;
using robotManager.Products;
using wManager.Wow.Class;
using wManager.Wow.Enums;
using wManager.Wow.Helpers;
using wManager.Wow.ObjectManager;
using Timer = robotManager.Helpful.Timer;

public class Main : ICustomClass
{
    public float Range { get { return 30; } }

    private bool _isLaunched;
    private ulong _lastTarget;



    public void Initialize() // When product started, initialize and launch Fightclass
    {
        _isLaunched = true;
        {
            EventsLuaWithArgs.OnEventsLuaWithArgs += delegate(LuaEventsId id, List<string> args)
            {
                if (id == LuaEventsId.MODIFIER_STATE_CHANGED && args.Count == 2)
                {
                    //  Possible values are LSHIFT, RSHIFT, LCTRL, RCTRL, LALT, and RALT
                    string key = args[0];

                    // 1 means that the the key has been pressed. 0 means that the key has been released
                    int state = int.Parse(args[1]);

                    // AOE mode
                    if (key == "LALT" && state == 0)
                    {
                        // Set status
                        aoeMode = !aoeMode;
                        Logging.Write("AOE");
                    }

                    // Burst mode
                    if (key == "LCTRL" && state == 0)
                    {
                        // Set status
                        burstMode = !burstMode;
                        Logging.Write("BURST.");
                    }
                }

            };
        }
        Logging.Write("[My fightclass] Is initialized.");
        Rotation();
    }

    public void Dispose() // When product stopped
    {
        _isLaunched = false;

        Logging.Write("[My fightclass] Stop in progress.");
    }

    public void ShowConfiguration() // When use click on Fight class settings
    {
        MessageBox.Show("[My fightclass] No setting for this Fight Class.");
    }



    internal void Rotation()
    {

        while (_isLaunched)
        {
            try
            {
                if (!Products.InPause)
                {
                    if (!ObjectManager.Me.IsDeadMe)
                    {
                        BuffRotation();

                        if (Fight.InFight && ObjectManager.Me.Target > 0)
                        {
                            CombatRotation();
                        }
                    }
                }
            }
            catch (Exception e)
            {
                Logging.WriteError("[My fightclass] ERROR: " + e);
            }

            Thread.Sleep(10); // Pause 10 ms to reduce the CPU usage.
        }
        Logging.Write("[My fightclass] Is now stopped.");
    }

    internal void BuffRotation()
    {
        if (ObjectManager.Me.IsMounted)
            return;

    }
    // SPELLS:
    public Spell Incinerate = new Spell("Incinerate");
    public Spell Corruption = new Spell("Corruption");
    public Spell ShadowBolt = new Spell("Shadow Bolt");
    private bool burstMode;
    private bool aoeMode;

    internal void CombatRotation()

    {
        // Burst?
        if (burstMode && ObjectManager.Me.InCombat)
        {
            //Corruption
            if (Incinerate.KnownSpell && Incinerate.IsSpellUsable)
            {
                Incinerate.Launch();
                return;
            }
        }

        if (aoeMode && ObjectManager.Me.InCombat)

        {
            //ShadowBolt Set at last line
            if (ShadowBolt.KnownSpell && ShadowBolt.IsSpellUsable)
            {
                ShadowBolt.Launch();
                return;
            }
        }
        //Molten Core Buff Incinerate
        if (Corruption.KnownSpell && Corruption.IsSpellUsable && !ObjectManager.Target.BuffCastedByAll("Corruption").Contains(ObjectManager.Me.Guid))
        {
            Corruption.Launch();
            return;
        }
    }
}

 

Link to comment
Share on other sites

On 9/7/2018 at 4:18 PM, morris79 said:

see the first post, there's an fille attached to it. I can't get the fightclass to work, casting any spell if Ctrl is pressed. same with LAlt. Note that it's for 3.3.5 wolk. I just want the keppres to work, the rest is simple. I think it has something to do with 

private bool burstMode;

private bool aoeMode;

Can you get it 2 work? Have tried everything. 

  Reveal hidden contents


using System;
using System.Collections.Generic;
using System.Threading;
using System.Windows.Forms;
using robotManager.Helpful;
using robotManager.Products;
using wManager.Wow.Class;
using wManager.Wow.Enums;
using wManager.Wow.Helpers;
using wManager.Wow.ObjectManager;
using Timer = robotManager.Helpful.Timer;

public class Main : ICustomClass
{
    public float Range { get { return 30; } }

    private bool _isLaunched;
    private ulong _lastTarget;



    public void Initialize() // When product started, initialize and launch Fightclass
    {
        _isLaunched = true;
        {
            EventsLuaWithArgs.OnEventsLuaWithArgs += delegate(LuaEventsId id, List<string> args)
            {
                if (id == LuaEventsId.MODIFIER_STATE_CHANGED && args.Count == 2)
                {
                    //  Possible values are LSHIFT, RSHIFT, LCTRL, RCTRL, LALT, and RALT
                    string key = args[0];

                    // 1 means that the the key has been pressed. 0 means that the key has been released
                    int state = int.Parse(args[1]);

                    // AOE mode
                    if (key == "LALT" && state == 0)
                    {
                        // Set status
                        aoeMode = !aoeMode;
                        Logging.Write("AOE");
                    }

                    // Burst mode
                    if (key == "LCTRL" && state == 0)
                    {
                        // Set status
                        burstMode = !burstMode;
                        Logging.Write("BURST.");
                    }
                }

            };
        }
        Logging.Write("[My fightclass] Is initialized.");
        Rotation();
    }

    public void Dispose() // When product stopped
    {
        _isLaunched = false;

        Logging.Write("[My fightclass] Stop in progress.");
    }

    public void ShowConfiguration() // When use click on Fight class settings
    {
        MessageBox.Show("[My fightclass] No setting for this Fight Class.");
    }



    internal void Rotation()
    {

        while (_isLaunched)
        {
            try
            {
                if (!Products.InPause)
                {
                    if (!ObjectManager.Me.IsDeadMe)
                    {
                        BuffRotation();

                        if (Fight.InFight && ObjectManager.Me.Target > 0)
                        {
                            CombatRotation();
                        }
                    }
                }
            }
            catch (Exception e)
            {
                Logging.WriteError("[My fightclass] ERROR: " + e);
            }

            Thread.Sleep(10); // Pause 10 ms to reduce the CPU usage.
        }
        Logging.Write("[My fightclass] Is now stopped.");
    }

    internal void BuffRotation()
    {
        if (ObjectManager.Me.IsMounted)
            return;

    }
    // SPELLS:
    public Spell Incinerate = new Spell("Incinerate");
    public Spell Corruption = new Spell("Corruption");
    public Spell ShadowBolt = new Spell("Shadow Bolt");
    private bool burstMode;
    private bool aoeMode;

    internal void CombatRotation()

    {
        // Burst?
        if (burstMode && ObjectManager.Me.InCombat)
        {
            //Corruption
            if (Incinerate.KnownSpell && Incinerate.IsSpellUsable)
            {
                Incinerate.Launch();
                return;
            }
        }

        if (aoeMode && ObjectManager.Me.InCombat)

        {
            //ShadowBolt Set at last line
            if (ShadowBolt.KnownSpell && ShadowBolt.IsSpellUsable)
            {
                ShadowBolt.Launch();
                return;
            }
        }
        //Molten Core Buff Incinerate
        if (Corruption.KnownSpell && Corruption.IsSpellUsable && !ObjectManager.Target.BuffCastedByAll("Corruption").Contains(ObjectManager.Me.Guid))
        {
            Corruption.Launch();
            return;
        }
    }
}

 

 

On 9/7/2018 at 4:18 PM, morris79 said:

see the first post, there's an fille attached to it. I can't get the fightclass to work, casting any spell if Ctrl is pressed. same with LAlt. Note that it's for 3.3.5 wolk. I just want the keppres to work, the rest is simple. I think it has something to do with 

private bool burstMode;

private bool aoeMode;

Can you get it 2 work? Have tried everything. 

  Reveal hidden contents


using System;
using System.Collections.Generic;
using System.Threading;
using System.Windows.Forms;
using robotManager.Helpful;
using robotManager.Products;
using wManager.Wow.Class;
using wManager.Wow.Enums;
using wManager.Wow.Helpers;
using wManager.Wow.ObjectManager;
using Timer = robotManager.Helpful.Timer;

public class Main : ICustomClass
{
    public float Range { get { return 30; } }

    private bool _isLaunched;
    private ulong _lastTarget;



    public void Initialize() // When product started, initialize and launch Fightclass
    {
        _isLaunched = true;
        {
            EventsLuaWithArgs.OnEventsLuaWithArgs += delegate(LuaEventsId id, List<string> args)
            {
                if (id == LuaEventsId.MODIFIER_STATE_CHANGED && args.Count == 2)
                {
                    //  Possible values are LSHIFT, RSHIFT, LCTRL, RCTRL, LALT, and RALT
                    string key = args[0];

                    // 1 means that the the key has been pressed. 0 means that the key has been released
                    int state = int.Parse(args[1]);

                    // AOE mode
                    if (key == "LALT" && state == 0)
                    {
                        // Set status
                        aoeMode = !aoeMode;
                        Logging.Write("AOE");
                    }

                    // Burst mode
                    if (key == "LCTRL" && state == 0)
                    {
                        // Set status
                        burstMode = !burstMode;
                        Logging.Write("BURST.");
                    }
                }

            };
        }
        Logging.Write("[My fightclass] Is initialized.");
        Rotation();
    }

    public void Dispose() // When product stopped
    {
        _isLaunched = false;

        Logging.Write("[My fightclass] Stop in progress.");
    }

    public void ShowConfiguration() // When use click on Fight class settings
    {
        MessageBox.Show("[My fightclass] No setting for this Fight Class.");
    }



    internal void Rotation()
    {

        while (_isLaunched)
        {
            try
            {
                if (!Products.InPause)
                {
                    if (!ObjectManager.Me.IsDeadMe)
                    {
                        BuffRotation();

                        if (Fight.InFight && ObjectManager.Me.Target > 0)
                        {
                            CombatRotation();
                        }
                    }
                }
            }
            catch (Exception e)
            {
                Logging.WriteError("[My fightclass] ERROR: " + e);
            }

            Thread.Sleep(10); // Pause 10 ms to reduce the CPU usage.
        }
        Logging.Write("[My fightclass] Is now stopped.");
    }

    internal void BuffRotation()
    {
        if (ObjectManager.Me.IsMounted)
            return;

    }
    // SPELLS:
    public Spell Incinerate = new Spell("Incinerate");
    public Spell Corruption = new Spell("Corruption");
    public Spell ShadowBolt = new Spell("Shadow Bolt");
    private bool burstMode;
    private bool aoeMode;

    internal void CombatRotation()

    {
        // Burst?
        if (burstMode && ObjectManager.Me.InCombat)
        {
            //Corruption
            if (Incinerate.KnownSpell && Incinerate.IsSpellUsable)
            {
                Incinerate.Launch();
                return;
            }
        }

        if (aoeMode && ObjectManager.Me.InCombat)

        {
            //ShadowBolt Set at last line
            if (ShadowBolt.KnownSpell && ShadowBolt.IsSpellUsable)
            {
                ShadowBolt.Launch();
                return;
            }
        }
        //Molten Core Buff Incinerate
        if (Corruption.KnownSpell && Corruption.IsSpellUsable && !ObjectManager.Target.BuffCastedByAll("Corruption").Contains(ObjectManager.Me.Guid))
        {
            Corruption.Launch();
            return;
        }
    }
}

 

@iMod ??

Link to comment
Share on other sites

Hey there, just briefly looking at your code, I was wondering if declaring those boolean variables at the top of your class changes anything? Just a thought...

private bool burstMode;
private bool aoeMode;
public class Main : ICustomClass
{
    public float Range { get { return 30; } }

    private bool _isLaunched;
    private ulong _lastTarget;
	
    private bool burstMode;
    private bool aoeMode;


    public void Initialize() // When product started, initialize and launch Fightclass
    {

 

Link to comment
Share on other sites

still, the same thing. Only refreshing the corruption. If I press Lalt or Crtl. no spells are cast. I have attached the log in spoiler wall also. Plz help guys, I am so desperate. 

Spoiler

using System;
using System.Collections.Generic;
using System.Threading;
using System.Windows.Forms;
using robotManager.Helpful;
using robotManager.Products;
using wManager.Wow.Class;
using wManager.Wow.Enums;
using wManager.Wow.Helpers;
using wManager.Wow.ObjectManager;
using Timer = robotManager.Helpful.Timer;

public class Main : ICustomClass
{
    public float Range { get { return 30; } }
    private bool burstMode;
    private bool aoeMode;
    private bool _isLaunched;
    private ulong _lastTarget;
    
    public void Initialize() // When product started, initialize and launch Fightclass
    {
        _isLaunched = true;
        {
            EventsLuaWithArgs.OnEventsLuaWithArgs += delegate (LuaEventsId id, List<string> args)
            {
                if (id == LuaEventsId.MODIFIER_STATE_CHANGED && args.Count == 2)
                {
                    //  Possible values are LSHIFT, RSHIFT, LCTRL, RCTRL, LALT, and RALT
                    string key = args[0];

                    // 1 means that the the key has been pressed. 0 means that the key has been released
                    int state = int.Parse(args[1]);

                    // AOE mode
                    if (key == "LALT" && state == 0)
                    {
                        // Set status
                        aoeMode = !aoeMode;
                        Logging.Write("AOE");
                    }

                    // Burst mode
                    if (key == "LCTRL" && state == 0)
                    {
                        // Set status
                        burstMode = !burstMode;
                        Logging.Write("BURST.");
                    }
                }

            };
        }
        Logging.Write("[My fightclass] Is initialized.");
        Rotation();
    }

    public void Dispose() // When product stopped
    {
        _isLaunched = false;

        Logging.Write("[My fightclass] Stop in progress.");
    }

    public void ShowConfiguration() // When use click on Fight class settings
    {
        MessageBox.Show("[My fightclass] No setting for this Fight Class.");
    }



    internal void Rotation()
    {

        while (_isLaunched)
        {
            try
            {
                if (!Products.InPause)
                {
                    if (!ObjectManager.Me.IsDeadMe)
                    {
                        BuffRotation();

                        if (Fight.InFight && ObjectManager.Me.Target > 0)
                        {
                            CombatRotation();
                        }
                    }
                }
            }
            catch (Exception e)
            {
                Logging.WriteError("[My fightclass] ERROR: " + e);
            }

            Thread.Sleep(10); // Pause 10 ms to reduce the CPU usage.
        }
        Logging.Write("[My fightclass] Is now stopped.");
    }

    internal void BuffRotation()
    {
        if (ObjectManager.Me.IsMounted)
            return;

    }
    // SPELLS:
    public Spell Incinerate = new Spell("Incinerate");
    public Spell Corruption = new Spell("Corruption");
    public Spell ShadowBolt = new Spell("Shadow Bolt");


    internal void CombatRotation()
    {
        // Burst?
        if (burstMode && ObjectManager.Me.InCombat)
        {
            //Incinerate
            if (Incinerate.KnownSpell && Incinerate.IsSpellUsable)
            {
                Incinerate.Launch();
                return;
            }
        }

        if (aoeMode && ObjectManager.Me.InCombat)

        {
            //ShadowBolt Set at last line
            if (ShadowBolt.KnownSpell && ShadowBolt.IsSpellUsable)
            {
                ShadowBolt.Launch();
                return;
            }
        }
        //Corruption
        if (Corruption.KnownSpell && Corruption.IsSpellUsable && !ObjectManager.Target.BuffCastedByAll("Corruption").Contains(ObjectManager.Me.Guid))
        {
            Corruption.Launch();
            return;
        }
    }
}

 

Spoiler

[D] 18:47:02.835 - [Info] Log file created: 10 sep 2018 18H47.log.html
[D] 18:47:02.818 - [Info] WRobot Version: 2.1.2 (37494) for wow: 3.3.5a_12340
[D] 18:47:02.835 - [Info] Offical website: https://wrobot.eu/
[D] 18:47:02.835 - [Info] Operating System Details: Microsoft Windows NT 6.2.9200.0
[D] 18:47:02.851 - [Info] Lang: Dansk (Danmark)
[F] 18:47:03.952 - [Memory] D3D9 found: 6A 18 B8 51 D7 5A 62 E8 5D 7E 
[F] 18:47:04.014 - [Memory] D3D11 found: 8B FF 55 8B EC 83 EC 7C A1 F0 
[D] 18:47:04.042 - [Memory] D3D9 used
[D] 18:47:09.287 - [Blacklist] Added, 0 uniques Npcs, 0 Blackspots and 0 Npcs types (Training dummy ignored = True).
18:47:09.315 - [Memory] Select game process: 8432 - Gim...
18:47:10.727 - [WRotation] Loaded
[F] 18:47:10.749 - NewUserSettings = False ; LastProductSelected = WRotation ; CustomClass = Class1.cs ; DetectEvadingMob = False ; SkipRegenIfFlaggedInCombat = True ; FoodMaxPercent = 95 ; DrinkMaxPercent = 95 ; IgnoreFightWithPlayer = False ; PathFinderServerSeemDownPauseBotTimeSec = 60 ; PathFinderRequestLog = False ; PathFinderFromServer = True ; OffMeshConnectionsSearchDistance = 1600 ; PathFinderRequestTimeoutMs = 60000 ; ReadObjectManagerFTS = 10 ; ForceAutoLoot = False ; RetrieveCorpseMaxDistance = 26 ; KeyBindingMacro = P ; EventsLuaWithArgsWaitTime = 150 ; DismountWhenStuck = True ; NpcScanRepair = True ; NpcScanAuctioneer = True ; NpcScanVendor = False ; NpcScanMailboxes = True ; SkipInOutDoors = False ; RandomJumping = False ; SizeWidth = 841 ; SizeHeight = 604 ; SaveWindowPosition = False ; WindowPosX = 0 ; WindowPosY = 0 ; MyMacro1 = wManager.wManagerSetting+MyMacro ; MyMacro2 = wManager.wManagerSetting+MyMacro ; MyMacro3 = wManager.wManagerSetting+MyMacro ; MyMacro4 = wManager.wManagerSetting+MyMacro ; PluginsSettings = ; CurrentSetting = wManager.wManagerSetting ; AssignTalents = False ; TrainNewSkills = True ; CanAttackUnitsAlreadyInFight = False ; DontStartFighting = False ; UseSpiritHealer = False ; UseMount = True ; UseGroundMount = True ; GroundMountName = ; MountDistance = 80 ; IgnoreFightGoundMount = True ; FlyingMountName = ; UseFlyingMount = True ; AquaticMountName = ; FoodName = ; FoodPercent = 35 ; DrinkName = ; DrinkPercent = 35 ; RestingMana = False ; FoodIsSpell = False ; DrinkIsSpell = False ; LootMobs = True ; DetectNodesStuck = True ; LootChests = False ; SkinMobs = False ; SkinNinja = True ; HarvestMinerals = True ; HarvestHerbs = True ; HarvestTimber = False ; HarvestAvoidPlayersRadius = 7 ; MaxUnitsNear = 3 ; SearchRadius = 300 ; HarvestDuringLongMove = False ; Smelting = False ; Prospecting = False ; ProspectingInTown = False ; ProspectingTime = 15 ; ProspectingList = ; Milling = False ; MillingInTown = False ; MillingTime = 15 ; MillingList = ; BlackListHarvestByName = ; ListHarvestByName = ; Relogger = False ; AccountEmail = ; AccountPassword = ; BNetName = ; FoodAmount = 0 ; DrinkAmount = 0 ; MinFreeBagSlotsToGoToTown = 2 ; UseMammoth = False ; ToTownTimer = 40 ; ToTownTimerActivated = False ; Repair = True ; Selling = False ; SellGray = True ; SellWhite = False ; SellGreen = False ; SellBlue = False ; SellPurple = False ; DoNotSellList = Soul Shard, Heavy Frostweave Bandage, Runic Healing Potion, Bolt of Runecloth, Firecracker Salmon, Chilled Meat, Flask of the Frost Wyrm, Grand Spellstone, Baby Spice, Hearthstone, Fish Feast, Rhino Dogs, Wormhole Generator: Northrend, Primal Might, Argent Lance, Purple Smoke Flare, Northern Spices, MOLL-E, Gnomish Army Knife, Jeeves, Snapper Extreme, Wrathful Gladiator's Felweave Handguards, Ametrine, Northern Stew, Green Smoke Flare, White Smoke Flare, Valiant's Seal ; ForceSellList = ; UseMail = False ; UseMollE = False ; MailRecipient = ; MailSubject = Hey ; MailGray = False ; MailWhite = True ; MailGreen = True ; MailBlue = True ; MailPurple = True ; DoNotMailList = Soul Shard, Heavy Frostweave Bandage, Runic Healing Potion, Bolt of Runecloth, Firecracker Salmon, Chilled Meat, Flask of the Frost Wyrm, Grand Spellstone, Baby Spice, Hearthstone, Fish Feast, Rhino Dogs, Wormhole Generator: Northrend, Primal Might, Argent Lance, Purple Smoke Flare, Northern Spices, MOLL-E, Gnomish Army Knife, Jeeves, Snapper Extreme, Wrathful Gladiator's Felweave Handguards, Ametrine, Northern Stew, Green Smoke Flare, White Smoke Flare, Valiant's Seal ; ForceMailList = ; CloseIfFullBag = False ; CloseIfReached4000HonorPoints = False ; CloseIfPlayerTeleported = True ; CloseAfterXLevel = 100 ; CloseIfWhisperBiggerOrEgalAt = 10 ; CloseAfterXBlockagesLatest10Minutes = 25 ; CloseAfterXMin = 2880 ; SecurityPauseBotIfNerbyPlayer = False ; SecurityRecordWhisperInLogFile = True ; SecuritySongIfNewWhisper = False ; UsePathsFinder = True ; NpcMailboxSearchRadius = 10000 ; HelpingGroupMembers = True ; AttackElite = False ; CloseAfterXBlockagesActive = True ; CloseAfterXDeathsActive = False ; CloseAfterXDeathsLatest10Minutes = 5 ; CloseAfterXMinActive = False ; AttackBeforeBeingAttacked = False ; SpellRotationSpeed = False ; IgnoreFightDuringFarmIfDruidForm = False ; WaitResurrectionSickness = False ; BlackListZoneWhereDead = False ; DisableNearPlayerToTown = False ; GoToTownHerbBags = False ; GoToTownMiningBags = False ; CalcuCombatRange = True ; UnlockMaxFps = False ; IgnoreCombatWithPet = False ; UseLuaToMove = False ; SecurityPauseBotIfNerbyPlayerRadius = 1000 ; SecurityPauseBotIfNerbyPlayerTime = 20 ; SecurityShutdownComputer = False ; LatencyMin = 150 ; LatencyMax = 500 ; AddToNpcDb = False ; BlackListTrainingDummy = True ; AvoidWallWithRays = True ; FlyAboveGroundHeight = 1,5 ; AvoidBlacklistedZonesPathFinder = True ; BlackListIfNotCompletePath = True ; WallDistancePathFinder = 1,5 ; PathFinderPostionOffset = 1,7 ; FlightMasterDiscoverRange = 150 ; FlightMasterTaxiDistance = 1000 ; FlightMasterTaxiUse = True ; FlightMasterTaxiUseOnlyIfNear = False ; 
[D] 18:47:10.786 - [Blacklist] Added, 0 uniques Npcs, 0 Blackspots and 0 Npcs types (Training dummy ignored = True).
[F] 18:47:11.130 - SaveWindowPosition = False ; NewUserSettings = False ; LastProductSelected = WRotation ; CustomClass = Class1.cs ; DetectEvadingMob = False ; SkipRegenIfFlaggedInCombat = True ; FoodMaxPercent = 95 ; DrinkMaxPercent = 95 ; IgnoreFightWithPlayer = False ; PathFinderServerSeemDownPauseBotTimeSec = 60 ; PathFinderRequestLog = False ; PathFinderFromServer = True ; OffMeshConnectionsSearchDistance = 1600 ; PathFinderRequestTimeoutMs = 60000 ; ReadObjectManagerFTS = 10 ; ForceAutoLoot = False ; RetrieveCorpseMaxDistance = 26 ; KeyBindingMacro = P ; EventsLuaWithArgsWaitTime = 150 ; DismountWhenStuck = True ; NpcScanRepair = True ; NpcScanAuctioneer = True ; NpcScanVendor = False ; NpcScanMailboxes = True ; SkipInOutDoors = False ; RandomJumping = False ; SizeWidth = 841 ; SizeHeight = 604 ; WindowPosX = 0 ; WindowPosY = 0 ; MyMacro1 = wManager.wManagerSetting+MyMacro ; MyMacro2 = wManager.wManagerSetting+MyMacro ; MyMacro3 = wManager.wManagerSetting+MyMacro ; MyMacro4 = wManager.wManagerSetting+MyMacro ; PluginsSettings = butler.cs = False, GatheringMobSpawns.cs = False, GroupLoot.cs = False, LootFilterWrobot.dll = False, MeHuman.cs = False, MoveDuringCombat.dll = False, OpenChests.cs = False, SmoothMove.dll = False, Trainer - Wotlk.cs = False ; CurrentSetting = wManager.wManagerSetting ; AssignTalents = False ; TrainNewSkills = True ; CanAttackUnitsAlreadyInFight = False ; DontStartFighting = False ; UseSpiritHealer = False ; UseMount = True ; UseGroundMount = True ; GroundMountName = ; MountDistance = 80 ; IgnoreFightGoundMount = True ; FlyingMountName = ; UseFlyingMount = True ; AquaticMountName = ; FoodName = ; FoodPercent = 35 ; DrinkName = ; DrinkPercent = 35 ; RestingMana = False ; FoodIsSpell = False ; DrinkIsSpell = False ; LootMobs = True ; DetectNodesStuck = True ; LootChests = False ; SkinMobs = False ; SkinNinja = True ; HarvestMinerals = True ; HarvestHerbs = True ; HarvestTimber = False ; HarvestAvoidPlayersRadius = 7 ; MaxUnitsNear = 3 ; SearchRadius = 300 ; HarvestDuringLongMove = False ; Smelting = False ; Prospecting = False ; ProspectingInTown = False ; ProspectingTime = 15 ; ProspectingList = ; Milling = False ; MillingInTown = False ; MillingTime = 15 ; MillingList = ; BlackListHarvestByName = ; ListHarvestByName = ; Relogger = False ; AccountEmail = ; AccountPassword = ; BNetName = ; FoodAmount = 0 ; DrinkAmount = 0 ; MinFreeBagSlotsToGoToTown = 2 ; UseMammoth = False ; ToTownTimer = 40 ; ToTownTimerActivated = False ; Repair = True ; Selling = False ; SellGray = True ; SellWhite = False ; SellGreen = False ; SellBlue = False ; SellPurple = False ; DoNotSellList = Soul Shard, Heavy Frostweave Bandage, Runic Healing Potion, Bolt of Runecloth, Firecracker Salmon, Chilled Meat, Flask of the Frost Wyrm, Grand Spellstone, Baby Spice, Hearthstone, Fish Feast, Rhino Dogs, Wormhole Generator: Northrend, Primal Might, Argent Lance, Purple Smoke Flare, Northern Spices, MOLL-E, Gnomish Army Knife, Jeeves, Snapper Extreme, Wrathful Gladiator's Felweave Handguards, Ametrine, Northern Stew, Green Smoke Flare, White Smoke Flare, Valiant's Seal ; ForceSellList = ; UseMail = False ; UseMollE = False ; MailRecipient = ; MailSubject = Hey ; MailGray = False ; MailWhite = True ; MailGreen = True ; MailBlue = True ; MailPurple = True ; DoNotMailList = Soul Shard, Heavy Frostweave Bandage, Runic Healing Potion, Bolt of Runecloth, Firecracker Salmon, Chilled Meat, Flask of the Frost Wyrm, Grand Spellstone, Baby Spice, Hearthstone, Fish Feast, Rhino Dogs, Wormhole Generator: Northrend, Primal Might, Argent Lance, Purple Smoke Flare, Northern Spices, MOLL-E, Gnomish Army Knife, Jeeves, Snapper Extreme, Wrathful Gladiator's Felweave Handguards, Ametrine, Northern Stew, Green Smoke Flare, White Smoke Flare, Valiant's Seal ; ForceMailList = ; CloseIfFullBag = False ; CloseIfReached4000HonorPoints = False ; CloseIfPlayerTeleported = True ; CloseAfterXLevel = 100 ; CloseIfWhisperBiggerOrEgalAt = 10 ; CloseAfterXBlockagesLatest10Minutes = 25 ; CloseAfterXMin = 2880 ; SecurityPauseBotIfNerbyPlayer = False ; SecurityRecordWhisperInLogFile = True ; SecuritySongIfNewWhisper = False ; UsePathsFinder = True ; NpcMailboxSearchRadius = 10000 ; HelpingGroupMembers = True ; AttackElite = False ; CloseAfterXBlockagesActive = True ; CloseAfterXDeathsActive = False ; CloseAfterXDeathsLatest10Minutes = 5 ; CloseAfterXMinActive = False ; AttackBeforeBeingAttacked = False ; SpellRotationSpeed = False ; IgnoreFightDuringFarmIfDruidForm = False ; WaitResurrectionSickness = False ; BlackListZoneWhereDead = False ; DisableNearPlayerToTown = False ; GoToTownHerbBags = False ; GoToTownMiningBags = False ; CalcuCombatRange = True ; UnlockMaxFps = False ; IgnoreCombatWithPet = False ; UseLuaToMove = False ; SecurityPauseBotIfNerbyPlayerRadius = 1000 ; SecurityPauseBotIfNerbyPlayerTime = 20 ; SecurityShutdownComputer = False ; LatencyMin = 150 ; LatencyMax = 500 ; AddToNpcDb = False ; BlackListTrainingDummy = True ; AvoidWallWithRays = True ; FlyAboveGroundHeight = 1,5 ; AvoidBlacklistedZonesPathFinder = True ; BlackListIfNotCompletePath = True ; WallDistancePathFinder = 1,5 ; PathFinderPostionOffset = 1,7 ; FlightMasterDiscoverRange = 150 ; FlightMasterTaxiDistance = 1000 ; FlightMasterTaxiUse = True ; FlightMasterTaxiUseOnlyIfNear = False ; 
[F] 18:47:11.130 - WRobotFileName = ; WRobotTmpFolderName = ; DriveLetter = ; FullWowPath = C:\Program Files (x86)\World of Warcraft\ ; MaxFPS = 50 ; MaxLuaMemoryUsage = 2147483647 ; CloseIfCannotLoginWowMinutes = 2 ; WaitTimeToRelogSeconds = 0 ; UseShortcuts = True ; WindowName = ; TopMost = False ; Remote = False ; ToTrayBar = False ; MeShow = True ; TargetShow = True ; PathShow = True ; BlacklistShow = True ; NpcShow = False ; PlayersShow = False ; ObjectsShow = False ; LowFps = True ; LowQuality = True ; ByName = ; CurrentSetting = wManager.wManagerGlobalSetting ; FilePath = C:\WRobot\\Settings\WRobotGlobalSetting.xml ; 
[F] 18:47:11.131 - CanProtectAgainstScreenshots = False ; ArgsEnvironmentVariables = hPcfCrixsP ; InstallDateTime = 06-09-2018 20:33:21 ; ShowMs = True ; normalCb = True ; fightCb = True ; navigatorCb = False ; debugCb = True ; ErrorCb = True ; SendErrorCb = False ; CurrentSetting = robotManager.robotManagerGlobalSetting ; FilePath = C:\WRobot\\Settings\RobotManagerGlobalSetting.xml ; 
[D] 18:47:11.131 - [Info] Wow Version: 12340
[D] 18:47:11.131 - [Info] Player found: True
[D] 18:47:11.191 - [Info] Wow Addons: 
18:47:11.200 - [SpellManager] Initializing SpellBook - (Wait few seconds)
18:47:11.229 - [SpellManager] Initialize SpellBook Finished (240 spell found)
[D] 18:47:11.233 - [SpellManager] List of id found in spellbook: 
Auto Attack (6603)
Basic Campfire (818)
Cannibalize (20577)
Cold Weather Flying (54197)
Cooking (51296)
Dodge (81)
Engineering (51306)
First Aid (45542)
Goblin Engineer (20222)
Northern Cloth Scavenging (59390)
Shadow Resistance (20579)
Shoot (5019)
Tailoring (51309)
Underwater Breathing (5227)
Will of the Forsaken (7744)
Corruption (47813)
Curse of Agony (47864)
Curse of Doom (47867)
Curse of the Elements (47865)
Curse of Tongues (11719)
Curse of Weakness (50511)
Death Coil (47860)
Drain Life (47857)
Drain Mana (5138)
Drain Soul (47855)
Fear (6215)
Howl of Terror (17928)
Life Tap (57946)
Seed of Corruption (47836)
Banish (18647)
Challenging Howl (59671)
Create Firestone (60220)
Create Healthstone (47878)
Create Soulstone (47884)
Create Spellstone (47888)
Demon Armor (47889)
Demon Charge (54785)
Demon Skin (696)
Demonic Circle: Summon (48018)
Demonic Circle: Teleport (48020)
Demonic Empowerment (47193)
Detect Invisibility (132)
Enslave Demon (61191)
Eye of Kilrogg (126)
Fel Armor (47893)
Fel Domination (18708)
Health Funnel (47856)
Immolation Aura (50589)
Metamorphosis (47241)
Ritual of Souls (58887)
Ritual of Summoning (698)
Sense Demons (5500)
Shadow Cleave (50581)
Shadow Ward (47891)
Soul Link (19028)
Soulshatter (29858)
Summon Felguard (30146)
Summon Felhunter (691)
Summon Imp (688)
Summon Succubus (712)
Summon Voidwalker (697)
Unending Breath (5697)
Hellfire (47823)
Immolate (47811)
Incinerate (47838)
Rain of Fire (47820)
Searing Pain (47815)
Shadow Bolt (47809)
Shadowflame (61290)
Soul Fire (47825)
Corruption (172)
Corruption (6222)
Corruption (6223)
Corruption (7648)
Corruption (11671)
Corruption (11672)
Corruption (25311)
Corruption (27216)
Corruption (47812)
Curse of Agony (980)
Curse of Agony (1014)
Curse of Agony (6217)
Curse of Agony (11711)
Curse of Agony (11712)
Curse of Agony (11713)
Curse of Agony (27218)
Curse of Agony (47863)
Curse of Doom (603)
Curse of Doom (30910)
Curse of the Elements (1490)
Curse of the Elements (11721)
Curse of the Elements (11722)
Curse of the Elements (27228)
Curse of Tongues (1714)
Curse of Weakness (702)
Curse of Weakness (1108)
Curse of Weakness (6205)
Curse of Weakness (7646)
Curse of Weakness (11707)
Curse of Weakness (11708)
Curse of Weakness (27224)
Curse of Weakness (30909)
Death Coil (6789)
Death Coil (17925)
Death Coil (17926)
Death Coil (27223)
Death Coil (47859)
Drain Life (689)
Drain Life (699)
Drain Life (709)
Drain Life (7651)
Drain Life (11699)
Drain Life (11700)
Drain Life (27219)
Drain Life (27220)
Drain Soul (1120)
Drain Soul (8288)
Drain Soul (8289)
Drain Soul (11675)
Drain Soul (27217)
Fear (5782)
Fear (6213)
Howl of Terror (5484)
Life Tap (1454)
Life Tap (1455)
Life Tap (1456)
Life Tap (11687)
Life Tap (11688)
Life Tap (11689)
Life Tap (27222)
Seed of Corruption (27243)
Seed of Corruption (47835)
Banish (710)
Create Firestone (6366)
Create Firestone (17951)
Create Firestone (17952)
Create Firestone (17953)
Create Firestone (27250)
Create Firestone (60219)
Create Healthstone (6201)
Create Healthstone (6202)
Create Healthstone (5699)
Create Healthstone (11729)
Create Healthstone (11730)
Create Healthstone (27230)
Create Healthstone (47871)
Create Soulstone (693)
Create Soulstone (20752)
Create Soulstone (20755)
Create Soulstone (20756)
Create Soulstone (20757)
Create Soulstone (27238)
Create Spellstone (2362)
Create Spellstone (17727)
Create Spellstone (17728)
Create Spellstone (28172)
Create Spellstone (47886)
Demon Armor (706)
Demon Armor (1086)
Demon Armor (11733)
Demon Armor (11734)
Demon Armor (11735)
Demon Armor (27260)
Demon Armor (47793)
Demon Skin (687)
Enslave Demon (1098)
Enslave Demon (11725)
Enslave Demon (11726)
Fel Armor (28176)
Fel Armor (28189)
Fel Armor (47892)
Health Funnel (755)
Health Funnel (3698)
Health Funnel (3699)
Health Funnel (3700)
Health Funnel (11693)
Health Funnel (11694)
Health Funnel (11695)
Health Funnel (27259)
Ritual of Souls (29893)
Shadow Ward (6229)
Shadow Ward (11739)
Shadow Ward (11740)
Shadow Ward (28610)
Shadow Ward (47890)
Hellfire (1949)
Hellfire (11683)
Hellfire (11684)
Hellfire (27213)
Immolate (348)
Immolate (707)
Immolate (1094)
Immolate (2941)
Immolate (11665)
Immolate (11667)
Immolate (11668)
Immolate (25309)
Immolate (27215)
Immolate (47810)
Incinerate (29722)
Incinerate (32231)
Incinerate (47837)
Rain of Fire (5740)
Rain of Fire (6219)
Rain of Fire (11677)
Rain of Fire (11678)
Rain of Fire (27212)
Rain of Fire (47819)
Searing Pain (5676)
Searing Pain (17919)
Searing Pain (17920)
Searing Pain (17921)
Searing Pain (17922)
Searing Pain (17923)
Searing Pain (27210)
Searing Pain (30459)
Searing Pain (47814)
Shadow Bolt (686)
Shadow Bolt (695)
Shadow Bolt (705)
Shadow Bolt (1088)
Shadow Bolt (1106)
Shadow Bolt (7641)
Shadow Bolt (11659)
Shadow Bolt (11660)
Shadow Bolt (11661)
Shadow Bolt (25307)
Shadow Bolt (27209)
Shadow Bolt (47808)
Shadowflame (47897)
Soul Fire (6353)
Soul Fire (17924)
Soul Fire (27211)
Soul Fire (30545)
Soul Fire (47824)
Dreadsteed (23161)
Felsteed (5784)
Flying Carpet (61451)
Frosty Flying Carpet (75596)
Traveler's Tundra Mammoth (61447)


18:47:11.236 - [SpellManager] Please wait, loading spellbook...
18:47:11.392 - [SpellManager] Spellbook loaded.
[D] 18:47:11.589 - [Keybindings]
Sit / Stand: X
Backward: S
Forward: W
Jump: SPACE
Strafe Left: A
Strafe Right: D

[F] 18:47:13.809 - ManageMovement = False ; AttackAll = False ; UseMiniMapClick = False ; AutoResurrect = False ; LootInRange = False ; AttackOnlyIfFlaggedInCombat = True ; DisableCTM = False ; CurrentSetting = WRotation.Bot.WRotationSetting ; 
[F] 18:47:13.841 - [FightClass] Loading Fight class: C:\WRobot\\FightClass\Class1.cs
[D] 18:47:15.331 - [Spell] Incinerate (Id found: 47838, Name found: Incinerate, NameInGame found: Incinerate, Know = True, IsSpellUsable = True)
[D] 18:47:15.347 - [Spell] Corruption (Id found: 47813, Name found: Corruption, NameInGame found: Corruption, Know = True, IsSpellUsable = True)
[D] 18:47:15.365 - [Spell] Shadow Bolt (Id found: 47809, Name found: Shadow Bolt, NameInGame found: Shadow Bolt, Know = True, IsSpellUsable = True)
18:47:15.381 - [My fightclass] Is initialized.
18:47:18.144 - [Fight] Player Attack Heroic Training Dummy (lvl 83)
[F] 18:47:18.204 - [Spell] Cast Corruption (Corruption)
18:47:21.664 - AOE
18:47:24.430 - BURST.
[F] 18:47:32.010 - [Spell] Cast Corruption (Corruption)
18:47:34.294 - AOE
18:47:35.436 - BURST.
18:47:41.364 - [My fightclass] Stop in progress.
18:47:42.112 - Session statistics:
Elapsed time: 00h:00m:26s
XP/HR: 0 - 0 min
Kills: 0 (0/hr)
Deaths: 0 (0/hr)
Stucks: 0 (0/hr)
Farms: 0 (0/hr)
Loots: 0 (0/hr)
Money/HR: 0 G 00 S 00 C (0 G 00 S 00 C)

 

Link to comment
Share on other sites

Change your init method to

    public void Initialize() // When product started, initialize and launch Fightclass
    {
        _isLaunched = true;
        {
            EventsLuaWithArgs.OnEventsLuaWithArgs += delegate (LuaEventsId id, List<string> args)
            {
                if (id == LuaEventsId.MODIFIER_STATE_CHANGED && args.Count == 2)
                {
                    //  Possible values are LSHIFT, RSHIFT, LCTRL, RCTRL, LALT, and RALT
                    string key = args[0];

                    // 1 means that the the key has been pressed. 0 means that the key has been released
                    int state = int.Parse(args[1]);

                    // AOE mode
                    if (key == "LALT" && state == 0)
                    {
                        // Set status
                        aoeMode = !aoeMode;
                        Logging.Write($"AOE {this.aoeMode.ToString()}");
                    }

                    // Burst mode
                    if (key == "LCTRL" && state == 0)
                    {
                        // Set status
                        burstMode = !burstMode;
                        Logging.Write($"BURST {this.burstMode.ToString()}");
                    }
                }

            };
        }
        Logging.Write("[My fightclass] Is initialized.");
        Rotation();
    }

Make sure the aoe or burst mode are really enabled by checking the log.
Also it helps if you write more logging stuff to make sure the routine enters the if block or not just for debugging.

Edited by iMod
Link to comment
Share on other sites

Ty for the replay iMod. I have found the fault....guess what.... Casting at an training dummy, does not but you in combat.

        if (burstMode && ObjectManager.Me.InCombat) = well... why cast then.

But then again, how should I know. 

Again, many thanks for all of your replies. 
 

Link to comment
Share on other sites

5 hours ago, morris79 said:

Ty for the replay iMod. I have found the fault....guess what.... Casting at an training dummy, does not but you in combat.

        if (burstMode && ObjectManager.Me.InCombat) = well... why cast then.

But then again, how should I know. 

Again, many thanks for all of your replies. 
 

Under advanced settings
Target dummies are probably disabled.

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