Easyuo: FindType HS_

Discussion about the technical aspects of scripting. Ask about all issues involving your freelance projects here.
Locked
jackkim
Novice Scribe
Posts: 6
Joined: Sat May 15, 2010 3:54 pm

Easyuo: FindType HS_

Post 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!
Last edited by jackkim on Sun Nov 30, 2014 12:21 pm, edited 1 time in total.
Asmodean
Legendary Scribe
Posts: 304
Joined: Thu Mar 24, 2011 12:51 pm

Re: Easyuo: FindType HS_

Post by Asmodean »

is there supposed to be a space between IS_HS_ and G_?
jackkim
Novice Scribe
Posts: 6
Joined: Sat May 15, 2010 3:54 pm

Re: Easyuo: FindType HS_

Post by jackkim »

yea there is, finditem (space) IS_HS (space) G_ (space) , (space) 12
Shindaril
Grandmaster Scribe
Posts: 96
Joined: Tue Jul 01, 2014 12:11 pm

Re: Easyuo: FindType HS_

Post 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)
Locked