Healing Train (bandama)
Datum: 27/07/2011 01:10:06
Staženo: 898x
Popis:
Targetne se kolik cílu je potřea ESC zrusí se targetování a automaticky začne...
Příkazy:
- ,train_heal
Kód:
using System;
using System.Collections.Generic;
using Phoenix;
using Phoenix.WorldData;
using System.Linq;
namespace Scripts.asdfsddfdxv
{
public class smocessdfdfd
{
[Command]
public static void train_heal()
{
int max_pocet_targetu = 20;
int i, j, d;
Serial io;
j = 0;
d = 0;
i = 0;
UOItem bandage = World.Player.Backpack.AllItems.FindType(0x0E21);
// Color: 0x0000 Graphic: 0x0E21
UO.Print(0x00B3, "Vyber koho healit");
UO.Wait(100);
int q = 0;
do
{
int qwe = q - 1;
int asd = 0;
if (qwe >= 1) { asd = qwe; } else { asd = 0; }
if ((Aliases.GetObject("train_heal_targ_" + asd) == 0xFFFFFFFF) && (asd != 0))
{
UO.WaitTargetCancel();
UO.AddObject("train_heal_targ_" + q, 0xFFFFFFFF);
}
else
{
UO.Print(0x0435, "Vyber hrace " + q + " kteryho to ma hlidat.");
UOCharacter aw = new UOCharacter(UIManager.TargetObject());
UO.AddObject("train_heal_targ_" + q, aw);
UO.Wait(200);
}
++q;
}
while ((Aliases.GetObject("train_heal_targ_" + q) != 0xFFFFFFFF) || (q <= max_pocet_targetu));
while (UO.Count(0x0E21) > 0)
{
i = -1;
do
{
i = i + 1;
UOCharacter eni = new UOCharacter(Aliases.GetObject("train_heal_targ_" + i));
eni.Print(0x00bb, "! -" + eni.Name);
io = eni.Serial;
if (eni.Hits < eni.MaxHits)
{
d = eni.MaxHits - eni.Hits;
j = i;
eni.Print(0x02ab, "A -" + eni.Hits + "s" + eni.MaxHits);
}
}
while (Aliases.GetObject("train_heal_targ_" + i) != 0xFFFFFFFF);
if (d > 1)
{
UO.DeleteJournal();
UOCharacter ser = new UOCharacter(Aliases.GetObject("train_heal_targ_" + j));
ser.Print(0x00bb, "H-" + ser.Name);
UO.WaitTargetObject(ser.Serial);
bandage.Use();
string[] asdas = { "Chces vytvorit mumii?", "You put the bloody bandagess in your pack.", "You apply the bandages, but they barely help." };
Journal.WaitForText(asdas);
UO.Wait(500);
d = 0;
}
else
{
UO.Wait(1000);
}
}
}
}
}

