Page 1 of 1

about read some item info and ignore

Posted: 16.10.2013 15:59
by mixers
in euo like this

findbook:
finditem %runebook c_ , #backpackid
event property #findid
if home notin #property 2
ignoreitem #findid
goto findbook
set %homebook #findid
ignoreitem reset
finditem %runebook C_ , #backpackid
if #findkind <> -1
{
event property #findid
if ore notin #property 2
ignoreitem #findid
goto findbook
if ore in #property
{
set %No %No + 1
set %WOODBOOK . %No #findid
ignoreitem #findid
goto findbook
}
}

in stealth how to write?

Re: about read some item info and ignore

Posted: 16.10.2013 17:39
by Vizit0r
write on english, what you want read from RB. For me EUO code like chinese...

Re: about read some item info and ignore

Posted: 17.10.2013 2:30
by mixers
yes i am chinese
what means RB ?

Re: about read some item info and ignore

Posted: 17.10.2013 2:48
by Vizit0r
runebook.

just write what info you want to read.

Re: about read some item info and ignore

Posted: 17.10.2013 3:26
by mixers
if home in book's info, set the book to use, if not in book's info, ingore it.

Re: about read some item info and ignore

Posted: 17.10.2013 14:51
by Gauhar
maybe that:

Code: Select all

Var
   homebookID: Cardinal;
   woodbookID: array of Cardinal;
   
...   

Procedure FindRunebook;
Var
   runebookType: Word;
   i: Integer;
Begin
   runebookType := $22C5;
   i := 0;
   while FindType(runebookType, backpack) > 0 do
   begin
      if pos('home', GetTooltip(finditem)) > 0 then
         homebookID := finditem
      else
      if pos('ore', GetTooltip(finditem)) > 0 then
      begin
         i := i + 1;
         SetLength(woodbookID, i);
         woodbookID[i-1] := finditem;
      end;
      Ignore(finditem);
   end;
   IgnoreReset;
End;

Re: about read some item info and ignore

Posted: 18.10.2013 2:31
by mixers
thanks Guahar.
Could you tell me where I can find POS grammar?

i want read some info from armor,cut and save the info.

Re: about read some item info and ignore

Posted: 18.10.2013 14:13
by Gauhar
search in google: pascal copy pos delete