Author Topic: The "Hi, PersonsName" Add-On  (Read 10338 times)

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

I permanently ban anyone who uses a chat bot.

This includes but is not limited to autogreeting.

I had made a similar one where it says something that would be surprising to see right when joining.

Code: [Select]
$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";

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.

I was in an server and it dosen't work if someone joines.

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.

I actually like your way so much better...

Code: [Select]
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);
}

That's sort of how the code goes? I think I did it REALLY badly, but meh I tried.
« Last Edit: December 22, 2010, 07:10:51 PM by MegaScientifical »


You did do it really badly. In fact, that would crash the game.

You did do it really badly. In fact, that would crash the game.

Ya, I didn't feel like checking which field number was trust levels. I know names is 1 and IDs is 3, and I didn't remember if there was anything between that and the end. I was just hoping to squeeze his code out of him with my quick stuff.
« Last Edit: December 22, 2010, 07:11:35 PM by MegaScientifical »

Ya, I didn't feel like checking which field number was trust levels. I know names is 1 and IDs is 3, and I didn't remember if there was anything between that and the end. I was just hoping to squeeze his code out of him with my quick stuff.


um Mega

where to give in?

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
Agreed.

You did do it really badly. In fact, that would crash the game.

In fact, should I just use getFieldCount(%t);? In fact, I could use that to determine if IDs are being displayed.

I perma for auto-greeters.
However, the horribly scripted ones are fun to play with. You just type "connected." and it sends the auto-greeting.


I perma for auto-greeters.
However, the horribly scripted ones are fun to play with. You just type "connected." and it sends the auto-greeting.
It's even more fun if they have a public math function, because those use eval. :)

It's even more fun if they have a public math function, because those use eval. :)
Why was this eval so evil again?

Why was this eval so evil again?
It's only evil if you give players direct access to it.
Server sided eval will let any super admins type stuff into the servers console, which could potentially lead to the deletion of all your Blockland files.
Chatbot sided eval will let any player (or trusted players) type stuff into the player who is using the chatbot's console, which above.

Please guys if it is impossible to get Auto Greeter can't someone make an Code to make an self one +

to MegaScientifical's Code: where to add?