Ejemplo n.º 1
0
        public void OnEmotion(Packets.Client.CSMG_CHAT_EMOTION p)
        {
            ChatArg arg = new ChatArg();

            arg.emotion = p.Emotion;
            Map.SendEventToAllActorsWhoCanSeeActor(Map.EVENT_TYPE.EMOTION, arg, this.Character, true);
        }
Ejemplo n.º 2
0
        public void OnSit(Packets.Client.CSMG_CHAT_SIT p)
        {
            ChatArg arg = new ChatArg();

            arg.motion = MotionType.SIT;
            arg.loop   = 1;
            Map.SendEventToAllActorsWhoCanSeeActor(Map.EVENT_TYPE.MOTION, arg, this.Character, true);
        }
Ejemplo n.º 3
0
 public void OnChat(Packets.Client.CSMG_CHAT_PUBLIC p)
 {
     if (!AtCommand.Instance.ProcessCommand(this, p.Content))
     {
         ChatArg arg = new ChatArg();
         arg.content = p.Content;
         Map.SendEventToAllActorsWhoCanSeeActor(Map.EVENT_TYPE.CHAT, arg, this.Character, true);
     }
 }
Ejemplo n.º 4
0
        public void OnActorChangeEmotion(Actor aActor, MapEventArgs args)
        {
            ChatArg arg = (ChatArg)args;

            Packets.Server.SSMG_CHAT_EMOTION p = new SagaMap.Packets.Server.SSMG_CHAT_EMOTION();
            p.ActorID = aActor.ActorID;
            p.Emotion = arg.emotion;
            this.Client.netIO.SendPacket(p);
        }