Join for FREE | Take the Tour Lost Password?
[x]

deviantART

 
About Me Member Deviously Deviant AvataroftheAxeMale/United States Recent Activity Deviant for 2 Years
Needs Premium Membership
Statistics 3 Deviations
0 Comments
236 Pageviews

sweet

Sat Dec 1, 2007, 9:59 PM
Const MiniCreatureHP =90; // if your firned has 50% of his hp it will heal..change it as you like it.
const ITEM_RUNE_UH = 3160;
const Name='CHARACTER'; //enter here the name of your friend.
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 >= 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 >= 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);//name of friend
If Creature<> nil then
If IsCreatureVisible(Name) then
begin
if ((Creature.Health) <(MiniCreatureHP)) and ((Self.Mana)>(70000)) then
Self.Say('exura sio "'+Name) //name of friend
else
if ((Creature.Health) <(MiniCreatureHP)) then Self.Containers.UseItemWithCreature(ITEM_RUNE_UH, Creature);
end;
Sleep(1000);
end;

end;

deviantID

No deviantID yet.

Devious Info

No devious info yet.

deviantART Community Board

[x]

Comments


:iconwesker991:
Watch ThanX!!

--
"I am King Shit Of Fuck Mountain, why would you Fuck with me!?"
w991's LiveVideo w991's YouTube. Visit These Links And Enjoy!
:iconmangamad:
Thanks for...O.O...dropping...<,<...by? >,>

Woot, first comment. XD

--
GOLDIAN HAMMER!!

Site Map