L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 11:51:31 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > BeBot 0.5 support > Topic: Whois.php doesn't work correctly
Pages: [1]   Go Down
« previous next »
Print
Author Topic: Whois.php doesn't work correctly  (Read 276 times)
0 Members and 1 Guest are viewing this topic.
CGamer
Freshman
*
Offline Offline

Gender: Male
Posts: 3

AO-Char: Agnefi(DNW)


Whois.php doesn't work correctly
« on: May 09, 2008, 08:56:42 AM »

I found out that the links in the command !whois doesn't work because of these lines:
Quote
         $window .= $this -> bot -> core("tools") -> chatcmd('start ' . $funcomURL, 'Official character bio') . "\n";
         $window .= $this -> bot -> core("tools") -> chatcmd('start ' . $vhabotURL, 'Vhab\'s character info (beta)') . "\n";
         $window .= $this -> bot -> core("tools") -> chatcmd('start ' . $aunoURL, 'Auno\'s character info') . "\n";
      }
so i changed them(i found out how chatcmd() works in core/14_Tools.php) to this:
Quote
         $window .= $this -> bot -> core("tools") -> chatcmd($funcomURL, 'Official character bio', 'start') . "\n";
         $window .= $this -> bot -> core("tools") -> chatcmd($vhabotURL, 'Vhab\'s character info (beta)', 'start') . "\n";
         $window .= $this -> bot -> core("tools") -> chatcmd($aunoURL, 'Auno\'s character info', 'start') . "\n";
and it worked. I dont know if this Thread is in the correct category.

If i did anything wrong, say it to me.

[Note]
Sry for my english, I'm german and its very hard to write and speak english. I'm going to search for more wrong used chatcmd's. Maybe i've already found more of this wrong code.

[Edit]
Ok now i know that this is in the wrong category. It should be in "Coding and development discussion"
« Last Edit: May 09, 2008, 09:02:28 AM by CGamer » Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: Whois.php doesn't work correctly
« Reply #1 on: May 09, 2008, 09:23:04 AM »

0.5 forums is the correct one Wink

Thanks for noticing us, those links are fixed in the SVN now.

Will make 0.5.1, which I'll try to publish beginning of next week to keep the momentum up.
Logged
CGamer
Freshman
*
Offline Offline

Gender: Male
Posts: 3

AO-Char: Agnefi(DNW)


Re: Whois.php doesn't work correctly
« Reply #2 on: May 09, 2008, 09:32:50 AM »

I just found out some more coding-errors:
complete fixed Links:
Quote
      if ($this -> bot -> core("settings") -> get("Whois", "ShowOptions") == TRUE)
      {
         $window .= "\n##normal##::: Options :::##end##\n";
         $window .= $this -> bot -> core("tools") -> chatcmd($whois['nickname'], 'Add to buddylist', 'cc addbuddy') . "\n";
         $window .= $this -> bot -> core("tools") -> chatcmd($whois['nickname'], 'Remove from buddylist', 'cc rembuddy') . "\n";
         $window .= $this -> bot -> core("tools") -> chatcmd('history ' . $whois['nickname'], 'Character history') . "\n";
      }

      if ($this -> bot -> core("settings") -> get("Whois", "ShowLinks") == TRUE)
      {
         $funcomURL = "http://people.anarchy-online.com/character/bio/d/" . $this -> bot -> dimension . "/name/" . strtolower($whois['nickname']);
         $vhabotURL = "http://characters.vhabot.net/character.php?character=" . strtolower($whois['nickname']) . "&dimension=" . $this -> bot -> dimension;
         $aunoURL = "http://auno.org/ao/char.php?dimension=" . $this -> bot -> dimension . "&name=" . strtolower($whois['nickname']);

         $window .= "\n##normal##::: Links :::##end##\n";
         $window .= $this -> bot -> core("tools") -> chatcmd($funcomURL, 'Official character bio', 'start') . "\n";
         $window .= $this -> bot -> core("tools") -> chatcmd($vhabotURL, 'Vhab\'s character info (beta)', 'start') . "\n";
         $window .= $this -> bot -> core("tools") -> chatcmd($aunoURL, 'Auno\'s character info', 'start') . "\n";
      }

      return ($this -> bot -> core("tools") -> make_blob("Details", $window));
   }

}
?>

ive added some case "...": to 14_Tools.php:
Quote
      switch($origin)
      {
         case'gc':
         case'o':
         case 3:
            $chatcmd = "o";
            Break;
         case'pgmsg':
         case'pg':
         case 2:
            $chatcmd = "group ".$this -> bot -> botname;
            Break;
         case 'start':
            $chatcmd = "start";
            Break;
         case 'cc addbuddy':
            $chatcmd = "cc addbuddy";
            Break;
         case 'cc rembuddy':
            $chatcmd = "cc rembuddy";
            Break;
         Default:
            $chatcmd = "tell ".$this -> bot -> botname;
      }

May i start working as a Bug-Hunter in BeBot php-files? Just asking^^
Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: Whois.php doesn't work correctly
« Reply #3 on: May 09, 2008, 10:34:38 AM »

Sure, bug-hunter are always welcome. But if you do that you should use an up-to-date SVN version. We do fix and change stuff in the trunk version regulary - there is a fix for the link trouble in SVN already, we just haven't done another official dev release yet.
Logged
CGamer
Freshman
*
Offline Offline

Gender: Male
Posts: 3

AO-Char: Agnefi(DNW)


Re: Whois.php doesn't work correctly
« Reply #4 on: May 09, 2008, 01:09:30 PM »

i'll download the newest SVN.

Is that a bug, that !Say has no Settings? I remember that !Say had settings...

[Edit]
Which is the correct SVN? tags/0.5.0/ or trunk/ ?
« Last Edit: May 09, 2008, 01:11:44 PM by CGamer » Logged
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Re: Whois.php doesn't work correctly
« Reply #5 on: May 09, 2008, 01:59:10 PM »

trunk is the active development code.
tags are tagged releases which provide a snapshot of the code at the time of release. As such tags/0.5.0 represents the same code as available for download.
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: Whois.php doesn't work correctly
« Reply #6 on: May 09, 2008, 03:32:30 PM »

Say now output based on were u are
if u are on GC & PG it sends it both
if u are only in 1 of them it only sends to 1
if you are not in iver it returns in a tell
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > BeBot 0.5 support > Topic: Whois.php doesn't work correctly
« previous next »
 
Jump to:  

Recent
!items database
by Zeephonz
[Today at 08:05:21 PM]

Log playtime from buddys ...
by IKShadow
[Today at 06:48:12 AM]

[request] Raid timers
by Elesar1
[December 01, 2008, 04:41:09 PM]

Shared DB online list
by Temar
[December 01, 2008, 01:55:47 AM]

relay colors
by Temar
[December 01, 2008, 01:54:56 AM]

BeBot v0.6.0 released
by Alreadythere
[November 30, 2008, 05:32:00 PM]

Change to Bid.php
by Temar
[November 30, 2008, 11:41:44 AM]

OnlineOrg
by Jiheld
[November 29, 2008, 12:44:27 PM]

Silly Newbie Question.
by Temar
[November 29, 2008, 12:00:02 PM]

massive_pvp_time_table 1
by gerborg
[November 29, 2008, 06:55:35 AM]
Stats
Members
Total Members: 1244
Latest: Armonkens
Stats
Total Posts: 11146
Total Topics: 1505
Online Today: 25
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 2
Guests: 18
Total: 20
FLGuru
Elesar1

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.177 seconds with 28 queries. (Pretty URLs adds 0.029s, 4q)
Loading...