collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18365
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: New Central itemDB (!item[s|reg])  (Read 1297502 times)

0 Members and 5 Guests are viewing this topic.

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: New Central itemDB (!item[s|reg])
« Reply #270 on: March 06, 2011, 01:31:46 pm »
Thank you Getrix!

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: New Central itemDB (!item[s|reg])
« Reply #271 on: March 08, 2011, 08:58:07 pm »
Since the latest patch the links are not working...

Anyone else seeing this problem?

~Kyr

Offline Maxie

  • BeBot Rookie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: New Central itemDB (!item[s|reg])
« Reply #272 on: March 09, 2011, 10:53:19 am »
Yep, all item links broken from bot. They changed the format on it and added some stuff.

Old:
<a style="text-decoration:none" href="itemref://3777378/3777378/80/26169193:d9ee30c4:53fcfaba:143976a2/26169193:d9ee30c4:53fcfaba:143976a2">[Fine Steelsilk Belt][/link]

New:
<a style="text-decoration:none" href="itemref://3777378/3777378/0/80/26169193:d9ee30c4:53fcfaba:143976a2/26169193:d9ee30c4:53fcfaba:143976a2/b290805c:29e627ca:b290805c:29e627ca">[Fine Steelsilk Belt][/link]
« Last Edit: March 09, 2011, 11:09:37 am by Maxie »

Offline Kentarii

  • BeBot Apprentice
  • ***
  • Posts: 153
  • Karma: +0/-0
    • AoC>TV
Re: New Central itemDB (!item[s|reg])
« Reply #273 on: March 09, 2011, 11:57:43 am »
They probably added a new quality level for the new Dreamworld gfx...
Does this mean we have to update all the links in Getrix's ItemDB?

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: New Central itemDB (!item[s|reg])
« Reply #274 on: March 09, 2011, 02:58:26 pm »
Just arrived home from 2day job trip, patching my game now so will look into the changes ASAP.
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline Maxie

  • BeBot Rookie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: New Central itemDB (!item[s|reg])
« Reply #275 on: March 09, 2011, 03:36:33 pm »
It seems to be the same addition on all items. First the 0 as third parameter and then /b290805c:29e627ca:b290805c:29e627ca at the end.

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: New Central itemDB (!item[s|reg])
« Reply #276 on: March 09, 2011, 03:38:51 pm »
Yeah, that was what i also found out.
So "items"+"item" should work now, just hardcoded that new numbers into search-function for now.
"itemreg" needs abit more edit and also localy for everyone... Hang on for new file.
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: New Central itemDB (!item[s|reg])
« Reply #277 on: March 09, 2011, 04:09:52 pm »
To get register new item work, new version of bebot item files are needed.
Founded here:
http://aoc-itemdb.sjef.biz/code/v5/Core_Items.phps
http://aoc-itemdb.sjef.biz/code/v5/Modules_Items.phps

This was abit quickfix to get it work. New version will arrive later when i get the time to add all the stuff i have in mind..
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline Yite

  • BeBot Apprentice
  • ***
  • Posts: 152
  • Karma: +0/-0
    • Niflheim - Crom
Re: New Central itemDB (!item[s|reg])
« Reply #278 on: March 09, 2011, 05:21:51 pm »
Will a change be required for the global sniffers? Feel free to PM when I need to change something. (sniffing aquilonia and fury)
-Yite [Crom]

Offline Maxie

  • BeBot Rookie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: New Central itemDB (!item[s|reg])
« Reply #279 on: March 09, 2011, 06:14:43 pm »
Thanks, Getrix =)

Offline Kentarii

  • BeBot Apprentice
  • ***
  • Posts: 153
  • Karma: +0/-0
    • AoC>TV
Re: New Central itemDB (!item[s|reg])
« Reply #280 on: March 09, 2011, 06:54:16 pm »
Thanks Getrix :)

It works even though the hashes doesn't match.

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: New Central itemDB (!item[s|reg])
« Reply #281 on: March 09, 2011, 07:01:01 pm »
Will a change be required for the global sniffers? Feel free to PM when I need to change something. (sniffing aquilonia and fury)


This two function needs to be this in Core/AoC/Items.php

Code: [Select]
function parse_items($itemText)
    {
        $itemPattern = $this -> get_pattern();
        $items = array();

        $count = preg_match_all('/'.$itemPattern.'/i', $itemText, $matches, PREG_SET_ORDER);

        foreach($matches as $match)
        {
            $item['lowid']   = $match[2];
            $item['highid']  = $match[3];
            $item['ql']      = $match[5];
            $item['lowcrc']  = $match[6];
            $item['highcrc'] = $match[7];
            $item['colour']  = $match[9];
            $item['name']    = $match[10];
            $items[] = $item;
        }
        return $items;
    }

If you have this on line 46: (Else fix the function get_pattern)
Code: [Select]
var $itemPattern = '(<a style="text-decoration:none" href="itemref:\/\/([0-9]*)\/([0-9]*)\/([0-9]*)\/([0-9]*)\/([0-9a-f]*\:[0-9a-f]*\:[0-9a-f]*:[0-9a-f]*)\/([0-9a-f]*\:[0-9a-f]*\:[0-9a-f]*:[0-9a-f]*)\/([0-9a-f]*\:[0-9a-f]*\:[0-9a-f]*:[0-9a-f]*)"><font color=#([0-9a-f]*)>\[([\\-a-zA-Z0-9_\'&\s\-\:]*)\]<\/font><\/a>)';
Not sure if you have this function or not:

Code: [Select]
function get_pattern() {
        $language = $this -> bot -> core("settings") -> get("Items", "Language");
            if ($language == "RU") {
          $item_pattern = '(<a style="text-decoration:none" href="itemref:\/\/([0-9]*)\/([0-9]*)\/([0-9]*)\/([0-9]*)\/([0-9a-f]*\:[0-9a-f]*\:[0-9a-f]*:[0-9a-f]*)\/([0-9a-f]*\:[0-9a-f]*\:[0-9a-f]*:[0-9a-f]*)\/([0-9a-f]*\:[0-9a-f]*\:[0-9a-f]*:[0-9a-f]*)"><font color=#([0-9a-f]*)>\[([\pL_\'&\s\-]*)\]<\/font><\/a>)';   
        }
        elseif ($language == "FR")  {
          $item_pattern = '(<a style="text-decoration:none" href="itemref:\/\/([0-9]*)\/([0-9]*)\/([0-9]*)\/([0-9]*)\/([0-9a-f]*\:[0-9a-f]*\:[0-9a-f]*:[0-9a-f]*)\/([0-9a-f]*\:[0-9a-f]*\:[0-9a-f]*:[0-9a-f]*)\/([0-9a-f]*\:[0-9a-f]*\:[0-9a-f]*:[0-9a-f]*)"><font color=#([0-9a-f]*)>\[([\\-a-zA-ZàâçèéêîôùûÄÆÇÊÌÍÎÏÒÓÔÕÖØÙÚÛÜÝáãäåæçëìíïñòóôõöøùúûüýÿ0-9_\'&\s\-\:]*)\]<\/font><\/a>)';
            }
        elseif ($language == "DE") {
          $item_pattern = '(<a style="text-decoration:none" href="itemref:\/\/([0-9]*)\/([0-9]*)\/([0-9]*)\/([0-9]*)\/([0-9a-f]*\:[0-9a-f]*\:[0-9a-f]*:[0-9a-f]*)\/([0-9a-f]*\:[0-9a-f]*\:[0-9a-f]*:[0-9a-f]*)\/([0-9a-f]*\:[0-9a-f]*\:[0-9a-f]*:[0-9a-f]*)"><font color=#([0-9a-f]*)>\[([\\-a-zäöüßA-ZÄÖÜ0-9_\'&\s\-\:]*)\]<\/font><\/a>)';   
        }
        else {
          $item_pattern = '(<a style="text-decoration:none" href="itemref:\/\/([0-9]*)\/([0-9]*)\/([0-9]*)\/([0-9]*)\/([0-9a-f]*\:[0-9a-f]*\:[0-9a-f]*:[0-9a-f]*)\/([0-9a-f]*\:[0-9a-f]*\:[0-9a-f]*:[0-9a-f]*)\/([0-9a-f]*\:[0-9a-f]*\:[0-9a-f]*:[0-9a-f]*)"><font color=#([0-9a-f]*)>\[([\\-a-zA-Z0-9_\'&\s\-\:]*)\]<\/font><\/a>)';   
        }
        return $item_pattern;
    }
« Last Edit: March 09, 2011, 07:04:43 pm by Getrix »
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline keirou

  • BeBot Apprentice
  • ***
  • Posts: 90
  • Karma: +0/-0
Re: New Central itemDB (!item[s|reg])
« Reply #282 on: March 24, 2011, 07:50:11 pm »
im getting 502 errors.

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: New Central itemDB (!item[s|reg])
« Reply #283 on: March 24, 2011, 10:27:06 pm »
This was solved.
Error was that botname was with all characters low in botname.conf variable.

Next version whenever it will be live will probly have a fix for this userproblem ;)
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline keirou

  • BeBot Apprentice
  • ***
  • Posts: 90
  • Karma: +0/-0
Re: New Central itemDB (!item[s|reg])
« Reply #284 on: March 25, 2011, 09:41:09 am »
its was the age old pebkac issue :)

me

 

* Recent Posts
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 ]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm ]

* Who's Online
  • Dot Guests: 237
  • 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