Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Mustang58lx

Pages: [1]
1
Orion UO Scripts / Re: Sampire Helper
« on: April 28, 2024, 02:34:17 PM »
Heh there actually should have been a cast function in there. You are the first person to point out it's missing/broken. I'll add it in if I ever do an update. Right now there seems to be no interest, so no reason too. Your fix should work fine, may need to add a slight delay after Orion.Cast since my cast function adds the delays based on fcr, etc.
Thank you for your answer. You are right, must be delay because script activate Whirwind attack very fast. And also tried to activate this attack with busido abilities but it no possible.  So modification in progress. If you can give me some advices i will be appreciate. Thank you in advance.

Code: [Select]
function cast(spell, target){
    var fcr = (6 - Player.FCR()) / 4 * 1000 + 250;
        Orion.CancelWaitTarget();
        if(Orion.HaveTarget())
            Orion.CancelTarget();
        if(Player.Frozen())
            return;

        if(target)
            Orion.CastTarget(spell, target);
        else
            Orion.Cast(spell);
       
        Orion.Wait(500);
        while(Player.Frozen() && !Player.Paralyzed())
            Orion.Wait(10);

        Orion.Wait(fcr);
}

Adding that to the script should solve a lot of issues. If you find anymore, feel free to post them here. Seems more people are getting interested, i may do an update to make sure everything is tweaked correctly and add some other features i have handy if it keeps up :)


Did Altric update his script with the newest changes posted in this thread? Because when I run it I get errors. So I'm guessing the casting code needs to added. Do I need to change the items JackWalters mention about using Orion.Cast and the numbers instead of how Altiric has it?

Where exactly should the above cast code be added to Altiric's originally script he posted? I added it after the function equipSlayer(graphic){ and before function loadTags(graphic){
Code: [Select]
function equipSlayer(graphic){
    var tags = loadTags(graphic);
    if(!tags.slayer) return;
    var weapon = Orion.FindTypeEx('0x0F4B', any, backpack).filter(function(weap){
        return Orion.Contains(weap.Properties(), tags.slayer +" Slayer");
    })[0];
    if(!weapon) return;
    Orion.SetTimer('weaponSwap');
    Orion.Print(color.purple.norm, tags.slayer +" slayer equipped");
    Orion.Wait('moveitemdelay');
    Orion.Equip(weapon.Serial());
}

function cast(spell, target){
    var fcr = (6 - Player.FCR()) / 4 * 1000 + 250;
        Orion.CancelWaitTarget();
        if(Orion.HaveTarget())
            Orion.CancelTarget();
        if(Player.Frozen())
            return;

        if(target)
            Orion.CastTarget(spell, target);
        else
            Orion.Cast(spell);
       
        Orion.Wait(500);
        while(Player.Frozen() && !Player.Paralyzed())
            Orion.Wait(10);

        Orion.Wait(fcr);
}

function loadTags(graphic){
    var tags = Orion.GetFindList('mobTypes').Items()
        .filter(function(type){
            return type.Graphic() == graphic;
        }).map(function(tag){
            var comments = tag.Comment().split('|');
            return {
                name    : comments[0] ? comments[0].toString() : "missing",
                slayer  : comments[1] ? comments[1].toString() : false,
                ignore  : comments[2] ? Boolean(comments[1]) : false
            }
    });
    return tags || false;
}


When I run this script it runs over to players pets and even players in different forms such as Wraith and tries to honor them. How do I get it to ignore player's pets and players in different forms? Those pets and players turn green to me.

When I use the hokey for the attack function there are times I get the following error message
Line 114 ReferenceError: Can't find variable: ability


For the new Shrouded Sails event it it isn't attacking the pirates in the Void Pool either. How do I resolve that?

2
I'm having an issue with this script to use a trash can at my house or at a bank. I'm on OSI shard and am hoping someone will be able to assist. Other than the trashcan issue it works great.

3
New member introductions / Re: New to UOS
« on: February 17, 2020, 12:50:49 PM »
Thanks everyone!  I have found some useful items already!

4
New member introductions / Re: New to UOS
« on: January 23, 2020, 03:29:19 PM »
I've been away for a few days but here is more about me.

I started playing UO in 1999 whith a 56k modem and eventually talk my mom into getting HSI. having high speed internet made it so much better! All kinds of aspects of the game became easier and more enjoyable to play. I had a lot of fun PvPing and being in a faction. When WOW came out many of my friends left UO to go play it but i held out for several month and then I quit in 2004 and started playing WOW with them. WOW was a fun game but I always missed UO and hated that I let my 2 18x18 houses decay and lost all the items I had collected. I tried a couple other MMO's over the years but always thought back to UO and how I liked it so much, that was probably because it was my first MMO. Recently a Friend of mine told me they knew someone that played UO and that it was still around. I did some googling and couldn't believe it was still around and that people still played it! I managed to get my old accounts back and play the free way for a bit. I have switched over to paying to play and am getting acustomed to all the new changes. I even purchased ToL expansion and the water one.

I remember scripting way back and creating a script to attack a monster we had locked in with hay bales in the tower. it would attack it and heal myself when needed and step away if my health was to low. These scripts are way more advanced than that one was i created back then and look forward to trying some out.

Thanks for letting me join!

5
New member introductions / New to UOS
« on: January 20, 2020, 02:04:59 PM »
Hello everyone,

I'm a returning player to UO that's been away for over a decade! I started playing UO in 1999 through 2004. I recently have come back after more than a decade of being away and have been enjoying it!

So many things have changed since the beginning of UO until now.

Pages: [1]