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

Veterinary - помогите.

тут можно задать вопрос по скриптингу
Post Reply
VaMpiRo
Posts: 1
Joined: 28.02.2006 16:15
Contact:

Veterinary - помогите.

Post by VaMpiRo »

Program Vetry;
var t : Integer;
bandage:Cardinal;

{$Include 'all.inc'}

Begin
SetARStatus(true);
Hungry(1,backpack);
clearjournal;
while not Dead do
begin
if Connected then
begin
for t := 0 to 10 do
begin
if TargetPresent then CancelTarget;
CheckSave;
bandage:=findtype($0E21,ground);
UseObject(bandage);
WaitTargetObject($00106A96); {ÈÄ æèâîòèíû}
Wait(1500); {Êàê ÷àñòî áóäåò ïûòàòüñÿ ëå÷èòü}
end;
Hungry(1,backpack);
end;
end;
end.

Этот скрипт хилит только 1 хорсу, а нужно чтобы хилил сперва одну потом другую(ну они друг друга бьют)..исправте плиз.
Acronym
Novice
Novice
Posts: 114
Joined: 10.05.2005 18:42
Location: Odessa, NDW
Contact:

Post by Acronym »

Code: Select all

Program Vetirinary; 
var j,t : Integer; 
bandage : Cardinal;
Animals : Array[1..2] of Cardinal;

{$Include 'all.inc'}

Begin
Animals[1]:=$01161C86; {ID of animal}
Animals[2]:=$01161C86; {ID of animal}

SetARStatus(true); 
Hungry(1,backpack); 
clearjournal; 
while not Dead do 
	begin 
		if Connected then 
			begin 
				for t := 0 to 10 do 
					begin
						for j:= 1 to 2 do
							begin
								if TargetPresent then CancelTarget; 
									CheckSave; 
									bandage:=FindType($0E21,ground); 
									UseObject(bandage); 
									WaitTargetObject(Animals[j]); {EA ?eaioeiu} 
									Wait(1500); {Eae ?anoi aoaao iuoaouny ea?eou} 
							end;
					end;
					Hungry(1,backpack); 
			end; 
	end; 
end. 
aalexx
Novice
Novice
Posts: 69
Joined: 06.02.2012 20:43
Location: Латвия\Англия
Contact:

Re: Veterinary - помогите.

Post by aalexx »

А есть скрипт на ветеринарию не с животным, а с полиморфом и хилом самого себя ??
Post Reply