///////////////////////////////////////////////////////////////////////// // // www.ultima.smoce.net // Name: GP Pod podlahou // ///////////////////////////////////////////////////////////////////////// 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 ultima_smoce_net { [Command] public void gp1() { UOItem sa = World.Ground.FindType(0x0EED,0x0000); if(sa.Exist) { UO.MoveItem(sa.Serial, 0, World.Player.Backpack); UO.Print(0x007C,"GP! -" + sa.Amount.ToString()); } UO.Print(0x0862,"Script konec..."); } [Command] public void gp() { UOCharacter character = new UOCharacter(World.Player.Serial); character.Print(0x0553, "Hledam nazemi ..."); foreach (UOItem penize in from c in World.Ground where c.Distance <= 6 && (c.Graphic == 0x0EED || c.Graphic == 0x14ED) select c) { UO.MoveItem(penize.Serial, 0, World.Player.Backpack); UO.Print(0x0102, "Sebrano - " + penize.Amount.ToString()); UO.Wait(200); } character.Print(0x0553, "Sebrano vse co slo...."); } } }