UH no seu amigo
Autor: Nando Down | Publicado: 2011-07-07T19:21:00-07:00

Const MiniCreatureHP =50; // if your firned has 50% of his hp it will heal..change it as you like it.
const ITEM_RUNE_UH = 3160;
const Name='Hiho'; //nome do seu amigo.
var
Creature: TCreature;
CreatureName: string;

function IsCreatureVisible(Name: string): boolean;
var
x: integer;
begin
Result := False;
for x := 0 to Creatures.Count - 1 do
begin
if x &gt;= Creatures.Count then Break;
if Creatures.Creature[x].Name = Name then
begin
if Creatures.Creature[x].Visible then
begin
Result := True;
Exit;
end;
end;
end;
end;

function GetCreatureByName(Name: string): TCreature;
var
x: integer;
begin
Result := nil;
for x := 0 to Creatures.Count - 1 do
begin
if x &gt;= Creatures.Count then Break;
if (Creatures.Creature[x].Name = Name) then
begin
Result := Creatures.Creature[x];
Exit;
end;
end;
end;

begin
while not Terminated do
begin
UpdateWorld;
Creature := GetCreatureByName(Name);
If Creature&lt;&gt; nil then
If IsCreatureVisible(Name) then
begin
if ((Creature.Health) &lt;(MiniCreatureHP)) and ((Self.Mana)&gt;(70)) then
Self.Say('exura sio "'+Name)
else
if ((Creature.Health) &lt;(MiniCreatureHP)) then Self.Containers.UseItemWithCreature(ITEM_RUNE_UH, 

Creature);
end;
Sleep(1000);
end;

end;UH no seu amigo
Const MiniCreatureHP =50; // if your firned has 50% of his hp it will heal..change it as you like it.
const ITEM_RUNE_UH = 3160;
const Name='Hiho'; //nome do seu amigo.
var
Creature: TCreature;
CreatureName: string;

function IsCreatureVisible(Name: string): boolean;
var
x: integer;
begin
Result := False;
for x := 0 to Creatures.Count - 1 do
begin
if x &gt;= Creatures.Count then Break;
if Creatures.Creature[x].Name = Name then
begin
if Creatures.Creature[x].Visible then
begin
Result := True;
Exit;
end;
end;
end;
end;

function GetCreatureByName(Name: string): TCreature;
var
x: integer;
begin
Result := nil;
for x := 0 to Creatures.Count - 1 do
begin
if x &gt;= Creatures.Count then Break;
if (Creatures.Creature[x].Name = Name) then
begin
Result := Creatures.Creature[x];
Exit;
end;
end;
end;

begin
while not Terminated do
begin
UpdateWorld;
Creature := GetCreatureByName(Name);
If Creature&lt;&gt; nil then
If IsCreatureVisible(Name) then
begin
if ((Creature.Health) &lt;(MiniCreatureHP)) and ((Self.Mana)&gt;(70)) then
Self.Say('exura sio "'+Name)
else
if ((Creature.Health) &lt;(MiniCreatureHP)) then Self.Containers.UseItemWithCreature(ITEM_RUNE_UH, 

Creature);
end;
Sleep(1000);
end;

end;UH no seu amigo
Const MiniCreatureHP =50; // if your firned has 50% of his hp it will heal..change it as you like it.
const ITEM_RUNE_UH = 3160;
const Name='Hiho'; //nome do seu amigo.
var
Creature: TCreature;
CreatureName: string;

function IsCreatureVisible(Name: string): boolean;
var
x: integer;
begin
Result := False;
for x := 0 to Creatures.Count - 1 do
begin
if x &gt;= Creatures.Count then Break;
if Creatures.Creature[x].Name = Name then
begin
if Creatures.Creature[x].Visible then
begin
Result := True;
Exit;
end;
end;
end;
end;

function GetCreatureByName(Name: string): TCreature;
var
x: integer;
begin
Result := nil;
for x := 0 to Creatures.Count - 1 do
begin
if x &gt;= Creatures.Count then Break;
if (Creatures.Creature[x].Name = Name) then
begin
Result := Creatures.Creature[x];
Exit;
end;
end;
end;

begin
while not Terminated do
begin
UpdateWorld;
Creature := GetCreatureByName(Name);
If Creature&lt;&gt; nil then
If IsCreatureVisible(Name) then
begin
if ((Creature.Health) &lt;(MiniCreatureHP)) and ((Self.Mana)&gt;(70)) then
Self.Say('exura sio "'+Name)
else
if ((Creature.Health) &lt;(MiniCreatureHP)) then Self.Containers.UseItemWithCreature(ITEM_RUNE_UH, 

Creature);
end;
Sleep(1000);
end;

end;