Author Topic: Reading #Hits with a Gargoyles  (Read 3168 times)

0 Members and 1 Guest are viewing this topic.

Offline The GhostTopic starter

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Reading #Hits with a Gargoyles
« on: October 18, 2013, 03:10:37 PM »
0
Ok  I have a snippet that I use to heal my mage (elves)  if the #hits go under number.  Now I just run the same snippet on my gargoyle and it won't stop casting heal on him self event it max heal.    Look like I miss to add something that will work on Gargoyles., anyone have a clue.   thx

Edits.   Look like the cast Heal over and over on my mage too. 

Here the main loop
Code: [Select]
Repeat
if #charName = N/A
   event macro 8 2
if #CHARSTATUS = CB    ; Poison Gargoyle
{
 gosub cure
}
if #hits < ( #maxhits - 30 )
(
gosub heal
 }
gosub Invis
until #CHARGHOST = yes
 }

sub heal
        {
       event macro 15 28
       target
       wait 20
       event macro 23 0
       set %spelltimer #scnt2 + %safety
       }
    wait 5
return

« Last Edit: October 18, 2013, 03:29:13 PM by The Ghost »

Offline dxrom

  • Master of the milestones!
  • Elite
  • *
  • *
  • Posts: 1080
  • Activity:
    0%
  • Reputation Power: 15
  • dxrom is working their way up.dxrom is working their way up.dxrom is working their way up.
  • KEYBOARD COWBOY, GREAT SAMURAI OF THE INTERNET.
  • Respect: +100
  • Referrals: 1
    • View Profile
Re: Reading #Hits with a Gargoyles
« Reply #1 on: October 18, 2013, 03:50:41 PM »
0
Reading gargoyles is weird... I remember running into complications in regards to scanning them with various scripts and tools (Namely with AUO).

Something about it just doesn't want to work correctly.
« Last Edit: October 18, 2013, 05:17:13 PM by dxrom »



 ​_██​_
(ಠ​_ృ)
I do say, ol' Chap! Come play EVE Online! Why here is a 21 Day Free Trial!

Offline manwinc

  • Elite
  • *
  • *
  • Posts: 2556
  • Activity:
    0%
  • Reputation Power: 32
  • manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!
  • Gender: Male
  • "The Devs Hard at Work"
  • Respect: +123
  • Referrals: 1
    • View Profile
Re: Reading #Hits with a Gargoyles
« Reply #2 on: October 18, 2013, 03:54:20 PM »
0
Bracket imbalance
You are bottoming out and jumping straight into the healing sub



Repeat
if #charName = N/A
   event macro 8 2
if #CHARSTATUS = CB    ; Poison Gargoyle
{
 gosub cure
}
if #hits < ( #maxhits - 30 )
( <-------- ( not a {
gosub heal
 }
gosub Invis
until #CHARGHOST = yes
 } <--- Where did this one come from?
Monkeys and Typewriters!

" Oh I know, We'll make a Boss Encounter that requires 3 keys per player to enter, Then we'll make it not a closed instance so you never know if you are going to pop into a fresh room or a boss that has 1% Health left with 20 dudes smashing its face in, wasting your time and effort"

Offline dxrom

  • Master of the milestones!
  • Elite
  • *
  • *
  • Posts: 1080
  • Activity:
    0%
  • Reputation Power: 15
  • dxrom is working their way up.dxrom is working their way up.dxrom is working their way up.
  • KEYBOARD COWBOY, GREAT SAMURAI OF THE INTERNET.
  • Respect: +100
  • Referrals: 1
    • View Profile
Re: Reading #Hits with a Gargoyles
« Reply #3 on: October 18, 2013, 05:08:32 PM »
0
Just got around to reading the actual code... Manwinc pointed it out before I did xD

EDIT:

Cleaned it up a bit for you.

Code: [Select]
repeat
  if #charName = N/A
    event macro 8 2
  if #CHARSTATUS = CB    ; Poison Gargoyle
    gosub cure
  if #hits < ( #maxhits - 30 )
    gosub heal
  gosub Invis     ; This executes regardless for some reason, did you mean to have it execute conditionally?
  
  wait 1 ; Always a good idea to have wait's in main loops to prevent excess resources being eaten up.
until #CHARGHOST <> no

sub heal
  event macro 15 28
  target
  wait 20
  event macro 23 0
  set %spelltimer #scnt2 + %safety
  
  wait 5
return
« Last Edit: October 18, 2013, 05:21:28 PM by dxrom »



 ​_██​_
(ಠ​_ృ)
I do say, ol' Chap! Come play EVE Online! Why here is a 21 Day Free Trial!

Offline The GhostTopic starter

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: Reading #Hits with a Gargoyles
« Reply #4 on: October 18, 2013, 05:37:54 PM »
0
Thx Man  
 
after reading the use of {}  i add them after each IF statement.  look like I use the wrong bracket.  thx to pointing my mistake.
and Thx for the clean up.   Guest I didn't needed of bracket after all.  


 gosub Invis     ; This executes regardless for some reason, did you mean to have it execute conditionally?
Code: [Select]
sub invisible
    Call ScanBuffBar
    if _Invisibility_ notin %BuffBarIconNames
       {
       event macro 15 43
       target
       wait 20
       event macro 23 0
       set %spelltimer #scnt2 + %safety
       }
    wait 10
return
« Last Edit: October 18, 2013, 05:46:02 PM by The Ghost »

Offline manwinc

  • Elite
  • *
  • *
  • Posts: 2556
  • Activity:
    0%
  • Reputation Power: 32
  • manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!
  • Gender: Male
  • "The Devs Hard at Work"
  • Respect: +123
  • Referrals: 1
    • View Profile
Re: Reading #Hits with a Gargoyles
« Reply #5 on: October 18, 2013, 05:48:23 PM »
0
Yeah, for 1 Line IF Statements you don't need Brackets.

Monkeys and Typewriters!

" Oh I know, We'll make a Boss Encounter that requires 3 keys per player to enter, Then we'll make it not a closed instance so you never know if you are going to pop into a fresh room or a boss that has 1% Health left with 20 dudes smashing its face in, wasting your time and effort"

Tags: