Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7

Compiling problem (Stealth 3.2.4)

тут можно задать вопрос по скриптингу
Post Reply
canabisman
Neophyte
Neophyte
Posts: 22
Joined: 04.09.2008 5:38

Compiling problem (Stealth 3.2.4)

Post by canabisman »

Hi all, im having a problem to 'play' my macros in stealth. well, in this new version i press the play button and gives this message

14:11:12:140 [LW]: Error Include: File Not Exist
14:11:12:140 [LW]: C:\Documents and Settings\dalva\Meus documentos\ULTIMA ONLINE\Stealth 3.2.4\Scripts\Include\all.inc


but if i use this macro in other version from stealth it works ok, why? can someone help me?
canabisman
Neophyte
Neophyte
Posts: 22
Joined: 04.09.2008 5:38

Post by canabisman »

i almost forgot..

14:38:31:390 [LW]: Compiler: [Error] (TEST SCRIPT.SC at 22:6): Unknown identifier 'CheckSave'
14:38:31:390 [LW]: Compiling failed
14:38:31:406 [LW]: Script TEST SCRIPT.SC stopped successfuly
CFA
Developer
Developer
Posts: 492
Joined: 20.04.2006 6:03
Contact:

Post by CFA »

C:\Documents and Settings\dalva\Meus documentos\ULTIMA ONLINE\Stealth 3.2.4\Scripts\Include\all.inc - this file really exists? if not see first post here
canabisman
Neophyte
Neophyte
Posts: 22
Joined: 04.09.2008 5:38

Post by canabisman »

i discovered that checksave doesnt work anymore, it was changed to another one?
CFA
Developer
Developer
Posts: 492
Joined: 20.04.2006 6:03
Contact:

Post by CFA »

CheckSave not Stealth function, it's defined in include. See my link. Or 'doesnt work anymore' - work incorrect?
Fenix
Developer
Developer
Posts: 275
Joined: 24.08.2010 7:20
Location: Ставрополь
Contact:

Post by Fenix »

Some servers don't send message "Saving World State". Stealth have built-in method:

Code: Select all

CheckLag(TimeToWait: Cardinal);
Try it.
Помните – ничто так не защищает ваши зубы 12 часов днем и 12 часов ночью как уважительное отношение к окружающим.
"Многие из вас знакомы с достоинствами программиста. Их всего три, и разумеется это: лень, нетерпеливость и гордыня"© Larry Wall
canabisman
Neophyte
Neophyte
Posts: 22
Joined: 04.09.2008 5:38

Post by canabisman »

Fenix wrote:Some servers don't send message "Saving World State". Stealth have built-in method:

Code: Select all

CheckLag(TimeToWait: Cardinal);
Try it.
so its something like:

Code: Select all

procedure BLABLABLABLA;
  begin
   UseObject(backpack);
   If (FindType(aaaaa, backpack) <> 0) then
    begin
     CheckLag(10000);
     MoveItem(Finditem, 0, chester, 0, 0, 0);
    end 
  end;
right?
Fenix
Developer
Developer
Posts: 275
Joined: 24.08.2010 7:20
Location: Ставрополь
Contact:

Post by Fenix »

Beеter like this:

Code: Select all

procedure BLABLABLABLA;
begin
  UseObject(backpack);
  CheckLag(10000);
  Wait(700);
  If (FindType(aaaaa, backpack) <> 0) then
  begin
    MoveItem(Finditem, 0, chester, 0, 0, 0);
    CheckLag(10000);
    Wait(700);
   end;
end;
Помните – ничто так не защищает ваши зубы 12 часов днем и 12 часов ночью как уважительное отношение к окружающим.
"Многие из вас знакомы с достоинствами программиста. Их всего три, и разумеется это: лень, нетерпеливость и гордыня"© Larry Wall
Post Reply