forked from johnl0l/AdobeRO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAntiBot-1.txt
161 lines (136 loc) · 4.29 KB
/
AntiBot-1.txt
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
//===== rAthena Script =======================================
//= Aniti Macro
//===== Fix 2 =============================================
//= »éͧ¡Ñ¹¡ÒÃËÅºË¹Õ ¢³ÐµÃǨ¨¨ÑººÍ· àÁ×èͼÙéàÅè¹ ÍÍ¡à¡ÁË¹Õ ËÃ×Í àÅ×Í¡µÑÇÅФèж١»éÒÂá´§àÁ×èÍÅçͤÍÔ¹¡ÅѺà¢éÒÁÒÍÕ¡¤ÃÑé§
//= à»ÅÕ蹨ҡÊè§à¢éҤء à»ç¹àµÐÍÍ¡à¡ÁáÅÐʶҹлéÒÂá´§
//= á¡éºÑ¤«×éͧ͢¼Ô´ ËÃ×Í ¢Öé¹ãËé«×éÍ«éÓæ
//= ·´ÊͺáÅéÇ äÁèÁպѤÍÐäà áµèËÒ¡¾ºà¾ÔèÁàµÔÁ ú¡Ç¹á¨é§´éǹФÃѺ www.facebook.com/Lungezt
//======================================================
- shop anti_bot_shop -1,909:-1
- script Anti Bot -1,{
OnNPCKillEvent:
// if(getgmlevel() > 0) end; // àÍÒ // ¢éҧ˹éÒÍÍ¡ gm äÁèµÃǨ
set @kill,@kill+1;
if(@kill >= rand(700,1000)) goto Check; // ¨Ó¹Ç¹Á͹·Õè¨ÐÊØèÁàªç¤ (200,500) 200-500 µÑÇ
end;
OnInit:
// .max_wrong_count = 3; //
.duration = 60; // àÇÅÒ㹡ÒÃÊè§à¢éҤء à»ç¹ ÇÔ¹Ò·Õ
.shop_name$ = "anti_bot_shop";
setarray .item_list, // á¡é äÍà·çÁ·ÕèãËé«×éÍ
512,
513,
514,
515,
536;
.item_list_size = getarraysize( .item_list );
.npc_name$ = strnpcinfo(3);
npcshopdelitem .shop_name$,909;
for ( .@i = 0; .@i < .item_list_size; .@i++ )
npcshopadditem .shop_name$,.item_list[.@i],-1;
end;
Check:
// if(getgmlevel() > 0) end; // àÍÒ // ¢éҧ˹éÒÍÍ¡ gm äÁèµÃǨ
getmapxy .@map$, .@x, .@y, 0;
// áÁ¾·ÕèäÁèµéͧ¡ÒÃãËéÁÕ¡ÒõÃǨÊͺ ÃÇÁ¶Ö§áÁ¾¡Ô¨¡ÃÃÁ´éÇÂ
if (.@map$=="prontera" || .@map$=="morocc" || .@map$=="2@tower" || .@map$=="1@tower" || .@map$=="3@tower" || .@map$=="4@tower" || .@map$=="5@tower" || .@map$=="6@tower" || .@map$=="payon" || .@map$=="izlude" || .@map$=="morocc" || .@map$=="morocc" || .@map$=="mora") end;
if(checkcart() == 1) set @cart,1;
if(checkfalcon() == 1) set @falcon,1;
if(checkriding() == 1) set @riding,1;
if(checkdragon() == 1) set @dragon,1;
if(checkmadogear() == 1) set @madogear,1;
set @kill,-9999;
atcommand "@option 2 0 0";
atcommand "@battleignore";
setoption 0x2,1;
sc_start sc_berserk, 1000000000, 1;
set jail,1;
mes "[ µÃǨ¨ÑºÁÒâ¤Ã ]";
mes "àÃҢ͵ÃǨÊͺÇèÒ·èÒ¹ãªèºÍ·ËÃ×ÍäÁè";
mes "¤Ø³ÁÕàÇÅÒ«×éÍ "+.duration+" ÇÔ¹Ò·Õ.";
OnRepeat:
@wrong_count++;
deltimer .npc_name$+"::OnJail";
addtimer ( .duration * 1000 ),.npc_name$+"::OnJail";
@rand_itemid = .item_list[ rand( .item_list_size ) ];
@rand_amount = rand( 2,19 ); // ¨Ó¹Ç¹·ÕèÊØèÁãËé«×éÍ
mes "ú¡Ç¹«×éÍ "+getitemname( @rand_itemid )+" "+@rand_amount+" ea";
mes "^FF0000¤Óàµ×͹ :: ËéÒÁ«×éͼԴáÅÐËź˹Õ^000000";
mes "àÁ×èͤس«×éͼԴàÃÒ¨ÐàµÐ¤Ø³ÍÍ¡¨Ò¡à«Ô¿àÇÍÃì";
dispbottom "=== «×éÍ "+getitemname( @rand_itemid )+" "+@rand_amount+" ªÔé¹ === ";
npcshopattach .shop_name$,1;
callshop .shop_name$,1;
end;
OnBuyItem:
if ( @bought_nameid[0] != @rand_itemid || @bought_quantity[0] != @rand_amount ) {
mes "[ µÃǨ¨ÑºÁÒâ¤Ã ]";
mes "¤Ø³µÍº¼Ô´¤ÃѺ.";
close2;
if ( @wrong_count >= .max_wrong_count ) {
doevent .npc_name$+"::OnJail";
}
else {
doevent .npc_name$+"::OnJail";
}
end;
}
deltimer .npc_name$+"::OnJail";
set @kill,0;
announce "*** ¢Íº¤Ø³·ÕèãËé¤ÇÒÁÃèÇÁÁ×ͨéÒ ***",bc_green|bc_self;
set jail,0;
atcommand "@option 0 0 0";
atcommand "@battleignore";
// getitem 909,1; // ÃÒ§ÇÑŤèÒàÊÕÂàÇÅÒ
setoption 0x2,0;
sc_end sc_berserk;
percentheal 100,100;
set @kill,0;
if(@cart == 1) {
setcart;
set @cart,0;
}
if(@madogear == 1) {
setmadogear;
set @madogear,0;
}
if(@falcon == 1) {
setfalcon;
set @falcon,0;
}
if(@dragon == 1) {
setdragon;
set @dragon,0;
}
if(@riding == 1) {
setriding;
set @riding,0;
}
end;
end;
OnJail:
deltimer .npc_name$+"::OnJail";
set jail,0;
atcommand "@option 0 0 0";
atcommand "@battleignore";
setoption 0x2,0;
sc_end sc_berserk;
percentheal 100,100;
set @kill,0;
set jail,0;
mes "[ µÃǨ¨ÑºÁÒâ¤Ã ]";
mes "¤Ø³¶Ù¡àµÐÍÍ¡¨Ò¡à«Ô¿àÇÍÃì..";
atcommand "@kick "+strcharinfo(0);
// announce "[Anti-Bot] ¤Ø³ "+strcharinfo(0)+" ¶Ù¡Êè§à¢éҤءà¾ÃÒÐʧÊÑÂÇèÒà»ç¹ºÍ· ",0;
end;
}
///=============== àªç¤àÇÅÒ¼ÙéàÅè¹Ë¹ÕµÃǨºÍ· ËÒ¡ log in ÁÒãËÁè
- script LogInCheckLung -1,{
OnPCLoginEvent:
if(jail == 1) {
atcommand "@mute 10";
set jail,0;
announce "*** à¹×èͧ¨Ò¡¤Ø³Ë¹Õ¨Ò¡¡ÒõÃǨÊͺ *** *** ¤Ø³¨Ö§¶Ù¡Å§â·ÉËéÒÁʹ·¹ÒáÅÐãªéÊ¡ÔÅà»ç¹àÇÅÒ10¹Ò·Õ ***",bc_green|bc_self;
end;
}
end;
}