Skip to content
New issue

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

Feature request: interpret revscripts for creatures and spells/runes #189

Open
lucasgrizante opened this issue Mar 22, 2022 · 5 comments
Open

Comments

@lucasgrizante
Copy link

Current code does not support revscript system.
As otservbr and canary distros are only supporting revscripts for creatures / spells / runes, without any xml, myaac is not able to load these things.

@cssiqueira
Copy link

I'm also using canary and I'm waiting for this change in myaac, this section is really missing, in addition to the error on the items page when looking for any. :-(

@slawkens
Copy link
Owner

So, here I'm sharing some progress.

I successfully loaded a monster made in Lua by PHP script.

image

Now just add loading of whole folder + saving into database.

@gesior
Copy link

gesior commented May 2, 2023

I would do it other way.
All revscript engines have access to all monsters, spells and items from Lua.
I should be easier to write talkaction or globalevent 'startup' that dumps data into some table in database, than read .lua files from PHP.
Lua files format may change over time. Also multiple monsters/spells may be placed in single file, which will be even harder to read in PHP.

@slawkens
Copy link
Owner

slawkens commented May 2, 2023

I would do it other way.
All revscript engines have access to all monsters, spells and items from Lua.
I should be easier to write talkaction or globalevent 'startup' that dumps data into some table in database, than read .lua files from PHP.
Lua files format may change over time. Also multiple monsters/spells may be placed in single file, which will be even harder to read in PHP.

Yeah that was the idea that @gpedro also had. But do we have really access to all that things from lua? If so, writing such a script should be straightforward.

@marcelofujii
Copy link

Yo masters ! Still having this issue. Just install MyAcc + Xampp + otserv and got same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants