[Tutorial][LUA] Basic Shop |
0 | ||
Hello and welcome to my first tutorial! I'll present how to create basic shop with likely skills (meep, shaman). So let's go! So our first step will be define variables - admin (he will have 888888 coins) and player (he will have 0 coins). Code Lua 1 2 admin = "Mawcn" -- put nick of admin here OK, next step is creating shop area, set up cash for players and creating cash area. Code Lua 1 2 3 4 5 6 7 8 9 10 11 12 13 14 function eventNewPlayer(pN) So, now let's do adding cash for all players every 500 ms Code Lua 1 2 3 4 5 6 function eventLoop(eT, rT) And this is our last step - create shop interface Code Lua 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 function eventTextAreaCallback(id, pN, req) I hope guys you will like this tutorial and you will understand something... (bad english + my first tutorial) PS: For editing text areas you can use online TextArea editor: http://laagtfm.esy.es/textarea/ |
Zoomapro « Citoyen » 1484382540000
| 0 | ||
Nice <3 thx u |
Zajaci « Censeur » 1484404140000
| 0 | ||
Good luck! :) |
Wentasre « Censeur » 1484408340000
| 0 | ||
nice guide tried it and worked really well |
Ajnoobz « Citoyen » 1486377720000
| 0 | ||
Nice! Works well. Also, I now know more about lua programming! This tutorial is actually better than I expected! I didn't know too much about programming and now i know more :) this is good make more Dernière modification le 1493741340000 |
Ajnoobz 1490876820000
| | ||
[Modéré par Batt_mellamy, raison : Double post. Please edit your original post next time by clicking on your avatar/ username and pressing "Edit".] |
Muutluerkek « Citoyen » 1490884200000
| 0 | ||
http://klasiktestdomain.tk/tedit/ old version textarea editor |
Laagaadoo « Citoyen » 1490900220000
| 0 | ||
Muutluerkek a dit : you can still access it in http://laagtfm.esy.es/textarea/flash/ too. nice tutorial |
Haytam « Citoyen » 1490973420000
| 0 | ||
that great thanks a lot how i can create i new event like Shaman or meep i want add speed and gravity and teleport some thing like that can you please help me about that |
Loghorizonph « Citoyen » 1491792720000
| 0 | ||
how to Add snowball cannon in shop ? |
Borntolol « Citoyen » 1496279760000
| 0 | ||
Sorry to bother but would u know how to make a coin multiplier>? |