We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clear;
end;
set <variable>,<expression>{,<char_id>};
set(<variable>,<expression>{,<char id>})
setd "<variable name>",<value>{,<char_id>};
getd("<variable name>")
getvariableofnpc(<variable_name>,"<npc name>")
getvariableofnpc(getd,"<npc name>")
getinstancevar(<variable>,<instance id>);
setinstancevar(<variable>,<value>,<instance id>);
set getvariableofnpc(getd,"<npc name>")
getvar <variable>,<char_id>;
goto <label>;
callfunc "<function>"{,<argument>,...<argument>};
callfunc("<function>"{,<argument>,...<argument>})
callsub <label>{,<argument>,...<argument>};
callsub(<label>{,<argument>,...<argument>})
getarg(<index>{,<default_value>})
getargcount()
return {<value>};
function <function name>;
<function name>{(<argument>,...<argument>)};
function <function name> {
is_function("<function name>")
if (<condition>) <statement>;
jump_zero (<condition>),<label>;
switch (expression);
while (<condition>) <statement>;
for (<variable initialization>; <condition>; <variable update>) <statement>;
do { <statement>; } while (<condition>);
freeloop({<toggle>})
setarray <array name>[<first value>],<value>{,<value>...<value>};
cleararray <array name>[<first value to alter>],<value>,<number of values to set>;
copyarray <destination array>[<first value>],<source array>[<first value>],<amount of data to copy>;
deletearray <array name>[<first value>]{,<how much to delete>};
inarray <array name>,<value>;
countinarray <array name>{[<start index>]},<array name>{[<start index>]};
getarraysize(<array name>)
getelementofarray(<array name>,<index>)
pow(<number>,<power>)
sqrt(<number>)
min(<number or array>{,<number or array>,...})
minimum(<number or array>{,<number or array>,...})
max(<number or array>{,<number or array>,...})
maximum(<number or array>{,<number or array>,...})
round(<number>,<precision>);
ceil(<number>,<precision>);
floor(<number>,<precision>);
md5("<string>")
atoi("<string>")
axtoi("<string>")
strtol("<string>", base)
compare("<string>","<substring>")
strcmp("<string>","<string>")
getstrlen("<string>")
charisalpha("<string>",<position>)
charat(<string>,<index>)
setchar(<string>,<char>,<index>)
insertchar(<string>,<char>,<index>)
delchar(<string>,<index>)
strtoupper(<string>)
strtolower(<string>)
charisupper(<string>,<index>)
charislower(<string>,<index>)
substr(<string>,<start_index>,<end_index>)
explode(<dest_array>,<string>,<delimiter>)
implode(<string_array>{,<glue>})
sprintf(<format>[,param[,param[,...]]])
sscanf(<string>,<format>[,param[,param[,...]]])
strpos(<haystack>,<needle>{,<offset>})
replacestr(<input>, <search>, <replace>{, <usecase>{, <count>}})
countstr(<input>, <search>{, <usecase>})
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bases
Compiler
VM
basic Features
advanced features
Native function (rathena "commands") - implemented in the VM
clear;
end;
set <variable>,<expression>{,<char_id>};
set(<variable>,<expression>{,<char id>})
setd "<variable name>",<value>{,<char_id>};
getd("<variable name>")
getvariableofnpc(<variable_name>,"<npc name>")
getvariableofnpc(getd,"<npc name>")
-> wont be implementedgetinstancevar(<variable>,<instance id>);
setinstancevar(<variable>,<value>,<instance id>);
set getvariableofnpc(getd,"<npc name>")
getvar <variable>,<char_id>;
goto <label>;
callfunc "<function>"{,<argument>,...<argument>};
callfunc("<function>"{,<argument>,...<argument>})
callsub <label>{,<argument>,...<argument>};
callsub(<label>{,<argument>,...<argument>})
getarg(<index>{,<default_value>})
getargcount()
return {<value>};
function <function name>;
<function name>{(<argument>,...<argument>)};
function <function name> {
is_function("<function name>")
if (<condition>) <statement>;
jump_zero (<condition>),<label>;
switch (expression);
while (<condition>) <statement>;
for (<variable initialization>; <condition>; <variable update>) <statement>;
do { <statement>; } while (<condition>);
freeloop({<toggle>})
setarray <array name>[<first value>],<value>{,<value>...<value>};
cleararray <array name>[<first value to alter>],<value>,<number of values to set>;
copyarray <destination array>[<first value>],<source array>[<first value>],<amount of data to copy>;
deletearray <array name>[<first value>]{,<how much to delete>};
inarray <array name>,<value>;
countinarray <array name>{[<start index>]},<array name>{[<start index>]};
getarraysize(<array name>)
getelementofarray(<array name>,<index>)
Standard library
pow(<number>,<power>)
sqrt(<number>)
min(<number or array>{,<number or array>,...})
minimum(<number or array>{,<number or array>,...})
max(<number or array>{,<number or array>,...})
maximum(<number or array>{,<number or array>,...})
round(<number>,<precision>);
ceil(<number>,<precision>);
floor(<number>,<precision>);
md5("<string>")
atoi("<string>")
axtoi("<string>")
strtol("<string>", base)
compare("<string>","<substring>")
strcmp("<string>","<string>")
getstrlen("<string>")
charisalpha("<string>",<position>)
charat(<string>,<index>)
setchar(<string>,<char>,<index>)
insertchar(<string>,<char>,<index>)
delchar(<string>,<index>)
strtoupper(<string>)
strtolower(<string>)
charisupper(<string>,<index>)
charislower(<string>,<index>)
substr(<string>,<start_index>,<end_index>)
explode(<dest_array>,<string>,<delimiter>)
implode(<string_array>{,<glue>})
-> to be implemented by serversprintf(<format>[,param[,param[,...]]])
sscanf(<string>,<format>[,param[,param[,...]]])
strpos(<haystack>,<needle>{,<offset>})
replacestr(<input>, <search>, <replace>{, <usecase>{, <count>}})
countstr(<input>, <search>{, <usecase>})
Code optimization
The text was updated successfully, but these errors were encountered: