예제 #1
0
        public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
        {
            QuestDifficultyPacket.QuestDifficulty[] diffs = new QuestDifficultyPacket.QuestDifficulty[1];
            for (int i = 0; i < diffs.Length; i++)
            {
                diffs[i].dateOrSomething = "2012/01/05";
                diffs[i].something = 0x20;
                diffs[i].something2 = 0x0B;
                diffs[i].questNameString = 30010;

                // These are likely bitfields
                diffs[i].something3 = 0x00030301;
            }

            context.SendPacket(new QuestDifficultyPacket(diffs));

            // [K873] I believe this is the correct packet, but it causes an infinite send/recieve loop, we're probably just missing something else
            context.SendPacket(new NoPayloadPacket(0xB, 0x1C));
        }
예제 #2
0
        // Go go maximum code duplication (for now)
        public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
        {
            QuestListPacket.QuestDefiniton def = new QuestListPacket.QuestDefiniton();
            def.dateOrSomething = "2012/01/05";
            def.needsToBeNonzero = 0x00000020;
            def.getsSetToWord = 0x0000000B;
            def.questNameString = 30010;
            def.playTime = (byte)QuestListPacket.EstimatedTime.Short;
            def.partyType = (byte)QuestListPacket.PartyType.SinglePartyQuest;
            def.difficulties = (byte)QuestListPacket.Difficulties.Normal | (byte)QuestListPacket.Difficulties.hard | (byte)QuestListPacket.Difficulties.VeryHard | (byte)QuestListPacket.Difficulties.SuperHard;
            def.requiredLevel = 1;
            // Not sure why but these need to be set for the quest to be enabled
            def.field_FF = 0xF1;
            def.field_101 = 1;

            QuestDifficultyPacket.QuestDifficulty diff = new QuestDifficultyPacket.QuestDifficulty();
            diff.dateOrSomething = "2012/01/05";
            diff.something = 0x20;
            diff.something2 = 0x0B;
            diff.questNameString = 30010;

            // These are likely bitfields
            diff.something3 = 0x00030301;

            context.SendPacket(new SetQuestPacket(def, context.User));
            context.SendPacket(new QuestStartPacket(def, diff));
        }
예제 #3
0
 public QuestStartPacket(QuestDefiniton data, QuestDifficultyPacket.QuestDifficulty difficulty)
 {
     this.data = data;
     this.difficulty = difficulty;
 }
예제 #4
0
 public QuestStartPacket(QuestDefiniton data, QuestDifficultyPacket.QuestDifficulty difficulty)
 {
     this.data       = data;
     this.difficulty = difficulty;
 }