AionBot.net [NA & EU]

01/12/2019 04:39 snork84#346
Quote:
Originally Posted by cooco83 View Post
About active skill, use a time to execute this only every 4/5 second(this will work for minion skill, cleric Benevolence, gladiator Combat preparation etc...)

Code:
var petAbility = Game.AbilityList.GetAbility("Skill name");

                        if (petAbility != null && petAbility.State == 0)
                        {
                            Game.PlayerInput.Ability("Skill name");
                            return true;
                        }

About dispell
Code:
var debuffState= Game.Player.StateList.GetState("debuff name");

// if debuff exist and dispell skill is available
if(debuffState!=null && AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("dispell skill name"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("dispell skill name");
                return false;
}
@[Only registered and activated users can see links. Click Here To Register...]

Questions...

1. Dispel

- How do I make a list of all debuffs that I wish to dispel? ATM I can only dispel one debuff. I put a list of all debuff names but it will only dispel the first debuff on my list.

this is my dispel code
Code:
var debuffState = Game.Player.StateList.GetState("Wide Area Poison Slash"); Game.Player.StateList.GetState("Smash"); Game.Player.StateList.GetState("Hardening Lava"); Game.Player.StateList.GetState("Break Defence"); Game.Player.StateList.GetState("Fire Burst"); Game.Player.StateList.GetState("Visual Confusion");
            if (debuffState != null && AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Energy Discharge"))
            {
                AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Energy Discharge");
                return false;
            }

2. HP Buff skills

- Bot gets stuck in loop spamming HP buff skill bcos it has 1 sec CD. How to make it only use buff once the buff has expired, removed or dispelled?

Currently I use this code

Code:
 if (HelperFunction.CheckAvailable("Blessing Of Stone"))
            {
                HelperFunction.CheckExecute("Blessing Of Stone");
                return false;
            }
3. Active skills

- Can you please show me how to add a pause between active skills to stop them turning on and off and on and off again?

4. Chains

- I've noticed that your default grinder script will actually allow all chains to finish their course before moving onto the next skill. My script will stop half way through a chain to use a skill which is higher up on my scripts list.

Please what's the way to allow chains to finish before using starting new skill?

Thanks
01/12/2019 15:09 cooco83#347
Quote:
Originally Posted by snork84 View Post
@[Only registered and activated users can see links. Click Here To Register...]

Questions...

1. Dispel

- How do I make a list of all debuffs that I wish to dispel? ATM I can only dispel one debuff. I put a list of all debuff names but it will only dispel the first debuff on my list.
Code:
var debuffState01 = Game.Player.StateList.GetState("Wide Area Poison Slash");
var debuffState02 = Game.Player.StateList.GetState("Smash");
var debuffState03 = Game.Player.StateList.GetState("Hardening Lava");
var debuffState04 = Game.Player.StateList.GetState("Break Defence");
var debuffState05 = Game.Player.StateList.GetState("Fire Burst");
var debuffState06 = Game.Player.StateList.GetState("Visual Confusion");
            if ((debuffState01 != null || debuffState02 != null || debuffState03 != null || debuffState04 != null|| debuffState05 != null ||  debuffState06 != null) && AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Energy Discharge"))
            {
                AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Energy Discharge");
                return false;
            }
Quote:
2. HP Buff skills

- Bot gets stuck in loop spamming HP buff skill bcos it has 1 sec CD. How to make it only use buff once the buff has expired, removed or dispelled?
Code:
 if (entity.StateList.GetState("Blessing of Stone") == null && HelperFunction.CheckAvailable("Blessing Of Stone"))
            {
                HelperFunction.CheckExecute("Blessing Of Stone");
                return false;
            }
Quote:
3. Active skills

- Can you please show me how to add a pause between active skills to stop them turning on and off and on and off again?
This example show how to active gladiator buff, same for skill like this

Code:
public override bool Pause()
        {
            DateTime tempTime = DateTime.Now;
            if (combatPreparationBuffTimer < tempTime)
            {
                var combatPreparationBuff = Game.AbilityList.GetAbility("Combat Preparation");
                if (combatPreparationBuff != null && combatPreparationBuff.State == 0 && Helper.HelperFunction.CheckAvailable("Combat Preparation"))
                {
                    Helper.HelperFunction.CheckExecute("Combat Preparation");
                    combatPreparationBuffTimer = tempTime.AddSeconds(10);
                    return false;
                }
            }
            return true;
        }
Quote:
4. Chains

- I've noticed that your default grinder script will actually allow all chains to finish their course before moving onto the next skill. My script will stop half way through a chain to use a skill which is higher up on my scripts list.

Please what's the way to allow chains to finish before using starting new skill?

Thanks
Insert FIRST chain skill then "starting" skill of the chain
01/13/2019 03:56 snork84#348
@[Only registered and activated users can see links. Click Here To Register...]

Thank you, dispel working great now ^^


Code:
 
if (entity.StateList.GetState("Blessing of Stone") == null && HelperFunction.CheckAvailable("Blessing Of Stone"))
            {
                HelperFunction.CheckExecute("Blessing Of Stone");
                return false;
            }
Is this definitely the correct code for buff? I tried this but my script wouldn't even load into Botting program.
I adjusted "entity" to "game.player" and script loaded but had the same issue of continuously buffing every 1 sec...

To be sure, I even tested this code under each heading:
- public override bool Attack
- public override bool PartyCheck()
- public override bool Heal()
- public override bool Pause()



Also, is your active skill script correct? I tried using it and the bot program wouldn't load after I inputted it.

Did I use it correctly? Here's what mine looks like.

Code:
        public override bool NoGravityAntiStuck()
        {
            return true;
        }

        public override bool Pause()
        {
            DateTime tempTime = DateTime.Now;
            if (ShieldMantraTimer < tempTime)
            {
                var ShieldMantraBuff = Game.AbilityList.GetAbility("Shield Mantra");
                if (ShieldMantraBuff != null && ShieldMantraBuff.State == 0 && Helper.HelperFunction.CheckAvailable("Shield Mantra"))
                {
                    Helper.HelperFunction.CheckExecute("Shield Mantra");
                    ShieldMantraBuffTimer = tempTime.AddSeconds(10);
                    return false;
                }
            }
            return true;
         }

Quote:
Insert FIRST chain skill then "starting" skill of the chain
Thank you, this makes sense!




EDIT: For the meantime, I've reverted the mantra script to the one you originally posted. It seems to work fine for Shield and Invincibility Mantras but for some strange reason, specifically, only Celerity Mantra does the weird looping issue.

Is it possible that certain skills can cause issues??
Because I also have an issue with Chanters 4k DP skill 'Winter Circle'.

I use the same command to execute skills such as Word of Wind (2k DP), Blessing Of Wind, Unstoppable ect and yet for some reason when I leave Winter Circle in the script, the bot will not attack mobs UNLESS i already have 4k DP. But once the 30 second buff wears off, the bot will stop attacking again :confused:
01/13/2019 15:37 cooco83#349
Quote:
Originally Posted by snork84 View Post
@[Only registered and activated users can see links. Click Here To Register...]

Thank you, dispel working great now ^^


Code:
 
if (entity.StateList.GetState("Blessing of Stone") == null && HelperFunction.CheckAvailable("Blessing Of Stone"))
            {
                HelperFunction.CheckExecute("Blessing Of Stone");
                return false;
            }
Is this definitely the correct code for buff? I tried this but my script wouldn't even load into Botting program.
I adjusted "entity" to "game.player" and script loaded but had the same issue of continuously buffing every 1 sec...

To be sure, I even tested this code under each heading:
- public override bool Attack
- public override bool PartyCheck()
- public override bool Heal()
- public override bool Pause()



Also, is your active skill script correct? I tried using it and the bot program wouldn't load after I inputted it.

Did I use it correctly? Here's what mine looks like.

Code:
        public override bool NoGravityAntiStuck()
        {
            return true;
        }

        public override bool Pause()
        {
            DateTime tempTime = DateTime.Now;
            if (ShieldMantraTimer < tempTime)
            {
                var ShieldMantraBuff = Game.AbilityList.GetAbility("Shield Mantra");
                if (ShieldMantraBuff != null && ShieldMantraBuff.State == 0 && Helper.HelperFunction.CheckAvailable("Shield Mantra"))
                {
                    Helper.HelperFunction.CheckExecute("Shield Mantra");
                    ShieldMantraBuffTimer = tempTime.AddSeconds(10);
                    return false;
                }
            }
            return true;
         }
I hope this image explain what skills are detectable with StateList
[Only registered and activated users can see links. Click Here To Register...]

Quote:


Thank you, this makes sense!




EDIT: For the meantime, I've reverted the mantra script to the one you originally posted. It seems to work fine for Shield and Invincibility Mantras but for some strange reason, specifically, only Celerity Mantra does the weird looping issue.

Is it possible that certain skills can cause issues??
Because I also have an issue with Chanters 4k DP skill 'Winter Circle'.

I use the same command to execute skills such as Word of Wind (2k DP), Blessing Of Wind, Unstoppable ect and yet for some reason when I leave Winter Circle in the script, the bot will not attack mobs UNLESS i already have 4k DP. But once the 30 second buff wears off, the bot will stop attacking again :confused:
About DP skill, check DP value
Code:
// Word of Wind
            if (Game.Player.StateList.GetState("Word of Wind") == null&& Game.Player.DP > 2000 && Helper.HelperFunction.CheckAvailable("Word of Wind"))
            {
                Helper.HelperFunction.CheckExecute("Word of Wind");
                return false;
            }
01/13/2019 15:48 wedding6515#350
since i downloadet and activated trial, i get a 100% sendlog after starting the game. even after reinstalling the game. only with aion32forcer i can play, but none of the feature work. just wanted some enhanced animation but it doesnt work.
01/14/2019 01:33 snork84#351
Quote:
Originally Posted by cooco83 View Post
I hope this image explain what skills are detectable with StateList
[Only registered and activated users can see links. Click Here To Register...]



About DP skill, check DP value
Code:
// Word of Wind
            if (Game.Player.StateList.GetState("Word of Wind") == null&& Game.Player.DP > 2000 && Helper.HelperFunction.CheckAvailable("Word of Wind"))
            {
                Helper.HelperFunction.CheckExecute("Word of Wind");
                return false;
            }


Thanks for the explanation but the problem I still have is that the code you linked does not work for me.

When I say it doesn't work, I mean that the bot program will not load the grinder script when I have your active skill code in my custom class script. As soon as I remove your code from my custom class script the bot can load the grinder script again. That's why I said Im using the old code you posted a few days ago bcos at least it works in the bot (except for celerity mantra which turns on and off constantly).

I have the exact same problem when using the DP skill code you just posted. (bot program will not load grinder script with DP skill code in my custom class script)

From my previous post, are you able to tell if there is an issue from my example of Shield Mantra? Would it help if i posted my entire custom script?

I noticed you play on EU server. Does it matter I play on NA??

I really wanted to get this working before I go back to work tomorrow. I'm so close to finishing my custom Chanter script but I just need to be able to use buffs and mantras correctly, and then I can post here for others to use ^^

Thanks
01/14/2019 01:46 cooco83#352
Quote:
Originally Posted by snork84 View Post
Thanks for the explanation but the problem I still have is that the code you linked does not work for me.

When I say it doesn't work, I mean that the bot program will not load the grinder script when I have your active skill code in my custom class script. As soon as I remove your code from my custom class script the bot can load the grinder script again. That's why I said Im using the old code you posted a few days ago bcos at least it works in the bot (except for celerity mantra which turns on and off constantly).

I have the exact same problem when using the DP skill code you just posted. (bot program will not load grinder script with DP skill code in my custom class script)

From my previous post, are you able to tell if there is an issue from my example of Shield Mantra? Would it help if i posted my entire custom script?

I noticed you play on EU server. Does it matter I play on NA??

I really wanted to get this working before I go back to work tomorrow. I'm so close to finishing my custom Chanter script but I just need to be able to use buffs and mantras correctly, and then I can post here for others to use ^^

Thanks
Change

Code:
Helper.HelperFunction.CheckAvailable
Helper.HelperFunction.CheckExecute
with

Code:
AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute
01/14/2019 03:42 snork84#353
Quote:
Originally Posted by cooco83 View Post
Change

Code:
Helper.HelperFunction.CheckAvailable
Helper.HelperFunction.CheckExecute
with

Code:
AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute
Hmm even with these changes, the grinder script still wont load with your active skill code.

Can you please check I've got it right?

Code:
DateTime tempTime = DateTime.Now;
                       if (CelerityMantraBuffTimer < tempTime)
            {
                var CelerityMantraBuff = Game.AbilityList.GetAbility("Celerity Mantra");
                if (CelerityMantraBuff != null && CelerityMantraBuff.State == 0 && AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Celerity Mantra"))
                {
                    AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Celerity Mantra");
                    CelerityMantraBuffTimer = tempTime.AddSeconds(10);
                    return false;
                }
            }

My 4k DP skill works now :) I just had to change 'Game.Player.DP > 3999' instead of '4000'
01/14/2019 03:58 cooco83#354
Quote:
Originally Posted by snork84 View Post
Hmm even with these changes, the grinder script still wont load with your active skill code.

Can you please check I've got it right?

Code:
DateTime tempTime = DateTime.Now;
                       if (CelerityMantraBuffTimer < tempTime)
            {
                var CelerityMantraBuff = Game.AbilityList.GetAbility("Celerity Mantra");
                if (CelerityMantraBuff != null && CelerityMantraBuff.State == 0 && AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Celerity Mantra"))
                {
                    AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Celerity Mantra");
                    CelerityMantraBuffTimer = tempTime.AddSeconds(10);
                    return false;
                }
            }
Remember, skill with icon in top of screen (like image i posted) is detectable via StateList.
GetState("Celerity Mantra Effect") is ok
GetState("Celerity Mantra") is wrong

Code:
if (Game.Player.StateList.GetState("Celerity Mantra Effect") == null && Helper.HelperFunction.CheckAvailable("Celerity Mantra"))
            {
                Helper.HelperFunction.CheckExecute("Celerity Mantra");
                return false;
            }
01/14/2019 04:57 cybernightzero#355
Can anyone help me find the discord server for support for the your license is invalid or expired. I can't seem to find the link anywhere.
01/14/2019 04:57 snork84#356
Quote:
Originally Posted by cooco83 View Post
Remember, skill with icon in top of screen (like image i posted) is detectable via StateList.
GetState("Celerity Mantra Effect") is ok
GetState("Celerity Mantra") is wrong

Code:
if (Game.Player.StateList.GetState("Celerity Mantra Effect") == null && Helper.HelperFunction.CheckAvailable("Celerity Mantra"))
            {
                Helper.HelperFunction.CheckExecute("Celerity Mantra");
                return false;
            }
It's working!! :mofo:
Thank you!

for some reason, ONLY Celerity Mantra needs 'Effect'
If 'Effect' is placed on other Mantras it will spaz out and get stuck in off/on loop

Code:
if (Game.Player.StateList.GetState("Invincibility Mantra") == null && AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Invincibility Mantra"))
            {
                AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Invincibility Mantra");
                return false;
            }
            if (Game.Player.StateList.GetState("Shield Mantra") == null && AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Shield Mantra"))
            {
                AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Shield Mantra");
                return false;
            }
            if (Game.Player.StateList.GetState("Celerity Mantra Effect") == null && AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Celerity Mantra"))
            {
                AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Celerity Mantra");
                return false;
            }

Ok one last thing pls :D

Buffs:

Protectorates prayer - 0.5 sec CD but lasts for 60 mins
Pledge of Earth - 10 sec CD but lasts for 30 mins

Issue - both skills are being used once off CD.
eg. every 0.5 secs and 10 secs respectively

This is the code im using:

Code:
if (Game.Player.StateList.GetState("Protectorate's Prayer Effect") == null && AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Protectorate's Prayer"))
            {
                AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Protectorate's Prayer");
                return false;
            }
            if (Game.Player.StateList.GetState("Pledge Of Earth Effect") == null && AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Pledge Of Earth"))
            {
                AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Pledge Of Earth");
                return false;
            }
01/14/2019 15:00 cooco83#357
Quote:
Originally Posted by cybernightzero View Post
Can anyone help me find the discord server for support for the your license is invalid or expired. I can't seem to find the link anywhere.
private message :)

Quote:
Originally Posted by snork84 View Post
It's working!! :mofo:
Thank you!

for some reason, ONLY Celerity Mantra needs 'Effect'
If 'Effect' is placed on other Mantras it will spaz out and get stuck in off/on loop

Code:
if (Game.Player.StateList.GetState("Invincibility Mantra") == null && AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Invincibility Mantra"))
            {
                AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Invincibility Mantra");
                return false;
            }
            if (Game.Player.StateList.GetState("Shield Mantra") == null && AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Shield Mantra"))
            {
                AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Shield Mantra");
                return false;
            }
            if (Game.Player.StateList.GetState("Celerity Mantra Effect") == null && AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Celerity Mantra"))
            {
                AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Celerity Mantra");
                return false;
            }

Ok one last thing pls :D

Buffs:

Protectorates prayer - 0.5 sec CD but lasts for 60 mins
Pledge of Earth - 10 sec CD but lasts for 30 mins

Issue - both skills are being used once off CD.
eg. every 0.5 secs and 10 secs respectively

This is the code im using:

Code:
if (Game.Player.StateList.GetState("Protectorate's Prayer Effect") == null && AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Protectorate's Prayer"))
            {
                AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Protectorate's Prayer");
                return false;
            }
            if (Game.Player.StateList.GetState("Pledge Of Earth Effect") == null && AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Pledge Of Earth"))
            {
                AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Pledge Of Earth");
                return false;
            }
About "Protectorate's Prayer check the name of the buff inn the icon on the top of the screen (like screenschot red squadre Bestial Fury)
try to use GetState("Pledge of Earth Effect")
01/14/2019 22:45 snork84#358
Quote:
Originally Posted by cooco83 View Post
private message :)



About "Protectorate's Prayer check the name of the buff inn the icon on the top of the screen (like screenschot red squadre Bestial Fury)
try to use GetState("Pledge of Earth Effect")

Thanks but it's just not working. I tried 'of' instead of 'Of' but still exacty the same issue as before.


There has to be another way?

Here's what I'm using

Code:
            if (Game.Player.StateList.GetState("Protectorate's Prayer") == null && 
            AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Protectorate's Prayer"))
            {
                AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Protectorate's Prayer");
                return false;
            }
            if (Game.Player.StateList.GetState("Pledge of Earth Effect") == null && 
            AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Pledge of Earth"))
            {
                AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Pledge of Earth");
                return false;
            }
I'm also making Songweaver script now. I have trouble with buff 'Exultation'. It's same as Gladiator defense prep, it doesn't show on statelist.

I tried your code from earlier but the grinder script will not load when this code is in my script. It must be wrong??

Code:
            DateTime tempTime = DateTime.Now;
            if (ExultationBuffTimer < tempTime)
            {
                var ExultationBuff = Game.AbilityList.GetAbility("Exultation");
                if (ExultationBuff != null && ExultationBuff.State == 0 &&  
AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Exultation"))
                {
                    AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Exultation");
                    ExultationBuff = tempTime.AddSeconds(10);
                    return false;
                }
            }
01/15/2019 00:48 cooco83#359
Check the buff name
[Only registered and activated users can see links. Click Here To Register...]

About songweaver

Quote:
DateTime tempTime = DateTime.Now;
if (exultationBuffTimer < tempTime)
{
var exultationModeBuff = Game.AbilityList.GetAbility("Exultation");
if (exultationModeBuff != null && exultationModeBuff.State == 0 && Helper.HelperFunction.CheckAvailable("Exultation") )
{
Helper.HelperFunction.CheckExecute("Exultation", Game.Player);
exultationBuffTimer = tempTime.AddSeconds(10);
return false;
}
}
The line of code ExultationBuff = tempTime.AddSeconds(10); was wrong
01/15/2019 13:59 snork84#360
Quote:
Originally Posted by cooco83 View Post
Check the buff name
[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]


The issue doesn't appear to be spelling. The issue is with any Statelist buff.

Issue: If I leave your code in my script, eg Protectorate's Prayer (HP buff with 0.5sec cooldown). My chanter will stand still while using Protectorate's Prayer every 0.5 sec. I literally can't kill any mobs because it's too busy spamming HP buff!
For this reason, I had to remove your code and now my poor chanter has no HP buff.


Quote:
The line of code ExultationBuff = tempTime.AddSeconds(10); was wrong
Thanks but I tried using your updated code in my script and the bot will not load the grinder script until I remove the code again.

I try using 'AionGame.UnknownFramework.Helper.HelperFunction' (where applicable) instead of just 'Helper.HelperFunction'

You remember I play on NA right? Maybe you give me EU code?


:confused: