SRL Archive - OSR Help

Auto Responder Help


mrlewcc

2012-06-30 16:24:57

I have an auto responder but I was wondering if there was a way on how to respond to a specific individual with their name such as I already have.
if (inchat('Hello')) Then

etc. But I was wondering if there was a way of making it so on my bots response it says their name to make it look more legit.

Thanks :)

Joe

2012-06-30 16:57:45

That would be kind of botlike…
but it would involve strings.
I'm not very good with this kind of thing but i know that much…

mrlewcc

2012-06-30 17:12:49

From: Joe
That would be kind of botlike…
but it would involve strings.
I'm not very good with this kind of thing but i know that much…


I'm a beginner and have little knowledge about strings etc. but I think it would be helpful to be able to know this.

(s)okkr7

2012-06-30 17:35:35

program RandomSayings;

var
Ran: Integer;


function GetRandomFact: string;
// Author: kanah
// Special thanks to Euphemism for the idea
var
SearchString0, SearchString1, Text: string;
begin
SearchString0 := '<div id="facts">';
SearchString1 := '<br/><br/>';

Text := GetPage('http://randomfactgenerator.net/');

Text := Between(SearchString0,SearchString1,Text);

Trim(Text);
delete(Text,1,pos('>',Text));
Result := Text;
end;

begin
ClearDebug;

repeat
Inc(Ran);
Writeln(GetRandomFact);
Wait(500);
until (Ran = 5);

end.

This was posted by Abu on my thread earlier. Hope this helped :)

mrlewcc

2012-06-30 17:37:44

From: Sokkr7
program RandomSayings;

var
Ran: Integer;


function GetRandomFact: string;
// Author: kanah
// Special thanks to Euphemism for the idea
var
SearchString0, SearchString1, Text: string;
begin
SearchString0 := '<div id="facts">';
SearchString1 := '<br/><br/>';

Text := GetPage('http://randomfactgenerator.net/');

Text := Between(SearchString0,SearchString1,Text);

Trim(Text);
delete(Text,1,pos('>',Text));
Result := Text;
end;

begin
ClearDebug;

repeat
Inc(Ran);
Writeln(GetRandomFact);
Wait(500);
until (Ran = 5);

end.

This was posted by Abu on my thread earlier. Hope this helped :)


What part says the players username?

(s)okkr7

2012-06-30 17:40:31

Not quite sure you can do that with simbas includes.. :P but you could surely figure out a way to write it.

mrlewcc

2012-06-30 17:43:42

From: Sokkr7
Not quite sure you can do that with simbas includes.. :P but you could surely figure out a way to write it.


This makes no sense what you have put on my thread, you post a code which doesn't even remotely so you didn't even read my thread and you posted on it?

Also I'm sure you can do this in simba I have seen someones bot do this before..

Gu3st...

2012-06-30 17:48:48

From: mrlewcc
This makes no sense what you have put on my thread, you post a code which doesn't even remotely so you didn't even read my thread and you posted on it?

Also I'm sure you can do this in simba I have seen someones bot do this before..
This is really easy to do, check SRL's chat.simba.

For more advanced and smart auto-responders, check out Frement's or WT-Fakawi's autoresponders.

(s)okkr7

2012-06-30 17:55:29

From: mrlewcc
This makes no sense what you have put on my thread, you post a code which doesn't even remotely so you didn't even read my thread and you posted on it?

Also I'm sure you can do this in simba I have seen someones bot do this before..


Couldn't get the inb4rage in.. Sorry for trying to help, my bad.

mrlewcc

2012-06-30 18:21:56

From: Zyt3x
This is really easy to do, check SRL's chat.simba.

For more advanced and smart auto-responders, check out Frement's or WT-Fakawi's autoresponders.



Hey where can I find chat.simba ?
Thanks man.

Gu3st...

2012-07-01 11:57:56

From: mrlewcc
Hey where can I find chat.simba ?
Thanks man.
In the SRL include ;)