ScriptUO

Scripting Resources & Utilities => Stealth Client => Topic started by: jcw on August 31, 2015, 01:10:20 PM

Title: Stealth C# questions
Post by: jcw on August 31, 2015, 01:10:20 PM
Hello Stealth world.

So I have A couple questions about stealth and C#. I was testing a few things just playing around with it to see some simple stuff.

Stealth.Default.ToggleFly();               Is this working?

Stealth.Default.CastSpell("cure");     
Stealth.Default.WaitTargetSelf();        This seems like target queing. Is there a way to make it wait to finish the 2 actions?

Stealth.Default.UsePrimaryAbility();      Will this do a check its self to see if its already active or do I need to add my own check?

Sorry for the noob coding. I was just trying to play around with it to get a better understanding of the flow.     

Code: [Select]
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace ConsoleApplication1
{
    using ScriptDotNet2;

    class Program
    {
        static void Main(string[] args)
        {
            Stealth.Default.ToggleFly();
            Stealth.Default.ClientPrint("test");
            Stealth.Default.SendTextToUO("test2");
            Stealth.Default.CastSpell("cure");
            Stealth.Default.WaitTargetSelf();
            Stealth.Default.UsePrimaryAbility();
        }
    }
}
Title: Re: Stealth C# questions
Post by: Crome969 on August 31, 2015, 08:25:31 PM