Anyone can help me linking auto return +buff with tts quest. I get the logic but not too sure on syntax how to link deadcheck function it that.
if user.inrange(147936, -55368, -2760, 250) and User.Buffs.ByID(1204, buffCheck) then begin
Print('Teleport to HS');
Engine.SetTarget(31275);
Engine.DlgOpen;
Delay(500);
Engine.DlgSel(1);
Delay(500);
Engine.DlgSel(11); //teleports to hs
Delay(5000);
end;
if user.inrange(149600, -112707, -2060, 250) then begin //hs spawn location
Engine.MoveTo(149526, -112683, -2090); // moves close to jeremy
while not User.Dead do // and while not dead I want to start cycle to run arround.. cant get to work.. function called deadCheck
Engine.SetTarget(31521); ///jeremy
Engine.DlgOpen;
Engine.DlgSel('Quest');
Delay(500);
Engine.DlgSel('Egg Delivery');
Delay(500);
Engine.bypasstoserver('Quest 621_EggDelivery 31521-1.htm');
Engine.MoveTo(149722,-112600,-2090);
Engine.MoveTo(150404,-113188,-2141);