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: [AoC] special char for items module  (Read 171604 times)

0 Members and 2 Guests are viewing this topic.

Offline MAGE

  • BeBot Rookie
  • *
  • Posts: 13
  • Karma: +0/-0
[AoC] special char for items module
« on: February 09, 2024, 07:28:32 pm »
Hi,

When you send an item in the chat where the bot is, the bot is able to interpret it. However, I noticed that this system does not work with certain items. I realized that these were the items whose names had a special character!

Perhaps the system is like this to avoid URL issues?

Would it be possible to correct this for future versions (note that AoC is in French, German, Polish and also in Russian, in addition to English of course :D)?

Offline MAGE

  • BeBot Rookie
  • *
  • Posts: 13
  • Karma: +0/-0
Re: [AoC] special char for items module
« Reply #1 on: February 09, 2024, 08:29:24 pm »
For example with a linked item named "armoise":
Code: [Select]
***bot [2024-02-09 19:16:46]    [GROUP] [MSG]   [***] ***: <a style="text-decoration:none" href="itemref://1093810/1093810/0/50/2ca099a2:b92fa2f6:837737bb:273058d2/2ca099a2:b92fa2f6:837737bb:273058d2/2ca099a2:b92fa2f6:837737bb:273058d2">[Armoise][/link]
*** [2024-02-09 19:16:46]    [Items] [URL]   https://***/index.php?lowid=1093810&highid=1093810&lowlvl=0&highlvl=50&lowcrc=2ca099a2%3Ab92fa2f6%3A837737bb%3A273058d2&midcrc=2ca099a2%3Ab92fa2f6%3A837737bb%3A273058d2&highcrc=2ca099a2%3Ab92fa2f6%3A837737bb%3A273058d2&color=b7b7b7&name=Armoise&server=***&guildname=***&botname=***&username=***&checksum=d7277160bbb88744dbaf6befc0489f4e
***[2024-02-09 19:16:46]    [TELL]  [OUT]   -> ***: Error: Item Database returned Error (Info: ).

For example with a linked item named "Attaches de qualité supérieure":
Code: [Select]
*** [2024-02-09 19:20:10]    [GROUP] [MSG]   [***] ***: <a style="text-decoration:none" href="itemref://3987670/3987670/0/40/8dddae4d:ddcf8b1a:6129cf35:89b47efc/8dddae4d:ddcf8b1a:6129cf35:89b47efc/8dddae4d:ddcf8b1a:6129cf35:89b47efc">[Attaches de qualit suprieure][/link]
Then bot dont do anything



(posted with firefox)

Offline bitnykk

  • Administrator
  • ********
  • Posts: 82
  • Karma: +0/-0
Re: [AoC] special char for items module
« Reply #2 on: February 09, 2024, 09:41:18 pm »
I see your problem, here's a quick sandbox patch so you can test see if it fixes it :
https://github.com/bitnykk/BeBot/commit/82f8326b58898032220928dc51ab5a96be93b634

 

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