Jump to content

Own Scripts


Recommended Posts

Posted

Can I write and compile custom scripts like I do with Ascent? If so where do the dll files go? Like Ascent is /core/script_bin/ Also does Mangos support LUA? If so, same thing where do you put your LUA files. Like example /core/scripts. Lastly, is there anything like MoonScripts for Mangos?

Posted

mangos doesn't support LUA.

you can add custom scripts to scriptdev2 or ACID.

for ACID scripts are stored in the database (sd2 - eventai_scripts table, scriptname (creature_template) for ACID scripted mobs is mob_eventai.

Scriptdev2 scripts are written in C++ and are compiled with the complete SD2 pack into one dll.

Posted

You could write the scripts in any language as long as you can create a DLL out of it that can be loaded. There was a project that used LUA in the past so it can be done but it was discontinued.

Posted

The DLL must be written in C / C++ and expose the functions / methods found in ScriptCalls.h. The DLL itself can be an interpreter or etc to run LUA (MangoScript did this).

Posted

The biggest problem is, that LUA does not bring any really big advantage over C++ scripting, and it is really slow.

To seriously improve scripting while keeping the speed we'd need some targetted language I am afraid.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use