
Code: Select all
System: You are stuffed
System: You fill a bottle with liquid from the keg.
System: You are out of bottles
System: Select a poison potion.
System: You must select a poison potion!
System: You are out of bottles
System: You must wait to perform another action.
System: You are out of bottles
System: You must wait to perform another action.
System: You are out of bottles
System: You must wait to perform another action.
System: You are out of bottles
System: Select a poison potion.
System: You must select a poison potion!
System: You are out of bottles
System: You must wait to perform another action.
System: You are out of bottles
System: You must wait to perform another action.
Code: Select all
Program Poisoning;
var
a : TDateTime;
t : Integer;
{$Include 'all.inc'}
procedure dropa;
begin
if (not dead) and (connected) then begin
FindType($1940,backpack);
if getquantity(finditem)> 0 then begin
MoveItem(finditem,0,$536E968D,0,0,0);
UnEquip(RHandLayer);
wait(2000);
end;
end;
end;
procedure poison;
var b : TDateTime;
begin
if (not dead) and (connected) then begin
if targetPresent then canceltarget;
FindType($0F0A,backpack);
if getquantity(finditem)> 0 then begin
WaitTargetObject(finditem);
UseSkill('Poisoning');
WaitJournalLine(b, 'You fail to apply|You have successfully|You fail and poison',30000);
WaitTargetObject($45E169AE);
wait (3000);
end;
end;
end;
procedure graba;
begin
if (not dead) and (connected) then begin
FindType($1940,backpack);
if getquantity(finditem)<= 0 then begin
useobject($536E9755);
wait(2000);
FindType($1940,$536E9755);
if getquantity(finditem)> 0 then begin
Grab(finditem,0);
wait(1000);
end;
end;
end;
end;
Begin
SetARStatus(true);
Hungry(1,ground);
while not Dead do
begin
waitconnection(3000);
for t:=1 to 10 do begin
CheckSave;
graba;
FindType($1940,backpack);
UseObject(finditem);
WaitJournalLine(a, 'You fill a bottle|The keg is',30000);
if (InJournal('The keg is empty.') >= 0) then
begin
dropa;
end;
poison;
CheckTargetError(2,2);
end;
CheckSave;
hungry(1,ground);
end;
End.