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

Pages: [1]
1
Scripting Tutorials / Use this to get mob id's
« on: September 27, 2018, 02:29:18 PM »
So after trying to figure this out on my own, I turned to google fu. I have since used this to return mob types quickly. Its easy, run it, click on the mob. Credit goes to RcCluster on the easyuo boards.

Code: [Select]
set #targcurs 1
while #targcurs = 1
{
}
finditem #ltargetid
if #findcnt > 0
{
    event property #findid
    display #findid #findtype #findx #findy #findz #property
}
halt

2
Scripting Tutorials / Healing Script
« on: September 27, 2018, 06:46:49 AM »
So this is my first working script. I am working to alter another to use this script with target and attack subs so you can just destroy w/e mobs you would like :)

Code: [Select]
;===================================
;=====Chase's Auto Mage Heals=============================================
;=========================================================================
;=========================================================================
; Script Name: Auto Mage Heals
; Author: Chase
; Version: 1.0
; Shard: OSI
; Revision Date: September 2018
; Purpose: To quickly heal and cure
; This is my first scrip, I am just playing with stuff at the moment.
; Its super simple but if there's a better way to do this please tell me.
;=========================================================================

Mainloop

repeat

if C in #charStatus
gosub cure

if #hits < #maxhits
gosub heal




;=========Cure Sub==================
Sub cure

event macro 15 10
wait 30
event macro 23 0
wait 10
return

;=========Heal Sub==================

Sub heal

event macro 15 3
wait 12
event macro 23 0
wait 5
return





3
Scripting Tutorials / Failing Hard
« on: September 07, 2018, 08:16:43 PM »
So I read through these scripting tutorials.

I can't get my script to work. I even scrapped it and just copy and pasted his tutorial script for healing on F10. Got no where. Here was my initial script trying to make my guy just auto heal when lower than 90 HP.

;==============================================================
; Chase's Auto Healer
; version 1.0
; Shard OSI
; Purpose: AFK healing while being attacked by sheep
; Globals none
;==============================================================


;==========================Setup===============================
set %healpotHP ( #maxHits - 80 ) ; change this for how many points down to drink your heal pot
set %healbandagesHP ( #maxHits - 10 ) ; change this for how many points down to bandage yourself.
;=========================Main Loop============================

SUO:
repeat

onhotkey F10
   gosub UseBandage
if c in #charstatus
   gosub DrinkIt NUF

if #hits < %healbandagesHP && #sCnt > %timer_bandages_heal
   {
      gosub UseBandage
      set %timer_bandages_heal ( #sCnt + 60 )
   }

if #hits < %healpotHP && #sCnt > %timer_pot_heal
   {
      gosub DrinkIt UUF
      set %timer_pot_heal ( #sCnt + 10 )
   }
until #CharGhost = Yes
while #CharGhost = Yes
   wait 0
GoTo SUO







;===========================Subs=================================
sub UseBandage
   findItem ZJF C_ , #backpackID
      if #findkind = -1
         return
   set #lobjectID #findID
   set #ltargetKind 1
   event macro 17 0
   target 3
   event macro 23 0
   wait 5
Return

sub DrinkIt
   namespace push
   namespace local DIT ; short for DrinkIt
   finditem %1 C_ , #backpackID
      if #findkind = -1
         return
   set #lobjectID #findID
   set #ltargetKind 1
      event macro 17 0
      wait 5
   namespace clear
   namespace pop
Return


Can someone pick this apart and show me where I've been stupid or just not paid close enough attention?   

update. I know the sub is being called. Just to test I added

onhotkey F10
gosub HealME


then in the sub I added

display Hello there!

the message pops up on the screen just fine. Its like it cant use the event macros or doesnt recognize the itemtype.    

4
New member introductions / I want a damn house!
« on: August 25, 2018, 10:23:16 PM »
Hi Guys, (and Gals).

       My name is Chase and I'm a chronic time waster. My favorite time sinks when I should be doing something like studying for my next cert are games. I have loved UO since I discovered it back in like 2002. I think the Legends server was actually called Aol Legends back then. That's where I got my start before moving to Great Lakes to pvp with friends. Fun fact, we all got drunk one night and got one of our buddies to promise he would get "Corp Por" tattooed on his uh Bum. Long story short, no that's a lie, its a short story. He didn't do it and we all heckled him for years over it. Anyway I digress, I always wanted to say that. "checks item off bucket list" .

I'm Chase and I love this game, its been an on and off relationship since 2002 but I always come back. Outside of this wonderful game I am a Network Engineer and a father to a badass 10 year old boy named Andrew. I recently bought my first new car! Still super excited over that and it looks like here soon I'll be purchasing my first home. It only took me 34 years to get around to adulting... Before I became a nerd for hire, I was Army Infantry for almost 9 years. I got out in 2011 and still miss it all the time.

This time around in UO I went with a new shard as it seems Atlantic is the most populous. Due to me never remembering a password in my life with out my keypass helping me out. I have to start over from scratch and thought that this might be a good time to give scripting a try. I can usually figure stuff out given an example to work from and that's what I'm looking for here, well that and some laughs. Forums are such a blast when you get a good discussion going.

Anyway, feel free to hit me up. I hope my introduction wasn't too terrible, and I look forward to joining the community!

PS "Yelling "I wish to lock this down" at a woman has still not worked for me.

Cheers

Chase

Pages: [1]