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

How can I check buff status from farm wagon? - please help

Status
Not open for further replies.

aprisma

New Member
Joined
Feb 25, 2011
Messages
359
Reaction score
0
Hello,

some time ago someone posted a plugin that do autostealth. I wanted to change the source that it do the same for the farm wagon.
The problem is that the routine look at the status from the char not from the wagon.

Is there any way to do the same for the wagon?

This is the idea:

//Call on plugin start
public void PluginRun()
{
while (true){
while (skillCooldown("Owner's Mark") != 0) {
Thread.Sleep (90);
}
UseSkill ("Owner's Mark",true,false);
}

}
//Call on plugin stop
public void PluginStop()
{
}
}

Thanx a lot for all your help.
cheers,
 
Hello,

some time ago someone posted a plugin that do autostealth. I wanted to change the source that it do the same for the farm wagon.
The problem is that the routine look at the status from the char not from the wagon.

Is there any way to do the same for the wagon?

This is the idea:

//Call on plugin start
public void PluginRun()
{
while (true){
while (skillCooldown("Owner's Mark") != 0) {
Thread.Sleep (90);
}
UseSkill ("Owner's Mark",true,false);
}

}
//Call on plugin stop
public void PluginStop()
{
}
}

Thanx a lot for all your help.
cheers,

You may be able to check it with me.target as long as you have your farm wagon as your target you should be able to ready it's buffs.

Code:
    while (true)
    {
        while (me.target skillCooldown("whatever") == 0 && me.target buffTime("Whatever (rank 1)") <= 2)
        {
            UseSkill("Refreshment", true);
        }
    }

I doubt that is the correct Syntax for the code but it would be something along those lines. If the Syntax is wrong and someone knows the correct one feel free to share.
 
If the cart is anything like gathering, mining, or chopping trees then you need to use the skills for it.

Let's say:

PHP:
Doodad myCart;//some code to select the cart
target(myCart);//targets cart
TurnDirectly(myCart);//faces cart
ComeTo(myCart, 3);//moes within 3meters of cart
var skills = myCart.GetSkills(); //get all cart skills

for(int i = 0; i < skills.count; i++)
{
myCart.UseSkill(skills[i].id);//will use the carts skills
Thread.Sleep(100);
}

Don't know if this will work, because the cart may not be a Doodad.
 
hello,
thanx for all your help.

@JoeBobJr: Thanx for your hint but I need some solution that works even if the target is not the farm cart, farm wagon.
@czzplnm: I will try yours - what the hell is a doodad?

thanx a lot,
cheers,
 
If the cart is anything like gathering, mining, or chopping trees then you need to use the skills for it.

I didnt know that there are carts that can do mining, chop a tree or gather ........... :confused:
 
I didnt know that there are carts that can do mining, chop a tree or gather ........... :confused:

The horse is considered a creature, and the cart might be considered one too. I don't have a cart so I can't tell if it is a creature or a doodad. Tress, plants, and mines are doodads, a pet is a creature, a cart might be one or neither. Just trying to help you out.
 
Owner's Mark Refresh

Code:
#region Using Directives

using ArcheBuddy.Bot.Classes;
using System;
using System.Linq;
using System.Threading;

#endregion

namespace Experiment
{
    public class OwnersMark
        : Core
    {
        #region Public Static Methods 

        public static string GetPluginAuthor()
        {
            return "AUser";
        }

        public static string GetPluginVersion()
        {
            return "1.0.0.0";
        }

        public static string GetPluginDescription()
        {
            return "Keep Owner's Mark on Farm Vehicle";
        }

        #endregion

        #region Public Methods

        //Call on plugin start
        public void PluginRun()
        {
            ClearLogs();
            Log("Starting ------------------");
            DoIt();
        }

        //Call on plugin stop
        public void PluginStop()
        { 
            Log("Stopping ------------------");
        }

        public void DoIt()
        {
            try
            {
                // Find our farm vehicle by name
                var cart = getCreatures().Where(n => n.name == "Farmcartname").FirstOrDefault();

                if (cart != null)
                {
                    // Loop as long as the cart is summoned and targetable
                    while (SetTarget(cart))
                    {
                        // If successfully used Owner's Mark
                        if (UseSkill("Owner's Mark", false, false))
                        {
                            // Sleep for 90 seconds before recasting
                            Thread.Sleep(90000);
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                Log(ex.Message);
            }
        }

        #endregion
    }
}
 
Last edited:
Status
Not open for further replies.
Back
Top