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: Slightly modified items.php  (Read 7933 times)

0 Members and 1 Guest are viewing this topic.

Offline kilyo

  • BeBot Rookie
  • *
  • Posts: 1
  • Karma: +0/-0
Slightly modified items.php
« on: August 11, 2008, 06:19:37 pm »
Hi, was looking for a way to return to local database for items tool, and to be able to do this, i slightly modified the code of the old 2.2 Bebot items.php.
I didn't change anything to formating, so will look rather old, but at least it works.


Edit : I looked on the forum and found Xenixa work on this function, so i basicaly reintegrated his work for the icons stuff.
Quote
            
foreach ($result as $list)
    {
   $inside .= "<img src=rdb://" . $list[5] . ">\n";
        $inside .= "<a href='itemref://" . $list[0] . "/" . $list[1] . "/" . (($ql == 0) ? $list[3] : $ql) . ">" .
   $list[4] . "</a> <font color=CCCCTextColor>[QL " .
   $list[2] . "-" . $list[3] . "]</font>\n\n";
           }

The only thing i did on the previous work is to change the call to makeitem and make blob function :
Quote
$this -> bot ->core('tools')-> make_item

« Last Edit: August 14, 2008, 05:55:11 pm by kilyo »

 

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