[e-Book] Lua Programming Language |
Benbirkralm « Citoyen » 1390670580000
| 0 | ||
[e-Book] Lua Programming Language Hello Friends! I am Benbirkralm, Today I will show my new e-Book to you. In this book; ₪ Make a Simple Game, ₪ Create a Button, ₪ Use Handler, ₪ [DELETED for faults](SPECIAL)Make a Database ... Part 1 Make a Simple Game We settle down to Lua. We know few codes. But we don't know hot to use this... Let's make simple gzme Example, if the player get cheese, his/her mouse will be die. a dit : Now, Run this code in /lua. If we get cheese, we will die.If anyone gets cheese, he/she will die. Now, print a code to show;"This game is working." a dit : We can't use this code in tribehouses... So you can use 'print'. But only activator can see 'print'. a dit : We can use these text in same time. Now, Let's create help command. First, show 'We have help command...' to everyone. a dit : Now, create a command : a dit : This is Okay, too. Our game is close on completed. We haven't got only 'maps' parameter and function for newPlayer. Now, Let's make maps table. Making a 'maps' Table. After connects with 'math.random' a dit : And, function of newPlayer... a dit : Part Completed... Part 2 Making a Button We will use textArea to make button. ui.zaddTextArea(1,"Thix is my button!",nil,80,80,80,80)[/quote] Now, Let's Update this. Example, Ask a question. And answer it. a dit : Part 3 Making Handler We making game. Now we must add admins/autocrats. We must add 'admins' code in first area.... a dit : Now we must add code. a dit : Now, add a any code. a dit : We are creating a new function with this handler/code a dit : Using with !map 1 2 3 4 5 6 . |
Benbirkralm « Citoyen » 1390677840000
| 0 | ||
Your Questions and Answers : |
Ulllyyyy « Citoyen » 1390678500000
| 0 | ||
Benbirkralm a dit : Just asking do you know lua |
Benbirkralm « Citoyen » 1390678620000
| 0 | ||
Ulllyyyy a dit : Yes, I Know. |
Safwanrockz « Censeur » 1390679520000
| 0 | ||
Sorry but your tutorial has got some grammar and spelling mistakes and isn't very descriptive. Even though, good job. |
Benbirkralm « Citoyen » 1390680060000
| 0 | ||
Safwanrockz a dit : Thanks, I Know it has some mistakes. I Will fix this in e-Book2. |
Mikuhl « Citoyen » 1390777680000
| 0 | ||
Some of your code looks quite like Moepls framework code. Benbirkralm a dit : Moepl a dit : - Benbirkralm a dit : Moepl a dit : Its not a good idea to copy. |
0 | ||
oh, don't be too harsh :S Those are pretty standard functions that one can often find in lua tutorials in similiar if not in the exact same forms. Personally, I learned lua by going through the official lua documentation and actually copied the unpack function as described there http://www.lua.org/pil/5.1.html (merely changed it a bit to better suit my needs) Anyway, I uploaded my code so people can use it (and copy it). There are actually a couple of things in there from the official docu or from lua-users.org. |
Mikuhl « Citoyen » 1390783080000
| 0 | ||
Moepl a dit : Still isnt the best idea to directly cut and paste and just change letters and call it your own. :/ Especially if you dont understand what your copying, judging by "now you must add code." It still looks like he did most of it by himself so atleast there is that. |
0 | ||
Yes, I agree with you. This guide could use some more ~words~. Right now it feels a bit like another function library/snippets thread. Especially part3 which I don't think is helpful for a beginner. note: split, trim, unpack, execption handlers, etc are functions that are so basic that they are so often in tutorials. I don't think that anyone can claim ownership of it :) |
Benbirkralm « Citoyen » 1390835700000
| 0 | ||
Jaackster a dit : I don't make copy. It is simple codes? |
Evilsantah « Citoyen » 1390836600000
| 0 | ||
Also the command handler is written by Makinit, atleast add the appropriate credits for everything you got elsewhere :) Nevertheless, nice effort. E: Benbirkralm a dit : I don't see any player.is(table) defined, nor string:is(table), both not fitting the code and your desired result either way. You can just use Evilsantah a dit : ~ |
Benbirkralm « Citoyen » 1390837320000
| 0 | ||
Evilsantah a dit : a dit : ? |
Benbirkralm « Citoyen » 1391180880000
| 0 | ||
Updated! |
Benbirkralm « Citoyen » 1393012320000
| 0 | ||
Updated and fixed some things. |
Rebornaddict « Citoyen » 1393073100000
| 0 | ||
OMG THANK YOU SO MUCH! |
Benbirkralm « Citoyen » 1393153140000
| 0 | ||
Rebornaddict a dit : You're Welcome :) |
Rebornaddict « Citoyen » 1393158780000
| 0 | ||
what is (isim) for ? |
Benbirkralm « Citoyen » 1393161060000
| 0 | ||
Rebornaddict a dit : isim=name a dit : |
Facumice « Citoyen » 1393238880000
| 0 | ||
Jaackster a dit : Mostly stop judging others.I would want to see your work Jaack.I think this is good lesson for you dont judge others if your not better then them. |