var
EQcounter: byte;
procedure EarthQuake();
begin
EQcounter := 8;
end;
procedure ProcessEQ();
var n, m: byte;
begin
EQcounter:=EQcounter-1;
if EQcounter = 0 then begin
ServerModifier('Gravity',0.06);
exit;
end;
m := Random(1,4);
for n := 1 to m * 2 do begin
if n mod 2 = 1 then
currentgravity:=-Random(9,12)*(1+n/2)/50
else
currentgravity:=Random(9,11)/50;
ServerModifier('Gravity',currentgravity);
if n < m*2 then Sleep(120);
end;
DrawText(0,'XXX',71,$320000,35,-3000,-3000);
end;
procedure AppOnIdle(t: integer);
begin
if EQcounter > 0 then ProcessEQ();
end;