collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: sending a tell to another person  (Read 2817 times)

0 Members and 1 Guest are viewing this topic.

Offline Margon

  • BeBot Apprentice
  • ***
  • Posts: 80
  • Karma: +0/-0
sending a tell to another person
« 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?


Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: sending a tell to another person
« Reply #1 on: November 08, 2009, 06:34:34 pm »
Code: [Select]
$name = "Nick";
$output = "Hello text";
$this -> bot -> send_output($name, $output, 'tell');

Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline Margon

  • BeBot Apprentice
  • ***
  • Posts: 80
  • Karma: +0/-0
Re: sending a tell to another person
« Reply #2 on: November 08, 2009, 06:41:52 pm »
thank you! :)

and what is the guildchat?

gc or guild?
« Last Edit: November 08, 2009, 07:55:20 pm by Margon »

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: sending a tell to another person
« Reply #3 on: November 08, 2009, 11:04:47 pm »
$this->bot->send_gc() or $this->bot->send_output($name, $msg, "gc")

Offline Margon

  • BeBot Apprentice
  • ***
  • Posts: 80
  • Karma: +0/-0
Re: sending a tell to another person
« Reply #4 on: November 08, 2009, 11:51:55 pm »
thx :)

Offline Margon

  • BeBot Apprentice
  • ***
  • Posts: 80
  • Karma: +0/-0
Re: sending a tell to another person
« Reply #5 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?
« Last Edit: November 10, 2009, 12:08:52 am by Margon »

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: sending a tell to another person
« Reply #6 on: November 10, 2009, 09:30:53 am »
$this->bot->send_tell($to, $msg, 0, false);
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 742
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal