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.


Topics - Ahzmandius

Pages: [1]
1
Orion UO Client / Multiskill Trainer for Orion
« on: January 05, 2022, 11:04:55 AM »
Hello, I have been hard at working writing up a multi skill trainer that uses a gump based menu for all input selections and information displays. I wanted this to be something you don't need javascript knowledge to use or modify. Some of the features so far:
  • Overview: Gump based menu displaying everything needed to interact with the script
  • Debugging mode: displays everything happening line by line to track bugs, crashes, freezes, and any other problems.
  • Soulstone gaining: Uses Siege soulstone gaining method once appropriate
  • Primary Engine: One function handles all training related functions, skills gains, processes, etc
  • Bushido, Chivalry, Healing, Hiding, Magery, Necromancy, Spellweaving, Spirit Speak, Stealth, Tailoring, Tracking already work
  • Combat training: Will attack current target using equipped weapon type(or wrestling) and heal with what ever skills/resources are handy
  • Combat training also detects weapon type and uses soulstone gaining method on Siege to gain any weapon skill every 2 minutes (70.0+)

I am very proud of the work ive pulled off with this script and am pretty much ready to release it but would love to have at least one or two people actually use it first, and i don't personally know anyone else running OrionUO. Looking for anyone willing to simply run the script for a day or two and let me know how things go, any ideas, or someone who actually knows JavaScript and can point out any major deficiencies (got less than 2 months experience here). Once i have a little feedback, ill be ready to post it up in the script section!
[/list]

2
Orion UO Scripts / Bushido Trainer
« on: November 12, 2021, 06:42:22 PM »
Worked this one up today, seems to be running quite well (into the 90's already). Have not been much for comments on these, but they get quite a few views so i figured ill toss a few more out! There must be some kind of interest..

This one you can run with a max skill argument. trainBushido(800) with train skill to 80.0, for example. No arguments will loop until max skill is reached.

Code: [Select]
function trainBushido(trainLevel){
if(Orion.SkillValue('Bushido') < 300){
Orion.CharPrint('self', 43, 'Need atleast 30 skill, buy it or get jewels');
Orion.PauseScript();
}
toLevel = !trainLevel ? Orion.SkillValue('Bushido', 'cap') : trainLevel;
Orion.Print("Training Bushido to " +(toLevel/10).toFixed(1));
while(Orion.SkillValue('Bushido', 'real') < Orion.SkillValue('Bushido', 'cap')){
var skill = Orion.SkillValue('Bushido', 'real');
if(Player.Mana() < Player.MaxMana() * 0.25)
do {
medCheck();
} while (Player.Mana() < Player.MaxMana() * 0.75);
if(skill < 600)
Orion.Cast('Confidence');
else if(skill >= 600 && skill < 750){
if(Orion.ObjAtLayer('LeftHand') == null){
Orion.CharPrint('self', 43, 'You must equip a weapon to continue.');
Orion.PauseScript();
}
Orion.Cast('Counter Attack');
}
else if(skill >= 750 && skill < 1050)
Orion.Cast('Evasion');
else
Orion.Cast('Momentum Strike');
Orion.Wait(2000);
}
}

function medCheck(){
if(Orion.SkillValue('Meditation') < 400 || Orion.BuffExists('Meditation') || Orion.Timer('lastMed') < 12000)
return;
Orion.UseSkill('Meditation');
Orion.SetTimer('lastMed');
Orion.Wait(500);
}

3
Orion UO Scripts / Stealth Trainer
« on: November 08, 2021, 10:19:16 PM »
Starts with a simple hide loop if skill is under 25.0, otherwise walks back and forth while staying hidden. Pauses script if no stealth gains are seen within 5 minutes(Probably need to increase armour). Also keeps track of skill delay for failed/successful hides. Trains to max skill value, enjoy :)

Code: [Select]
function trainStealth(){
Orion.RemoveTimer('lastGain');
Orion.ClearJournal();
while(Orion.SkillValue('Stealth', 'real') < Orion.SkillValue('Stealth', 'cap')){
if(Orion.InJournal('Your skill in Stealth')){
Orion.ClearJournal('Your skill in Stealth');
Orion.SetTimer('lastGain');
}
if(Orion.Timer('lastGain') > 600000){
Orion.Print('No stealth gains in 5 minutes, try adding armor.');
Orion.PauseScript();
}
var stealth = Orion.SkillValue('Stealth');
var hiding = Orion.SkillValue('Hiding');
if(hiding < 250){
Orion.Print('Starting from scratch, buy skill if possible.');
do {
Orion.UseSkill('Hiding');
Orion.Wait(8000);
} while(Orion.SkillValue('Hiding') < 250);
}
while(!Orion.BuffExists('Hiding')){
                        if(Orion.TimerExists('lastHide'){
    while(Orion.Timer('lastHide') < 10000)
Orion.Wait(50);
                        }
Orion.UseSkill('Hiding');
Orion.Wait(1000);
if(Orion.InJournal('You fail to hide')){
Orion.ClearJournal('You fail to hide');
Orion.SetTimer('lastHide');
}
if(Orion.InJournal('You have hidden')){
Orion.ClearJournal('You have hidden');
Orion.SetTimer('lastHide', 4000);
}
}
var px = Player.X();
Orion.WalkTo(px - 3, Player.Y(), Player.Z(), 0, 2, 0);
Orion.WalkTo(px, Player.Y(), Player.Z(), 0, 2, 0);
}
}

Got this up and running to train a new toon. Skills are currently going up and i ran out of glitches to fix, still a long ways to go.

**Edit: Script was getting held up if the lastHide timer was never set(First run of script). That's been fixed.

4
New member introductions / Another one back from the grave
« on: October 05, 2021, 11:24:41 AM »
Hello, name's Ahzmandius. I ordiginally found out about UO back in closed testing(I had played several of the previous Ultima games and was excited for an online world!). After several attempts, i managed getting into the final round of beta testing. Within my first hour in game, i was running around moonglow checking out what was inside various containers and bookcases when i saw this monsterous demon flying by! I ran outside to take a better look but could not track it down. I was hooked! (I later realized it was a polymorph player flying around). It took me a couple months to get ahold of the game(shopping around various stores for the install disc, lol!). Some time later, i managed squeezing my way into the T2A beta testing and got to be one of the first people to explore the new lands, and creatures. One of my favorite parts of the game where always server wars. Just a mess of people without a care in the world about their gear in massive pvp battles, just epic :)

I have not been around much since '05 and just got back online a few months ago. While things seem pretty familiar, i got quite the collection of death robes seeing where my old runes led too and re-learning the game. Last time i played, a person with 200k gold in the bank could buy just about anything they wanted, an explosion and two ebolts would put a mage out of action for the next 5 minutes, and people actually worked together in every aspect of the game. I simply can not get used to the EC graphics but the options put anyone else using it so far ahead its not even fair. I used to be an active EUO contributor way back when, and have dabbled with it since getting back but found Orion's javascripting to be amazing fast and the client overall is more on par with the EC client with the look i prefer. I would like to work on contributing some Orion scripts since that area seem a little slower, even though i know of quite a few people using it.

Looking forward too it!

Pages: [1]