| Blockland Forums > General Discussion |
| The "Hi, PersonsName" Add-On |
| << < (4/16) > >> |
| Bushido:
i hate autogreeters with a passion if you really care that someone just joined you'll greet them personally instead of having a bot that treats everyone with the same mechanical respect and friendliness it's like not saying anything at all but spams the chat, too |
| Chrono:
I permanently ban anyone who uses a chat bot. This includes but is not limited to autogreeting. |
| Allstarland:
--- Quote from: Truce on December 22, 2010, 06:19:11 PM ---I had made a similar one where it says something that would be surprising to see right when joining. --- Code: ---$JoinTaunts::Struct[0] = "yeah i agree %r, %u is such %i!"; $JoinTaunts::Struct[1] = "%r, are you %i like %u is?"; $JoinTaunts::Struct[2] = "%u is %i? LOL so true..."; $JoinTaunts::Insult[0] = "a jerk"; $JoinTaunts::Insult[1] = "a loser"; $JoinTaunts::Insult[2] = "a failure"; $JoinTaunts::Insult[3] = "the most idiotic scum"; $JoinTaunts::Insult[4] = "the biggest douchebag"; --- End code --- In the structures, %r is random user (excluding yourself and who just joined), %u is the person who just joined, and %i is a random insult. I've only used it once (since the concept of spamming chat everytime someone joins is pretty stupid), but it did get a lot of funny reactions. --- End quote --- I was in an server and it dosen't work if someone joines. |
| MegaScientifical:
--- Quote from: Truce on December 22, 2010, 06:19:11 PM ---I had made a similar one where it says something that would be surprising to see right when joining. -codesnip- In the structures, %r is random user (excluding yourself and who just joined), %u is the person who just joined, and %i is a random insult. I've only used it once (since the concept of spamming chat everytime someone joins is pretty stupid), but it did get a lot of funny reactions. --- End quote --- I actually like your way so much better... --- Code: ---function composeInsult(%n) { %struct = $JoinTaunts::Struct[getRandom(2)]; %struct1 = strReplace(%struct, "%r", randPlay(%n)); %struct2 = strReplace(%struct1, "%u", %n); return strReplace(%struct2, "%i", $JoinTaunts::Insult[getRandom(4)]); } function randPlay(%n) { %row = NPL_List.getRowtText(NPL_List.rowCount()); if(getField(%row, 4) !$= "You" && (getField(%row, 1) = %name) !$= %n) return %name; randPlay(%n); } --- End code --- That's sort of how the code goes? I think I did it REALLY badly, but meh I tried. |
| Chrono:
You did do it really badly. In fact, that would crash the game. |
| Navigation |
| Message Index |
| Next page |
| Previous page |