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

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

Author Topic: Nano formulas module  (Read 44489 times)

0 Members and 2 Guests are viewing this topic.

Offline shadowballs

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: Nano formulas module
« Reply #30 on: March 28, 2007, 05:43:12 pm »
my quest for a great guild-bot continues and Ive noticed some problems with the !nano script. after Ive installed this script one of my guilder's typed !nano and dropped a ID into the chat, while the bot replied and showed a list with the nano that the ID would make I noticed later on that I got some warnings in the bot log.

Code: [Select]
[2007-03-28 12:31:55]   [GROUP] [MSG]   [Wanted] Laradvy: !nano [link]Instruction Disc (Chaotic Entropy)[/link]
Warning: preg_grep(): Compilation failed: missing ) at offset 8 in C:\Program Files (x86)\BeBot_v0.2.11\modules\Nano.php on line 158
Warning: preg_grep(): Compilation failed: missing ) at offset 8 in C:\Program Files (x86)\BeBot_v0.2.11\modules\Nano.php on line 164
Warning: preg_grep(): Unknown modifier 'a' in C:\Program Files (x86)\BeBot_v0.2.11\modules\Nano.php on line 158
Warning: preg_grep(): Unknown modifier 'a' in C:\Program Files (x86)\BeBot_v0.2.11\modules\Nano.php on line 164
[2007-03-28 12:31:56]   [GROUP] [MSG]   [Wanted] Wanbot: 6 nano formulas found :: [link]click to view[/link]

Ive tried that myself now with a ID for Complete Healing and the same thing happened again. from what I can tell, it looks like the search engine runs into troubles when the search contains an instruction disk.

Search 1.
Using a real Instruction Disc (Complete Healing) that I drop into the chat gives me a result list containing 6 nano's and the bot log spams the listed warnings above and the results window has the following header
Code: [Select]
Nanos
Matching name: 'itemref://147107/147107/169', '<a', 'href=>instruction', 'disc', '(complete', 'healing)'

Search 2.
Typing !nano Instruction Disc (Complete Healing) gives me a search result of 18 nano's, and these warnings
Code: [Select]
[2007-03-28 15:26:24]   [GROUP] [MSG]   [Wanted] Shadowballs: !nano Instruction Disc (Complete Healing)
Warning: preg_grep(): Compilation failed: missing ) at offset 9 in C:\Program Files (x86)\BeBot_v0.2.11\modules\Nano.php on line 158
Warning: preg_grep(): Compilation failed: missing ) at offset 9 in C:\Program Files (x86)\BeBot_v0.2.11\modules\Nano.php on line 164
Warning: preg_grep(): Compilation failed: unmatched parentheses at offset 7 in C:\Program Files (x86)\BeBot_v0.2.11\modules\Nano.php on line 158
Warning: preg_grep(): Compilation failed: unmatched parentheses at offset 7 in C:\Program Files (x86)\BeBot_v0.2.11\modules\Nano.php on line 164

Search 3.
Typing !nano Instruction Disc Complete Healing yields a search result of 27 nano's and no warnings.

to me it seems obvious that the search script cant handle parenthesis as search option so that might need fixing, but what I think would be a good option would be making the search script to search and list only the resulting nano when a ID is dropped into the search. With that function my guilders and anyone else using this script could just drop any ID's they might find into the search and immediately find out if the ID could be worth something or not without having to browse through a bunch of nano's that are partial hits.

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: Nano formulas module
« Reply #31 on: March 28, 2007, 06:17:23 pm »
Dropping an actual item into the search term will cause that. It's not designed to parse itemrefs, just text. The module's purpose is to advise where to obtain nanos, not for looking up what a nano does specifically. You can use !items for that. Or just type in "!nano com heal" etc

FYI, dropping an item will not send the text you see to the bot, it will send something like "itemref://12345/23443/100/Complete Healing/" etc. which is how we use other modules to parse items and find their id's and ql's.
Eternalist
General of The Syndicate

Offline shadowballs

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: Nano formulas module
« Reply #32 on: March 28, 2007, 06:35:57 pm »
Im aware of that, but what I thought might be a good idea is that if someone do drop an ID into the search the bot could reply with what nano the ID would would produce and whether it was a shop nano, mission loot/roll, dyna or other, just like the way the search lists nano searches.

So if some froob/noob is out hunting and finds the ID for Grid Armor MK I and have no clue whether he should sell it or not and no'one online in the guild that could answer he could use !nano on the ID and get a reply telling saying:
Code: [Select]
QL60 Nano Crystal (Summon Grid Armor Mk I)
 - Location: RK Dyna - Profession: Fixer
and he would know with that reply that this disk had some significance if he had been told previously that dyna nano's where rare and could be worth alot of money while 'shop' nano's isn't something worth saving

Edit: typo..

Offline Wolfbiter

  • Contributor
  • *******
  • Posts: 149
  • Karma: +0/-0
    • KAZE
Re: Nano formulas module
« Reply #33 on: March 28, 2007, 07:48:03 pm »
Adding such a thing isn't a bad idea (I use the same idea for !pb and dropping patterns), but the first post was a "your script is broken" and not "I think you should add this".
Once you make a bad approach (criticize that it's broken when it isn't), people will have a negative first reaction to whatever you say after that (we're humans and lets face it... we suck ass).

Too many toons.

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: Nano formulas module
« Reply #34 on: March 29, 2007, 12:23:53 am »
Wolfbiter <3

... and yes, the reaction was extremely negative here too ;-)

-jj-

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: Nano formulas module
« Reply #35 on: April 27, 2007, 01:45:45 am »
Updated nano SQL to 17.3.

There are some missing MP nanos, not in VP shop, so I left them out for the time being.

-jj-

Offline tonyuh

  • BeBot User
  • **
  • Posts: 48
  • Karma: +0/-0
Re: Nano formulas module
« Reply #36 on: May 06, 2007, 06:57:55 pm »
hmm.. did you nerf shade nanos on purpose? :P

Code: [Select]
$this->proflist = Array("adventurer","agent","bureaucrat","doctor","enforcer","engineer","fixer","general","keeper","martial¤artist","meta¤physicist","nano¤technician","soldier","trader");

should be

Code: [Select]
$this->proflist = Array("adventurer","agent","bureaucrat","doctor","enforcer","engineer","fixer","general","keeper","martial¤artist","meta¤physicist","nano¤technician","shade","soldier","trader");

Cheers,
Tony

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: Nano formulas module
« Reply #37 on: May 06, 2007, 08:40:37 pm »
Updated PHP, thank you.

-jj-

Offline porter

  • BeBot User
  • **
  • Posts: 28
  • Karma: +0/-0
Re: Nano formulas module
« Reply #38 on: May 20, 2007, 06:15:56 pm »
One smallish detail caught my eye: Scheol seems to be consistently mistyped Schoel.

Offline mookie

  • BeBot User
  • **
  • Posts: 27
  • Karma: +0/-0
Re: Nano formulas module
« Reply #39 on: May 26, 2007, 09:58:40 am »
jjones download offline? Any alt site to grab updates?

Offline mookie

  • BeBot User
  • **
  • Posts: 27
  • Karma: +0/-0
Re: Nano formulas module
« Reply #40 on: May 27, 2007, 02:12:42 am »
Naming convention problem:
The nanos.sql file creates table nanos and the nanos.php script calls for items.nanos in the sql call. Changed the function to ("select * from nanosdb) and renamed the database table to nanodb. Everything works great after this small change.


Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: Nano formulas module
« Reply #41 on: August 15, 2007, 09:52:26 pm »
Any plans to update the SQL with current data?
Eternalist
General of The Syndicate

Offline Hacre

  • BeBot Rookie
  • *
  • Posts: 14
  • Karma: +0/-0
Re: Nano formulas module
« Reply #42 on: August 16, 2007, 07:34:17 am »
Fatal error: Call to a member function on a non-object in /home/ninpo/aobot-test/BeBot/core/nano.php on line 29

Version 0.4.1.  I assumed the new modules settings module is in the latest version (can't find it here on the forums and jj didn't link it)...halp!

Offline Callmefire

  • BeBot Rookie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: Nano formulas module
« Reply #43 on: August 21, 2007, 06:33:36 pm »
Well, ive got a similarly problem:

Fatal error: Cannot use object of type Settings_Core as array in D:\...\Nano.php on line 25


Maybe so can help me out ;)

version 0.4.1 (ive tried it several times, checked it but nothing)

 

* Recent Posts
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 ]


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

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