Back Reply to topic
Willibald 
(started thread)
Blue-Ribbon Chicken 
Topics: 3
Posts: 12
Playing:  AOC
Ingame:  Willibald
Years registered: * * * * * * * * * * * * * * * *
Undefined Buddy Status Posted: Post 06:24 Fri - Jul 03, 2009

Hi everybody using this nice chatbot,

since about 2 months we have some trouble with login messages. The Bot tells us twice when some (not all) guild members log on. Fist time when the member loggs on. Then a second time when the member talks first time in guild channel (the member is not a new member, the bot allready knows him/her).


Code:
[07:03:18] CB[40] :: [Buddy Status: Anott (is online)(1881246) (22) ]
[07:03:18] Whois :: Status of non-whois buddy changed and suppressed
[07:03:18] BuddySeen : remember online: Anott
[07:03:18] GuildstatusHTML :: Saving ./plugins/buddy/guildstatushtml/html/status.htm
[07:03:18] Guildupdate :: lookup flag not set
[07:03:18] Guildbuddies :: Buddy Anott changed status from 0 to 1
[07:03:18] Guildbuddies :: :: Anott :: Level 30 Eroberer:: logged on :: (Willibald) :: ~~ Kriegsherr ~~
[07:03:23] BuddySeen ::  saving Anott [logon 03.07.2009 07:07:03] [logoff 02.07.2009 11:07:20]
s[07:03:54] CB[20] :: [name lookup: 67279754 is "Anott" (0)]
[07:03:54] Buddyupdate :: statuschange: Anott.. (67279754)
[07:03:54] Guild :: Anott: hi
s[07:03:54] CB[41] :: [Buddy removed: "Anott"]
[07:03:54] CB[37] :: [Unknown packet received: type=37]

[07:03:54] CB[40] :: [Buddy Status: Anott (is online)(1881246) (22) ]
[07:03:54] Whois :: Status of non-whois buddy changed and suppressed
[07:03:54] BuddySeen :: Statuschange caused by a lookup and ignored
[07:03:54] GuildstatusHTML :: Saving ./plugins/buddy/guildstatushtml/html/status.htm
[07:03:54] Guildupdate :: Statuschange ignored
[07:03:54] Guildbuddies :: Buddy Anott changed status from  to 1
[07:03:54] Guildbuddies :: :: Anott :: Level 30 Eroberer:: logged on :: (Willibald) :: ~~ Kriegsherr ~~


i temporaly fixed this by changing Line 18 in \plugins\buddy\guildstatus\index.php

from
Code:
if     ($args["laststatus"]==0)

to
Code:
if     ($args["laststatus"]===0)


i did this to suppress the login message when status chandes from "null" to 1

now the second login message is fixed BUT i get the following error in log: motz
Code:
[07:03:54] Guildbuddies :: Buddy Anott changed status from  to 1
[07:03:54] PHP ERROR 2 :: /home/dunkelbot/Aocbot/inc/bot_functions.php :: line 29 ::
:: Division by zero
[07:03:54] PHP ERROR 2 :: /home/dunkelbot/Aocbot/inc/bot_functions.php :: line 29 ::
:: Division by zero
[07:03:54] PHP ERROR 2 :: /home/dunkelbot/Aocbot/inc/bot_functions.php :: line 29 ::
:: Division by zero


AND on new members the not loger will spam a login message when they talk in guild channel first time (like the bot does in the past)

this error occured somewhen before 1.05 an ist still present (even with version 0.93 of Ragebot) grübel

Any suggestions how to fix this?

regards
Willi
Reply with quote


Chaly 
Offizier · Webmaster 
Topics: 404
Posts: 2107
Location: Bad Honnef
Playing:  Guildwars2 (Drakkar See)
Ingame:  Chaly Flavour
Years registered: * * * * * * * * * * * * * * * * * * * * * *
Posted: Post 11:34 Sat - Jul 04, 2009

it's caused by a circumstance where the behaviour of the CB[20] packet cause a call of the buddys-plugins that is not intercepted yet. please try extracting the attachment to your ragebot folder that replaces the buddy/guildstatus/index.php

i didn't have the time to test it as i'd have to play around with several logins and logoffs as well as zone-changes and levelups with some known as well as unknown guildcharacters but i think it should do the work


update-0.9.3.1 to 0.9.3.2.zip
 Description:

Download
 Filename:  update-0.9.3.1 to 0.9.3.2.zip
 Filesize:  1.1 KB
 Downloaded:  1006 Time(s)

Reply with quote



_________________

Chalys Gimpnesstheory (2003) Die Theorie der expotentiellen Bullshits den Gimps bei gleichbleibendem Anteil produzieren.
Willibald 
(started thread)
Blue-Ribbon Chicken 
Topics: 3
Posts: 12
Playing:  AOC
Ingame:  Willibald
Years registered: * * * * * * * * * * * * * * * *
Posted: Post 10:37 Mon - Jul 06, 2009

with the attached plugin there are no unexpected login messages any more. (and no PHP errors in Log too)

Big thanks for fixing this Chally niedermayr anbeten
Reply with quote


Chaly 
Offizier · Webmaster 
Topics: 404
Posts: 2107
Location: Bad Honnef
Playing:  Guildwars2 (Drakkar See)
Ingame:  Chaly Flavour
Years registered: * * * * * * * * * * * * * * * * * * * * * *
Posted: Post 07:20 Mon - Jul 06, 2009

np lachen Reply with quote


Back Reply to topic