[Script] Chat Messages! |
![]() ![]() « Censeur » 1382814180000
| 0 | ||
A short story on what this is about! As many of you may know LUA chat messages were removed due to people creating fake messages and abusing them. Lately, I've been going in and out everywhere in every LUA script trying to make a new way to make chat messages with LUA coding. I was told it was impossible, etc, but I never gave up! I have found a way to put chat messages in a [url=]safe[/url] way where fake chat messages cannot be used, or would require a lot of effort to do. There is another way that only the LUA coder can see messages but this could be easily abused so that method will [url=]NOT[/url] be shared! ![]() ![]() The Script! a dit : Extra code providing extra space by 'Jordynl'! a dit : This is what it should look like ![]() Type !r [Text here] to type in the Mapcode box. and !t [Text here] to type in the Shaman area box! Make note that you have limmited space! You can change the "[•]" to whatever you wish, for example, I could put [Anonymous] because the person typing the text is anonymous or unknown to the people seeing the chat. ![]() I'm still trying to improve this chat based script, if you have any suggestions, please tell me about them here. |
0 | ||
You could also put a TextArea under the topbar. ;P Nice guide tho. |
![]() ![]() « Censeur » 1382814300000
| 0 | ||
Jordynl a dit : ya but that's no fun especially since you can't highlight it :P but thanks I've been working hard on it |
0 | ||
I have a tip though. a dit : Look at the "\n" ;) |
![]() ![]() « Censeur » 1382814840000
| 0 | ||
I got an error with that script [•] Init Error : transformice.lua:143: [string "transformice.lua"]:7: 'end' expected (to close 'function' at line 4) |
0 | ||
Mousechris a dit : Oops. Fixed. :D |
![]() ![]() « Censeur » 1382814960000
| 0 | ||
Jordynl a dit : Ok it works but all it did was give me "[•] testing/n " in the map code area |
0 | ||
Mousechris a dit : Meh. Replace "/n" with "\n" . Today I don't have my day ;; So this will be the code: a dit : Sorry. :( |
![]() ![]() « Censeur » 1382815320000
| 0 | ||
OH DAM THAT'S COOL adding to the OP thanks also rofl it's ok you made me laugh at least |
![]() ![]() « Censeur » 1382817240000
| 0 | ||
Nice guide though. I suggest adding different commands for different text colors. |
![]() ![]() « Citoyen » 1382925420000
| 0 | ||
I've made a script for replace tfm.exec.chatMessage here : Click here !! |
![]() ![]() « Citoyen » 1382926560000
| 0 | ||
Theleetcoder a dit : Script a dit : Fixed errors |
![]() ![]() « Citoyen » 1382927220000
| 0 | ||
Gamercp a dit : Thanks for translation. *-* |
![]() ![]() « Citoyen » 1405796880000
| 0 | ||
hi i have a little improve: you can now see [username] for i,command in ipairs({"t","r"}) do system. disableChatCommandDisplay(command,true) end function eventChatCommand(name,command) if command:sub(1,1)=="r" then tfm.exec.setUIMapName("<V> ["..name.."] <N>"..command:sub(3)) end if command:sub(1,1)=="t" then tfm.exec.setUIShamanName("<V> ["..name.."] <N>"..command:sub(3)) end end Mousechris a dit : Dernière modification le 1405797120000 |
![]() ![]() « Censeur » 1478829780000
| 0 | ||
Cute lua!~ |
![]() ![]() « Citoyen » 1594410600000
| 0 | ||
about "There is another way that only the LUA coder can see messages but this could be easily abused so that method will [url=]NOT[/url] be shared!" it's a public function, the people can't see anything though, you said it above, so what's the abuse? (print("Hello world") function) |