Сервер Pol95
На форуме пишут что у всех работает, проблема походу только у меня.
скрипт
Code: Select all
program lumber_autotile;
var
TyleType : Array [0..19] of Word;
a : TFoundTilesArray;
c,b,s : Integer;
const
Xmin = 2556;
Xmax = 2567;
Ymin = 508;
Ymax = 510;
vozleX = 2557;
vozleY = 529;
lodkaX = 2556;
lodkaY = 534;
lodkaZ = -2;
Trap = $43883F62;
TynkType = $1EBC;
AxeType = $0F43;
IngotType = $1BF2;
LogType = $1BDD;
AxeGump = '3907';
WLimit = 150;
eda = $097B;
{$Include 'all.inc'}
procedure checkcoord;
begin
if (GetZ(self) = lodkaZ) then
begin
repeat
MoveXY(lodkaX,lodkaY, True, 0, True);
UseObject(Trap);
wait(1000);
Raw_Move(0,True);
Raw_Move(0,True);
wait(1000);
until (GetZ(self) <> lodkaZ);
end;
end;
procedure CheckIngot;
begin
FindType(IngotType, Backpack);
if (FindFullQuantity < 4) then
begin
FindType(IngotType, Ground);
if (FindCount > 0) then
begin
MoveItem(finditem, 4, Backpack, 0,0,0);
wait(500);
end;
end;
end;
procedure CheckAxe;
begin
if (Count(AxeType) < 4) then
begin
If TargetPresent Then CancelTarget;
repeat
CheckIngot;
UseObject(FindType(TynkType,Ground));
WaitTargetObject(FindType(IngotType,BackPack));
WaitGump(AxeGump);
WaitJournalLine(Now, 'You create|destroy|must stand', 30000);
until (Count(AxeType) >= 5);
end;
end;
procedure DropLog;
begin
repeat
FindType(LogType,Backpack);
if (FindCount > 0) then
begin
stack(LogType,GetColor(finditem));
wait(500);
end;
until (Count(LogType) = 0);
FindType(LogType,ground);
Addtosystemjournal('Дерева всего на лодке - '+intToStr(findfullquantity));
FindType(TynkType,ground);
Addtosystemjournal('Тулзов на лодке - '+intToStr(findfullquantity));
FindType(eda,ground);
Addtosystemjournal('Еды осталось - '+intToStr(findfullquantity));
Addtosystemjournal('=========================================');
end;
procedure checkfish;
begin
if (Count(eda) < 10) then
begin
MoveItem(FindType(eda,ground), 50, Backpack, 0,0,0);
Wait(500);
end;
end;
procedure GotoOnBoad;
begin
MoveXY(vozleX,vozleY, True, 0, True);
repeat
UseObject(Trap);
wait(1000);
until (GetZ(self) = lodkaZ);
DropLog;
checkfish;
Hungry(1,ground);
CheckAxe;
checkcoord;
end;
procedure checktools;
begin
if (Count(AxeType) = 0) then
begin
GotoOnBoad;
end;
end;
procedure checkweight;
begin
if (Weight > WLimit) then
begin
GotoOnBoad;
end;
end;
BEGIN
Addtosystemjournal('Скрипт успешно стартовал.');
TyleType[0] := 3274;
TyleType[1] := 3275;
TyleType[2] := 3276;
TyleType[3] := 3277;
TyleType[4] := 3280;
TyleType[5] := 3283;
TyleType[6] := 3286;
TyleType[7] := 3289;
TyleType[8] := 3291;
TyleType[9] := 3292;
TyleType[10] := 3294;
TyleType[11] := 3295;
TyleType[12] := 3296;
TyleType[13] := 3299;
TyleType[14] := 3302;
TyleType[15] := 3394;
TyleType[16] := 3395;
TyleType[17] := 3417;
TyleType[18] := 3440;
TyleType[19] := 3460;
while not Dead do
begin
for s := 0 to 19 do
begin
b:= GetStaticTilesArray(Xmin,Ymin,Xmax,Ymax, 0, TyleType[s], a);
AddToSystemJournal('Tile Count : '+IntToStr(b));
for c :=0 to b-1 do
begin
checktools;
CheckWeight;
checkcoord;
MoveXY(a[c].X,a[c].Y, True, 1, True);
Hungry(1,Backpack);
If TargetPresent Then CancelTarget;
if (GetType(ObjAtLayer(LhandLayer)) <> AxeType) then
begin
UseObject(FindType(AxeType, Backpack));
end;
if (GetType(ObjAtLayer(LhandLayer)) = AxeType) then
begin
UseObject(ObjAtLayer(LhandLayer));
end;
WaitTargetTile(TyleType[s],(a[c].X),(a[c].Y),(a[c].Z));
WaitJournalLine(Now,'is attacking|enough|how to use|broke|stop|see|far away',120000);
end;
end;
end;
END.
SystemJournal
Code: Select all
13:54:33:897 [1 Craft]: Compiling
13:54:33:927 [1 Craft]: Compiled succesfully
13:54:33:929 [1 Craft]: Скрипт успешно стартовал.
13:54:33:930 [1 Craft]: Tile Count : 0
13:54:33:932 [1 Craft]: Tile Count : 0
13:54:33:934 [1 Craft]: Tile Count : 0
13:54:33:936 [1 Craft]: Tile Count : 0
13:54:33:937 [1 Craft]: Tile Count : 0
13:54:33:939 [1 Craft]: Tile Count : 0
13:54:33:942 [1 Craft]: Tile Count : 0
13:54:33:944 [1 Craft]: Tile Count : 0
13:54:33:946 [1 Craft]: Tile Count : 0
13:54:33:949 [1 Craft]: Tile Count : 0
13:54:33:951 [1 Craft]: Tile Count : 0
13:54:33:953 [1 Craft]: Tile Count : 0
13:54:33:955 [1 Craft]: Tile Count : 0
13:54:33:957 [1 Craft]: Tile Count : 0
13:54:33:959 [1 Craft]: Tile Count : 1
13:54:36:491 [1 Craft]: Tile Count : 0
13:54:36:496 [1 Craft]: Tile Count : 0
13:54:36:500 [1 Craft]: Tile Count : 0
13:54:36:506 [1 Craft]: Tile Count : 0
13:54:36:510 [1 Craft]: Tile Count : 0
13:54:36:514 [1 Craft]: Tile Count : 0
13:54:36:517 [1 Craft]: Tile Count : 0
13:54:36:519 [1 Craft]: Tile Count : 0
13:54:36:521 [1 Craft]: Tile Count : 0
13:54:36:523 [1 Craft]: Tile Count : 0
13:54:36:526 [1 Craft]: Tile Count : 0
13:54:36:528 [1 Craft]: Tile Count : 0
13:54:36:530 [1 Craft]: Tile Count : 0
13:54:36:532 [1 Craft]: Tile Count : 0
13:54:36:534 [1 Craft]: Tile Count : 0
13:54:36:536 [1 Craft]: Tile Count : 0
13:54:36:538 [1 Craft]: Tile Count : 0
13:54:36:540 [1 Craft]: Tile Count : 0
13:54:36:542 [1 Craft]: Tile Count : 0
13:54:36:544 [1 Craft]: Tile Count : 1
UO Journal
Code: Select all
[13:53:32:031] System: Reconnected.
[13:53:32:031] System: You could use a bite to eat...
[13:53:32:593] You see: Takiyah the tinker
[13:53:32:594] You see: [invulnerable]
[13:53:32:594] You see: a horse
[13:53:32:594] You see: xxx
[13:53:40:665] System: You are somewhat hungry
[13:53:41:068] System: Tasty!
[13:53:41:270] System: Yum!
[13:53:41:472] System: Tasty!
[13:53:41:758] System: Select a tree to chop.
[13:53:41:852] xxx: That is too far away.
[13:53:43:718] System: You are stuffed
[13:53:43:922] System: Select a tree to chop.
[13:53:44:313] xxx: That is too far away.
[13:53:46:196] System: You are stuffed
[13:53:46:405] System: Select a tree to chop.
[13:53:46:800] xxx: That is too far away.
[13:53:48:672] System: You are stuffed
[13:53:48:874] System: Select a tree to chop.
[13:53:49:272] xxx: That is too far away.
[13:53:51:148] System: You are stuffed
[13:53:51:351] System: Select a tree to chop.
[13:53:51:738] xxx: That is too far away.
[13:53:53:725] System: You are stuffed
[13:53:53:933] System: Select a tree to chop.
[13:53:54:318] xxx: That is too far away.
[13:54:28:066] System: You are stuffed
[13:54:28:566] System: Select a tree to chop.
[13:54:28:665] xxx: That is too far away.
[13:54:30:549] System: You are stuffed
[13:54:30:837] System: Select a tree to chop.
[13:54:31:158] xxx: That is too far away.
[13:54:35:874] System: You are stuffed
[13:54:36:094] System: Select a tree to chop.
[13:54:36:486] xxx: That is too far away.