Development > Coding and development discussion
sending a tell to another person
Margon:
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?
Getrix:
--- Code: ---$name = "Nick";
$output = "Hello text";
$this -> bot -> send_output($name, $output, 'tell');
--- End code ---
Margon:
thank you! :)
and what is the guildchat?
gc or guild?
Alreadythere:
$this->bot->send_gc() or $this->bot->send_output($name, $msg, "gc")
Margon:
thx :)
Navigation
[0] Message Index
[#] Next page
Go to full version