příkaz: ,m (počet ingů)
Kód: Vybrat vše
/////////////////////////////////////////////////////////////////////////
//
// www.ultima.smoce.net
// Name: Drop Myth
//
/////////////////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Text;
using Phoenix;
using Phoenix.WorldData;
using System.Linq;
using Phoenix.Communication;
using Phoenix.Runtime;
using Phoenix.Runtime.Reflection;
namespace Scripts.DarkParadise
{
public class dropmyth
{
[Command("M")]
public void M(ushort i)
{
UOItem myth = World.Player.Backpack.AllItems.FindType(0x1BEF, 0x052D);
if (myth.Exist)
{
UO.MoveItem(myth.Serial, i, (ushort)World.Player.X, (ushort)(World.Player.Y + 1), (sbyte)World.Player.Z);
UO.Print(i + " Myth dropped!");
UO.Wait(100);
}
else
{
UO.Print("Nemas myth !");
}
UO.Print( "Zbyva jeste: " + UO.Count(0x1BEF, 0x052D) + " Ingu.");
}
}
}