SRL Archive - SRL Archives

Commontalk; Responds to player chat (chat box)


ub3r |<1||3r*1337*

2006-05-28 11:38:49

This procedure will GREATLY reduce bans. It will talk back to other players if it finds the chat. works well with miners and woodcutters. I hope this is great use to your script

procedure commontalk;
begin
if ( findchattext('lvl?')) then ///finds the exact words of the chat
begin
typesend(inttostr(lvel)) ///responds by giving the level
break; ///ends the procedure
end else
if ( findchattext(Players[Currentplayer].Name)) then ///find your name in the chat
begin
typesend('What? I Dont want to talk') ///responds to the chat
break; ///ends the procedure
end else
if ( findchattext('o away')) then ///finds specified chat
begin
typesend('make me') ///responds
break; ///ends procedure
end else
if ( findchattext('reporting you')) then
begin
typesend('Im not autoing')
break;
end else
if ( findchattext('reported')) then
begin
typesend('that wasnt neccesary')
break;
end else
if ( findchattext(Players[Currentplayer].Name+' is autoing')) then
begin
typesend('im not autoing')
break;
end else
if ( findchattext('logs')) then
begin
typesend(inttostr(logs))
break;
end;
{to add more chats, just copy this and paste more( without these symbols) --->}
{if (findchattext('')) then
begin
typesend('')
break;
end;}
end;
you can edit it and somehow make it into an array. i was too lazy to put every single common chat :D

Ace

2006-05-28 13:09:48

Looks like it should work well (Didn't test). The chat text could be made a little more generalized. Other than that… Nice. :)

whitevans1

2006-05-28 19:52:44

Looks really nice.

Krazy_Meerkat

2006-05-28 21:23:27

Have you seen the potato responder? Use that instead to reply to multiple combinations of chat messages with multiple replies.

leader

2006-05-29 20:19:30

It doesn't work for me.

Keen

2006-05-29 20:46:45

From: Krazy_Meerkat
Have you seen the potato responder? Use that instead to reply to multiple combinations of chat messages with multiple replies.


Yup. Krazy hit the spot there.
Faka's responder is much more extensive. It rules.

leader

2006-05-29 21:16:20

I can't get the potatoe responder to work. So I wanted to use this instead.