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 - the surface

Pages: [1]
1
Combat/Healing/Looting / Explosion Pot Macro
« on: September 05, 2023, 09:46:48 AM »
Hello ScriptUO!

One of the things I wanted to create was an explosion potion macro that arms the explosion potion -> Waits 1-2 seconds and tosses it near the last moment at the last known target. Also possible if pressing the hotkey once armed that it throws the explosion pot to the last target. If the last known target is unavailable within a certain amount of tiles or thus not on screen that it throws it 2 tiles away in either direction away from your character to prevent damage.

Please Note -- This is a work in progress and not finished.


set %explopot TUF

while #true
{
onhotkey 3
   gosub ChuckExplo
}

sub ChuckExplo
finditem %explopot C_ , #backpackid
if #findcnt < 1
   return
set #lobjectid #findid
event macro 17 0
target 3s
wait 70
finditem #ltargetid 3853
if #findcnt < 1
   {
   set #ltargetx #charposx - 3
   set #ltargety #charposy - 3
   set #ltargetz #charposz
   set #ltargetkind 2
   event macro 22 0
   }
return

2
Script Debug / Writing my first script
« on: July 10, 2023, 04:41:10 AM »
My goal or what IM attempting to do is to follow my other character using pathfinding. Its harder than I thought... Thank you all for any suggestions or help. I wanted to keep it simple.

 %moveDelay 500

mainloop:
   sub chooseTarget
   sub followTarget
   wait 1s
   goto mainloop

sub chooseTarget
   display ok "Click on the player you want to follow."
   set #targcurs 1
   wait 5s
   return

sub followTarget
   set %targetID #ltargetid
   if %targetID = 0
   {
      display ok "No target selected. Retargeting."
      wait 1s
      return
   }

   set %targetX $x[%targetID]
   set %targetY $y[%targetID]
   set %targetZ $z[%targetID]

   event rightclick %targetX %targetY %targetZ
   wait %moveDelay
   event rightclick %targetX %targetY %targetZ
   wait %moveDelay
   return

3
New member introductions / Personal Introduction
« on: June 28, 2023, 05:23:31 AM »
Hello ScriptUO,

I started playing Ultima Online about 1997 with my older brother. It turned out I liked the game so much I couldn't really fathom a better one ever coming out. Dial up was the choice for connecting with a few choice DSL players at the time.

Turned out I bought a murderer who had over 1000 murders and when I logged into the game for the first time on the purchased account I was in Brit GY. It didn't take long for people to figure out I was definitely not the same guy/girl that played before me. Another surprise from my brother was a house, but on Serpents hold with silver serpents. A despised murderous outcast with a house next to deadly poison was a hell of an intro. I stuck mainly with pvp and did well for a young lad I think I was 8 years old at the time. Once OSI sold out to EA I think the game was changed irrevocably changed. I played AOS for a little bit and tried to design some shards in college. 25 years later Im still catching up on things like fishing  or treasure hunting I never got to do. The game constantly amazes me. This past year Im really trying to learn how to script in EasyUO. I never had an affinity for scripting period no matter which language usually a much higher capacity for technical hardware. I really want to push myself to learn more and surprise myself  :D

Pages: [1]