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: Installing and Monitoring Org Chat  (Read 19736 times)

0 Members and 1 Guest are viewing this topic.

Offline Lal

  • BeBot User
  • **
  • Posts: 53
  • Karma: +0/-0
Installing and Monitoring Org Chat
« Reply #15 on: February 27, 2005, 11:18:49 am »
or make a char on RK2 and /tell lalnt or /tell lalsoldier Woot post 3min ago :P
[205/12][Lalsoldier][RK2]

[190/5][Laldoc][RK2]

[195/10][Lalnt][RK2]

Offline Lal

  • BeBot User
  • **
  • Posts: 53
  • Karma: +0/-0
Installing and Monitoring Org Chat
« Reply #16 on: February 27, 2005, 12:01:14 pm »
Tried ICQ but the weird trash didnt want to make an account
[205/12][Lalsoldier][RK2]

[190/5][Laldoc][RK2]

[195/10][Lalnt][RK2]

Offline Blondengy

  • BeBot Creator and Founder
  • BeBot Hero
  • ******
  • Posts: 51
  • Karma: +0/-0
Installing and Monitoring Org Chat
« Reply #17 on: February 27, 2005, 05:33:29 pm »
Code: [Select]
510:   function inc_gmsg($args)
511:    {
512:      $user = $this -> aoc -> get_uname($args[1]);
513:
514:      $found = false;
515:
516:      $group = $this -> aoc -> lookup_group($args[0]);
517:      
518:    $args[2] = utf8_decode($args[2]);
519:    
520:    $this -> log("DEBUG", $group, $user . ": " . $args[2]);


The above code is from the Bot.php with a slight addition: add line 520 to your code, start up your bot and type something in your guildchat. Then show me what exactly you get in your console (copy & paste) and also the following line from your Bot.conf for me to check:

Code: [Select]
 $guild_name = "";                // only if its a guildbot.

Offline Lal

  • BeBot User
  • **
  • Posts: 53
  • Karma: +0/-0
Installing and Monitoring Org Chat
« Reply #18 on: February 28, 2005, 01:45:06 pm »
$guildbot = true;                // false if its a raidbot.
  $guild_name = "Virtual Insanity";                // only if its a guildbot.
  $guild_id = 4341766;                    // only if its a guildbot.


----------



C:\BeBot>php.exe start.php
[2005-02-28 12:43:40]   [CORE]  [LOAD]  Admin.php
[2005-02-28 12:43:40]   [CORE]  [LOAD]  Alts.php
[2005-02-28 12:43:40]   [CORE]  [LOAD]  BotHelp.php
[2005-02-28 12:43:40]   [CORE]  [LOAD]  Online.php
[2005-02-28 12:43:40]   [CORE]  [LOAD]  Que.php
[2005-02-28 12:43:40]   [MOD]   [LOAD]  About.php
[2005-02-28 12:43:40]   [MOD]   [LOAD]  AlienAttack_GUILD.php
[2005-02-28 12:43:40]   [MOD]   [LOAD]  AutoMsg.php
[2005-02-28 12:43:40]   [MOD]   [LOAD]  Bio.php
[2005-02-28 12:43:40]   [MOD]   [LOAD]  Calc.php
[2005-02-28 12:43:40]   [MOD]   [LOAD]  Callers.php
[2005-02-28 12:43:40]   [MOD]   [LOAD]  Countdown.php
[2005-02-28 12:43:40]   [MOD]   [LOAD]  Is.php
[2005-02-28 12:43:40]   [MOD]   [LOAD]  Items.php
[2005-02-28 12:43:40]   [MOD]   [LOAD]  Level.php
[2005-02-28 12:43:40]   [MOD]   [LOAD]  Logon_GUILD.php
[2005-02-28 12:43:40]   [MOD]   [LOAD]  MassMsg.php
[2005-02-28 12:43:40]   [MOD]   [LOAD]  MOTD.php
[2005-02-28 12:43:40]   [MOD]   [LOAD]  News.php
[2005-02-28 12:43:40]   [MOD]   [LOAD]  Oe.php
[2005-02-28 12:43:40]   [MOD]   [LOAD]  PrivGroup.php
[2005-02-28 12:43:40]   [MOD]   [LOAD]  Raffle.php
[2005-02-28 12:43:40]   [MOD]   [LOAD]  Rally.php
[2005-02-28 12:43:40]   [MOD]   [LOAD]  Relay_GUILD.php
[2005-02-28 12:43:40]   [MOD]   [LOAD]  Roll.php
[2005-02-28 12:43:40]   [MOD]   [LOAD]  Rooster_GUILD.php
[2005-02-28 12:43:40]   [MOD]   [LOAD]  Server.php
[2005-02-28 12:43:40]   [MOD]   [LOAD]  Shutdown.php
[2005-02-28 12:43:40]   [MOD]   [LOAD]  Target.php
[2005-02-28 12:43:40]   [MOD]   [LOAD]  Teams.php
[2005-02-28 12:43:40]   [MOD]   [LOAD]  Time.php
[2005-02-28 12:43:40]   [MOD]   [LOAD]  TowerAttack.php
[2005-02-28 12:43:40]   [MOD]   [LOAD]  Whois.php
[2005-02-28 12:43:40]   [LOGIN] [STATUS]        Connecting
[2005-02-28 12:43:40]   [LOGIN] [STATUS]        Authenticateing

Warning: unpack(): Type H: outside of string in C:\BeBot\AOChat.php on line 713

Warning: unpack(): Type H: outside of string in C:\BeBot\AOChat.php on line 713

Warning: unpack(): Type H: outside of string in C:\BeBot\AOChat.php on line 713

Warning: unpack(): Type H: outside of string in C:\BeBot\AOChat.php on line 713

Warning: unpack(): Type H: outside of string in C:\BeBot\AOChat.php on line 713

Warning: unpack(): Type H: outside of string in C:\BeBot\AOChat.php on line 713

Warning: unpack(): Type H: outside of string in C:\BeBot\AOChat.php on line 713

Warning: unpack(): Type H: outside of string in C:\BeBot\AOChat.php on line 713
[2005-02-28 12:43:43]   [LOGIN] [STATUS]        Logging in
[2005-02-28 12:43:43]   [LOGIN] [RESULT]        OK
[2005-02-28 12:43:44]   [BUDDY] [LOG]   Wicker2 logged [off]
[2005-02-28 12:43:44]   [BUDDY] [LOG]   Kemiks logged [off]
[2005-02-28 12:43:44]   [BUDDY] [LOG]   Alianaya logged [off]
[2005-02-28 12:43:44]   [BUDDY] [LOG]   Wakantanka logged [off]
[2005-02-28 12:43:44]   [BUDDY] [LOG]   Headforcreds logged [off]
[2005-02-28 12:43:44]   [BUDDY] [LOG]   Inryi logged [off]
[2005-02-28 12:43:44]   [BUDDY] [LOG]   Tyromet logged [off]
[2005-02-28 12:43:44]   [BUDDY] [LOG]   Lingir logged [off]
etc etc...
[2005-02-28 12:43:59]   [BUDDY] [LOG]   Valkon logged [off]
[2005-02-28 12:43:59]   [TELL]  [INC]   Lopnar: !join
[2005-02-28 12:43:59]   [BUDDY] [LOG]   Headforcreds logged [on]
[2005-02-28 12:44:01]   [PGRP]  [JOIN]  Lopnar joined privategroup.
[2005-02-28 12:44:11]   [ROOSTER]       [UPDATE]        Starting rooster update

well as a test I typed something as Lalsoldier and as you can see it wont see the name of the channel.


[2005-02-28 12:45:58]   [DEBUG] [All Towers]    0: The clan organization A.R.S.
just entered a state of war!  Ninjazai attacked the omni organization Inner Circ
le's tower in Central Artery Valley at location (2090, 2995).

[2005-02-28 12:45:58]   [GROUP] [MSG]   [All Towers] 0: The clan organization A.
R.S. just entered a state of war!  Ninjazai attacked the omni organization Inner
 Circle's tower in Central Artery Valley at location (2090, 2995).

[2005-02-28 12:45:59]   [DEBUG] []      Lalsoldier: !test
[2005-02-28 12:45:59]   [DEBUG] []      Lalsoldier: test
[2005-02-28 12:45:59]   [DEBUG] [OT shopping 1-50]      Swoopeline: [link]Nano C
rystal (Enfraam's Fortification)[/link]
[2005-02-28 12:45:59]   [DEBUG] [OT shopping 1-50]      Swoopeline: [link]Right-
Hand Implant: Martial Arts, Shiny[/link]
[2005-02-28 12:45:59]   [DEBUG] [OT shopping 1-50]      Mins: WTB: Notum Fragmen
t/Chip/nugget
[2005-02-28 12:45:59]   [DEBUG] [OT shopping 1-50]      Swoopeline: [link]Notum
Enriched Nano Paste - 16x Layer[/link]
[2005-02-28 12:45:59]   [DEBUG] [OT OOC]        Freecoffee: looking for a person
 with trap disarm 200 or more
[2005-02-28 12:46:00]   [BUDDY] [ADD]   Xvart
[2005-02-28 12:46:00]   [BUDDY] [DEL]   Mistmajeed
[2005-02-28 12:46:00]   [BUDDY] [DEL]   Boycot
[2005-02-28 12:46:00]   [BUDDY] [DEL]   Baldarov
[2005-02-28 12:46:00]   [BUDDY] [DEL]   Nigeymp
[2005-02-28 12:46:14]   [ROOSTER]       [UPDATE]        Rooster update complete.
 Added 1 members, removed 4.
[2005-02-28 12:46:14]   [DEBUG] []      Vibot: A.R.S. (clan) has attacked Inner
Circle (omni) in Central Artery Valley at 2090x2995. Attacker: Ninjazai (LvL 168
 Martial Artist)
[2005-02-28 12:46:14]   [PGRP]  [MSG]   [Vibot] Vibot: A.R.S. (clan) has attacke
d Inner Circle (omni) in Central Artery Valley at 2090x2995. Attacker: Ninjazai
(LvL 168 Martial Artist)
[2005-02-28 12:46:14]   [BUDDY] [LOG]   Xvart logged [off]
[2005-02-28 12:46:15]   [DEBUG] []      Vibot: Xvart logged off
[2005-02-28 12:46:17]   [DEBUG] [OT shopping 1-50]      Scrillz: WTS[link]Vektor
 ND LIZARD Shotgun[/link] [link]Vektor ND Shotgun[/link] [link]Old English Tradi
ng Co. Urban Sniper[/link]
[205/12][Lalsoldier][RK2]

[190/5][Laldoc][RK2]

[195/10][Lalnt][RK2]

Offline Lal

  • BeBot User
  • **
  • Posts: 53
  • Karma: +0/-0
Installing and Monitoring Org Chat
« Reply #19 on: February 28, 2005, 02:08:39 pm »
$group = $this -> aoc -> lookup_group($args[0]);
.... group ends up clean
[205/12][Lalsoldier][RK2]

[190/5][Laldoc][RK2]

[195/10][Lalnt][RK2]

Offline Blondengy

  • BeBot Creator and Founder
  • BeBot Hero
  • ******
  • Posts: 51
  • Karma: +0/-0
Installing and Monitoring Org Chat
« Reply #20 on: February 28, 2005, 04:58:33 pm »
Ok, now we see where the problem is: For some reason the AOChat class doesn't catch the name of the guildchannel.
But you're saying that it DOES write to guildchannel right? It gives you the logon/logoff msgs?

Gonna conduct a few tests later on and give you a workaround. Alternativly I'd suggest testing on a different char, or have you tried running hte bot on a different char and still have the same prob?

Offline Lal

  • BeBot User
  • **
  • Posts: 53
  • Karma: +0/-0
Installing and Monitoring Org Chat
« Reply #21 on: February 28, 2005, 05:18:09 pm »
Yup tried on 2 chars, me and smag both made a seperate install with own settings and stuff :/
[205/12][Lalsoldier][RK2]

[190/5][Laldoc][RK2]

[195/10][Lalnt][RK2]

Offline Lal

  • BeBot User
  • **
  • Posts: 53
  • Karma: +0/-0
Installing and Monitoring Org Chat
« Reply #22 on: February 28, 2005, 05:20:09 pm »
and yes it DOES write...       $group = $this -> aoc -> lookup_group($args[0]);

args[0] returns the guildid and this function seems to be broken

$this -> aoc -> lookup_group

you might want to check out things that are different between RK1/RK2
[205/12][Lalsoldier][RK2]

[190/5][Laldoc][RK2]

[195/10][Lalnt][RK2]

Offline Lal

  • BeBot User
  • **
  • Posts: 53
  • Karma: +0/-0
Installing and Monitoring Org Chat
« Reply #23 on: March 04, 2005, 03:11:38 pm »
ok well this solves the problem:

but you will still have to look at it...


      $group = $this -> aoc -> lookup_group($args[0]);


change to


      $group = $this -> aoc -> lookup_group($args[0]);
      if (!$group) $group = $this -> guildname;
[205/12][Lalsoldier][RK2]

[190/5][Laldoc][RK2]

[195/10][Lalnt][RK2]

Offline Blondengy

  • BeBot Creator and Founder
  • BeBot Hero
  • ******
  • Posts: 51
  • Karma: +0/-0
Installing and Monitoring Org Chat
« Reply #24 on: March 04, 2005, 08:00:49 pm »
Glad you got it to work... Wish I knew what caused it, tried several things but just couldn't recreate what was happening to you guys. :(

Offline Lal

  • BeBot User
  • **
  • Posts: 53
  • Karma: +0/-0
Installing and Monitoring Org Chat
« Reply #25 on: May 09, 2005, 08:19:33 pm »
Having the same problem again, no longer logging the towers with my fix, well this causes it: http://hackersquest.org/boards/viewtopic.php?t=4667&highlight=lookupgroup

last patch FC removed the lft channels and stuff, maybe you ignored some channels, and I think its different of RK2/3 then 1

Help me out please :(
[205/12][Lalsoldier][RK2]

[190/5][Laldoc][RK2]

[195/10][Lalnt][RK2]

Offline Blondengy

  • BeBot Creator and Founder
  • BeBot Hero
  • ******
  • Posts: 51
  • Karma: +0/-0
Installing and Monitoring Org Chat
« Reply #26 on: May 10, 2005, 08:56:39 am »
Only reason I can think of is that they changed the tower channel's names.
All channels that have no module monitoring them are ignored, so that could be the reason...

Offline Lal

  • BeBot User
  • **
  • Posts: 53
  • Karma: +0/-0
Installing and Monitoring Org Chat
« Reply #27 on: May 10, 2005, 12:03:50 pm »
How can I fix this?
[205/12][Lalsoldier][RK2]

[190/5][Laldoc][RK2]

[195/10][Lalnt][RK2]

Offline Blondengy

  • BeBot Creator and Founder
  • BeBot Hero
  • ******
  • Posts: 51
  • Karma: +0/-0
Installing and Monitoring Org Chat
« Reply #28 on: May 10, 2005, 09:31:42 pm »
Well, has the channel name changed? If so you just have to change the name in the Towers.php at the top of the file...
If not use that debug code from somewhere a bit higher in this thread and check as what tower msgs show up...

Offline Lal

  • BeBot User
  • **
  • Posts: 53
  • Karma: +0/-0
Installing and Monitoring Org Chat
« Reply #29 on: May 10, 2005, 11:25:09 pm »
Name didn't change.

Umm, the log doesnt show anything, neither for the Tower Battle Outcome

when using my ''temp.fix'' to see everyone known channel as orgchat it says: "[ORG]0: message" if I remember right
[205/12][Lalsoldier][RK2]

[190/5][Laldoc][RK2]

[195/10][Lalnt][RK2]

 

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