Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 07-12-2013, 03:11 PM
Vexyl
Hill Giant
 
Join Date: Oct 2009
Location: U.S.A.
Posts: 197
Default

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.
Reply With Quote
  #2  
Old 07-12-2013, 03:13 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

Sorry for the caps. I have seen people upper case them, and sometimes lower case.
Reply With Quote
  #3  
Old 07-13-2013, 12:45 AM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

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.
Reply With Quote
  #4  
Old 08-04-2013, 02:28 AM
rencro
Hill Giant
 
Join Date: Sep 2008
Location: So. California
Posts: 219
Default

For me the functions being different from perl slowed me down a bit, for example this quest in perl:

Code:
sub EVENT_WAYPOINT_ARRIVE {
	if ($wp==1) {
		quest::say("Im at the waypoint on perl.");
		quest::creategroundobject(30619, 809.6, -795.86, -4.23, 0, 30000);
		}
}
When converted to lua I had to use the underscores, which I didnt figure out until looking in the source, so a slight learning curve for me..
Correct Lua Version:
Code:
function event_waypoint_arrive(e)
	if(e.wp == 1) then
		e.self:Say("Im at the waypoint on lua.");
		eq.create_ground_object(30619, 809.6, -795.86, -4.23, 0, 30000);
	end
end
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 12:00 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3