i finally found teh answer myself..
for those of you that care (:o) :
VAR strfullname = "" VAR strrealname = "" VAR irealname = 0 VAR i = 0 strfullname = uo.getname("lastattack") for i=0 to Len(strfullname) if strfullname[i] == "[" then irealname = i-1 endif ...
I want to script the following:
A function should use the journal to check if my current target (lastattack) says something.
For example it could check if he says "Im coo".
So the basic check for it would look like this:
if uo.journal(0) == uo.getname("lastattack") + ": Im coo" then
yea thx for the quick reply, and i thank you for giving even a good example..
but i already thought about checking their name in journal, and it takes simply too much time. you wouldnt want to wait for the check when you push your heal potion macro and it first has to check journal to see which ...
ok heres my problem:
i have 2 items that have the same <type> and also the same <color>, the only thing that differs them is their <name> so how would i differentiate between them?
if you have 2 items of the same <type> you can still differ them by using their <color>.
example: usetype <type of ...