collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: New Central itemDB (!item[s|reg])  (Read 1237672 times)

0 Members and 8 Guests are viewing this topic.

Offline keirou

  • BeBot Apprentice
  • ***
  • Posts: 90
  • Karma: +0/-0
Re: New Central itemDB (!item[s|reg])
« Reply #45 on: November 17, 2009, 12:13:36 pm »
Im assuming this is what the tech is coming out to sort out

Warning: socket_connect(): unable to connect
  • : No connection could be made because the target machine actively refused it.


whenver someone in guild links an item or does item / items

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: New Central itemDB (!item[s|reg])
« Reply #46 on: November 17, 2009, 05:25:23 pm »
Yes, this has todo with the host is down.
Havent been able to get intouch with the Tech yet :/

Switched to backup host, refresh your DNS cashe or just wait for it to happen....
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline Gauche

  • BeBot Rookie
  • *
  • Posts: 16
  • Karma: +0/-0
Re: New Central itemDB (!item[s|reg])
« Reply #47 on: November 19, 2009, 12:01:49 pm »
Hi i discover a bug when i want to register a new item in french with !itemreg if in the name of item i have : é, è, à, â, ô... i have this message : There is no item reference in your item registration.

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: New Central itemDB (!item[s|reg])
« Reply #48 on: November 19, 2009, 05:15:37 pm »
Ye, missing the expression for French, Spanish, Russian and Polish.
Would be good if someone could give me complete list of low/upercase for this language special chars.
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline Gauche

  • BeBot Rookie
  • *
  • Posts: 16
  • Karma: +0/-0
Re: New Central itemDB (!item[s|reg])
« Reply #49 on: November 19, 2009, 06:35:40 pm »
Ok i'll send you a pm with spécial french chars

Offline xlDanek

  • BeBot User
  • **
  • Posts: 22
  • Karma: +0/-0
Re: New Central itemDB (!item[s|reg])
« Reply #50 on: November 19, 2009, 10:48:09 pm »
I didn't check it if there is a problem, but in Germany we have also some special chars -> german "Umlaute":

Code: [Select]
lowcase: ä, ö, ü, ß
uppercase: Ä, Ö, Ü

The last one of the lowcase chars ("ß") has no uppercase. Actually, it isn't even a german "Umlaut" :D But a german special char.

Offline Margon

  • BeBot Apprentice
  • ***
  • Posts: 80
  • Karma: +0/-0
Re: New Central itemDB (!item[s|reg])
« Reply #51 on: November 19, 2009, 11:54:01 pm »
Code: [Select]
$itemPattern = '(<a style="text-decoration:none" href="itemref:\/\/([0-9]*)\/([0-9]*)\/([0-9]*)\/([0-9a-f]*\:[0-9a-f]*\:[0-9a-f]*:[0-9a-f]*)\/([0-9a-f]*\:[0-9a-f]*\:[0-9a-f]*:[0-9a-f]*)"><font color=#([0-9a-f]*)>\[(.*)\]<\/font><\/a>)';

not very vell but it works^^

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: New Central itemDB (!item[s|reg])
« Reply #52 on: November 20, 2009, 12:16:05 am »
Code: [Select]
$itemPattern = '...

That will fix the multilanguage support it seems.
Only problem is that it allows every character in the item name. When thinking about it, it shouldnt be the biggest problem because i can easily ban users and bots from submitting if they start to abuse with submitting false items.

Change line 49 in Core/aoc/Items.php to:
Code: [Select]
DONT USE
The current line looks like:
Code: [Select]
var $itemPattern = '(<a style="text-decoration:none" href="itemref:\/\/([0-9]*)\/([0-9]*)\/([0-9]*)\/([0-9a-f]*\:[0-9a-f]*\:[0-9a-f]*:[0-9a-f]*)\/([0-9a-f]*\:[0-9a-f]*\:[0-9a-f]*:[0-9a-f]*)"><font color=#([0-9a-f]*)>\[([\\-a-zäöüßA-ZÄÖÜ0-9_\'&\s\-\:]*)\]<\/font><\/a>)';
Not been able to verify its working on the bot, so want release file before morning.
« Last Edit: November 22, 2009, 05:31:49 pm by Getrix »
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline Gauche

  • BeBot Rookie
  • *
  • Posts: 16
  • Karma: +0/-0
Re: New Central itemDB (!item[s|reg])
« Reply #53 on: November 20, 2009, 01:50:08 pm »
I make some test with your change and it's ok, work with french items.

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: New Central itemDB (!item[s|reg])
« Reply #54 on: November 21, 2009, 04:46:41 pm »
Please do not use that line anymore.

Test this for french:
Code: [Select]
var $itemPattern = '(<a style="text-decoration:none" href="itemref:\/\/([0-9]*)\/([0-9]*)\/([0-9]*)\/([0-9a-f]*\:[0-9a-f]*\:[0-9a-f]*:[0-9a-f]*)\/([0-9a-f]*\:[0-9a-f]*\:[0-9a-f]*:[0-9a-f]*)"><font color=#([0-9a-f]*)>\[([\\-a-zA-ZàâçèéêîôùûÄÆÇÊÌÍÎÏÒÓÔÕÖØÙÚÛÜÝáãäåæçëìíïñòóôõöøùúûüýÿ0-9_\'&\s\-\:]*)\]<\/font><\/a>)';
Use this for russian:
Code: [Select]
var $itemPattern = '(<a style="text-decoration:none" href="itemref:\/\/([0-9]*)\/([0-9]*)\/([0-9]*)\/([0-9a-f]*\:[0-9a-f]*\:[0-9a-f]*:[0-9a-f]*)\/([0-9a-f]*\:[0-9a-f]*\:[0-9a-f]*:[0-9a-f]*)"><font color=#([0-9a-f]*)>\[([\pL_\'&\s\-]*)\]<\/font><\/a>)';
Use this for german:
Code: [Select]
var $itemPattern = '(<a style="text-decoration:none" href="itemref:\/\/([0-9]*)\/([0-9]*)\/([0-9]*)\/([0-9a-f]*\:[0-9a-f]*\:[0-9a-f]*:[0-9a-f]*)\/([0-9a-f]*\:[0-9a-f]*\:[0-9a-f]*:[0-9a-f]*)"><font color=#([0-9a-f]*)>\[([\\-a-zäöüßA-ZÄÖÜ0-9_\'&\s\-\:]*)\]<\/font><\/a>)';
Else it will parse two items linked after each other as one item with the (.*)...
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline Iheaca

  • BeBot User
  • **
  • Posts: 33
  • Karma: +0/-0
Re: New Central itemDB (!item[s|reg])
« Reply #55 on: November 23, 2009, 03:27:35 pm »
I have a bot running on Stygia, could start using it as a sniffer eventually. What would be needed ?

Offline Jippo

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: New Central itemDB (!item[s|reg])
« Reply #56 on: November 29, 2009, 11:42:07 am »
Is it actually possible to get multiple item links with one !item <id> request by sending mutiple ids?

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: New Central itemDB (!item[s|reg])
« Reply #57 on: November 29, 2009, 04:43:04 pm »
No, there is anyway a limit off chars being posted to chat channels.
It is possible to make a function, but i dont see to much need
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline Jippo

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: New Central itemDB (!item[s|reg])
« Reply #58 on: November 29, 2009, 05:10:20 pm »
I think that would be a pretty usefull feature for culture sets...

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: New Central itemDB (!item[s|reg])
« Reply #59 on: November 29, 2009, 05:55:31 pm »
Think it will be better to have it as a seperate command then.
Have been thinking off more functions towards the itemDB, but the spare time latly have been minimal. And im lvling a char@Crom atm, so i actuall play abit on the freetime now :P

But will have this in mind when i feel to code again.
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 499
  • 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