Ejemplo n.º 1
0
        public List <SubPacket> GetSetEventStatusPackets()
        {
            List <SubPacket> subpackets = new List <SubPacket>();

            //Return empty list
            if (eventConditions == null)
            {
                return(subpackets);
            }

            if (eventConditions.talkEventConditions != null)
            {
                foreach (EventList.TalkEventCondition condition in eventConditions.talkEventConditions)
                {
                    subpackets.Add(SetEventStatus.BuildPacket(actorId, true, 1, condition.conditionName));
                }
            }

            if (eventConditions.noticeEventConditions != null)
            {
                foreach (EventList.NoticeEventCondition condition in eventConditions.noticeEventConditions)
                {
                    subpackets.Add(SetEventStatus.BuildPacket(actorId, true, 1, condition.conditionName));
                }
            }

            if (eventConditions.emoteEventConditions != null)
            {
                foreach (EventList.EmoteEventCondition condition in eventConditions.emoteEventConditions)
                {
                    subpackets.Add(SetEventStatus.BuildPacket(actorId, true, 3, condition.conditionName));
                }
            }

            if (eventConditions.pushWithCircleEventConditions != null)
            {
                foreach (EventList.PushCircleEventCondition condition in eventConditions.pushWithCircleEventConditions)
                {
                    subpackets.Add(SetEventStatus.BuildPacket(actorId, true, 2, condition.conditionName));
                }
            }

            if (eventConditions.pushWithFanEventConditions != null)
            {
                foreach (EventList.PushFanEventCondition condition in eventConditions.pushWithFanEventConditions)
                {
                    subpackets.Add(SetEventStatus.BuildPacket(actorId, true, 2, condition.conditionName));
                }
            }

            if (eventConditions.pushWithBoxEventConditions != null)
            {
                foreach (EventList.PushBoxEventCondition condition in eventConditions.pushWithBoxEventConditions)
                {
                    subpackets.Add(SetEventStatus.BuildPacket(actorId, true, 2, condition.conditionName));
                }
            }

            return(subpackets);
        }
Ejemplo n.º 2
0
        public BasePacket getSetEventStatusPackets(uint playerActorId)
        {
            List <SubPacket> subpackets = new List <SubPacket>();

            //Return empty list
            if (eventConditions == null)
            {
                return(BasePacket.createPacket(subpackets, true, false));
            }

            if (eventConditions.talkEventConditions != null)
            {
                foreach (EventList.TalkEventCondition condition in eventConditions.talkEventConditions)
                {
                    subpackets.Add(SetEventStatus.buildPacket(playerActorId, actorId, true, 1, condition.conditionName));
                }
            }

            if (eventConditions.noticeEventConditions != null)
            {
                foreach (EventList.NoticeEventCondition condition in eventConditions.noticeEventConditions)
                {
                    subpackets.Add(SetEventStatus.buildPacket(playerActorId, actorId, true, 1, condition.conditionName));
                }
            }

            if (eventConditions.emoteEventConditions != null)
            {
                foreach (EventList.EmoteEventCondition condition in eventConditions.emoteEventConditions)
                {
                    subpackets.Add(SetEventStatus.buildPacket(playerActorId, actorId, true, 3, condition.conditionName));
                }
            }

            if (eventConditions.pushWithCircleEventConditions != null)
            {
                foreach (EventList.PushCircleEventCondition condition in eventConditions.pushWithCircleEventConditions)
                {
                    subpackets.Add(SetEventStatus.buildPacket(playerActorId, actorId, true, 2, condition.conditionName));
                }
            }

            if (eventConditions.pushWithFanEventConditions != null)
            {
                foreach (EventList.PushFanEventCondition condition in eventConditions.pushWithFanEventConditions)
                {
                    subpackets.Add(SetEventStatus.buildPacket(playerActorId, actorId, true, 2, condition.conditionName));
                }
            }

            if (eventConditions.pushWithBoxEventConditions != null)
            {
                foreach (EventList.PushBoxEventCondition condition in eventConditions.pushWithBoxEventConditions)
                {
                    subpackets.Add(SetEventStatus.buildPacket(playerActorId, actorId, true, 2, condition.conditionName));
                }
            }

            return(BasePacket.createPacket(subpackets, true, false));
        }
Ejemplo n.º 3
0
 public void setEventStatus(Actor actor, string conditionName, bool enabled, byte unknown)
 {
     queuePacket(SetEventStatus.buildPacket(actorId, actor.actorId, enabled, unknown, conditionName));
 }