Recent Posts

Pages: 1 ... 3 4 [5] 6 7 ... 10
41
Orion UO Scripts / Re: Question on primary ability syntax (Whirlwind Attack)
« Last post by altiric on November 20, 2023, 07:19:32 AM »
Getting to this a little late, but here is some info.

Whirlwind is an AbilityStatus so either AbilityStatus('Primary') or AbiliatyStatus('Secondary'). Here are a couple snippets i use for working with special abilities.

Code: [Select]
function have_ability(name){
    return Orion.Contains(Orion.GetCurrentAbilityNames(), name);
}

Code: [Select]
function ability_status(name){
    const abilities = Orion.GetCurrentAbilityNames();
    if(Orion.AbilityStatus('Primary') && abilities[0].match(new RegExp(name, 'i')))
        return true;
    else if(Orion.AbilityStatus('Secondary') && abilities[1].match(new RegExp(name, 'i')))
        return true;
    else
        return false;
}

Code: [Select]
function use_ability(name){
    const abilities = Orion.GetCurrentAbilityNames();
    const primary = Orion.AbilityStatus('Primary');
    const secondary = Orion.AbilityStatus('Secondary');
    const regex = new RegExp(name, 'i');

    if(abilities[0].match(regex) && !primary){
        Orion.SetTimer('ability', 500);
        Orion.UseAbility('Primary', true);
        Orion.Wait(200);
    } else if(abilities[1].match(regex) && !secondary){
        Orion.SetTimer('ability', 500);
        Orion.UseAbility('Secondary', true);
        Orion.Wait(200);
    } else {
        return false;
    }
}

I set a timer when using an ability so i can calculate the mana cost of abilities, since if you use an ability within 3 seconds of another ability, the cost is doubled.
42
Orion UO Scripts / Re: Altiric's Amazing All-Skills Trainer
« Last post by BoomerGrow on November 19, 2023, 11:11:27 AM »
Thanks for sharing, I'd love to give it a try.
43
Orion UO Scripts / Altiric's Amazing All-Skills Trainer
« Last post by altiric on November 16, 2023, 09:47:35 AM »
Been dabbling with this one for a while now. While its fully operational as is, its ability to be expanded is the real focus of this script. It includes a complete gump/gui system that is fully dynamic, and a skill training "engine" that works off a single function for each skill. The skills table is the only area that needs modification to add new skills, the rest of the code will update itself as needed. I have included a few different training methods for various skills to provide examples for implementing new skills.

The script it pretty crammed right now and should realistically be split into a couple files with #includes to make the code cleaner and easier to work with, there are also a lot of areas with no comments. If there is enough interest from people who want to work on adding skills, ill get a mini guide going inside the code itself. None of this will really matter for people who just want to train skills though :)

Skills currently available: Anatomy, Swordsmanship, Chivalry, Detecting Hidden, Discordance, Hiding, Magery, Musicianship, Mysticism, Necromancy, Peacemaking, and Stealth

Simply select the skill you want to train, and it will attempt training the skill to cap. There is currently no error checking, so use common sense when you begin training, having a LRC suit for casting, tools you'll require, etc. Again, if there is enough interest in this script, I'll polish it up and get more skills added. This is mostly to gauge interest in the script, and determine how people would like to use it (using it as a framework, or just as a skills trainer).
44
Orion UO Scripts / Re: Brute Force Egg Hunter
« Last post by kang on November 09, 2023, 05:46:07 PM »
Ty Sir.
45
Orion UO Scripts / Re: Altiric's Amazing Archaeologist v1.0 - Cave Miner
« Last post by M4yH3m on November 06, 2023, 06:59:33 PM »
AWESOME script buddy! I emailed you as directed :). Would LOVE to see the whole thing. THANKS SO MUCH
46
Orion UO Scripts / Re: Question on primary ability syntax (Whirlwind Attack)
« Last post by Vinsanity_1 on November 06, 2023, 06:42:37 PM »
Hey, thanks for the reply here, Gaderian.

I was actually thinking of planning ahead for the future, clearing champ spawns with whirlwind attack.

Optimally, I would like to write a script that cycles through and pulls aggro on everything, then whirlwind when there is a big cluster of mobs.

I'll keep hacking away but if anyone would like to share something like that I would really love to dissect and study the script.

-V
47
Orion UO Scripts / Re: Orion Snippets!
« Last post by donghwan on November 06, 2023, 05:11:02 PM »
thx a lot.

Is it possible to have a script that automatically insurance items that come in the bag?

:)
48
Orion UO Scripts / Re: Orion Snippets!
« Last post by seanriter on November 06, 2023, 06:44:19 AM »
Hi, thank you for this.
49
Orion UO Scripts / Re: armor manager for pvm
« Last post by Crisis on November 05, 2023, 03:58:01 PM »
Too bad you wouldn't take the minute or two to make an introduction. We could use more Orion scripters here.
50
Orion UO Scripts / Re: begging
« Last post by Crisis on November 05, 2023, 03:55:43 PM »
This was more work than doing a simple introduction. This one took me less than a minute to write.

I am Figga and I have been playing UO for (insert number here) years. My favorite templates are (insert templates here). I mostly play on (Insert shard name here). I prefer Orion and would love to help with Orion scripts!
Pages: 1 ... 3 4 [5] 6 7 ... 10