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

Pages: [1]
1
UOSteam scripts / PVM aide
« on: July 28, 2016, 09:18:16 PM »
Here is a script I loop sometimes during pvm on a no skill cap shard. It is useful for reducing clicks, but it is a work in progress and is not foolproof. I welcome any and all feedback.

Known issues:
1. Sometimes the pet is accidentally disco'd.
2. Sometimes the all kill command accidentally tells the pet to kill the player.
3. Relies on the Loop checkbox. This should be easy enough to fix by wrapping the whole thing in 'while not dead' hopefully
4. Beware that this will auto-attack PKs. Remove the 'murderer' condition from @getenemy if you want don't want to deal with this.
5. You must already have an "active" instrument before this script starts. I usually double click an instrument in my pack before hitting play.

Things I want to change:
1. Prioritize self-health monitoring. Maybe I could wrap each subsection in a while loop that would break if my hits go below some threshold. Then control would return to the self-healing section.
2. Auto-detect pet instead of having to set the alias manually.
3. For monsters that create spawn (e.g. Dark Father): find a way to have both the pet and player attack the boss, but if there is spawn then the player kills the spawn while the pet stays on the boss, then once the spawn is cleared the player returns to attacking the boss.
4. Make the discordance robust to not having an active instrument selected yet.

Cheers



Code: [Select]
//----------------------------------------
// Self-health monitoring
//---------------------------------------
// Heal if hits go below 55% of total
if diffhits 'self' > 45
  // Heal to 90%
  while diffhits 'self' > 10
    bigheal
    target! 'self'
  endwhile
endif
//----------------------------------
// Heal Pet
//-----------------------------------
if not findalias 'pet1'
  promptalias 'pet1'
endif
// Heal if hits go below 60% of total
if diffhits 'pet1' > 40
  //Heal to 85%
  while diffhits 'pet1' > 15
    while 'poisoned' 'pet1'
      cast "cure"
      waitfortarget 2000
      target! 'pet1'
    endwhile
    cast 'greater heal'
    waitfortarget 2000
    target! 'pet1'
  endwhile
endif
//---------------------------------------
// Get enemy & disco + all kill
//-----------------------------------------
@getenemy 'enemy' 'criminal' 'murderer' 'closest'
if @findobject 'enemy'
  @clearjournal
  if @inrange 'enemy' 10
    // set pet on enemy
    msg 'All Kill'
    waitfortarget 1000
    target! 'enemy'
    if not @timerexists 'discotimer'
      @createtimer 'discotimer'
    endif
  endif
endif
// Disco enemy, and continue trying if it fails
if not @injournal 'jarring' and not @injournal 'already' and not @injournal 'would have no effect'
  if timer 'discotimer' >= 2050
    useskill 'Discordance'
    waitfortarget 1000
    target! 'enemy'
    settimer 'discotimer' 0
  endif
endif
//----------------------------------
// Weapon ability spam
//-------------------------------
if not timerexists 'abilitytimer'
  settimer 'abilitytimer' 500
endif
if timer 'abilitytimer' >= 500
  @setability 'primary' 'on'
  //@setability 'secondary' 'on'
  settimer 'abilitytimer' 0
endif
//----------------------------------------------
// Char buffs
//--------------------------------------------
if not buffexists 'Enemy of One'
  cast 'Enemy of One'
  pause 250
endif
if not buffexists 'Bless'
  cast 'Bless'
  waitfortarget 1500
  target! 'self'
  pause 250
endif

2
UOSteam / Capabilities of UO Steam
« on: July 24, 2016, 06:57:03 AM »
Hello,

Wanted to get some community input on the maximum complexity that people have achieved using UO steam. Has anyone succeeded with a slave/bot script or an auto-gauntlet runner, or even an auto champ-spawner? Not looking for code examples here, just want to know the types of things that everyone is doing.

As for me: I have a PVM script that recalls through a book of spots, auto discords, auto loots, and keeps my char alive. I also have one to turn in quest items.

3
Script Debug / Re: move command causes barding attempt
« on: July 01, 2016, 07:44:05 AM »
That was it. I had the arrow keys set as hotkeys for barding skills in UOSteam. Thank you.

4
Script Debug / move command causes barding attempt
« on: June 26, 2016, 09:29:20 AM »
I am having an issue that the 'move' command causes my character to attempt to use a (seemingly random) barding skill and he never actually moves. I first ran into this issue trying to use Crome969's Doom artisan, but even a simple script with only

    set %newx #charposx + 2
    set %newy #charposy + 2
    move %newx %newy 0 4s
    halt

has the same issue. A target is never chosen, the skill is essentially just spammed so I get repeated system messages saying you must wait a few moments to use another skill.

I did some experimenting to try to figure out what triggers each particular barding skill, but I couldn't find a pattern among the following:which skill was used last, which direction my character is facing, what type of item I had set as last target, whether or not the skill buttons are on screen.

OS: Windows 10
Running easyuo as administrator
Connecting to UO with UOSteam
Shard: Six feet under

5
New member introductions / Back at it again
« on: May 27, 2016, 10:50:12 PM »
Hello, I am SinbadSailing.  Apologies for getting a bit nostalgic below, but it somehow felt good to write it all down.

I started playing UO in 2003. Played almost exclusively on ABCUO for 6 years, along with a few brief side-ventures into other freeshards, the only memorable one being Xanadu. Didn't play any UO from 2010-2014, but in early 2015 I decided to install the game and check out some of the free shards that were still around. Alas, real life got in the way and I couldn't get as deep into the game as I'd like. Things have settled down now and I am making another attempt at the game that dominated my life for so many years.

I had some great times back in the day with a few irl friends who were were also obsessed with UO. We were young and ignorant and computer illiterate, but our experience was probably more fun for it.

We didn't know about Ventrilo, so we would have a group call on our primitive cell phones every afternoon after school while we played from our respective homes, having to hang up every so often to let the phones cool down.

We didn't know about Razor/UOAssist macroing, but we spent days digging through the in-game macro tool once we found it in the options menu. (I can make a hotkey to pick more flax!)

We certainly didn't know about EasyUO.

My eyes were opened to the capabilities of EasyUO toward the end of my tenure on ABCUO. By this time, only one friend still played UO and we were now at different schools and had fallen out of touch.  One day I saw that he had scored a spot in one of the shard's elite guilds, so I asked if I could join him. He said yes, and once I was in I was introduced to EasyUO and given access to the guild's script repository.  Using these scripts I could compete in pvp with the best players on the shard, and I could solo champ spawns, and I could bring in huge amounts of gold by selling the bods that were now so easy to farm. It was a whole new game, and it was fantastic.

Now all these years later I am back trying to recapture some of that joy.  I have much less time to play than I did as a kid, so my objectives are different now. I want to emphasize scripting more in order to optimize the time I spend at the keyboard. My profession is coding, and I think it will be fun to apply those skills toward developing UO scripsts.  Browsing some of the boards on this website I have already discovered some new things, notably the Stealth client which I am really looking forward to digging into.

Anyway, very happy to have found this community and I can't wait to start talking and tossing ideas at all of you.

Cheers,

Sinbad

Pages: [1]