Esempio n. 1
0
        /// <summary>
        /// Regular dye complete
        /// </summary>
        /// <param name="client"></param>
        /// <param name="creature"></param>
        /// <param name="skillId"></param>
        /// <param name="part"></param>
        /// <param name="x"></param>
        /// <param name="y"></param>
        public static void DyeSkillComplete(Client client, MabiCreature creature, SkillConst skillId, uint part, ushort x, ushort y)
        {
            var packet = new MabiPacket(Op.SkillComplete, creature.Id);
            packet.PutShort((ushort)skillId);
            packet.PutInt(part);
            packet.PutShorts(x, y);

            client.Send(packet);
        }
Esempio n. 2
0
    public override void Start()
    {
        stop = false;

        Thread t = null;

        t = new Thread(() =>
        {
            for (int i = 15; i < 2000; ++i)             // 2521
            {
                if (stop)
                {
                    i = 2175;
                }
                if (i > 2175)
                {
                    break;
                }

                var url       = string.Format("http://localhost/aura/visualchat/img/chat_20131005_00{0}_Zerono.png", i.ToString().PadLeft(4, '0'));
                ushort width  = 170;
                ushort height = 96;

                var p = new MabiPacket(Op.VisualChat, NPC.Id);
                p.PutString(NPC.Name);
                p.PutString(url);
                p.PutShorts(width, height);
                p.PutByte(0);
                WorldManager.Instance.Broadcast(p, SendTargets.Range, NPC);

                Thread.Sleep(100);

                // skip 1, 5fps
                Thread.Sleep(100);
                i++;
            }

            GC.KeepAlive(t);
        });
        t.Start();
    }