Development thread: http://otland.net/f163/enhanced-npc-system-141709/
As promised, here’s the alpha version. THIS IS NOT READY FOR A PRODUCTION SERVER. I’m not exactly done with the documentation (loads of orthography horrors, english = not my mother language) but for advanced users I think its documented enough. I'll be out for a month or so but in my spare time I’ll keep working on it. Expect bugs and maybe even crashes, not every part of the code is tested.
That's it, remember this is only a LUA library and nothing more, no source changes, no crazy stuff.
PS: I know the documentation is kind of harsh now, but it will be soon improved and easily viewed in a HTML site.
PS2: Remember to report any bugs if you are supporting this, I won't be around here for a few weeks so, patience.
As promised, here’s the alpha version. THIS IS NOT READY FOR A PRODUCTION SERVER. I’m not exactly done with the documentation (loads of orthography horrors, english = not my mother language) but for advanced users I think its documented enough. I'll be out for a month or so but in my spare time I’ll keep working on it. Expect bugs and maybe even crashes, not every part of the code is tested.
Code:
How to use
1. Create a new folder 'mckazinpc' in '\data\npc\lib\'
2. Download [ATTACH]10694[/ATTACH] extract and copy all the files to the new folder
3. Read the documentation of the files (each file has its own documentation, soon it will be in fancy html)
4. For now, you will have to put this line at the top of every npc Lua file that uses this library:
require(getDataDir() .. 'npc/lib/mckazinpc/ai')
5. See how your server crashes when you haven't even opened it
6. Profit
That's it, remember this is only a LUA library and nothing more, no source changes, no crazy stuff.
PS: I know the documentation is kind of harsh now, but it will be soon improved and easily viewed in a HTML site.
PS2: Remember to report any bugs if you are supporting this, I won't be around here for a few weeks so, patience.
Attachments
-
AI.rar25.3 KB · Views: 60 · VirusTotal
Last edited: