Elin Modding Docs Doc
Loading...
Searching...
No Matches
ZonePreEnterOnCompleteQuestInstance.cs
1using System;
2using UnityEngine;
3
4// Token: 0x02000751 RID: 1873
6{
7 // Token: 0x06003645 RID: 13893 RVA: 0x00126DCC File Offset: 0x00124FCC
8 public override void Execute()
9 {
10 EClass.player.returnInfo = null;
11 if (this.uidQuest == 0)
12 {
13 return;
14 }
15 Quest quest = EClass.game.quests.Get(this.uidQuest);
16 Chara chara = EClass._map.FindChara(this.uidClient);
17 if (chara == null || chara.quest == null)
18 {
19 string[] array = new string[7];
20 array[0] = this.uidClient.ToString();
21 array[1] = "/";
22 array[2] = this.uidQuest.ToString();
23 array[3] = "/";
24 array[4] = this.fail.ToString();
25 array[5] = "/";
26 int num = 6;
27 Quest quest2 = quest;
28 array[num] = ((quest2 != null) ? quest2.ToString() : null);
29 Debug.Log(string.Concat(array));
30 string str = "exception: quest not found:";
31 Chara chara2 = chara;
32 string str2 = (chara2 != null) ? chara2.ToString() : null;
33 string str3 = "/";
34 Quest quest3 = (chara != null) ? chara.quest : null;
35 Debug.LogError(str + str2 + str3 + ((quest3 != null) ? quest3.ToString() : null));
36 return;
37 }
38 if (quest == null && chara.quest.uid == this.uidQuest)
39 {
40 quest = chara.quest;
41 }
42 if (quest == null)
43 {
44 return;
45 }
46 if (this.fail)
47 {
48 quest.Fail();
49 }
50 else
51 {
52 quest.Complete();
53 }
54 if (EClass.pc.IsAliveInCurrentZone)
55 {
56 chara.ShowDialog("_chara", this.fail ? "quest_fail" : "quest_success", "");
57 }
58 }
59
60 // Token: 0x04001CA8 RID: 7336
61 public int uidClient;
62
63 // Token: 0x04001CA9 RID: 7337
64 public int uidQuest;
65
66 // Token: 0x04001CAA RID: 7338
67 public bool fail;
68}
Definition Chara.cs:12
Definition Quest.cs:8