BeBot - An Anarchy Online and Age Of Conan chat automaton

General => Feedback and Suggestions => Topic started by: MAGE on February 09, 2024, 07:28:32 pm

Title: [AoC] special char for items module
Post by: MAGE 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)?
Title: Re: [AoC] special char for items module
Post by: MAGE 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)
Title: Re: [AoC] special char for items module
Post by: bitnykk 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
SimplePortal 2.3.7 © 2008-2024, SimplePortal