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

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

Author Topic: Send message to specific channel  (Read 5181 times)

0 Members and 1 Guest are viewing this topic.

Offline kaeus

  • BeBot User
  • **
  • Posts: 20
  • Karma: +0/-0
Send message to specific channel
« on: July 15, 2008, 03:25:55 pm »
I never played AO and so I'm relatively new to Bebot.  Currently, my guild loves the features and I'm looking to expand certain things.

ATM, I'm making a /recruit command that someone with proper privileges can do to send an OOC recruitment message.  Now I know there is a send to pgroup, but I have no idea how pgroups work (mainly because there dont seem to be the same channel structure as in AO I guess)

Could anyone provide an example on how to send a message to the OOC channel if possible?

Offline Kieba

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: Send message to specific channel
« Reply #1 on: July 15, 2008, 04:16:13 pm »
pgroup is the guestchannel of a guild bot or the privat chat group of a raidbot.

like a tell "/tell name text" u can also write to a certain chat channel: "/channel text" - so u can implement such a feature clickable in a textblob, for example:

<a href='chatcmd:///channel text'>::click for message in ooc::</a>

hope this helps.

Offline Kieba

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: Send message to specific channel
« Reply #2 on: July 15, 2008, 04:17:11 pm »
*args* sorry, dont mind thats an AoC bot question... i m only in AO :-p

Offline kelmino

  • BeBot User
  • **
  • Posts: 50
  • Karma: +0/-0
Re: Send message to specific channel
« Reply #3 on: July 15, 2008, 11:40:53 pm »
now that you mention it though this would be handy for recruitment purposes for the aoc bot

Offline kaeus

  • BeBot User
  • **
  • Posts: 20
  • Karma: +0/-0
Re: Send message to specific channel
« Reply #4 on: July 16, 2008, 06:44:18 am »
So any way to set up a make_blob to OOC?

Offline kaeus

  • BeBot User
  • **
  • Posts: 20
  • Karma: +0/-0
Re: Send message to specific channel
« Reply #5 on: July 16, 2008, 03:49:51 pm »
Could I do this by modifying a version of send_pgmsg to send to the ooc channel ID? I have NO clue what the channel ID's are to test this. :(

Offline Noer

  • BeBot Apprentice
  • ***
  • Posts: 107
  • Karma: +0/-0
Re: Send message to specific channel
« Reply #6 on: July 16, 2008, 03:56:45 pm »
You could try using the
Code: [Select]
$this -> bot -> core("chat") -> lookup_group("Playfield");

But this will only go to the region the bot is located in. You can't select Playfields in other areas. And besides that I think in general making bots output automatically to public channels is a bad idea. The current spam with recruitment scripts is already getting out of hand.

Offline kaeus

  • BeBot User
  • **
  • Posts: 20
  • Karma: +0/-0
Re: Send message to specific channel
« Reply #7 on: July 16, 2008, 04:31:18 pm »
No luck finding the channel ID.

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


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


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

* Who's Online
  • Dot Guests: 118
  • 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