Example #1
0
 public string method_9(QuestForm.GClass36 gclass36_0, int int_0)
 {
     long l = gclass36_0.method_0();
     if (l == 17L)
         return String.Format("Kill Monsters ({0}/{1})", gclass36_0.method_4(), int_0);
     if (l == 110L)
         return "Speak to NPC";
     if (l == 28L)
         return "Obtain Items";
     return "Unknown, please report to developers.";
 }
Example #2
0
 public void method_6(byte[] byte_0)
 {
     QuestForm.Class21 class21 = new QuestForm.Class21();
     list_1 = new List<QuestForm.GClass36>();
     class21.long_0 = (long)BitConverter.ToInt32(byte_0, 4);
     if (class21.long_0 != 0L)
     {
         GClass38.GClass39 gclass39 = Enumerable.FirstOrDefault<GClass38.GClass39>(list_0, new Func<GClass38.GClass39,bool>(class21, class21.method_0));
         GClass38.GClass41 gclass41 = Enumerable.FirstOrDefault<GClass38.GClass41>(gclass39.method_2(), new Func<GClass38.GClass41,bool>(class21, class21.method_2));
         if (gclass39 != null)
             method_8(gclass39.method_0(), vmethod_22());
         int i3 = checked(BitConverter.ToInt16(byte_0, 10) - 1);
         for (int i1 = 0; i1 <= i3; i1 = checked(i1 + 1))
         {
             QuestForm.Class21.Class22 class22 = new QuestForm.Class21.Class22(class22);
             class22.int_0 = i1;
             GClass38.GClass42 gclass42 = Enumerable.First<GClass38.GClass42>(Enumerable.Where<GClass38.GClass42>(gclass41.method_4(), new Func<GClass38.GClass42,int,bool>(class22, class22.method_0)));
             QuestForm.GClass36 gclass36 = new QuestForm.GClass36();
             gclass36.method_1((long)BitConverter.ToInt16(byte_0, checked(12 + checked(i1 * 8))));
             gclass36.method_3((long)BitConverter.ToInt16(byte_0, checked(checked(12 + checked(i1 * 8)) + 2)));
             gclass36.method_5((long)BitConverter.ToInt16(byte_0, checked(checked(12 + checked(i1 * 8)) + 4)));
             list_1.Add(gclass36);
             method_8(method_9(gclass36, gclass42.method_2()), labelX_5[i1]);
         }
     }
     else
     {
         method_8("Quest Ended", vmethod_22());
         int i2 = 0;
         do
         {
             method_8("", labelX_5[i2]);
             i2 = checked(i2 + 1);
         } while (i2 <= 3);
     }
 }