Thread: LUA vs PERL
View Single Post
  #5  
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