cLuaState can now check function params.
Changed the cWorld::ScheduleTask() signature.

Now it takes the delay in ticks as an argument, and a cTask descendant as the task to run. Lua API has been updated similarly.