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

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

Author Topic: AODB Items parsing script for Bebot  (Read 3819 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
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


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 ]

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