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: AODB Items parsing script for Bebot  (Read 1682 times)

0 Members and 1 Guest are viewing this topic.

Offline Xenixa

  • Contributor
  • *******
  • Posts: 307
  • Karma: +0/-0
AODB Items parsing script for Bebot
« on: May 03, 2006, 03:58:29 am »
Going to make this script available to the Bebot community
Hopefully some of you find it useful or maybe some of you might find a better way to run the Parsing routines.

Read the header info in the attached file on how to use. Rename to .php of course. :)

Warning: Depending on the machine used be prepared to spend approx 30 to 45 mins letting this script run.
Do not use this on a production database. I suggest setting up a test database and copying to live bot db once your happy with the results.

EDIT: DOH!!! I would toss up the wrong copy of that file. :-\ Correct copy attached now.

Edit #2: Found a problem already with my own script.
Change this part in the Attached script:
Code: [Select]
// Special sort cases to correctly set ID or QL Ranges
        if (strstr($name, "Symbiant,")) { $lid = $hid; }
        if (preg_match('/^Basic /i', $name)) { $hql = 100; }
        if (preg_match('/^Augmented /i', $name)) { $lql= 101; }
        if (preg_match('/^Worn /i', $name)) { $hql = 100;  }
        if (preg_match('/^High-Quality /i', $name)) { $lql= 101; }
        if (preg_match('/^Inferior /i', $name)) {$hql = 100; }
        if (preg_match('/^Flawless /i', $name)) {  $lql= 101; }

To this (Makes it more accurate):
Code: [Select]
// Special sort cases to correctly set ID or QL Ranges
        if (strstr($name, "Symbiant,")) { $lid = $hid; }
        if (preg_match('/^Basic /i', $name) && $lql == $hql && $icon != '') { $hql = 100; }
        if (preg_match('/^Augmented /i', $name) && $lql == $hql && $icon != '') { $lql= 101; }
        if (preg_match('/^Worn /i', $name) && $lql == $hql && $icon != '') { $hql = 100; }
        if (preg_match('/^High-Quality /i', $name) && $lql == $hql && $icon != '') { $lql= 101; }
        if (preg_match('/^Inferior /i', $name) && $lql == $hql && $icon != '') { $hql = 100; }
        if (preg_match('/^Flawless /i', $name) && $lql == $hql && $icon != '') {  $lql= 101; }


« Last Edit: May 03, 2006, 04:59:07 am by Xenixa »
<<< Hack's in Zend Studio

All my Custom Bebot files may be Found Here <-clicky

 

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