| Blockland Forums > Modification Help |
| Toggling A Mod |
| << < (6/7) > >> |
| Headcrab Zombie:
--- Quote from: adam savage on September 10, 2011, 05:23:44 PM --- --- End quote --- There are several things wrong with that. Plus I believe this has already been solved. |
| Blocker Ctgr:
--- Code: ---package niceToGreetYou { function newChatHud_addLine(%text) { //Called when any line of text is added to the chat box Parent::newChatHud_addLine(%text); //This will turn the "Destiny connected." into "Destiny" %nameToGreet = strReplace(%text," connected.",""); //If the %nameToGreet variable is different to the original line greet them, //otherwise it's something else if(%nameToGreet !$= %text) { //Send a chat message saying hi to the player who joined (%nameToGreet) commandtoserver('messagesent',"Hey, " @ %nameToGreet); } } }; activatePackage(niceToGreetYou); --- End code --- Theres the real one. And it works |
| jes00:
I've now taken to making a less abusive auto greeter. |
| Amade:
--- Quote from: jes00 on September 12, 2011, 07:19:00 AM ---I've now taken to making a less abusive auto greeter. --- End quote --- it's not abusive, it's just annoying, and nothing you can do will make it not annoying. |
| jes00:
--- Quote from: Amade on September 12, 2011, 11:37:36 AM ---it's not abusive, --- End quote --- It is abusive because people can say "Connected." to trigger it. --- Quote from: Amade on September 12, 2011, 11:37:36 AM --- it's just annoying, and nothing you can do will make it not annoying. --- End quote --- I tried making it just say "Hi" when a player enters with a two and a half second delay and nobody even noticed it. |
| Navigation |
| Message Index |
| Next page |
| Previous page |