ue skrypt

Kolorwanie:
Status:
1234567891011121314151617181920212223242526272829303132333435
Const
NumberOfMonsters = 1 
MinHealth = 1000 
MinMana = 3000 

function CountMonstersBesideYou:Integer;
begin
Result := 0;
UpdateWorld;
for i := 0 to creatures.Count -1 do
begin
if i >= Creatures.Count then break
for x := -1 to 1 do
begin
if x >= 2 then break
for y := -1 to 1 do
begin
if y > 1 then break;
if Creatures.Creature[i].NPC then
if (Creatures.Creature[i].x = Self.X +x) and (Creatures.Creature[i].y = Self.y + y) and (Creatures.Creature[i].Z = Self.Z) then
Result := Result + 1;
end;
end;
end;
end;

while not terminated do
begin
UpdateWorld;
if CountMonstersBesideYou >= NumberOfMonsters then
if Self.Mana >= MinMana then
if Self.Health > MinHealth then
Self.Say('exevo grav mas vis '); 
sleep(100);
end;

Copyrights 2014-2019 © Wklejaj.pl Wszelkie prawa zastrzeżone.