Lua Snippets |
0 | ||
What is the 'bind Keyboard' script for? What does it do? |
![]() ![]() « Citoyen » 1381615560000
| 0 | ||
Swirlfire a dit : Just an example of binding the keyboard. |
0 | ||
Also I think you should make the for name,player in pairs(tfm.get.room.playerList) do system.bindMouse(name, true) end function eventMouse(name, x, y) tfm.exec.addShamanObject(tfm.enum.shamanObject.littleBox, x, y, 0, 0, 0, false) end snippet for Lua Team only because one of my tribemates found out how to launch it and when I came in the whole tribe house was flooded with anvils, little boxes, etc and I lagged too hard, I had to refresh my tab. :( He was abusing it.. |
![]() ![]() « Consul » 1381616880000
| 0 | ||
What are you suggesting to make available to just the Lua Team, mouse events or spawning shaman objects? Either way that'd limit what can be done, people can abuse it and make you lag in many different ways too. |
0 | ||
Pages a dit : A script for text area pages, just add content[3] and content[4] and so on to add pages. Note: This one is a lot different than the one Shamousey made ;* Edit: Made the script player specific. |
![]() ![]() « Citoyen » 1381620180000
| 0 | ||
Swirlfire a dit : Even withouth these function one could still find a way to lag your game or even make it crash. It takes one or two clicks to remove the /np rights so that they can't use Lua anymore in your tribe house. If it's not your tribe then have your tribe leader do that, if he refuses to do that then move to another tribe with better administration e.e Anyway, before lua existed people could still crash your game by using crash maps in tribe house |
![]() ![]() « Citoyen » 1381772520000
| 0 | ||
You need to replace da "player list " with player names? |
![]() « Citoyen » 1382096460000
| 0 | ||
Why it doesn't work for me. Everytime I enter the script nothing happens |
![]() ![]() « Censeur » 1382099940000
| 0 | ||
Gaaranicolo a dit : You either don't have 1000 cheese or have been banned for hacking before. |
![]() 1382118600000
| | ||
[Modéré par Takumisyn, raison : Spam] |
![]() ![]() « Citoyen » 1382123340000
| 0 | ||
Gaaranicolo a dit : Safwanrockz a dit : That or your script does nothing/is incorrect. |
![]() ![]() « Consul » 1382134860000
| 0 | ||
Add this to OP Default Text in Chatbox a dit : I just discovered |
![]() ![]() « Consul » 1382135520000
| 0 | ||
Bethdacat a dit : That's quite literally the most basic thing you can do with Lua. You should read some sort of Lua Tutorial or the manual before you even attempt at using it ingame, and if you do either you'd know about this. |
![]() ![]() « Citoyen » 1382373960000
| 0 | ||
How to set Oppacity for Ui.Text.Area? |
0 | ||
Basterfeild a dit : ui.addTextArea(Int id, String text, String targetPlayer, Int x, Int y, Int width, Int height, Int backgroundColor, Int borderColor, Float backgroundAlpha) Try: 0.8 for example. Basterfeild a dit : You're welcome. |
![]() ![]() « Citoyen » 1382374500000
| 0 | ||
Thanks :) |
![]() ![]() « Citoyen » 1382894040000
| 0 | ||
Thanks, my tribe mates and I are having an amazing time using the lua codes!! |
![]() ![]() « Citoyen » 1383069180000
| 0 | ||
Eternal snow: a dit : |
![]() ![]() « Citoyen » 1383071340000
| 0 | ||
Map rotation: a dit : ~~ |
![]() ![]() « Citoyen » 1383132540000
| 0 | ||
Fluffyshine a dit : Looping through the playerList twice per second will waste a lot of processor time. Using the death, win and respawn events is more efficient and more accurate: a dit : |