Beispiel #1
0
        public void DyePickColor(ChannelClient client, Packet packet)
        {
            var itemEntityId = packet.GetLong();

            var creature = client.GetCreatureSafe(packet.Id);

            var rnd = RandomProvider.Get();

            var pickers = new DyePickers();

            if (ChannelServer.Instance.Conf.World.DyeDifficulty >= 2)
            {
                pickers.Picker2.X = (short)-rnd.Next(10, 16);
                pickers.Picker2.Y = (short)-rnd.Next(10, 16);
            }
            if (ChannelServer.Instance.Conf.World.DyeDifficulty >= 3)
            {
                pickers.Picker3.X = (short)+rnd.Next(10, 16);
                pickers.Picker3.Y = (short)-rnd.Next(10, 16);
            }
            if (ChannelServer.Instance.Conf.World.DyeDifficulty >= 4)
            {
                pickers.Picker4.X = (short)-rnd.Next(10, 16);
                pickers.Picker4.Y = (short)+rnd.Next(10, 16);
            }
            if (ChannelServer.Instance.Conf.World.DyeDifficulty >= 5)
            {
                pickers.Picker5.X = (short)+rnd.Next(10, 16);
                pickers.Picker5.Y = (short)+rnd.Next(10, 16);
            }

            creature.Temp.RegularDyePickers = pickers;

            Send.DyePickColorR(creature, true);
        }
Beispiel #2
0
        public void DyePickColor(ChannelClient client, Packet packet)
        {
            var itemEntityId = packet.GetLong();

            var creature = client.GetCreatureSafe(packet.Id);

            var pickers = new DyePickers();

            //pickers.Picker2.X = 10;
            //pickers.Picker2.Y = 10;
            //pickers.Picker3.X = -10;
            //pickers.Picker3.Y = 10;

            creature.Temp.RegularDyePickers = pickers;

            Send.DyePickColorR(creature, true);
        }