Archery + Heal
Datum: 22/11/2014 23:39:11
Staženo: 446x
Popis:
Funkce:
- Kontrola sipek
- Kontrola HP
Příkazy:
- ,exec ranger_archery_train
- ,exec ranger_archery_heal
Kód:
using System;
using System.Collections.Generic;
using System.Text;
using Phoenix;
using Phoenix.WorldData;
namespace Script.Rang
{
public class archerko
{
[Executable]
public static void ranger_archery_train()
{//by smoce
UO.PrintInformation("Target koho mas strilet !");
UOCharacter user = new UOCharacter(UIManager.TargetObject());
while(!UO.Dead)
{
if(UO.Count(0x0F3F) < 1)
{
World.Player.Print("Dosli ti strely !!!");
}
if (user.Hits >= 50)
{
UO.Attack(user.Serial);
UO.Wait(4000); // <---- toto je rychlost strileni !!
}
else
{
World.Player.ChangeWarmode(0);
UO.Wait(2000);
}
}
}
[Executable]
public static void ranger_archery_heal()
{//by smoce
UO.PrintInformation("Heal pri Archery...");
UOItem bandage = World.Player.Backpack.AllItems.FindType(0x0E21);
int hp,stav = World.Player.Hits;
if (UO.Count(0x0E21) < 1)
{
UO.PrintWarning("Dosli ti Bandy !!!");
}
while (!UO.Dead && UO.Count(0x0E21) > 0)
{
if(World.Player.Hits < World.Player.MaxHits)
{
stav = World.Player.Hits;
UO.DeleteJournal();
UO.Print("-Heal");
UO.WaitTargetObject(World.Player.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);
hp = World.Player.Hits - stav;
World.Player.Print("+"+ hp.ToString() );
}
}
}
}
}


Enjoy professional slotแตกบ่อย online services providing fair algorithms, secure systems, and helpful PGแตกดี customer support teams.