Objects.dll: http://dl.dropbox.com/u/7651700/fena/Objects.dll
,exec Nasedani
Funguje pouze na nastavena jezditka
Pokud sedite na jezditku tak sesedne.
Pokud nesedite a v okruhu 7 policek mate jezditko nasedne.
Pokud v okruhu 7 policek jezditko neni a v baglu nadefinovane najde, odshrinkne a nasedne.
Pridat do hlavicky *.cs:
Zbytek:using System.Linq;
Kód: Vybrat vše
public const ushort Mount = 0x00DC;
public const ushort MountShrink = 0x20F6;
public const ushort MountColor = 0x0000;
[Executable]
public void Nasedani()
{
if (World.Player.Layers[Layer.Mount].Exist)
{
World.Player.Use();
}
else
{
UOItem l = new UOItem(Aliases.GetObject("jezditko"));
if (l.Exist)
{
UO.UseObject(l);
}
else
{
foreach (UOCharacter llama in from c in World.Characters where c.Distance < 7 && c.Model == Mount select c)
{
llama.RequestStatus(5000);
if (llama.Renamable)
{
UO.AddObject("jezditko", llama.Serial);
UO.UseObject(llama);
return;
}
}
odshrink();
}
}
}
public void odshrink()
{
UO.DeleteJournal();
if (World.Player.Backpack.AllItems.Count(MountShrink,MountColor) == 0)
{
UO.PrintWarning("Dosli jezditka!");
return;
}
UOItem lama = World.Player.Backpack.AllItems.FindType(MountShrink,MountColor);
World.Player.ChangeWarmode(WarmodeChange.Switch);
UO.UseObject(lama);
UO.Wait(Core.Latency+250);
if (UO.InJournal("You can't unshrink creature here or now!"))
{
UO.PrintWarning("Domovni zona nebo timer na klamaky!");
return;
}
foreach ( UOCharacter llama in from c in World.Characters where c.Distance < 7 && c.Model == Mount select c )
{
llama.RequestStatus(5000);
if (llama.Renamable)
{
UO.AddObject("jezditko", llama.Serial);
UO.UseObject(llama);
}
}
}