Make sure gump is opened
Posted: 01.11.2013 9:14
if dead then
begin
repeat
waitgump('1')
wait(100);
until ?***********?
end;
until what ?
begin
repeat
waitgump('1')
wait(100);
until ?***********?
end;
until what ?
Альтернативный клиент Ultima Online
https://stealth.od.ua/forum/
Code: Select all
if dead then begin
while not isgump do
wait(100);
waitgump('1');
end;
Code: Select all
function GumpExist(GumpType : Cardinal):Boolean;
var
Index : Word;
Count : Integer;
begin
Count := GetGumpsCount() - 1;
if ( Count > -1 ) then
begin
for Index := 0 to Count do
begin
if ( GetGumpID(Index) = GumpType ) then
begin
Result := True;
exit;
end;
end;
end;
Result := False;
end;
Code: Select all
const currentgump = getgumpscount;
begin
usbobject(itemid);
while getgumpscount <= currentgump;
wait(100);
end;
Code: Select all
var currentgump : Integer;
begin
currentgump := getgumpscount;
usbobject(itemid);
while getgumpscount <= currentgump;
wait(100);
end;