Script Requests |
Shadiiii « Citoyen » 1560679980000
| 1 | ||
Second_life a dit : eventTextAreaCallback ( textAreaId, playerName, eventName ) |
Overjoy06 « Citoyen » 1561107120000
| 0 | ||
Second_life a dit : Code Lua 1 2 3 4 5 6 7 ui.addTextArea(0,"<a href='event:score'>I really don't understand anything in my life",name, 250,250,250,250,0x000000,0x000000,9,true) Should work if i have enough IQ |
Radioactium « Citoyen » 1561434780000
| 0 | ||
Hi it would be very helpful if I could have a voting script similar to #traitor, where 1. Any player in the room can vote for only one player other than themselves with the command !vote [playerName] or !v [playerName] 2. A player can change their vote with the same command 3. A player can cancel their vote by voting for the same player twice (!vote Rad#0000 will give Rad a vote, invoking !vote Rad#0000 again will take away a vote from Rad) 4. The tfm player scoreboard will keep track of how many votes each player has |
0 | ||
Radioactium a dit : Untested, but you should be able to also reset votes doing !reset 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 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 local admin = { ["Radioactium#0000"] = true } |
Second_life « Citoyen » 1561951320000
| 0 | ||
no i meant if you have 100 points and you clicked a textArea you get 1 point every 5 second |
Bandaidz « Censeur » 1563928980000
| 0 | ||
Edit: Nevermind, thanks! Dernière modification le 1564077540000 |
0 | ||
i want change player names how can i do that |
Boxofkrain « Censeur » 1564496460000
| 0 | ||
Lil a dit : You can't do it in Lua :/ |
Dramacorn « Consul » 1564737060000
| 0 | ||
who have the script with Halloween cheats? |
Overjoy06 « Citoyen » 1564819740000
| 0 | ||
Dramacorn a dit : What do you mean by 'Halloween cheats' like flying codes or something else? |
Dramacorn « Consul » 1564911480000
| 0 | ||
The Gamble from map bar.. Dernière modification le 1565438820000 |
Overforyou « Citoyen » 1567924320000
| 0 | ||
Dramacorn a dit : I didn't see any scripts similar to your request but you can make your own gambling system or request for one |
Cyanny « Citoyen » 1567981800000
| 0 | ||
Second_life a dit : I don't know if it's too late, but here you go: LUA room = {} ui.addTextArea(0, "<p align='center'><a href='event:oneplus'>Gimme an extra point!</a></p>", nil, 560, 380, 180, 100, nil, nil, 1, true) function eventTextAreaCallback(textArea, player, callback) if tfm.get.room.playerList[player].score >= 100 then room[player] = {givePoints=true,t=0} end end function eventLoop(ct, tr) for k,v in pairs(room) do if tfm.get.room.playerList[k].score < 100 then v = {givePoints=false,t=0} end if v.givePoints then v.t = v.t + 0.5 if v.t % 5 == 0 then tfm.exec.setPlayerScore(k, tfm.get.room.playerList[k].score + 1) end end end end I hope it works as intended. Dernière modification le 1567981980000 |
Overforyou 1569841800000
| | ||
[Modéré par Inkzooka, raison : Off-topic] |
0 | ||
a script that picks up on tribe house commands made by players, such as /np, /ch, /module x, etc and puts them into a log for the person loading the code Dernière modification le 1573253640000 |
Boxofkrain « Censeur » 1573289220000
| 0 | ||
Zyx a dit : Unfortunately, you can't get the name of player who used a built-in tribe command. |
Bursia « Citoyen » 1577527980000
| 0 | ||
Hello. How do I create a box with a red nail? |
Bolodefchoco « Sénateur » 1577538180000
| 0 | ||
Bursia a dit : You can't use nails with lua |
Aen_elle « Citoyen » 1582400100000
| 0 | ||
Hi, Don't find a specific theme, so: 1) Any way to show different information in textArea for different players? 2) Have a script that add shamanObject every click, and delete previous obj with that id: 1 2 tfm.exec.removeObject(id) 3) Any event for object, when it have some coordinates? (for example, box spawn at some area trigger an event) Does #module team have access to functions, except events that we can find here? or is it the maximum development opportunity for mere mortals usual players? |
Bolodefchoco « Sénateur » 1582412400000
| 1 | ||
Aen_elle a dit : Hello! 1) Textareas can be displayed to specific players by passing their nickname as third parameter, example: Code Lua 1 2 3 ui.addTextArea(0, "Text A", "Bolodefchoco#0000", 10, 10, nil, nil, 1, 1, 1, true) -- This textarea only appears to me 2) You need to attach the id to the player's nickname, use a table for that. Code Lua 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 local playerData = { } -- where the ids will be located 3) You need to use eventSummoningEnd (when an object has spawned by the shaman) Code Lua 1 2 3 4 5 eventSummoningEnd = function(playerName, objectType, x, y) You can use the same x and y logic in eventMouse or any other similar chunk About the functions, kinda yes. That thread is pretty outdated. Check The official one to get to know about all functions and events. The module team have them all and nothing more. :( |