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: !item  (Read 4791 times)

0 Members and 2 Guests are viewing this topic.

Offline Aenator

  • BeBot Rookie
  • *
  • Posts: 4
  • Karma: +0/-0
!item
« on: July 13, 2008, 12:36:51 pm »
Hi, i guess i found a bug:
after !item command and linking the item i get the following:

Quote
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/aocdb.lunevo.net/botsearch/index.php on line 71

Hope it helps.

Offline Noer

  • BeBot Apprentice
  • ***
  • Posts: 107
  • Karma: +0/-0
Re: !item
« Reply #1 on: July 13, 2008, 01:08:38 pm »
Hi, i guess i found a bug:
after !item command and linking the item i get the following:

Quote
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/aocdb.lunevo.net/botsearch/index.php on line 71

Hope it helps.

Upgrade to latest version. Thats not how you are supposed to use the module.

Use !items <searchterm>

!item is only used by the module to make the item reference to the actual item.

Offline Aenator

  • BeBot Rookie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: !item
« Reply #2 on: July 13, 2008, 02:38:39 pm »
bebot-hyborian.0.5.0.r24.zip

I understand what it used for, and when it uses numeric data it works fine:
To [Skullbot]: !item 3638431
[Skullbot]: Itemref: [Bloodline Sword]

As i thought if !item support hyper-link, then its a bug, if not, its ok.

But, how about data filtering then? Accept only numeric data in right format and if invalid return normal error..
« Last Edit: July 13, 2008, 02:40:30 pm by Aenator »

Offline Noer

  • BeBot Apprentice
  • ***
  • Posts: 107
  • Karma: +0/-0
Re: !item
« Reply #3 on: July 13, 2008, 04:02:49 pm »
use !items for search, not !item

!items <searchterm>

The search term can contain boolean search operators.

E.g.:
!items girdle
!items +thunderous -girdle
!items "Faded black horse"

etc

 

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