-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathClan.cs
148 lines (112 loc) · 3.13 KB
/
Clan.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
using System;
public class Clan
{
public const int CREATE_CLAN = 0;
public const int MOVE_OUT_MEM = 1;
public const int MOVE_INPUT_MONEY = 2;
public const int MOVE_OUT_MONEY = 3;
public const int FREE_MONEY = 4;
public const int UP_LEVEL = 5;
public const int TYPE_NORMAL = 0;
public const int TYPE_UUTU = 1;
public const int TYPE_TRUONGLAO = 2;
public const int TYPE_TOCPHO = 3;
public const int TYPE_TOCTRUONG = 4;
public string name = string.Empty;
public int exp;
public int expNext;
public int level;
public int itemLevel;
public int icon;
public int coin;
public int freeCoin;
public int coinUp;
public string main_name = string.Empty;
public string assist_name = string.Empty;
public string elder1_name = string.Empty;
public string elder2_name = string.Empty;
public string elder3_name = string.Empty;
public string elder4_name = string.Empty;
public string elder5_name = string.Empty;
public string reg_date = string.Empty;
public string log = string.Empty;
public string alert = string.Empty;
public int total;
public int use_card;
public int openDun;
public MyVector members = new MyVector();
public Item[] items;
public void writeLog(string data)
{
string[] array = NinjaUtil.split(data, "\n");
log = string.Empty;
try
{
for (int i = 0; i < array.Length; i++)
{
string text = array[i].Trim();
if (text.Equals(string.Empty))
{
continue;
}
try
{
string[] array2 = NinjaUtil.split(text, ",");
string text2 = array2[0];
switch (int.Parse(array2[1]))
{
case 0:
{
text2 = "c0" + text2;
string text8 = text2;
text2 = text8 + mResources.CLAN_ACTIVITY[1] + " " + NinjaUtil.numberToString(array2[2]) + " " + mResources.CLAN_ACTIVITY[0] + " " + array2[3];
break;
}
case 1:
{
text2 = "c1" + text2;
string text7 = text2;
text2 = text7 + " " + mResources.CLAN_ACTIVITY[2] + " " + NinjaUtil.numberToString(array2[2]) + " " + mResources.CLAN_ACTIVITY[0] + " " + array2[3];
break;
}
case 2:
{
text2 = "c2" + text2;
string text6 = text2;
text2 = text6 + " " + mResources.CLAN_ACTIVITY[3] + " " + NinjaUtil.numberToString(array2[2]) + " " + mResources.CLAN_ACTIVITY[0] + " " + array2[3];
break;
}
case 3:
{
text2 = "c1" + text2;
string text5 = text2;
text2 = text5 + " " + mResources.CLAN_ACTIVITY[4] + " " + NinjaUtil.numberToString(array2[2]) + " " + mResources.CLAN_ACTIVITY[0] + " " + array2[3];
break;
}
case 4:
{
text2 = "c1" + text2;
string text4 = text2;
text2 = text4 + mResources.CLAN_ACTIVITY[5] + " " + NinjaUtil.numberToString(array2[2]) + " " + mResources.CLAN_ACTIVITY[0] + " " + array2[3];
break;
}
case 5:
{
text2 = "c2" + text2;
string text3 = text2;
text2 = text3 + " " + mResources.CLAN_ACTIVITY[6] + " " + NinjaUtil.numberToString(array2[2]) + " " + mResources.CLAN_ACTIVITY[0] + " " + array2[3];
break;
}
}
log = log + text2 + "\n";
}
catch (Exception)
{
}
}
}
catch (Exception)
{
}
}
}