General > Feedback and Suggestions

[AoC] special char for items module

(1/1)

MAGE:
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)?

MAGE:
For example with a linked item named "armoise":

--- Code: ---***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: ).

--- End code ---

For example with a linked item named "Attaches de qualité supérieure":

--- Code: ---*** [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]

--- End code ---
Then bot dont do anything



(posted with firefox)

bitnykk:
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

Navigation

[0] Message Index

Go to full version