Page 1 of 1

Easyuo: FindType HS_

Posted: Sat Nov 29, 2014 10:46 pm
by jackkim
hi guys

i know this type is for females, and I have tried million tines to get it work but easyuo does not pick up this type.
Funny thing is that male type IS_ is always picked up, but never HS_ (female)


following is the script i try to use :

;trying to find a guildmate or blue player nearby

for %i #true #false
FindItem IS_HS_ G_ , 12
if #FindKind <> -1 && #FindRep < 3 && #FindID <> #CharID
{
event sysmessage FindID : #FindID
event sysmessage FindKind : #FindKind
event sysmessage FindType : #FindType
event sysmessage FindRep : #FindRep
event sysmessage FindDist : #FindDist

if
{
"do what i need (i have healing condition if person has 50% of current hits < maxhits"
"perform healing"
set %i #true
}
else
{
set %i #false
gosub findfriends
}
}
else {
event sysmessage no target nearby
set %i #false
return
}


my euo cannot even detect type HS_ nearby, evenif i set search range to 1 tile, move right next to the target so the distance <= 1, and run scan.

any tips guys????


//// ok i found out why lol it was simple! i had to ignore my charid before searching, or it was always finding myself first (my char type is HS_). thanks for your time guys!

Re: Easyuo: FindType HS_

Posted: Sun Nov 30, 2014 2:56 am
by Asmodean
is there supposed to be a space between IS_HS_ and G_?

Re: Easyuo: FindType HS_

Posted: Sun Nov 30, 2014 10:18 am
by jackkim
yea there is, finditem (space) IS_HS (space) G_ (space) , (space) 12

Re: Easyuo: FindType HS_

Posted: Sun Nov 30, 2014 12:48 pm
by Shindaril
Here's something I use to block a script from "jamming" on my own char on FindItem if the same type is included in the search:

Code: Select all

;trying to find a guildmate or blue player nearby

IgnoreItem #CharID 1   ; This will ignore your own char from the FindItem, just set it before the loop

for %i #true #false
FindItem IS_HS_ G_ , 12
if #FindKind <> -1 && #FindRep < 3 ; && #FindID <> #CharID
{
event sysmessage FindID : #FindID
event sysmessage FindKind : #FindKind
event sysmessage FindType : #FindType
event sysmessage FindRep : #FindRep
event sysmessage FindDist : #FindDist

if
{
"do what i need (i have healing condition if person has 50% of current hits < maxhits"
"perform healing"
set %i #true
}
else
{
set %i #false
gosub findfriends
}
}
else {
event sysmessage no target nearby
set %i #false
return
}
That IgnoreItem is the easiest solution to the matter, you can also remove the check from the loop (just commented it out for the example)