Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home/iano/public_html/tpforums-vb5/forum/includes/class_core.php on line 5842

PHP Warning: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_BOTH - assumed 'MYSQL_BOTH' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 588

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 612

PHP Warning: Use of undefined constant archive_postsperpage - assumed 'archive_postsperpage' (this will throw an Error in a future version of PHP) in ..../archive/index.php on line 456
Why Most Bots Use Lua ? [Archive] - Forums

PDA

View Full Version : Why Most Bots Use Lua ?



Healian
04-21-2014, 07:04 PM
What is the point of using an external scripting language as Lua ?, why can't i just make a built in recorder to record routs ? is there any benefits of integrating Lua in the bot ?

ottizy
04-21-2014, 07:48 PM
Since you can basically do anything within the bot's limit at anytime.

Then of course, Lua is not the only scripting language that can get the job done. It just that Lua is the most used language in Tibia applications.

Healian
04-21-2014, 07:55 PM
Still didn't get the point of using a scripting language at all ?

jeremic
04-21-2014, 08:45 PM
Abstract your question, and you will see the answer immediately:


What is the point of using a programming language when we can just implement programs in the operating system?

The obvious answer is re-usability and extensibility of the underlying infrastructure. Scripting languages, much like compiled programming languages, enable us to customize and build upon an underlying infrastructure. For scripting languages like LUA that infrastructure may be a Tibia Bot, for general purpose programming languages the underlying infrastructure could be your operating system. By providing an interface to interact with your Bot, you are able to use a scripting language to create your own logic, which would otherwise have to be implemented in the Bot itself. This however requires the author to implement, recompile, and output a new version of the Bot just to have a single additional feature.

What would happen if we had to update our operating system every time we wanted a new program? That is not a nice world to live in :)