BeBot - An Anarchy Online and Age Of Conan chat automaton

Development => Coding and development discussion => Topic started by: Margon on November 08, 2009, 09:21:57 am

Title: sending a tell to another person
Post by: Margon on November 08, 2009, 09:21:57 am
i'am planig to write a little alliance-chat script (to a ragebot), but i need your help ..

when i use a command like !cmd the bot should tell another player an msg, not the person who typed !cmd.
how can i do this?

Title: Re: sending a tell to another person
Post by: Getrix on November 08, 2009, 06:34:34 pm
Code: [Select]
$name = "Nick";
$output = "Hello text";
$this -> bot -> send_output($name, $output, 'tell');

Title: Re: sending a tell to another person
Post by: Margon on November 08, 2009, 06:41:52 pm
thank you! :)

and what is the guildchat?

gc or guild?
Title: Re: sending a tell to another person
Post by: Alreadythere on November 08, 2009, 11:04:47 pm
$this->bot->send_gc() or $this->bot->send_output($name, $msg, "gc")
Title: Re: sending a tell to another person
Post by: Margon on November 08, 2009, 11:51:55 pm
thx :)
Title: Re: sending a tell to another person
Post by: Margon on November 09, 2009, 09:49:06 pm
ok the scripts works fine with bebots but there is a little problem with ragebots as the reciever-bots

my bebots is sends colored tells (default = yellow) , how can i let him send normal tells without a color?

ragebot can't handle colored msg  before the !cmd :(


edit:
i changed the Bot.php in Sources at line 464 zo
Code: [Select]
function send_tell($to, $msg, $low=0, $color=FALSE, $sizecheck=TRUE, $parsecolors=TRUE)
it there an other way to disable the colored tell-function for an single modul?
Title: Re: sending a tell to another person
Post by: Getrix on November 10, 2009, 09:30:53 am
$this->bot->send_tell($to, $msg, 0, false);
SimplePortal 2.3.7 © 2008-2024, SimplePortal