-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path9310072_一键清除背包.js
42 lines (38 loc) · 1 KB
/
9310072_一键清除背包.js
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
var status;
var text;
var column = new Array("装备", "消耗", "设置", "其他", "商城");
var sel;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else {
cm.dispose();
return;
}
if (status == 0) {
text = "一键清除所有栏目道具\r\n\r\n#b";
for (var i = 1; i <= 5; i++) {
text += "#L" + i + "#清除" + column[i-1] + "栏的所有道具#l\r\n";
}
cm.sendSimple(text);
} else if (status == 1) {
sel = selection;
cm.sendYesNo("#r是否要清除" + column[sel-1] + "栏的所有道具???此操作不可逆!");
} else if (status == 2) {
cm.removeAllItem(sel);
cm.sendOk("清除完毕");
cm.dispose();
}
}
}