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

Pages: 1 ... 3 4 [5] 6 7 ... 16
61
Off Topic / Re: Music - What are you listening to now? Part 2
« on: January 29, 2012, 12:57:35 PM »
Are you kidding, I love Franz Ferdinand!  Good stuff.  And it's actually MUSICAL!  Yo.

I love franz, i like S.o.a.d and artic monkeys too, but franz is the best new "millenium" band.

62
General UO Chat / Re: Damage eater property
« on: January 29, 2012, 11:51:44 AM »
Are these new item properties?

No, the new one is  Assassin Honed, it give a bonus di, when you "follow" the enemy (face same direction) i think it will overpower moving shot, and dismount chars.

63
Off Topic / Re: Music - What are you listening to now? Part 2
« on: January 29, 2012, 11:46:07 AM »


=X this one is mainstream and isn't a gangsta song.

64
General UO Chat / Re: Damage eater property
« on: January 29, 2012, 10:49:44 AM »
damage eater = 18%, specific eater = 30%

65
Questing / Re: Gen's Library Donations
« on: December 22, 2011, 10:53:58 PM »
me too. dont work now.
it seems cant find vendors...

If you READ my post, you will find the fix.

66
Questing / Re: Gen's Library Donations
« on: December 12, 2011, 08:43:50 PM »
don't working on last patch, the find vendor is with problem, "ps i have allready fix the findrep thing."

=D i found the error is juts change to


if #findrep <> 7

Again =[

67
Site News / Re: Please welcome the new Elites!
« on: December 04, 2011, 09:14:05 AM »
congrats

68
Scripting Chat / Re: ZLF =[ How to proced?
« on: November 30, 2011, 08:54:29 PM »
Gotos make it hard to convert it later in other scriptlanguanges(Openuo as Example) As best is replace Gotos with repeat .. until. and when not need anymore break through with break or "reach" the until.

This break help a lot

69
Scripting Chat / Re: Making money farming Imbuing Ingriedients
« on: November 30, 2011, 07:23:04 PM »
if you have a tammer, go shame
if you have a sampire, go mini-champ
if you have an archer, go champ
if you have a worker, leave the game.

70
Scripting Chat / Re: ZLF =[ How to proced?
« on: November 30, 2011, 01:16:06 PM »
Code: [Select]
Finditem ZLF C ;No Backpackonly?
if #findkind <> -1 {
for #findindex 1 #findcnt {
if #scnt > %Factiontime && Factionbandage = YES{
event property #findid
if Enchanted in #property{
set #lobjectID #findid
event macro 17
target ;Default 3s if you would have lagg at the targeting moment, no missing of bandage
event macro 23
set %Factiontime #scnt + 12
break ;Break trough the for loop
}
}
Else{
if Clean in #property{
set #lobjectID #findid
event macro 17
target ;Default 3s if you would have lagg at the targeting moment, no missing of bandage
event macro 23
break ;Break trough the for loop
}
}
}
}
just a small Idea

I will use your routine, only now i'm starting to understand how break is useful =D, i will make a test today ( i will do a champ alone) then i post if is stop my loop issue.

71
Scripting Chat / Re: ZLF =[ How to proced?
« on: November 29, 2011, 02:37:09 PM »
Well, like I said in my last...

If you only carry faction bandages, and only intend to carry faction bandages, then none of this matters. Just find ZLF and it MUST be faction bandages, because that's all you ever carry.

As to a 12 second wait... well there are much better ways around that.

There is a formula you can use to determine bandage time. The problem with that method is that the timer is based on your stats (dex) which can change. If it changes while you are applying the bandage, then the timer will be longer then you anticipated before you applied the bandage.

The method that is better to use would be a journal scanning method. There are a few messages to look for, but easily scripted.

Have a look at ScriptUO Healing Commander which is basically a showcase for TM's journal scanning tools.

Oh yeah... Do it NOW you twit!

Have to keep up the ass persona.

(See freddy, that's being an ass, oh wait... so is this  :P)

My scripts is allready working with my changes, i posted it some lines above, the point is faction bandages have a 18s timer between the time you start heal and the time you can heal again, it don't change with dex, so i'm using a journal scanner, that i make on my A hardy simple heal from 2007, and using now faction bandage, then between delay for use again, it will use the normal bandage one.

Its the script
Code: [Select]
;=========================================================================;
; Script Name: A HardY Simple Bandage Healer                              ;
; Author: A HardY                                                         ;
; Version: 2.0                                                            ;
; Shard OSI/FS: OSI/FS                                                    ;
; Revision Date: 29-nov-2011                                              ;
; Purpose: Auto Heal with bandages using                                  ;
;     Journal timer                                                       ;                                          ;
;=========================================================================;
;You need The statusbar open or it don't work.
;You only need Bands to work, it will search when you lose hp, become bleed,
;and will heal yourself.
;************************
;==========================================================================
;Set Variables
;==========================================================================
set %started You_begin_applying_the_bandages
set %healed You_finish_applying_the_bandages
set %failed You_apply_the_bandages
set %nulled You_heal_what_little_damage_your
set %nodam That_being_is_not_damaged
set %bleed The_bleeding_wounds_have
set %faction Any_curses_on_you_have_been_lifted
set %warnonlow 0
set %warnamount 10
set %Factiontime #scnt
set %Factionbandage NO ; yes / no
;==========================================================================
; Check for Logged in, Status Bar and DMC
;==========================================================================
checkingame:
if ( #cliLogged = 0 )
{
wait 1
goto checkingame
}

if ( DMC notin #opts )
{
display ok ERROR!$
+This script requires "Don't move cursor" enabled!$
+Enable this option in the EasyUO Tools menu and$
+restart the script.$
halt
}
wait 2s
if ( #MAXHITS = N/A )
{
event macro 8 2
}
;==========================================================================
;Start the script
;==========================================================================
start:
wait 1
if ( #hits = #maxhits && c notin #charstatus && #charghost = NO )
{
goto start
}
;==========================================================================
; Death Support
; If dead, wait to be rezzed, then start over.
;==========================================================================
if ( #charghost = YES )
{
stilldead:
if ( #charghost = NO )
{
  goto start
}
wait 1
goto stilldead
}
;==========================================================================
; Begin the act of bandaging self
; If enabled, warn user if low on bandages
;==========================================================================
finditem ZLF C
if #findkind <> -1
{
for #findindex 1 #findcnt
{
if #scnt > %Factiontime && %Factionbandage = YES
{
event Property #findID
set %factband #findstack , #spc , Enchanted , #spc ,
if %factband in #property
 {
  set #lobjectid #findid
  event macro 17 0
  target 1s
  event macro 23 0
  ; set %Factiontime #scnt + 12
 } ; if %factband in #property
} ;if #scnt > %Factiontime
else
{
event Property #findID
set %factband #findstack , #spc , Clean , #spc ,
if %factband in #property
 {
  set #lobjectid #findid
  event macro 17 0
  target 1s
  event macro 23 0
  } ; if %factband in #property
} ; Else
} ; for #findindex 1 #findcnt
} ; if #findkind <> -1
if ( %warnonlow = 1 && %warnamount >= #findstack )
{
  event ExMsg #lobjectID 3 38 Low on bandaids!
}
wait 1
goto didwestart
}
;==========================================================================
; If no bandages found, wait for more to arrive
; If enabled, warn user of no bandages
;==========================================================================
if ( %warnonlow = 1 )
{
event ExMsg #charID 3 38 Out of Bandages!
}

startlooking:
finditem ZLF C
if ( #findkind = 0 )
{
goto start
}
;==========================================================================
; The everpresent check-for-death routine
if ( #charghost = YES )
{
goto start
}
;==========================================================================
wait 1
goto startlooking
;==========================================================================
; Check the journal to ensure we started healing
; #jIndex provides dynamic 1-way searching
;==========================================================================
didwestart:
wait 1
set %jend #jIndex
for %r %jstart %jend
{
scanjournal %r
if ( %started in #journal && :__ notin #journal )
{
  set %failsafe #SCNT + 13
  set %jstart #jIndex
  goto areyoudoneyet
}
}

;==========================================================================
; The everpresent check-for-death routine
if ( #charghost = YES )
{
goto start
}
;==========================================================================

;If we failed to start healing, start over
goto start

;==========================================================================
; Healing started, start checking if we are done healing.
; Search in both directions
;==========================================================================

areyoudoneyet:
set %now #SCNT
;==========================================================================
; The everpresent check-for-death routine
if ( #charghost = YES )
{
goto start
}
;==========================================================================

wait 1
set %jend #jIndex

for %r %jstart %jend
{
scanJournal %r
if ( %faction in #journal )
{
  set %Factiontime #scnt + 14
  if ( : notin #journal )
  {
  goto start
  }
}
if ( %healed in #journal || %failed in #journal || %nulled in #journal || %nodam in #journal || %bleed in #journal )
{
  if ( : notin #journal )
  {
  goto start
  }
}
}
;if we have been healing for more than 12 seconds, break out of the loop.
;added to guard against against possible looping bug
if ( %now > %failsafe )
{
goto start
}
;If not done, keep checking
goto areyoudoneyet
;==========================================================================
; End of File
;==========================================================================

Any idea to make it clean and smarter i would appreciate. Its the way i find to use the bandages

Code: [Select]
finditem ZLF C
if #findkind <> -1
{
for #findindex 1 #findcnt
{
if #scnt > %Factiontime && %Factionbandage = YES
{
event Property #findID
set %factband #findstack , #spc , Enchanted , #spc ,
if %factband in #property
 {
  set #lobjectid #findid
  event macro 17 0
  target 1s
  event macro 23 0
  ; set %Factiontime #scnt + 12
 } ; if %factband in #property
} ;if #scnt > %Factiontime
else
{
event Property #findID
set %factband #findstack , #spc , Clean , #spc ,
if %factband in #property
 {
  set #lobjectid #findid
  event macro 17 0
  target 1s
  event macro 23 0
  } ; if %factband in #property
} ; Else
} ; for #findindex 1 #findcnt
} ; if #findkind <> -1

72
Scripting Chat / Re: ZLF =[ How to proced?
« on: November 29, 2011, 09:35:54 AM »
#FINDCOL will always return the correct information about what color something is. What I'm saying is that the bandage color may not be what you are looking for. Aren't Faction bandages dyable?

If the color of faction bandages can change, then #findcol will never find them, correct? Will the name ever change? Thus #property > #findcol.

Something that will never change, like ORE for example would be an excellent use of #findcol.

Code: [Select]
sub PropertyPwnsFindcol
finditem ZLF C_ , #backpackID
if #findCnt > 0
  {
  event Property #findID
  if faction in #property
    {
    msg Hey look, faction bandages $
    msg Maybe I should do whatever it was I wanted to do with them $
    return
    }
  msg Hey look, bandages that are NOT faction bandages $
  msg I'm just going to ignore these things and move on $
  ignoreitem #findID
  }
msg Didn't find any bandages, sorry $
return

Hmm, you show to us another way of do the check in tree =) , with your example is just add   if faction in #property && %counter < #scnt then inside the counter just add set %counter #scnt + 14 (the timer is 18 but if you was max dex you still need 4 seconds to do the next bandage so 14 is fine.

My one actually isn't that clean

Code: [Select]
finditem ZLF C
if #findkind <> -1
{
for #findindex 1 #findcnt
{
if #scnt > %Factiontime && %Factionbandage = YES
{
event Property #findID
set %factband #findstack , #spc , Enchanted , #spc ,
if %factband in #property
 {
  set #lobjectid #findid
  event macro 17 0
  target 1s
  event macro 23 0
  ; set %Factiontime #scnt + 12
 } ; if %factband in #property
} ;if #scnt > %Factiontime
else
{
event Property #findID
set %factband #findstack , #spc , Clean , #spc ,
if %factband in #property
 {
  set #lobjectid #findid
  event macro 17 0
  target 1s
  event macro 23 0
  } ; if %factband in #property
} ; Else
} ; for #findindex 1 #findcnt
} ; if #findkind <> -1

For example Cerveza at your way don't have a chance of 50% in the first bandage it use normal bandage without the faction one even if the timer is right ?

because you finditem first then only after make the find property, if the first search isn't the right one (faction), it will use normal bandage, to after try again the faction, and if you are unlucky again and again you never will use the faction right?

Not sure about euox interpreters, but at first read i thinked on that.

73
Scripting Chat / Re: ZLF =[ How to proced?
« on: November 29, 2011, 07:58:39 AM »
i will try with findcol, but first i need know what i did wrong, why sometimes the script i did some posts above try to heal a lot of times in a loop;

74
Scripting Chat / Re: ZLF =[ How to proced?
« on: November 28, 2011, 09:04:28 PM »
Is there a reason no one has mentioned #FINDCOL ?  This is offhand, but it would look something like this?

Finditem ZLF C_ , #backpackID
if #findkind <> -1
{
 for #findindex 1 #findcnt
 {
  if #FINDCOL = XXXX    ; I don't know the faction color offhand
   gosub FactionBandage
  if #FINDCOL = 0       ; Regular bandage
   gosub RegularBandage
 }

}


With Event Property you can easily move too fast if you have any type of lag and get a "$" (default) value meaning your script  will not see the bandage as a faction bandage.  I don't think it's going to make a huge difference in time, but I would bet #findcol is a little faster since you have to do the finditem anyway.

If you do plan on just using the #Property you might want to write in a holding sub to make sure you give the script enough time to update the variable.  It's been a while since I've written, so if something I've suggested isn't correct please correct me. 

Sub WaitForProperty
set %MaxDelay #Scnt + 2
While #Property = $ && %MaxDelay > #Scnt
wait 1
if #Property = $
 return #False
else
 return #True


Does this make sense?



Why make 2 If findcol, isn't better for the euox make if and else, so it will use regular bands and enhanted(nofact) ones, but i like the idea of findcol

75
Scripting Chat / Re: ZLF =[ How to proced?
« on: November 28, 2011, 04:15:34 PM »
I finished the script, anyone want test? I'm upgrading my a hardy simple heal 1.0 for 2.0, for allow fact bandage i tested it here on atl, it seen work, i created an YES\NO for use or don't use faction bandies.

Code: [Select]
;=========================================================================;
; Script Name: A HardY Simple Bandage Healer                              ;
; Author: A HardY                                                         ;
; Version: 2.0                                                            ;
; Shard OSI/FS: OSI/FS                                                    ;
; Revision Date: 29-nov-2011                                              ;
; Purpose: Auto Heal with bandages using                                  ;
;     Journal timer                                                       ;                                          ;
;=========================================================================;
;You need The statusbar open or it don't work.
;You only need Bands to work, it will search when you lose hp, become bleed,
;and will heal yourself.
;************************
;==========================================================================
;Set Variables
;==========================================================================
set %started You_begin_applying_the_bandages
set %healed You_finish_applying_the_bandages
set %failed You_apply_the_bandages
set %nulled You_heal_what_little_damage_your
set %nodam That_being_is_not_damaged
set %bleed The_bleeding_wounds_have
set %faction Any_curses_on_you_have_been_lifted
set %warnonlow 0
set %warnamount 10
set %Factiontime #scnt
set %Factionbandage NO ; yes / no
;==========================================================================
; Check for Logged in, Status Bar and DMC
;==========================================================================
checkingame:
if ( #cliLogged = 0 )
{
wait 1
goto checkingame
}

if ( DMC notin #opts )
{
display ok ERROR!$
+This script requires "Don't move cursor" enabled!$
+Enable this option in the EasyUO Tools menu and$
+restart the script.$
halt
}
wait 2s
if ( #MAXHITS = N/A )
{
event macro 8 2
}
;==========================================================================
;Start the script
;==========================================================================
start:
wait 1
if ( #hits = #maxhits && c notin #charstatus && #charghost = NO )
{
goto start
}
;==========================================================================
; Death Support
; If dead, wait to be rezzed, then start over.
;==========================================================================
if ( #charghost = YES )
{
stilldead:
if ( #charghost = NO )
{
  goto start
}
wait 1
goto stilldead
}
;==========================================================================
; Begin the act of bandaging self
; If enabled, warn user if low on bandages
;==========================================================================
finditem ZLF C
if #findkind <> -1
{
for #findindex 1 #findcnt
{
if #scnt > %Factiontime && %Factionbandage = YES
{
event Property #findID
set %factband #findstack , #spc , Enchanted , #spc ,
if %factband in #property
 {
  set #lobjectid #findid
  event macro 17 0
  target 1s
  event macro 23 0
  ; set %Factiontime #scnt + 12
 } ; if %factband in #property
} ;if #scnt > %Factiontime
else
{
event Property #findID
set %factband #findstack , #spc , Clean , #spc ,
if %factband in #property
 {
  set #lobjectid #findid
  event macro 17 0
  target 1s
  event macro 23 0
  } ; if %factband in #property
} ; Else
} ; for #findindex 1 #findcnt
} ; if #findkind <> -1
if ( %warnonlow = 1 && %warnamount >= #findstack )
{
  event ExMsg #lobjectID 3 38 Low on bandaids!
}
wait 1
goto didwestart
}
;==========================================================================
; If no bandages found, wait for more to arrive
; If enabled, warn user of no bandages
;==========================================================================
if ( %warnonlow = 1 )
{
event ExMsg #charID 3 38 Out of Bandages!
}

startlooking:
finditem ZLF C
if ( #findkind = 0 )
{
goto start
}
;==========================================================================
; The everpresent check-for-death routine
if ( #charghost = YES )
{
goto start
}
;==========================================================================
wait 1
goto startlooking
;==========================================================================
; Check the journal to ensure we started healing
; #jIndex provides dynamic 1-way searching
;==========================================================================
didwestart:
wait 1
set %jend #jIndex
for %r %jstart %jend
{
scanjournal %r
if ( %started in #journal && :__ notin #journal )
{
  set %failsafe #SCNT + 13
  set %jstart #jIndex
  goto areyoudoneyet
}
}

;==========================================================================
; The everpresent check-for-death routine
if ( #charghost = YES )
{
goto start
}
;==========================================================================

;If we failed to start healing, start over
goto start

;==========================================================================
; Healing started, start checking if we are done healing.
; Search in both directions
;==========================================================================

areyoudoneyet:
set %now #SCNT
;==========================================================================
; The everpresent check-for-death routine
if ( #charghost = YES )
{
goto start
}
;==========================================================================

wait 1
set %jend #jIndex

for %r %jstart %jend
{
scanJournal %r
if ( %faction in #journal )
{
  set %Factiontime #scnt + 14
  if ( : notin #journal )
  {
  goto start
  }
}
if ( %healed in #journal || %failed in #journal || %nulled in #journal || %nodam in #journal || %bleed in #journal )
{
  if ( : notin #journal )
  {
  goto start
  }
}
}
;if we have been healing for more than 12 seconds, break out of the loop.
;added to guard against against possible looping bug
if ( %now > %failsafe )
{
goto start
}
;If not done, keep checking
goto areyoudoneyet
;==========================================================================
; End of File
;==========================================================================

I know the script is a lot confused atm, is because i just "Upgrade" from my old one, but i will start make it more clean.

I don't know why sometimes (rare cases) it try heal on a loop.

Pages: 1 ... 3 4 [5] 6 7 ... 16