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: IGN Items Database  (Read 9053 times)

0 Members and 1 Guest are viewing this topic.

Offline Hyde

  • BeBot Apprentice
  • ***
  • Posts: 92
  • Karma: +0/-0
IGN Items Database
« on: December 17, 2006, 11:25:25 am »
My org uses IGN ... but I hate the IGN !items command with a passion and I was looking for a good way to get the 17.0 items in there.

I took your BeBot example and wrote a quick and dirty IGN version. Its not got anything fancy. I reformat the results a bit to spit out the top 2 (customizable) results so that you don't have to click to see the top results.

Code is as follows. Only been tested for an hour or so, but pretty simple and hard to cause problems with.

Feel free to split this out into a new topic if it pollutes the BeBot plugin thread too much.

Code: [Select]
<?
/* items.php - Doctorhyde@RK2 - v20061217-1 */
/* IGN plugin for Vhab's central items database ... http://aodevs.com/index.php/topic,84.0.html*/
/* some code stolen from http://bebot.link/index.php/topic,380.0.html */

/* NOTE: Vhab, I change your output a bit (I only add, not remove) ... I'm not wanting you to */
/*    change your formatting, I like it, I would rather you kept it static so that I have a set */
/*    text format to count on :) */

/* if no search specified, give syntax */
if (!$word2) {
  $reply = "to search for an item, do '!items searchstring' or '!items # searchstring' where # is the QL to look for.";
} else {
  /* change this number to limit or expand the number of possible results */
  $maxresults = "10";
  /* change this if the website for results changes */
  $host = "http://items.vhabot.net/index.php?";
  /* change this at your peril */
  $arguments = "output=aoml&bot=IGN&search=";
  /* pull the command arguments out in IGN style */
  if (is_numeric($word2)) { $ql = "&ql=" . $word2; } else { $search = $word2 . "%20"; }
  $search .= $word3 . "%20" . $word4 . "%20" . $word5 . "%20" . $word6;
  if ($word7) {
    $morewords = explode(' ',$word7);
    foreach ($morewords as $extraword) {
      $search .= "%20" . $extraword;
    }
  }
  /* put the URL together */
  $url = $host . $arguments . $search . $ql . "&max=" . $maxresults;
  /* get the URL or give an error */
  $result = file_get_contents("http://items.vhabot.net/index.php?output=aoml&bot=IGN&search=" . $search . $ql);
  if (!empty($result)) {
    $resultmax = 2;
    /* make the results a bit more friendly */
    $result = str_replace("\">Click to View</a>","\n<font color=#222244>query=$url</font>\">Click to View</a>",$result);
    $reply .= "Item Search Results (up to $resultmax shown below, click for more):\n  " . $result . "\n";
    /* duplicate the ability of the IGN builtin !items function to display 1-3 of the results without forcing us to click */
    $results = explode("\n",$result);
    $resultreply = 0;
    foreach ($results as $testresult) {
      if ($resultreply == 0) {
        /* don't pay attention to anything until we get to the Results */
        if (strpos($testresult,"font color=#FFFFFF>Results</font>")) {
          $resultreply = 1;
        }
      } else {
        /* stop paying attention when we get done with the results or have more than 3 */
        if(strpos($testresult,">Click to View</a>") || $resultcount >= $resultmax) {
          $resultreply = 0;
        } else {
          /* ignore images */
          if(strpos($testresult,"itemref")) {
            $reply .= "    ... $testresult\n";
            $resultcount++;
          }
        }
      }
    }
  } else {
    $reply = "ERROR: Unable to query database via $url ... website may be down.";
  }
}
?>
Doctorhyde/Jexyll/Goraud@RK2

Offline Vhab

  • Contributor
  • *******
  • Posts: 180
  • Karma: +0/-0
    • VhaBot Forum
IGN Items Database
« Reply #1 on: December 17, 2006, 12:47:14 pm »
No offense but.. this is a BeBot forum.

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: IGN Items Database
« Reply #2 on: December 17, 2006, 01:18:41 pm »
Split and moved.
BeBot Founder and Fixer Kingpin

Offline Hyde

  • BeBot Apprentice
  • ***
  • Posts: 92
  • Karma: +0/-0
Re: IGN Items Database
« Reply #3 on: December 17, 2006, 08:16:43 pm »
No offense but.. this is a BeBot forum.

Sure, and I said split it if you want. You had a list of plugins on your items database page, I thought you might want to know of another one. :shrug:
Doctorhyde/Jexyll/Goraud@RK2

Offline Naturalistic

  • Contributor
  • *******
  • Posts: 221
  • Karma: +0/-0
Re: IGN Items Database
« Reply #4 on: December 17, 2006, 10:01:24 pm »
What our prude helper was trying to say... :P (but much <3 Vhab)

This is a Bebot forums, if people see IGN stuff here, they will think that we support it (which we do not). So it's generally better to not post IGN modules/plugins etc here or they will ask here for help with it.



220/25 Eternalist Doctor
-----------------------------
Campalot Coding Co-ordinator and Super Admin
http://www.campalot.info/index.php

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: IGN Items Database
« Reply #5 on: December 19, 2006, 08:31:20 pm »
One of the reasons people might be a bit blunt around IGN is that from a developer perspective, we really want IGN to just wither away and die, never to come back again to haunt us.

I understand the frustration from a users point of view though, but we really, and i mean really, don't like to work with IGN related code, basically because it gives us nightmares and makes baby jesus cry, amongst other things. It's a great bot in terms of user friendliness, but it's an absolute nightmare from a coding perspective.
BeBot Founder and Fixer Kingpin

Offline Naturalistic

  • Contributor
  • *******
  • Posts: 221
  • Karma: +0/-0
Re: IGN Items Database
« Reply #6 on: December 19, 2006, 09:22:57 pm »
Can't make baby jesus cry :(
220/25 Eternalist Doctor
-----------------------------
Campalot Coding Co-ordinator and Super Admin
http://www.campalot.info/index.php

Offline Wolfbiter

  • Contributor
  • *******
  • Posts: 149
  • Karma: +0/-0
    • KAZE
Re: IGN Items Database
« Reply #7 on: December 19, 2006, 10:58:20 pm »
IGN source can make a stone cry, so baby jesus isn't even a challange.
Too many toons.

Offline mesa

  • BeBot Rookie
  • *
  • Posts: 14
  • Karma: +0/-0
Re: IGN Items Database
« Reply #8 on: December 20, 2006, 06:04:58 pm »
This is nice to have, although maybe better suited as a post on AOdevs.

I think IGN is dead but I know for myself I am in a position where I need to support it still being in a 5 org alliance it's going to take me time (an some practice and n00b mistakes) to get to the point where I feel comfortable enough in supporting 5 orgs in a migration to bebot which i like very much :)

so 1 demerit for posting on the wrong website
but 1 merit for making something nice for those stuck with IGN for a bit longer

:P

Offline Hyde

  • BeBot Apprentice
  • ***
  • Posts: 92
  • Karma: +0/-0
Re: IGN Items Database
« Reply #9 on: March 15, 2007, 06:26:06 pm »
If you're an IGN user getting this message:

Quote
Dear IGNbot user,


Your access to this database has been restricted.
IGNbot is highly outdated and exploitable.
Authors have abandoned this bot and refuse to fix any of the outstanding high priority bugs.
Due to this nature you shouldn't be using this bot.

Starting 15-03-07 all IGNbots are prohibited to use the Central Items Database.
The repeating insults and harassments I've received from IGNbot authors, as well is their ignorance towards IGNbot users have lead me to this action.
I will NOT support any bot which has authors that publicly spread lies, publish false information and insult fellow bot coders in order to boost their own ego and invest all their time into doing this rather than releasing a highly needed bug fix on IGNbot.
IGNbot users have been lied to about new releases for over a year now.

I highly recommend all users to upgrade to a different bot like BudaBot or BeBot.
An overview of different bots can be found here: http://aodevs.com/index.php/topic,4.0.html
BudaBot's installation process is similar to that of IGNbot.
BeBot's installation process is documented here: http://bebot.link/wiki/doku.php?id=install


Signed,

Vhab (Atlantean)

Website: http://www.vhabot.net
Forums: http://forums.vhabot.net (up to 3 below, click for all)

I was nice and voluntarily identified us to Vhab's site, and if he'd simply said "stop using my site" I doubt I would post this workaround. But spamming orgchats with -pages- of text isn't the way to do it.

{EDIT: Removed the workaround now that the massive spam issue is fixed.}

FWIW, I've been looking at moving to BeBot for awhile. And so have plenty of other IGN users. But something like this isn't the way to convince us that this is a developer community we'd like to join. Just minimizing the message into a short link that is returned with results would have been fine.

I won't update the plugin again, so you can quite easily break it and it will stay broken by anyone who doesn't figure out future mods on their own. I see no reason to make this a war, but man, grow some courtesy. It wouldn't have been hard to post that message in a way that didn't spam everyone's orgchats ... if anything you just blew an opportunity to make some genuine good will advertising.

Instead you took a personal war between your community and the IGN community to its users. I don't give a flying flip about the issues between you folks, I doubt 95% of the other bot -users- care either.
« Last Edit: March 15, 2007, 06:43:34 pm by Hyde »
Doctorhyde/Jexyll/Goraud@RK2

Offline Vhab

  • Contributor
  • *******
  • Posts: 180
  • Karma: +0/-0
    • VhaBot Forum
Re: IGN Items Database
« Reply #10 on: March 15, 2007, 06:32:39 pm »
Guess I'll have to explain you something.
I don't run this service to be harrassed and insulted by IGN authors.
If they're going as far as badmouthing me every chance they get, I'm not gonna let them use the service.
I've put up with enough of their crap and your actions will eventually only ruin it for everyone.
Don't thank me. Thank the people that pushed me towards this action.
I'm supprised someone can support such behavior and go as far as posting a work-around.
I simply replaced the output IGN gets with a message explaining myself.

Edit: updated the output, the fact it posted it directly and not in a window wasn't an intended result. Simply forgot to take in account how this is visualized.
« Last Edit: March 15, 2007, 06:39:12 pm by Vhab »

Offline Hyde

  • BeBot Apprentice
  • ***
  • Posts: 92
  • Karma: +0/-0
Re: IGN Items Database
« Reply #11 on: March 15, 2007, 06:41:26 pm »
Guess I'll have to explain you something.
I don't run this service to be harrassed and insulted by IGN authors.
If they're going as far as badmouthing me every chance they get, I'm not gonna let them use the service.
I've put up with enough of their crap and your actions will eventually only ruin it for everyone.
Don't thank me. Thank the people that pushed me towards this action.
I'm supprised someone can support such behavior and go as far as posting a work-around.
I simply replaced the output IGN gets with a message explaining myself.

You took a war you had with some IGN bot authors and decided to take it out on IGN bot users. Wrong target. Sad. I agree with you that IGN is a mess and myself and many others have been working our orgs off of dependence on it. If -anything- my plugin gives IGN users a small taste of what can be better in BeBot and when they find it and use it the comments even point them here so they can find more information if they choose.

You don't have to explain anything to me Vhab, I "get" it and I agree with your technical points. But the way you field the attacks just shows you don't react significantly better with your community than the IGN authors do with theirs.

A note with a text blob popup would have been fine, but that mess you spammed? Pretty well over the top. Glad to see that's fixed. I'll edit my post previous now to remove the work-around.
Doctorhyde/Jexyll/Goraud@RK2

Offline Vhab

  • Contributor
  • *******
  • Posts: 180
  • Karma: +0/-0
    • VhaBot Forum
Re: IGN Items Database
« Reply #12 on: March 15, 2007, 06:59:24 pm »
As I said, the spam wasn't an intended effect.
I simply will not have my effort and resources (and the DB sucks alot of that) benifit a bot who's authors are constantly against me.
What not everyone knows is that even now HQ is down, I'm still getting verbally harrassed by amona and even holo by PM on various forums I'm member on.
They've taken this to a limit where I'm cutting all my possible ties to IGNbot.
« Last Edit: March 15, 2007, 07:03:57 pm by Vhab »

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: IGN Items Database
« Reply #13 on: March 16, 2007, 02:01:24 am »
Bump for Vhab :-)

Sometimes this form of education is only resort!

-jj-

 

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