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: Website Chat to ingame Chat.  (Read 2759 times)

0 Members and 1 Guest are viewing this topic.

Offline lazarus

  • BeBot User
  • **
  • Posts: 25
  • Karma: +0/-0
Website Chat to ingame Chat.
« on: August 08, 2007, 04:30:27 pm »
Hey all ur genius people.
have anyone every made a scipt that can communicate thro a website to the ingame chat?
i would do working just like the guest channel.
as the bot is the one type in ingame chat.
like
[org][bot][web]nick: Hey yo all

but for this to work I will need to have the bot log all the chat into the database.
and then just a php script that update a window with info from this database.

This last step is the easy part, but the bot coding is alittle over my head I think.
Thro I have not looked to much into it.

Where do I hook the chat input in the bot?

Offline Ebag333

  • Contributor
  • *******
  • Posts: 134
  • Karma: +0/-0
Re: Website Chat to ingame Chat.
« Reply #1 on: August 08, 2007, 05:27:54 pm »
It's fairly easy actually.

  • Pick an IRC server and create an org channel.
  • Connect the bot to the IRC channel.
  • Setup something on a webpage to connect to the IRC channel (IE: a java or PHP based web based IRC client).

Offline lazarus

  • BeBot User
  • **
  • Posts: 25
  • Karma: +0/-0
Re: Website Chat to ingame Chat.
« Reply #2 on: August 09, 2007, 03:12:29 pm »
Well I dont use IRC.

I was thinking on having a log table and a queue table.
Then the bot run a script to write the queued to the org chat, and by that get into the log table.

The log table is then showing to the website user.

ofcause the users would have to logon to the webpage and from that the username will be extracted.

 

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Website Chat to ingame Chat.
« Reply #3 on: August 09, 2007, 03:53:27 pm »
there is a module called AutoMsg but not the 1 i posted
this module checks a table for entires and then relay to gc or wateva if anything is found
then all u need to do is have your site make the entires

Offline lazarus

  • BeBot User
  • **
  • Posts: 25
  • Karma: +0/-0
Re: Website Chat to ingame Chat.
« Reply #4 on: August 20, 2007, 10:42:51 am »
Nice :) but how do i get the ingame chat to the database? :)
anyone have made a logger to database? :)

Offline Ebag333

  • Contributor
  • *******
  • Posts: 134
  • Karma: +0/-0
Re: Website Chat to ingame Chat.
« Reply #5 on: August 20, 2007, 05:47:39 pm »
Logging chat to the database would be rather slow, and eat up a lot of processing/etc.

Writing to a text file is quicker and probably better.

You could write a module to capture all GC chat, write to a text file, then have your webpage script pick that up, and output it.

Offline lazarus

  • BeBot User
  • **
  • Posts: 25
  • Karma: +0/-0
Re: Website Chat to ingame Chat.
« Reply #6 on: August 23, 2007, 01:04:37 pm »
What if I had a dedicated bot to only log the GC chat? with a continued open connection to the SQL?
or the text thing is better?

Offline Ebag333

  • Contributor
  • *******
  • Posts: 134
  • Karma: +0/-0
Re: Website Chat to ingame Chat.
« Reply #7 on: August 23, 2007, 05:29:57 pm »
Every time you write to SQL, it's expensive.

No one's saying you can't do it, just that it won't be that fast.

Offline Lawbrkr

  • BeBot Rookie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: Website Chat to ingame Chat.
« Reply #8 on: August 24, 2007, 01:43:48 am »
You really you should look into http://www.pjirc.com/main.php , It works well and can be integrated into a forum or web page quite nicely. I have it set up on my forums using SMF. Certainly less complex than any other method I can come up with.

 

* 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: 537
  • 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