public override void Process() { TeraObject obj = Uid.GetObject(TargetId) as TeraObject; if (obj != null) { Communication.Logic.PlayerLogic.ShowDialog(Connection.Player, obj); } }
public void AddTarget(long uniqueId) { Creature.Creature creature = Uid.GetObject(uniqueId) as Creature.Creature; if (creature != null) { Targets.Add(creature); } }
public override void Process() { Player player = (Player)Uid.GetObject(CharacterId); if (player == null) { return; } new SpCharacterInspect(player).Send(Connection); }
public void StartGather(Player player, long uid) { var gather = Uid.GetObject(uid) as Gather; if (gather == null) { return; } Global.ControllerService.SetController(player, new GatherableController(player, gather)); }
public override void Process() { Player target = (Player)Uid.GetObject(TargetUid); if (target != null) { Communication.Global.ActionEngine.AddRequest(new GuildInvite(target) { Owner = Connection.Player }); } }
public void GetItemInfo(Player player, long itemUid) { try { TeraObject itemObject = Uid.GetObject(itemUid) as TeraObject; if (itemObject == null || !(itemObject is StorageItem)) { return; } new SpItemInfo(((StorageItem)itemObject).ItemId, itemUid, "", player.PlayerData.Name) .Send(player); } // ReSharper disable EmptyGeneralCatchClause catch // ReSharper restore EmptyGeneralCatchClause { //Nothing } }