What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

[REQUEST] I have an old plugin's source but can't do what i actually want to do

Ottomans

New Member
Joined
Aug 30, 2015
Messages
27
Reaction score
0
I don't want to reveal all of the source because i don't know if it's forbidden or not

I just want to use it amateur way as i'm going to do.

What i can't handle is as an archer it uses all archer skills and vitalism skills very well also it uses Stalker's Mark in Shadowplay too but it never uses Overwhelm and Wallop skills...

What i want to do is to make it work Overwhelm And Wallop when mob get's closer.
Than i want the archer keep using Endless Shot.

For now it's always using all cd skills and than using Endless Shot forever till the other cd skills able to hit.

Please help me out to make it work.

Regards

Code:
            #region RangeAndMage
            if (host.isAbilityTaken(Ability.Vitalism) && host.isExists(bestMob) && host.isAlive(bestMob) && host.isAttackable(bestMob))
                AttackWithSkill(11379); //Mirror Light
            if (host.isAbilityTaken(Ability.Shadowplay) && host.isExists(bestMob) && host.isAlive(bestMob))
                AttackWithSkill(12139); //Stalker's Mark
            if (host.isAbilityTaken(Ability.Songcraft) && host.isExists(bestMob) && host.isAlive(bestMob))
                AttackWithSkill(11934); //Startling Strain
            if (host.isAbilityTaken(Ability.Witchcraft) && host.characterSettings.weaponPriority == 0 && host.isExists(bestMob) && host.isAlive(bestMob))
                AttackWithSkill(10159);//Enervate
            if (host.isAbilityTaken(Ability.Witchcraft) && host.characterSettings.weaponPriority == 0 && host.isExists(bestMob) && host.isAlive(bestMob) && host.buffTime(bestMob, 101) > 1500)
                AttackWithSkill(14376);//Earthen Grip
            if (host.isAbilityTaken(Ability.Archery) && host.isExists(bestMob) && host.isAlive(bestMob))
                AttackWithSkill(16210);//Charged Bolt
            if (host.isAbilityTaken(Ability.Archery) && host.isExists(bestMob) && host.isAlive(bestMob))
                AttackWithSkill(13564);//Piercing Shot
            if (host.isAbilityTaken(Ability.Shadowplay) && host.characterSettings.weaponPriority == 2 || (host.characterSettings.weaponPriority == 1 && host.me.level < 10) && isZDistGoodForMeleeAttack() && host.isExists(bestMob) && host.isAlive(bestMob))
                AttackWithSkill(10648);//Overwhelm
            if (host.isAbilityTaken(Ability.Shadowplay) && host.characterSettings.weaponPriority == 2 && isZDistGoodForMeleeAttack() && host.isExists(bestMob) && host.isAlive(bestMob))
                AttackWithSkill(12029);//Wallop
            if (host.isAbilityTaken(Ability.Songcraft) && host.isExists(bestMob) && host.isAlive(bestMob))
                AttackWithSkill(11973); //Critical Discord
 
Please add the code for "AttackWithSkill()".

You can always force the use of said skills. Use the following code for that:

Code:
Core.UseSkill("Wallop", false, false);
 
Thank you so much,

Another question

Code:
using System;
using System.Drawing;
using System.Threading;
using System.Collections.Generic;
using System.Linq;
using ArcheBuddy.Bot.Classes;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace EzMiner
{
    public class EzMiner : Core
    {
        public static string GetPluginAuthor()
        {
            return "http://GameStrats.com";
        }
 
        public static string GetPluginVersion()
        {
            return "1.0.1.0";
        }
 
        public static string GetPluginDescription()
        {
            return "EzMiner - http://GameStrats.com";
        }
        public void PluginRun()
        {

            while (me.laborPoints > 100)
            {
                ClearMobs();

            }
        }

        private void gpsPreMove(GpsPoint point)
        {
            List<Creature> aggroMobs = getAggroMobs();
            if (aggroMobs.Count > 0)
                ClearMobs();
        }
        public void ClearMobs()
        {
            RoundZone zone = new RoundZone(me.X, me.Y, 50);
            foreach (Creature mob in getAggroMobs())
            {
                if (mob.type == BotTypes.Npc && isAttackable(mob) && isAlive(mob) && me.dist(mob) < 15 && zone.ObjInZone(mob))
                {
                    try
                    {
                        SetTarget(mob);
                        while (isAlive(mob))
                        {
                            if (SkillReady("Overwhelm"))
                            {
                                UseSkillAndWait("Overwhelm");
                            }
                            else if (SkillReady("Wallop"))
                            {
                                UseSkillAndWait("Wallop");
                            }
                        }
                    }
                    catch
                    {

                    }

                }
            }
        }

        public bool SkillReady(string skillName)
        {
            return isSkillLearned(skillName) && (skillCooldown(skillName) == 0);
        }

        public void UseSkillAndWait(string skillName, bool selfTarget = false, bool autoRun = true)
        {
            //wait for cooldowns to finish first, before we try to cast skill
            while (me.isCasting || me.isGlobalCooldown)
                Thread.Sleep(50);
            bool success = false;
            if (selfTarget)
                success = UseSkill(skillName, autoRun, selfTarget);
            else if (me.target != null)
                success = UseSkill(skillName, me.target.X, me.target.Y, me.target.Z + 2, autoRun);

            if (!success)
            {

                if (me.target != null && GetLastError() == LastError.NoLineOfSight)
                {
                    //No line of sight, try come to target.
                    if (dist(me.target) <= 5)
                        ComeTo(me.target, 2, 3);
                    else if (dist(me.target) <= 10)
                        ComeTo(me.target, 3, 5);
                    else if (dist(me.target) < 20)
                        ComeTo(me.target, 8, 10);
                    else
                        ComeTo(me.target, 8, 12);
                }
            }
            //wait for cooldown again, after we start cast skill
            while (me.isCasting || me.isGlobalCooldown)
                Thread.Sleep(50);
        }

    }
}

I took that code from the author'S miner plugin but can't make it start without labor check.

Any suggestion to make it work without labor check thing?
 
Thats abit basic question though you already got that basic skills there ;P

Just delete
while (me.laborPoints > 100)
{
ClearMobs();

}

And make it
public void PluginRun()
{
ClearMobs();
}
 
Back
Top