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

Pages: [1] 2
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 / Re: Healing Script
« on: September 27, 2018, 01:55:32 PM »
ok, that gets me going in the right direction! Thanks so much

3
Scripting Tutorials / Re: Healing Script
« on: September 27, 2018, 07:21:33 AM »
So lets say I want to use this to heal one of my other guys on a different account. So this guy just sits back and heals him while the other guy beats on something.

How do I pull the second character as the target?

Is there a way to make the script look for a name?

Can I also make this target mobs in a similar manner?

4
Scripting Tutorials / Re: Healing Script
« on: September 27, 2018, 07:18:27 AM »
ahh ok, changing it.

changes in the new one.

5
Scripting Tutorials / Re: Healing Script
« on: September 27, 2018, 07:15:57 AM »
Code: [Select]
;

if C in #charStatus
gosub cure

if #hits < #maxhits
gosub heal

repeat until #CharGhost = Yes


a repeat condition like this?

also, how do I make it target a mob? I think the mob type is TH (Artic Ogre Lord)

6
Scripting Tutorials / Re: Healing Script
« on: September 27, 2018, 07:11:28 AM »

7
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





8
Resource Farming / Re: TheReaper's Ultimate Logging Tool - Death to trees
« on: September 15, 2018, 02:29:22 PM »
So, odd issue. I dont know how to alter the setup again to add a book in. Not a big deal as I just swapped some runes out but yea. Id love to learn!

9
Scripting Tutorials / Re: Failing Hard
« on: September 10, 2018, 08:02:56 PM »
I appreciate it, Ill do this tomorrow.

10
Character skill advancement / Re: Tana's Legendary Taming Mastery Trainer
« on: September 10, 2018, 08:02:07 PM »
you are the man! Script is wonderful!

11
Scripting Tutorials / Re: Failing Hard
« on: September 09, 2018, 07:21:51 AM »
yea, its open. I think. Hold on gonna go try again.

Yea no dice, it doesnt work.

;==============================================================
; 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

12
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.    

13
Stealth Client / Re: Easy uo dll?
« on: September 03, 2018, 04:05:40 AM »
So I'm going to just go ahead and sound dumb here. But, how does a dll addin accomplish this?

14
New member introductions / Re: Hello i'm new!
« on: September 02, 2018, 09:03:55 PM »
Welcome to the site man!

15
For those of you like me that found this didn't work with the BOD Menu change. This is on page 11.




To get it working again with the new bod button layout post pub 95... Find

Code: [Select]
;======= sub bodclickpos =======
sub bodclickpos
  str mid #contsize 5 3
  set #result #strres - 54
return #result
;======= end sub =======

and change the
Code: [Select]
set #result #strres - 54to
Code: [Select]
  set #result #strres - 74
The button locations were moved to add in the new "fill from bag" feature but since this script wasn't written to use that it's easier just to click the other option, the above should do that. Happy crafting.

Pages: [1] 2