PtokaX forum

Archive => Archived 4.0 boards => Help with Lua 4 scripts => Topic started by: $corpions_den on 15 April, 2005, 08:27:30

Title: how to start making scripts ?
Post by: $corpions_den on 15 April, 2005, 08:27:30
hi all ,
         i wish  that i could also start making scripts , like all pro's over here.  can some 1 especially the script make of this forum can help me . i dont know where to start, so plz someone can guide. so that i can also contribute my efforts to this site.


bye all

Scorpions_den
Title:
Post by: bastya_elvtars on 15 April, 2005, 10:47:39
Well, you have to understand something: PtokaX triggers functions, and works with variables. You can do things to variables. You might want to review scripts about it, and some info in the wiki (http://ptokaxwiki.no-ip.com/wikka.php?wakka=PtokaXAPI).
Title:
Post by: Stravides on 15 April, 2005, 12:05:59
1.  Decide on what you want your bot to do.  Break up into smaller parts (functions).
  a.  Must Have
  b.  Nice to have
  c.  For the sake of it

2.  Read up on tables, functions, files, variables and pattern searching

3.  Look at the HOW-to's that many people have created on both this site and Plop's site (http://www.plop.nl)

4.  Download as many scripts as possible - print em out and try to understand what they do...

The rest is up to you really :)  but help's never too far away.

Here's where I started --> Initial LUA 4 Bot (http://board.univ-angers.fr/thread.php?threadid=1064&boardid=4&page=1)

hope this was of help to you....

Regards
Strav
Title:
Post by: plop on 17 April, 2005, 22:53:21
buy or read the online (http://www.lua.org/pil/) version of the "programming in lua" book.

plop