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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
|
// TMW-2 Script
// Author:
// Jesusalva
// Description:
// Leaderboards + GM Command Log
function script HallOfFame {
// Moved to event statues
return;
mes "";
.@nb = query_sql("select name, karma from `char` WHERE `guild_id`!=1 ORDER BY karma DESC LIMIT 10", .@name$, .@value);
mes l("##BHall Of Fame: TOP10##b");
mes("1."+.@name$[0]+" ("+.@value[0]+")");
mes("2."+.@name$[1]+" ("+.@value[1]+")");
mes("3."+.@name$[2]+" ("+.@value[2]+")");
mes("4."+.@name$[3]+" ("+.@value[3]+")");
mes("5."+.@name$[4]+" ("+.@value[4]+")");
mes("6."+.@name$[5]+" ("+.@value[5]+")");
mes("7."+.@name$[6]+" ("+.@value[6]+")");
mes("8."+.@name$[7]+" ("+.@value[7]+")");
mes("9."+.@name$[8]+" ("+.@value[8]+")");
mes("10."+.@name$[9]+" ("+.@value[9]+")");
return;
}
function script HallOfFortune {
mes "";
.@nb = query_sql("select name, zeny from `char` WHERE `guild_id`!=1 ORDER BY zeny DESC LIMIT 15", .@name$, .@value);
mes l("##BHall Of Fortune: TOP15##b");
mes("1."+.@name$[0]+" ("+format_number(.@value[0])+" GP)");
mes("2."+.@name$[1]+" ("+format_number(.@value[1])+" GP)");
mes("3."+.@name$[2]+" ("+format_number(.@value[2])+" GP)");
mes("4."+.@name$[3]+" ("+format_number(.@value[3])+" GP)");
mes("5."+.@name$[4]+" ("+format_number(.@value[4])+" GP)");
mes("6."+.@name$[5]+" ("+format_number(.@value[5])+" GP)");
mes("7."+.@name$[6]+" ("+format_number(.@value[6])+" GP)");
mes("8."+.@name$[7]+" ("+format_number(.@value[7])+" GP)");
mes("9."+.@name$[8]+" ("+format_number(.@value[8])+" GP)");
mes("10."+.@name$[9]+" ("+format_number(.@value[9])+" GP)");
mes("11."+.@name$[10]+" ("+format_number(.@value[10])+" GP)");
mes("12."+.@name$[11]+" ("+format_number(.@value[11])+" GP)");
mes("13."+.@name$[12]+" ("+format_number(.@value[12])+" GP)");
mes("14."+.@name$[13]+" ("+format_number(.@value[13])+" GP)");
mes("15."+.@name$[14]+" ("+format_number(.@value[14])+" GP)");
return;
}
function script HallOfLevel {
mes "";
.@nb = query_sql("select name, base_level from `char` WHERE `guild_id`!=1 ORDER BY base_level DESC LIMIT 15", .@name$, .@value);
mes l("##BHall Of Level: TOP15##b");
mes("1."+.@name$[0]+" ("+.@value[0]+")");
mes("2."+.@name$[1]+" ("+.@value[1]+")");
mes("3."+.@name$[2]+" ("+.@value[2]+")");
mes("4."+.@name$[3]+" ("+.@value[3]+")");
mes("5."+.@name$[4]+" ("+.@value[4]+")");
mes("6."+.@name$[5]+" ("+.@value[5]+")");
mes("7."+.@name$[6]+" ("+.@value[6]+")");
mes("8."+.@name$[7]+" ("+.@value[7]+")");
mes("9."+.@name$[8]+" ("+.@value[8]+")");
mes("10."+.@name$[9]+" ("+.@value[9]+")");
mes("11."+.@name$[10]+" ("+.@value[10]+")");
mes("12."+.@name$[11]+" ("+.@value[11]+")");
mes("13."+.@name$[12]+" ("+.@value[12]+")");
mes("14."+.@name$[13]+" ("+.@value[13]+")");
mes("15."+.@name$[14]+" ("+.@value[14]+")");
return;
}
function script HallOfCoins {
mes "";
.@nb = query_sql("SELECT c.name, i.amount FROM `inventory` AS i, `char` AS c WHERE i.nameid="+StrangeCoin+" AND i.char_id=c.char_id ORDER BY i.amount DESC LIMIT 15", .@name$, .@value);
mes l("##BHall Of @@: TOP15##b", getitemlink(StrangeCoin));
mes("1."+.@name$[0]+" ("+.@value[0]+")");
mes("2."+.@name$[1]+" ("+.@value[1]+")");
mes("3."+.@name$[2]+" ("+.@value[2]+")");
mes("4."+.@name$[3]+" ("+.@value[3]+")");
mes("5."+.@name$[4]+" ("+.@value[4]+")");
mes("6."+.@name$[5]+" ("+.@value[5]+")");
mes("7."+.@name$[6]+" ("+.@value[6]+")");
mes("8."+.@name$[7]+" ("+.@value[7]+")");
mes("9."+.@name$[8]+" ("+.@value[8]+")");
mes("10."+.@name$[9]+" ("+.@value[9]+")");
mes("11."+.@name$[10]+" ("+.@value[10]+")");
mes("12."+.@name$[11]+" ("+.@value[11]+")");
mes("13."+.@name$[12]+" ("+.@value[12]+")");
mes("14."+.@name$[13]+" ("+.@value[13]+")");
mes("15."+.@name$[14]+" ("+.@value[14]+")");
return;
}
function script HallOfGMLog {
mes "";
.@nb = query_sql("select char_name, command from `atcommandlog` ORDER BY atcommand_id DESC LIMIT 15", .@name$, .@value$);
mes l("##BLatest GM Commands##b");
mes("1."+.@name$[0]+" ("+.@value$[0]+")");
mes("2."+.@name$[1]+" ("+.@value$[1]+")");
mes("3."+.@name$[2]+" ("+.@value$[2]+")");
mes("4."+.@name$[3]+" ("+.@value$[3]+")");
mes("5."+.@name$[4]+" ("+.@value$[4]+")");
mes("6."+.@name$[5]+" ("+.@value$[5]+")");
mes("7."+.@name$[6]+" ("+.@value$[6]+")");
mes("8."+.@name$[7]+" ("+.@value$[7]+")");
mes("9."+.@name$[8]+" ("+.@value$[8]+")");
mes("10."+.@name$[9]+" ("+.@value$[9]+")");
mes("11."+.@name$[10]+" ("+.@value$[10]+")");
mes("12."+.@name$[11]+" ("+.@value$[11]+")");
mes("13."+.@name$[12]+" ("+.@value$[12]+")");
mes("14."+.@name$[13]+" ("+.@value$[13]+")");
mes("15."+.@name$[14]+" ("+.@value$[14]+")");
return;
}
function script HallOfReferral {
mes "";
.@nb = query_sql("SELECT l.userid, COUNT(a.value) FROM `mapreg` AS a, `login` AS l WHERE a.varname='$REFERRAL_IDS' AND l.account_id=a.index ORDER BY COUNT(a.value) DESC LIMIT 20", .@name$, .@value);
mes "Referral Program Report - pg. 1";
mes("1."+.@name$[0]+" ("+.@value[0]+")");
mes("2."+.@name$[1]+" ("+.@value[1]+")");
mes("3."+.@name$[2]+" ("+.@value[2]+")");
mes("4."+.@name$[3]+" ("+.@value[3]+")");
mes("5."+.@name$[4]+" ("+.@value[4]+")");
mes("6."+.@name$[5]+" ("+.@value[5]+")");
mes("7."+.@name$[6]+" ("+.@value[6]+")");
mes("8."+.@name$[7]+" ("+.@value[7]+")");
mes("9."+.@name$[8]+" ("+.@value[8]+")");
mes("10."+.@name$[9]+" ("+.@value[9]+")");
next;
mes "Referral Program Report - pg. 2";
mes("11."+.@name$[10]+" ("+.@value[10]+")");
mes("12."+.@name$[11]+" ("+.@value[11]+")");
mes("13."+.@name$[12]+" ("+.@value[12]+")");
mes("14."+.@name$[13]+" ("+.@value[13]+")");
mes("15."+.@name$[14]+" ("+.@value[14]+")");
mes("16."+.@name$[15]+" ("+.@value[15]+")");
mes("17."+.@name$[16]+" ("+.@value[16]+")");
mes("18."+.@name$[17]+" ("+.@value[17]+")");
mes("19."+.@name$[18]+" ("+.@value[18]+")");
mes("20."+.@name$[19]+" ("+.@value[19]+")");
next;
return;
}
function script HallOfSponsor {
mes l("This is in honor of all the [@@help://about-server|Contributors@@] who helped rebuilding this world, after the Monster War outbreak.");
mes l("And also in notable mention of those who [@@https://www.patreon.com/TMW2|sponsor@@] the Alliance and its administrative structure.");
mes l("");
mes l("GonzoDark, Saulc.");
return;
}
function script HallOf2018 {
mes "";
mes l(".:: FIRST PLAYER TO COMPLETE YETI KING QUEST ::.");
mes l("Aisen");
mes "";
mes l(".:: NOTABLE NAMES ON HURNSCALD LIBERATION DAY ::.");
mes l("DragonStar, Aisen");
mes "";
mes l(".:: NOTABLE NAMES ON NIVALIS LIBERATION DAY ::.");
mes l("Jesusalva");
next;
mes l(".:: Easter 2018 ::.");
mes l("In honor of DragonStar, winner of Easter 2018.");
mesc l("Unfortunately, other victor's names weren't logged.");
mes "";
mes l(".:: Worker Day 2018 ::.");
mes l("No victor appliable.");
mes "";
mes l(".:: Purple Day 2018 ::.");
mes l("No victor appliable.");
next;
mes l(".:: Ched's Summer 2018 ::.");
mes ("1. WarBlade - 5325");
mes ("2. Aisen - 2000");
mes ("3. msawis - 1000");
mes ("4. vilbou - 400");
mes ("5. Woody - 353");
next;
mes l(".:: Hasan Scorpion Killing Challenge 2018 ::.");
mes ("1. Krists - 1070");
mes ("2. Aisen - 598");
mes ("3. AndulkaT - 212");
mes ("4. monking - 86");
mes ("5. Carbon14 - 78");
next;
mes l(".:: Christmas 2018 ::.");
mes ("1. ????? - ???");
mes ("2. ????? - ???");
mes ("3. ????? - ???");
mes ("4. ????? - ???");
mes ("5. ????? - ???");
return;
}
function script HallOf2019 {
mesc l("This schedule is subject to change without prior notice."), 1;
mesc l("Changes include but are not limited to festive events and dates."), 1;
next;
mes l(".:: TMW-2 Anniversary ::.");
mesc l("Scheduled: January 13rd");
mesc l("Anniversary marks the project birthdate. Do not mistake with TMW2 Day.");
next;
mes l(".:: Valentine Day ::.");
mesc l("Scheduled: February 12th - 15th");
mes "";
mes l(".:: TMW2 Day ::.");
mesc l("Scheduled: March 2nd");
mesc l("TMW2 Day marks the server birthdate. Do not mistake with TMW2 Anniversary.");
mes "";
mes l(".:: Easter 2019 ::.");
mesc l("Scheduled: April 17th - 24th");
mes "";
mes l(".:: Worker Day ::.");
mesc l("Scheduled: April 27th - May 3rd");
next;
mes l(".:: Ched's Summer 2019 ::.");
mesc l("June 21st - September 21st");
mes "";
mes l(".:: Chocolate Day ::.");
mesc l("Scheduled: July 7th");
mes "";
mes l(".:: Free Software Day ::.");
mesc l("Scheduled: September 9th");
mes "";
mes l(".:: Hasan Scorpion Killing Challenge 2019 ::.");
mesc l("September 22nd - December 20th");
mes "";
mes l(".:: Christmas 2019 ::.");
mesc l("Scheduled: December 19th - January 2nd");
return;
}
|