L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2008, 12:07:59 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.2.x Custom/Unofficial Modules > Topic: Nano formulas module
Pages: 1 2 [3]   Go Down
« previous next »
Print
Author Topic: Nano formulas module  (Read 3740 times)
0 Members and 1 Guest are viewing this topic.
shadowballs
Freshman
*
Offline Offline

Posts: 6


Re: Nano formulas module
« Reply #30 on: March 28, 2007, 10:43:12 AM »

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:
[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:
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:
[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.
Logged
Malosar
Expert
*****
Offline Offline

Posts: 259


WWW
Re: Nano formulas module
« Reply #31 on: March 28, 2007, 11:17:23 AM »

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.
Logged

Eternalist
General of The Syndicate
shadowballs
Freshman
*
Offline Offline

Posts: 6


Re: Nano formulas module
« Reply #32 on: March 28, 2007, 11:35:57 AM »

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:
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..
Logged
Wolfbiter
BeBot Contributor
Apprentice
*******
Offline Offline

Posts: 141



WWW
Re: Nano formulas module
« Reply #33 on: March 28, 2007, 12: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).

Logged

220 Doctor | 220 Adventurer | 220 Shade
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Re: Nano formulas module
« Reply #34 on: March 28, 2007, 05:23:53 PM »

Wolfbiter <3

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

-jj-
Logged
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Re: Nano formulas module
« Reply #35 on: April 26, 2007, 06:45:45 PM »

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-
Logged
tonyuh
Rookie
**
Offline Offline

Posts: 48


Re: Nano formulas module
« Reply #36 on: May 06, 2007, 11:57:55 AM »

hmm.. did you nerf shade nanos on purpose? Tongue

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

should be

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

Cheers,
Tony
Logged
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Re: Nano formulas module
« Reply #37 on: May 06, 2007, 01:40:37 PM »

Updated PHP, thank you.

-jj-
Logged
porter
Rookie
**
Offline Offline

Posts: 28


Re: Nano formulas module
« Reply #38 on: May 20, 2007, 11:15:56 AM »

One smallish detail caught my eye: Scheol seems to be consistently mistyped Schoel.
Logged
mookie
Rookie
**
Offline Offline

Posts: 27


Re: Nano formulas module
« Reply #39 on: May 26, 2007, 02:58:40 AM »

jjones download offline? Any alt site to grab updates?
Logged
mookie
Rookie
**
Offline Offline

Posts: 27


Re: Nano formulas module
« Reply #40 on: May 26, 2007, 07:12:42 PM »

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.

Logged
Malosar
Expert
*****
Offline Offline

Posts: 259


WWW
Re: Nano formulas module
« Reply #41 on: August 15, 2007, 02:52:26 PM »

Any plans to update the SQL with current data?
Logged

Eternalist
General of The Syndicate
Hacre
Freshman
*
Offline Offline

Posts: 13


Re: Nano formulas module
« Reply #42 on: August 16, 2007, 12: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!
Logged
Callmefire
Freshman
*
Offline Offline

Posts: 2


Re: Nano formulas module
« Reply #43 on: August 21, 2007, 11:33:36 AM »

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 Wink

version 0.4.1 (ive tried it several times, checked it but nothing)
Logged
Pages: 1 2 [3]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.2.x Custom/Unofficial Modules > Topic: Nano formulas module
« previous next »
 
Jump to:  

Recent
Change text in remember "...
by gerborg
[November 21, 2008, 05:14:57 PM]

Log playtime from buddys ...
by Temar
[November 20, 2008, 10:33:57 AM]

Vote Core module and Simp...
by Temar
[November 19, 2008, 09:26:52 AM]

Restrict access for one m...
by Organizer
[November 19, 2008, 03:21:19 AM]

Custom / Revised Modules ...
by Elesar1
[November 17, 2008, 03:51:46 PM]

TWC
by Temar
[November 16, 2008, 11:39:12 AM]

Are there any FUN modules...
by Elesar1
[November 15, 2008, 07:39:15 PM]

Call to a member function...
by exxie
[November 15, 2008, 09:29:31 AM]

Ported Modules
by Alreadythere
[November 14, 2008, 06:10:07 PM]

cURL and other non-defaul...
by Temar
[November 14, 2008, 04:11:44 PM]
Stats
Members
Total Members: 1235
Latest: DDDepressionnn
Stats
Total Posts: 11037
Total Topics: 1496
Online Today: 18
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 4
Guests: 17
Total: 21
xlDanek
Temar
Stealth
gerborg

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.208 seconds with 30 queries. (Pretty URLs adds 0.034s, 4q)
Loading...