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 - yem

Pages: [1]
1
Orion UO Client / struggling with my automated questing script
« on: October 19, 2023, 11:48:55 PM »
Hi everyone, i am currently playing on a freeshard that allows scripts and automation in any form.
The shard contains a questing system, which works as follow:
-take quest from quester
-quester assigns you to a quest of killing one type of mobs (out of three different)

now, what i want the script to do, is this:
-take quest from quester (got macro for it)
-check via journal, whether i have to kill Abyss, Palifico, or Marty
-tp to the location via runebook (got macro for it)
-wait at the location as long as message Mission Complete is not in journal
-if message Mission Complete is in journal move some tiles (Orion.Walkto) and wait some seconds
-tp back to City
-go to quester

...and then from the beginning...

I kind of got everything in the script already, i just messed up big big time with the syntax, currently Line 9 is giving me Syntax Error.
Here's what i got:

Code: [Select]
function quester()
{
    while(true)         
           {         
            Orion.PlayMacro('takequest');
    Orion.Wait(1000);
            {
           
    if(Orion.InJournal('NPC: Marty.')
                {
Orion.PlayMacro('tpMarty');
                {
                    while(!Orion.InJournal('Mission Complete'));
                    {
                    Orion.Wait(2000);
                   
                    }
                    else
                    Orion.WalkTo(1285, 494, 11, [distance=1]);
                                Orion.Wait(8000);
Orion.PlayMacro('tpTR');
Orion.Wait(500);
Orion.Exec('walktoquester');
Orion.Wait(20000);
Orion.ClearJournal();
}
             Orion.Wait(100);
         }
         Orion.Wait(100);

               
    else if(Orion.InJournal('NPC: Palifico.')
                {
Orion.PlayMacro('tpPalifico');
                {
                    while(!Orion.InJournal('Mission Complete'));
                    {
                    Orion.Wait(2000);
                   
                    }
                    else
                    Orion.WalkTo(1285, 494, 11, [distance=1]);
                                Orion.Wait(8000);
Orion.PlayMacro('tpTR');
Orion.Wait(500);
Orion.Exec('walktoquester');
Orion.Wait(20000);
Orion.ClearJournal();
}
             Orion.Wait(100);
         }
         Orion.Wait(100);
         
         
    else if(Orion.InJournal('NPC: Abyss.')
                {
Orion.PlayMacro('tpAbyss');
                {
                    while(!Orion.InJournal('Mission Complete'));
                    {
                    Orion.Wait(2000);
                   
                    }
                    else
                    Orion.WalkTo(1285, 494, 11, [distance=1]);
                                Orion.Wait(8000);
Orion.PlayMacro('tpTR');
Orion.Wait(500);
Orion.Exec('walktoquester');
Orion.Wait(20000);
Orion.ClearJournal();
}
             Orion.Wait(100);
      }
    Orion.Wait(100);          
}

           
           


hope anyone whos not as bad in scripting as i am, is willing to help.
Thanks for your attention
Jens

2
New member introductions / String playerName = "Jens aka yem";
« on: October 19, 2023, 03:28:10 AM »
public class JensIntroduction {
    public static void main(String[] args) {
        String playerName = "Jens";
        String game = "Ultima Online";
        int startYear = 2003;
        String shard = "alternate-pk";

        String introduction = String.format("Ladies and gentlemen, allow me to introduce you to the one and only %s, a veteran of the virtual realms in the world of %s. Jens, as he's fondly known, embarked on his digital odyssey back in %d, when the pixels were square and the dragons were pixelated blobs.\n\nIn those early days, Jens was a renegade on the %s shard, leaving a trail of chaos and turmoil wherever he went. He was the scourge of alternate realities, the terror of the virtual taverns, and the bane of pixelated bandits! You could say he had a knack for making ones and zeroes cry.\n\nBut time has a funny way of changing even the most notorious of avatars. Nowadays, Jens has mellowed out (just a smidge) and prefers to focus on taming virtual beasts and nurturing pixelated plants. The chaos of PvP has given way to the serenity of PvM, and the once-feared scourge is now a respected protector of the pixelated realm. Who would've thought, right? It's a brave new world, and Jens is adapting to it, one digital pet at a time.",
                playerName, game, startYear, shard);

        System.out.println(introduction);
    }
}


Okay, to be fair, i kind of never ever used this language back in the good old days and i never understood those hardcore-RPG style guys, talking like its 1759...
But what i did, was participating in various guild fights or raids of the guild YaSuxx, im not sure if anybody remembers that :D
Ever since it was kind of allowed on that Shard using programs like UO Loop, Yoko Injection, ... to automate skill gain process. My first experience with scripting actually origins from Yoko Injection, what a great tool it was back then..
Right now its kind of an on-off relation between me and Ultima Online. There are new shards once in a while i keep trying, most of the time i like it and stay for a year or so, then either the shard closes or i just lose interest. Sounds pretty sad, but it isnt, i keep enjoying automating processes via scripts but often it just blows my mind as im not really a coder whatsoever.

Hope you guys have a great day, thank you for this forum, its a great place  :o
Jens

PS: i just saw this policeman  :police:  :police:  :police: and i love it.

Pages: [1]