Exemplo n.º 1
0
        public override void CallBack()
        {
            Deactivate();
            actor.Tasks.TryRemove("Respawn", out Task task);
            Map.Map map = Map.MapManager.Instance.GetMap(actor.MapInstanceID);

            actor.Available = true;
            actor.Items     = null;
            UpdateEvent evt = new UpdateEvent()
            {
                Actor      = actor,
                UpdateType = UpdateTypes.MapObjectVisibilityChange
            };

            map.SendEventToAllActors(MapEvents.EVENT_BROADCAST, evt, actor, true);
        }