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

Проблема...

тут можно задать вопрос по скриптингу
Post Reply
Antarius
Neophyte
Neophyte
Posts: 45
Joined: 24.06.2005 20:03

Проблема...

Post by Antarius »

Не могу понять, скрипт работает, но как только меньше 45 хп, чар начинает очень быстро переставлять шкаф, а как только 115, забирает и успакаивается... Помогите знатоки, пожалуйста. По сути он должен поставить шкаф, если меньше 45 хп и забрать, если равно 115... Помогите.

Code: Select all

program wkaf;
begin
while true do
begin
if not dead then
begin
if life < 45 then Drop($51C9CD11,1,0,-1,0);
Wait(100);
if life = 115 then Grab($51C9CD11,1);
Wait(100);
end;
end;
end.
Jikus
Posts: 6
Joined: 02.10.2005 12:21

Post by Jikus »

Code: Select all

program wkaf; 
begin 
	while true do 
	begin 
		if not dead then 
		begin 
			if life < 45 then
			begin
				Drop($51C9CD11,1,0,-1,0);
				repeat
					Wait(100); 
				until life = 115
				if life = 115 then Grab($51C9CD11,1);
			end;
		end; 
	end; 
end.
Antarius
Neophyte
Neophyte
Posts: 45
Joined: 24.06.2005 20:03

Post by Antarius »

ОГРОМНОЕ СПАСИБО, работает! ! ! Ещё одно, если не тяжело, обьясни в чем проблема, то была :?:
Post Reply