OmarAcero
New member
Last edited by a moderator:
---------------------------------------
*freeloop(<toggle>
Toggling this to enabled (1) allows the script instance to bypass the
infinite loop protection, allowing your script to loop as much as it may
need. Disabling (0) may warn you if an infinite loop is detected if your
script is looping too many times.
Please note, once again, that this isn't a solution to all problems, and by
disabling this protection your Hercules server may become laggy or
unresponsive if the script it is used in is performing lenghty loop
operations.
Example:
freeloop(1); // enable script to loop freely
//Be aware with what you do here.
for (.@i = 0; .@i < .@bigloop; ++.@i) {
dothis;
// will sleep the script for 1ms when detect an infinity loop to
// let Hercules do what it need to do (socket, timer, process,
// etc.)
}
freeloop(0); // disable
for (.@i = 0; .@i < .@bigloop; ++.@i) {
dothis;
// throw an infinity loop error
}
---------------------------------------
yes, i dont understand//--------------------------------------------------------
// rAthena Script Configuration File
//--------------------------------------------------------
warn_func_mismatch_paramnum: yes
check_cmdcount: 655360
check_gotocount: 655360
// Default value of the 'min' argument of the script command 'input'.
// When the 'min' argument isn't provided, this value is used instead.
// Defaults to 0.
//input_min_value: 0
// Default value of the 'max' argument of the script command 'input'.
// When the 'max' argument isn't provided, this value is used instead.
// Defaults to INT_MAX.
//input_max_value: 2147483647
input_max_value: 10000000
// Specifies whether or not each built-in function's arguments are checked for
// correct type. When a function is given an argument different from what it
// expects, a warning is thrown before the function is ran anyway.
// Default: yes
warn_func_mismatch_argtypes: yes
import: conf/import/script_conf.txt

freeloop(1);
while (.@Cnt) {
set .@Cnt, query_sql("select mapname from bk6_maps limit " + .@Page + ",100",.@IgnoredMap$);
for (set .@x,0; .@x < .@Cnt; set .@x,.@x + 1) {
setd "$@_" + .@IgnoredMap$[.@x],1;
}
set .@Page, .@Page + 100;
}
freeloop(0);



We use essential cookies to make this site work, and optional cookies to enhance your experience.