Open nmeylan opened 2 years ago
Hey! I dig in into the scripting system and so far that's what I understood:
if you want to contribute with the npc scripting, follow the instructions below
./native_functions_list.txt
and make sure about the return type settedconfig/npc/pre-re/custom/test.txt
with the new function to be codedserver/src/server/script/mod.rs
under the NativeMethodHandler
(line 180~)server/src/server/script/constant.rs
The goal is to make scripting compatible with rAthena and Hercules, so use their source and study how they implemented the function.
That's correct or I'm missing something?
yes that is it. We need to implement missing function as they are described in doc https://github.com/rathena/rathena/blob/master/doc/script_commands.txt
In order to add kafra script work, following native function should be implemented: