LUA vs PERL
Since LUA is now functional, I have a few questions. Are all of the original functions for PERL active in LUA now? If I am creating a custom quest would there be a compelling reason to use LUA vs PERL? Is LUA faster, or is it just aesthetical? I know people complain about PERL readability.
|
It's Lua and Perl; all caps aren't necessary.
http://www.lua.org/about.html under "What's in a name?" and http://en.wikipedia.org/wiki/Perl under "Name". It might be petty to point this out, but it's simply annoying to see. As to the title of the thread, I prefer Perl for some tasks and Lua others. In my opinion, Perl is better for general administrative tasks and Lua for embedded scripting languages. |
Sorry for the caps. I have seen people upper case them, and sometimes lower case.
|
Lua is faster and has some advantages for more advanced users: such as direct manipulation of spawns and inventories (and soon packets) that aren't easy to do with Perl and encounter quest types which aren't supported at all in Perl. Also as of this moment you can only interact with the npc special ability system just added using legacy API functions on Perl; the new ones are only exported to Lua.
For most quests you can basically use whatever you would like though as they'll both do the job. |
For me the functions being different from perl slowed me down a bit, for example this quest in perl:
Code:
sub EVENT_WAYPOINT_ARRIVE { Correct Lua Version: Code:
function event_waypoint_arrive(e) |
Since the wikia is hosed, we have all the new Lua stuff on the built in github wiki.
https://github.com/EQEmu/Server/wiki/Lua-API |
Quote:
|
Quote:
Can the SpecialAbility stuff be used in perl? (guessing no) Don't have time to test it right now. Code:
Integer GetSpecialAbility(Integer ability); |
as noted in changelog:
Quote:
|
Quote:
|
I didn't add the functions for the new special attack stuff to Perl so it's limited to the old API atm. Someone could if they want I just didn't take the time to do it.
|
Quote:
I've even been making small changes here and there. If you can not log in for some reason then yes I agree there is a serious issue there but I would gladly take the time to input everything to the wiki. Thanks for responding sorvani, is it safe to assume its borked for new accounts? |
Quote:
http://i.imgur.com/qAp92VL.png |
I noticed that as well. Is this not something that can be addressed by the admin staff?
|
All times are GMT -4. The time now is 01:42 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.