Advertisement
Guest User

Untitled

a guest
Aug 26th, 2015
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.36 KB | None | 0 0
  1. //===== Hercules Script ======================================
  2. //= Euphy's WOE Controller
  3. //===== By: ==================================================
  4. //= Euphy
  5. //===== Current Version: =====================================
  6. //= 1.5
  7. //===== Description: =========================================
  8. //= A controller for War of Emperium designed for
  9. //= simplicity and ease of use.
  10. //= Many concepts taken from ToastOfDoom's script,
  11. //= and "rewards" function originally by Goddameit.
  12. //===== Additional Comments: =================================
  13. //= Be sure to disable the default agit controllers!
  14. //== npc\woe-fe\agit_controller.txt
  15. //== npc\woe-se\agit_start_se.txt
  16. //============================================================
  17.  
  18. // Information NPC
  19. //============================================================
  20. prontera,149,193,4 script WOE Information 2_BOARD1,{
  21. doevent "WOE_CONTROL::OnMenu";
  22. end;
  23. OnAgitStart:
  24. while(agitcheck()) {
  25. misceffect EF_BEGINSPELL6;
  26. sleep 425;
  27. }
  28. end;
  29. }
  30.  
  31. // Script Core
  32. //============================================================
  33. - script WOE_CONTROL -1,{
  34. function Disp_Owner; function Add_Zero;
  35.  
  36. OnInit:
  37.  
  38. // -----------------------------------------------------------
  39. // Configuration settings.
  40. // -----------------------------------------------------------
  41.  
  42. set .CastleWarp,0; // 1: Always enable all castle warps. | 0: Warp only to active castles.
  43. set .AutoKick,1; // Automatically kick players from inactive castles during WOE? (1:yes / 0:no)
  44. set .NoOwner,0; // Automatically kick players from unconquered castles outside of WOE? (1:yes / 0:no)
  45. set .ExitWarp,0; // Warp all players from castles when WOE ends? (1:yes / 0:no)
  46. set .GMAccess,99; // GM level required to access Session Manager.
  47.  
  48. // -----------------------------------------------------------
  49. // Reward options.
  50. // -----------------------------------------------------------
  51. // [1] Enable rewards.
  52. // [2] Mail all rewards.
  53. // - If not set, players receive items in their inventory.
  54. // - Only ONE item can be sent via mail, plus Zeny.
  55. // - Note that offline players do NOT receive rewards.
  56. // [4] Only reward Guild Masters.
  57. // - If not set, all guild members are rewarded.
  58. // - If mailing is enabled (option 2), offline Guild Masters WILL receive rewards.
  59. // [8] Duplicate IP check.
  60. // - Members in a guild with the same IP address are not rewarded.
  61. // - If Guild Masters is enabled (option 4), this feature is not used.
  62. // -----------------------------------------------------------
  63.  
  64. // Combine values as needed (e.g. 1|8 = 1+8 = 9).
  65. set .Options, 1|8;
  66.  
  67. // Rewards per castle.
  68. // -- when given directly: <itemID>,<amount>{,<itemID>,<amount>,...}
  69. // -- via mail (option 2): <itemID>,<amount>,<Zeny>
  70. setarray .Reward[0],14001,1;
  71.  
  72. // -----------------------------------------------------------
  73. // Constants (leave this section alone).
  74. // -----------------------------------------------------------
  75.  
  76. setarray .Castles$[0],
  77. "prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05",
  78. "payg_cas01","payg_cas02","payg_cas03","payg_cas04","payg_cas05",
  79. "gefg_cas01","gefg_cas02","gefg_cas03","gefg_cas04","gefg_cas05",
  80. "aldeg_cas01","aldeg_cas02","aldeg_cas03","aldeg_cas04","aldeg_cas05",
  81. "arug_cas01","arug_cas02","arug_cas03","arug_cas04","arug_cas05",
  82. "schg_cas01","schg_cas02","schg_cas03","schg_cas04","schg_cas05";
  83. setarray .EndLabel$[0],"ar01","ar02","ar03","ar04","ar05","sc01","sc02","sc03","sc04","sc05";
  84. setarray .Days$[0],"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday";
  85. setarray .Regions$[0],"Prontera","Payon","Geffen","Aldebaran","Arunafeltz","Schwaltzvalt";
  86. setarray .Map$[0],"prt_gld","pay_gld","gef_fild13","alde_gld","aru_gld","sch_gld";
  87. setarray .MapX[0],134,240,153,111,208,121,295,317,140,204,214,308,143,193,305,48, 95,142,239,264,158,83, 68,299,292,293,288, 97,137, 71;
  88. setarray .MapY[0], 65,128,137,240,240,233,116,293,160,266, 75,240,240,278, 87,83,249, 85,242, 90,272,47,155,345,107,100,252,196, 90,315;
  89.  
  90. // -----------------------------------------------------------
  91.  
  92. set .Size, getarraysize($WOE_CONTROL);
  93. if (.AutoKick || .NoOwner)
  94. for(set .@i,0; .@i<30; set .@i,.@i+1) {
  95. setmapflag .Castles$[.@i], mf_loadevent;
  96. setd "."+.Castles$[.@i], .@i;
  97. }
  98. if (!agitcheck() && !agitcheck2()) sleep 4000;
  99. set .Init,1;
  100.  
  101. OnMinute00:
  102. freeloop(1);
  103. if (agitcheck() || agitcheck2()) {
  104. for(set .@i,0; .@i<.Size; set .@i,.@i+4)
  105. if (gettime(4) == $WOE_CONTROL[.@i] && gettime(3) == $WOE_CONTROL[.@i+2]) {
  106. OnWOEEnd:
  107. announce "The War Of Emperium is over!",bc_all|bc_woe;
  108. agitend; agitend2;
  109. sleep 1000;
  110. for(set .@j,0; .@j<30; set .@j,.@j+1) {
  111. if (.Active[0]&(1<<.@j)) Disp_Owner(.Castles$[.@j],1);
  112. if (.ExitWarp) maprespawnguildid .Castles$[.@j],0,3;
  113. }
  114. if (.Options&1 && .Active[0] && .ForceEnd != 2) callsub OnReward, .Active[0];
  115. deletearray .Active[0],2;
  116. if (.ForceEnd) { set .ForceEnd,0; end; }
  117. break;
  118. }
  119. }
  120. if ((!agitcheck() && !agitcheck2()) || .Init) {
  121. if (!agitcheck() && !agitcheck2()) set .Init,0;
  122. for(set .@i,0; .@i<.Size; set .@i,.@i+4)
  123. if (gettime(4) == $WOE_CONTROL[.@i] && gettime(3) >= $WOE_CONTROL[.@i+1] && gettime(3) < $WOE_CONTROL[.@i+2]) {
  124. deletearray .Active[0],2;
  125. set .Active[0], $WOE_CONTROL[.@i+3];
  126. if (.Init) { agitend; agitend2; }
  127. else announce "The War Of Emperium has begun!",bc_all|bc_woe;
  128. sleep 1000;
  129. agitstart; agitstart2;
  130. for(set .@j,0; .@j<30; set .@j,.@j+1) {
  131. if (.Active[0]&(1<<.@j)) {
  132. if (!.Init) Disp_Owner(.Castles$[.@j],0);
  133. set .Active[1], .Active[1] | (1<<((.@j/5)+1));
  134. } else {
  135. if (.@j<20) {
  136. donpcevent "Agit#"+.Castles$[.@j]+"::OnAgitEnd";
  137. killmonster .Castles$[.@j], "Agit#"+.Castles$[.@j]+"::OnAgitBreak";
  138. } else {
  139. donpcevent "Manager#"+.Castles$[.@j]+"::OnAgitEnd2";
  140. killmonster .Castles$[.@j], "Steward#"+.EndLabel$[.@j-20]+"::OnStartArena";
  141. }
  142. }
  143. }
  144. break;
  145. }
  146. }
  147. set .Init,0;
  148. end;
  149.  
  150. function Disp_Owner {
  151. set .@o, getcastledata(getarg(0),1);
  152. if (.@o) announce "The ["+getcastlename(getarg(0))+"] castle "+((getarg(1))?"has been conquered":"is currently held")+" by the ["+getguildname(.@o)+"] guild.",bc_all|bc_woe;
  153. else announce "The ["+getcastlename(getarg(0))+"] castle is currently unoccupied.",bc_all|bc_woe;
  154. return;
  155. }
  156. function Add_Zero {
  157. return ( ( getarg(0) < 10 ) ? "0" : "" ) + getarg( 0 ) + ( getarg( 2 ) ? "." : ":" ) + getarg( 1 );
  158. }
  159.  
  160. OnReward:
  161. set .@sql$, ((.Options&4)?"position = 0":"online = 1");
  162. if (.Options&2) set .@str$,gettimestr("%B %d, %Y",21);
  163. freeloop(1);
  164. for(set .@i,0; .@i<30; set .@i,.@i+1)
  165. if (getarg(0)&(1<<.@i)) {
  166. set .@GID, getcastledata(.Castles$[.@i],1);
  167. if (!.@GID) continue;
  168. set .@size, query_sql("SELECT account_id,char_id FROM `guild_member` WHERE guild_id = '"+.@GID+"' AND "+.@sql$,.@aid,.@cid);
  169. for(set .@j,0; .@j<.@size; set .@j,.@j+1) {
  170. if (.Options&8 && !(.Options&4)) {
  171. set .@ip$, replacestr(getcharip(.@aid[.@j]),".","a");
  172. if (getd(".@ip_"+.@i+"_"+.@ip$)) continue;
  173. setd ".@ip_"+.@i+"_"+.@ip$,1;
  174. }
  175. if (.Options&2) {
  176. query_sql("INSERT INTO `mail` (send_name,dest_id,title,message,nameid,amount,identify,zeny,time) VALUES ("+
  177. "'no-reply',"+.@cid[.@j]+",'** Siege Reward: "+getcastlename(.Castles$[.@i])+" **',"+
  178. "'Brave one,% % Congratulations!% Your guild has successfully occupied% territory in the War of Emperium on% "+.@str$+".% % % % % [ Your reward is attached. ]',"+
  179. .Reward[0]+","+.Reward[1]+",0,"+.Reward[2]+",UNIX_TIMESTAMP(NOW()))");
  180. if (!getd(".@str_"+.@cid[.@j]) && isloggedin(.@aid[.@j],.@cid[.@j])) {
  181. setd ".@str_"+.@cid[.@j],1;
  182. message rid2name(.@aid[.@j]),"You've got mail! Please re-login to update your mailing list.";
  183. }
  184. } else if (isloggedin(.@aid[.@j])) {
  185. for(set .@k,0; .@k<getarraysize(.Reward); set .@k,.@k+2)
  186. getitem .Reward[.@k], .Reward[.@k+1], .@aid[.@j];
  187. message rid2name(.@aid[.@j]),"You have been rewarded for conquering "+getcastlename(.Castles$[.@i])+".";
  188. }
  189. }
  190. }
  191. if (.Options&2) query_sql("UPDATE `mail` SET message = REPLACE(message,'%',CHAR(13)) WHERE send_name = 'no-reply'");
  192. return;
  193.  
  194. OnPCLoadMapEvent:
  195. if (!compare(strcharinfo(3),"g_cas")) end;
  196. if (((.AutoKick && .Active[0]) || (.NoOwner && !getcastledata(strcharinfo(3),1))) && !(.Active[0]&(1<<getd("."+strcharinfo(3))))) {
  197. if (getcharid(2) && getcastledata(strcharinfo(3),1) == getcharid(2)) end;
  198. sleep2 1000;
  199. message strcharinfo(0), getcastlename(strcharinfo(3))+" is currently inactive.";
  200. sleep2 5000;
  201. if (compare(strcharinfo(3),"g_cas")) warp "SavePoint",0,0;
  202. }
  203. end;
  204.  
  205. OnMenu:
  206. while(1) {
  207. mes "[WOE Information]";
  208. if (agitcheck() || agitcheck2()) {
  209. if (.Active[0]) {
  210. for(set .@i,0; .@i<.Size; set .@i,.@i+4)
  211. if (gettime(4) == $WOE_CONTROL[.@i] && gettime(3) >= $WOE_CONTROL[.@i+1] && gettime(3) < $WOE_CONTROL[.@i+2]) {
  212. set .@i, $WOE_CONTROL[.@i+2];
  213. break;
  214. }
  215. mes "The War of Emperium is ^0055FFactive^000000 until ^FF0000"+Add_Zero(.@i)+"^000000 in the following regions:";
  216. mes " ";
  217. for(set .@i,0; .@i<6; set .@i,.@i+1)
  218. if (.Active[1]&(1<<(.@i+1))) mes " > ^777777"+.Regions$[.@i]+"^000000";
  219. } else
  220. mes "The War of Emperium is ^0055FFactive^000000.";
  221. } else {
  222. for(set .@i,0; .@i<.Size; set .@i,.@i+4)
  223. if ((gettime(4) == $WOE_CONTROL[.@i] && gettime(3) <= $WOE_CONTROL[.@i+1]) || gettime(4) < $WOE_CONTROL[.@i]) {
  224. setarray .@time[0],$WOE_CONTROL[.@i],$WOE_CONTROL[.@i+1];
  225. break;
  226. }
  227. if (!getarraysize(.@time))
  228. setarray .@time[0],$WOE_CONTROL[0],$WOE_CONTROL[1];
  229. mes "The War of Emperium is ^777777inactive^000000.";
  230. if (.Size) {
  231. mes " ";
  232. mes "The next session will begin";
  233. mes "on ^0055FF"+.Days$[.@time[0]]+"^000000 at "+Add_Zero(.@time[1])+"^000000.";
  234. }
  235. }
  236. next;
  237. switch(select(""+((.CastleWarp || .Active[1])?" ~ Warp to castles...":"")+": ~ Check schedule...: ~ View castle owners...:"+((getgmlevel()<.GMAccess || !getgmlevel())?"":" ~ Manage sessions...")+": ~ ^777777Cancel^000000")) {
  238. case 1:
  239. if (.CastleWarp) set .@clr$,"^0055FF";
  240. set .@menu$,"";
  241. for(set .@i,0; .@i<6; set .@i,.@i+1) {
  242. if (.CastleWarp || .Active[1]&(1<<(.@i+1)))
  243. set .@menu$, .@menu$+" ~ "+((.Active[1]&(1<<(.@i+1)))?.@clr$:"^777777")+.Regions$[.@i]+" Castles^000000";
  244. set .@menu$, .@menu$+":";
  245. }
  246. set .@i, select(.@menu$)-1;
  247. set .@menu$,"";
  248. for(set .@j,.@i*5; .@j<(.@i*5)+5; set .@j,.@j+1) {
  249. if (.CastleWarp || .Active[0]&(1<<.@j))
  250. set .@menu$, .@menu$+" ~ "+((.Active[0]&(1<<.@j))?.@clr$:"^777777")+getcastlename(.Castles$[.@j])+"^000000";
  251. set .@menu$, .@menu$+":";
  252. }
  253. set .@j, select(.@menu$)-1;
  254. warp .Map$[.@i],.MapX[(.@i*5)+.@j],.MapY[(.@i*5)+.@j];
  255. close;
  256. case 2:
  257. mes "[Schedule]";
  258. if (.Size) {
  259. freeloop(1);
  260. for(set .@i,0; .@i<.Size; set .@i,.@i+4) {
  261. mes "> ^FF0000"+.Days$[$WOE_CONTROL[.@i]]+" ("+Add_Zero($WOE_CONTROL[.@i+1])+"-"+Add_Zero($WOE_CONTROL[.@i+2])+")^000000";
  262. for(set .@j,0; .@j<30; set .@j,.@j+1)
  263. if ($WOE_CONTROL[.@i+3]&(1<<.@j)) mes " ~ "+getcastlename(.Castles$[.@j])+" ^777777("+.Castles$[.@j]+")^000000";
  264. if (.@i+4 < .Size) mes " ";
  265. }
  266. freeloop(0);
  267. } else
  268. mes "No times are configured.";
  269. next;
  270. break;
  271. case 3:
  272. mes "[Castle Ownership]";
  273. for(set .@i,0; .@i<6; set .@i,.@i+1) {
  274. set .@k, .@i*5;
  275. mes "> ^FF0000"+.Regions$[.@i]+"^000000";
  276. for(set .@j,.@k; .@j<(.@k+5); set .@j,.@j+1) {
  277. set .@t, getcastledata(.Castles$[.@j],1);
  278. mes " ~ "+getcastlename(.Castles$[.@j])+": "+((.@t)?"^0055FF"+getguildname(.@t):"^777777unoccupied")+"^000000";
  279. }
  280. if (.@i < 5) mes " ";
  281. }
  282. next;
  283. break;
  284. case 4:
  285. while(1) {
  286. mes "[Session Manager]";
  287. mes "There are ^0055FF"+(.Size/4)+" session(s)^000000 configured.";
  288. mes "What would you like to do?";
  289. next;
  290. switch(select(" ~ Add a session...: ~ Delete a session...: ~ Reload settings...:"+((agitcheck() || agitcheck2())?" ~ End WOE session...":"")+": ~ ^777777Go back^000000")) {
  291. case 1:
  292. mes "[New Session]";
  293. if (.Size > 127) {
  294. mes "You have already reached the maximum of 32 sessions.";
  295. next;
  296. break;
  297. }
  298. mes "Select a day.";
  299. next;
  300. set .@day, select(" ~ "+implode(.Days$,": ~ "))-1;
  301. mes "[New Session]";
  302. mes "Select a start time for ^0055FF"+.Days$[.@day]+"^000000.";
  303. next;
  304. set .@menu$,"";
  305. for(set .@i,0; .@i<46; set .@i,.@i+1) {
  306. set .@postfix$, ( (.@i % 2 == 0 ) ? "00" : "30" );
  307. set .@menu$, .@menu$+" ~ "+Add_Zero(.@i, .@postfix$, 1)+":";
  308. set .@time$[ .@i ], ( ( .@i < 10 ) ? "0" : "" ) + .@i + .@postfix$;
  309. }
  310. set .@start, .@time$[ ( select(.@menu$)-1 ) ];
  311. mes "[New Session]";
  312. mes "Select an end time for ^0055FF"+.Days$[.@day]+"^000000.";
  313. next;
  314. set .@menu$,"";
  315. for(set .@i,.@start+1; .@i<24; set.@i,.@i+1) {
  316. set .@postfix$, ( (.@i % 2 == 0 ) ? "00" : "30" );
  317. set .@menu$, .@menu$+" ~ "+Add_Zero(.@i, .@postfix$, 1)+":";
  318. set .@time$[ .@i ], ( ( .@i < 10 ) ? "0" : "" ) + .@i + .@postfix$;
  319. }
  320. set .@end, .@time$[ ( select(.@menu$) + .@start ) ];
  321. for(set .@i,0; .@i<.Size; set .@i,.@i+4)
  322. if (.@day == $WOE_CONTROL[.@i] &&
  323. ((.@start >= $WOE_CONTROL[.@i+1] && .@start < $WOE_CONTROL[.@i+2]) ||
  324. (.@end > $WOE_CONTROL[.@i+1] && .@end <= $WOE_CONTROL[.@i+2]) ||
  325. (.@start <= $WOE_CONTROL[.@i+1] && .@end >= $WOE_CONTROL[.@i+2]))) {
  326. mes "[New Session]";
  327. mes "The chosen times overlap with an existing session.";
  328. next;
  329. set .@d,1;
  330. break;
  331. }
  332. if (.@d) { set .@d,0; break; }
  333. set .@castle,0;
  334. while(1) {
  335. mes "[New Session]";
  336. mes "^0055FF"+.Days$[.@day]+" ("+Add_Zero(.@start)+"-"+Add_Zero(.@end)+")^000000";
  337. mes " > Castles:";
  338. if (!.@castle)
  339. mes " ~ ^777777(none selected)^000000";
  340. else for(set .@i,0; .@i<30; set .@i,.@i+1)
  341. if (.@castle&(1<<.@i)) mes " ~ "+getcastlename(.Castles$[.@i])+" ("+.Castles$[.@i]+")";
  342. next;
  343. set .@menu$,((.@castle)?" ~ ^FF0000Finished...^000000":"")+":";
  344. for(set .@i,0; .@i<30; set .@i,.@i+1)
  345. set .@menu$, .@menu$+" ~ "+((.@castle&(1<<.@i))?"^0055FF":"")+getcastlename(.Castles$[.@i])+" ("+.Castles$[.@i]+")^000000:";
  346. set .@i, select(.@menu$)-1;
  347. if (.@i)
  348. set .@castle, .@castle^(1<<(.@i-1));
  349. else {
  350. mes "[New Session]";
  351. mes "Are you sure?";
  352. next;
  353. switch(select(" ~ ^0055FFAdd session...^000000: ~ Continue selecting castles...: ~ ^777777Cancel^000000")) {
  354. case 1:
  355. for(set .@i,0; .@i<.Size; set .@i,.@i+4)
  356. if ((.@day == $WOE_CONTROL[.@i] && .@end <= $WOE_CONTROL[.@i+1]) || .@day < $WOE_CONTROL[.@i]) {
  357. set .@d,1;
  358. break;
  359. }
  360. if (!.@d) { set .@d,1; set .@i,.Size; }
  361. copyarray $WOE_CONTROL[.@i+4], $WOE_CONTROL[.@i], .Size-.@i;
  362. setarray $WOE_CONTROL[.@i], .@day, .@start, .@end, .@castle;
  363. set .Size, getarraysize($WOE_CONTROL);
  364. case 3:
  365. mes "[New Session]";
  366. mes ((.@d)?"Session added.":"Cancelled.");
  367. next;
  368. set .@d,1;
  369. case 2:
  370. break;
  371. }
  372. if (.@d) { set .@d,0; break; }
  373. }
  374. }
  375. break;
  376. case 2:
  377. mes "[Remove Session]";
  378. if (!.Size) {
  379. mes "There are no sessions configured.";
  380. next;
  381. break;
  382. }
  383. mes "Select a session to remove.";
  384. next;
  385. set .@menu$,"";
  386. for(set .@i,0; .@i<.Size; set .@i,.@i+4)
  387. set .@menu$, .@menu$+" ~ "+.Days$[$WOE_CONTROL[.@i]]+" ("+Add_Zero($WOE_CONTROL[.@i+1],1)+"-"+Add_Zero($WOE_CONTROL[.@i+2],1)+"):";
  388. set .@menu$, .@menu$+" ~ ^777777Cancel^000000";
  389. set .@i, select(.@menu$)-1;
  390. if (.@i == (.Size/4)) break;
  391. mes "[Remove Session]";
  392. mes "Delete ^0055FF"+.Days$[$WOE_CONTROL[.@i*4]]+"'s^000000 session?";
  393. mes "This action cannot be undone.";
  394. next;
  395. set .@j, select(" ~ ^FF0000Delete session...^000000: ~ ^777777Cancel^000000");
  396. mes "[Remove Session]";
  397. if (.@j == 2)
  398. mes "Cancelled.";
  399. else {
  400. deletearray $WOE_CONTROL[.@i*4],4;
  401. set .Size, getarraysize($WOE_CONTROL);
  402. mes "Session deleted.";
  403. }
  404. next;
  405. break;
  406. case 3:
  407. mes "[Reload Settings]";
  408. mes "This will trigger all events related to new session configurations, if any.";
  409. if (agitcheck() || agitcheck2()) {
  410. mes " ";
  411. mes "Be aware that this will disrupt the current WOE session.";
  412. }
  413. next;
  414. set .@i, select(" ~ ^0055FFReload settings...^000000: ~ ^777777Cancel^000000");
  415. mes "[Reload Settings]";
  416. if (.@i == 2) mes "Cancelled.";
  417. else {
  418. set .Init,1;
  419. donpcevent "WOE_CONTROL::OnMinute00";
  420. mes "Variables have been re-initialized.";
  421. }
  422. next;
  423. break;
  424. case 4:
  425. mes "[Force Agit End]";
  426. if (!agitcheck() && !agitcheck2()) {
  427. mes "WOE has already ended.";
  428. next;
  429. break;
  430. }
  431. mes "This command will safely execute all AgitEnd events.";
  432. mes " ";
  433. mes "Kill the current WOE session?";
  434. next;
  435. set .@i, select(" ~ ^FF0000End session...^000000:"+((.Options&1)?" ~ ^FF0000End session without rewards...^000000":"")+": ~ ^777777Cancel^000000");
  436. mes "[Force Agit End]";
  437. if (.@i == 3)
  438. mes "Cancelled.";
  439. else {
  440. set .ForceEnd, .@i;
  441. donpcevent "WOE_CONTROL::OnWOEEnd";
  442. mes "WOE session terminated.";
  443. }
  444. next;
  445. break;
  446. case 5:
  447. set .@d,1; break;
  448. }
  449. if (.@d) { set .@d,0; break; }
  450. } break;
  451. case 5:
  452. close;
  453. } }
  454. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement