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?
Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7
about read some item info and ignore
Re: about read some item info and ignore
write on english, what you want read from RB. For me EUO code like chinese...
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
Re: about read some item info and ignore
yes i am chinese
what means RB ?
what means RB ?
Re: about read some item info and ignore
runebook.
just write what info you want to read.
just write what info you want to read.
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
Re: about read some item info and ignore
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
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
thanks Guahar.
Could you tell me where I can find POS grammar?
i want read some info from armor,cut and save the info.
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
search in google: pascal copy pos delete