Objects.dll: http://dl.dropbox.com/u/7651700/fena/Objects.dll
!!! Pozor, aby se neztraceli objekty po vypnuti/zapnuti klienta, je potreba knihovna Objects.dll !!!
Neni to officialni schvalena knihovna, takze pokud se bojite ze to zabije vas, vase deti a deti vasich detich, nestahujte ji
,seteq xxx
- nasviha aktualni obleceny ekvip do objektu pod jmenem "xxx"
,eq xxx
- oblece ekvip s jmenem "xxx"
,setarm yyy
- nasviha aktualni zbran (zbran + stit) do objektu pod jmenem "yyy"
,arm yyy
- oblece zbran(e + stit)
,unequip
- svleceni vseho do baglu
Kód: Vybrat vše
[Command]
public void seteq(string set)
{
foreach ( Layer l in Enum.GetValues( typeof( Layer ) ) )
{
if (l != Layer.Mount)
{
UO.Exec("addobjectzalozkascript", string.Format("GearSet_{0}_{1}", set, l), World.Player.Layers[l].Serial);
}
}
UO.Print("Set: '{0}' ulozen!", set);
}
[Command]
public void eq(string set)
{
Serial serial;
UOItem item;
UO.PrintWarning("Oblikam...");
foreach (Layer l in Enum.GetValues(typeof(Layer)))
{
if (l != Layer.Mount)
{
serial = Aliases.GetObject(string.Format("GearSet_{0}_{1}", set, l));
item = World.GetItem(serial);
if ((serial.IsValid) && (item.Container != World.Player.Serial))
{
UO.EquipItem(serial);
UO.Wait(Core.Latency+300);
}
}
}
UO.PrintWarning("Obleceno!");
}
[Command]
public void unequip()
{
foreach (Layer l in Enum.GetValues(typeof(Layer)))
{
if ((l == Layer.Mount) || (l == Layer.Backpack))
continue;
Serial serial = World.Player.Layers[ l ].Serial;
if ( !serial.IsValid )
continue;
UO.MoveItem(serial, 1, World.Player.Backpack, 25, 90);
UO.Wait(Core.Latency+300);
}
}
[Command]
public void setarm(string arm)
{
{
foreach (Layer l in Enum.GetValues(typeof(Layer)))
{
if ((l == Layer.RightHand) || (l == Layer.LeftHand))
{
UO.Exec("addobjectzalozkascript", string.Format("Arm_{0}_{1}", arm, l), World.Player.Layers[l].Serial);
}
}
UO.Print("Arms set: '{0}' ulozen!", arm);
}
}
[Command]
public void arm(string arm)
{
Serial serial;
UOItem item;
foreach (Layer l in Enum.GetValues(typeof(Layer)))
{
if ((l == Layer.RightHand) || (l == Layer.LeftHand))
{
serial = Aliases.GetObject(string.Format("Arm_{0}_{1}", arm, l));
item = World.GetItem(serial);
if ((serial.IsValid) && (item.Container != World.Player.Serial))
{
UO.EquipItem(serial);
UO.Wait(Core.Latency);
}
}
}
UO.PrintWarning("Arm set: '{0}' oblecen!", arm);
}