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?
December 01, 2008, 10:59:32 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 > 0.4.x Custom/Unofficial Modules > Topic: Updated nanos.php for 0.4
Pages: [1]   Go Down
« previous next »
Print
Author Topic: Updated nanos.php for 0.4  (Read 1399 times)
0 Members and 1 Guest are viewing this topic.
Sabkor
Rookie
**
Offline Offline

Posts: 21


Updated nanos.php for 0.4
« on: August 22, 2007, 10:48:40 AM »

Original module here (along with needed nanos.sql file):
http://bebot.shadow-realm.org/index.php/topic,683.0.html

Any problems, just let me know, I'll see what I can do...

NOTE: I did not write this, and am NOT trying to take credit for it, I only updated it to work with v0.4
« Last Edit: November 14, 2007, 11:27:45 PM by Sabkor » Logged
Nogoal
Rookie
**
Offline Offline

Posts: 61


Re: Updated nanos.php for 0.4
« Reply #1 on: August 23, 2007, 02:16:42 AM »

Code:
$commands["pgmsg"]["nano"] = &$quotes;
  Roll Eyes
Logged
Nogoal
Rookie
**
Offline Offline

Posts: 61


Re: Updated nanos.php for 0.4
« Reply #2 on: September 03, 2007, 10:06:22 AM »

To [Aotn]: !set Nano Icon Off
Aotn: Changed setting Icon for module Nano to 0 [Settings for Nano]
To [Aotn]: !set Nano Icon On
Aotn: Changed setting Icon for module Nano to 0 [Settings for Nano]
Logged
Chakki
Freshman
*
Offline Offline

Posts: 12


Re: Updated nanos.php for 0.4
« Reply #3 on: November 10, 2007, 10:57:22 PM »

Could someone possibly set the SQL somewhere since
it seems like the post from the original linked here isnt quite working?

So an alternative DL link for the SQL? Smiley

Chakki
Logged
Sabkor
Rookie
**
Offline Offline

Posts: 21


Re: Updated nanos.php for 0.4
« Reply #4 on: November 14, 2007, 11:29:09 PM »

Dumped my table using the MySql Admin tool, hopefully it works for you (nanos.zip).

Also updated the nanos.php (nanos.phps) file to include fixes for the typos indicated above.

Hopefully it all works Wink
Logged
Dabaron
Apprentice
***
Offline Offline

Gender: Male
Posts: 145


Re: Updated nanos.php for 0.4
« Reply #5 on: December 05, 2007, 05:19:13 AM »

Has anyone taken the time to update this for the Alapa nano's and such yet?  If so could I get a copy, if not I guess I may start on that update   Tongue
Logged
clashbot
Experienced
****
Online Online

Gender: Male
Posts: 192



Re: Updated nanos.php for 0.4
« Reply #6 on: January 29, 2008, 03:04:42 AM »

ok, well I tried to put the database in via the mysql prompt, and doing source pathto/nanos.sql and it srta kinda dinged me to death and errorred out...can't you tell I'm a sql n00b? lol So how do I compile the sql file into mysql so I can use this one?
Logged
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: Updated nanos.php for 0.4
« Reply #7 on: January 29, 2008, 01:44:06 PM »

i will have a look at this module and make some improvements including a better way to get the data into your db
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
clashbot
Experienced
****
Online Online

Gender: Male
Posts: 192



Re: Updated nanos.php for 0.4
« Reply #8 on: January 29, 2008, 02:05:55 PM »

thanks temar.
Logged
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: Updated nanos.php for 0.4
« Reply #9 on: January 30, 2008, 02:35:10 AM »

Done

now it gets the data, adds to the table by its self (data is Stored on my site)

Note: it only gets Data When it Makes the Table, you need to delete the old table 1st.

Fixed a bug in the Help with link html code
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
porter
Rookie
**
Offline Offline

Posts: 28


Re: Updated nanos.php for 0.4
« Reply #10 on: February 10, 2008, 01:55:01 PM »

I wonder if this module works properly for everyone else... I keep getting every nano as a result (of which 200 displayed) when I ask for example !nano nano ball or in fact use anything other than quoted words from a nano, such as !nano "ball and  chain". With a quoted search term no other search conditions apply, i.e. for example !nano fixer "pain" returns Backpain and 6 other nanos regardless of what profession they are for.

It works a bit better in the 0.2.x bots although it is easy to get the full list of nanos as a result with that, too.
Logged
Wolfbiter
BeBot Contributor
Apprentice
*******
Offline Offline

Posts: 141



WWW
Re: Updated nanos.php for 0.4
« Reply #11 on: February 11, 2008, 03:28:52 AM »

Just looked over the code and debugged some since the search bit is my code originally and it works as it should here.
I can't come up with any reason why it shouldn't work unless you modified the code yourself.
Logged

220 Doctor | 220 Adventurer | 220 Shade
porter
Rookie
**
Offline Offline

Posts: 28


Re: Updated nanos.php for 0.4
« Reply #12 on: February 11, 2008, 04:35:48 PM »

No, did not modify it in any way. Hm, now it actually terminates when I do !nano slquest... No PHP errors in the log. Strange.

Some details in case they help figure out what is wrong: Linux, PHP 5.1.6 (cli) - mysql 5.0.24a - BeBot 0.4.3 set up as a raidbot.
Logged
porter
Rookie
**
Offline Offline

Posts: 28


Re: Updated nanos.php for 0.4
« Reply #13 on: February 11, 2008, 05:49:41 PM »

Ahh, it is the mysterious symbol you have in the regular expressions... This sort of rings a bell now. The bullethole or whatever X-wing fighter it is supposed to be, here: ¤ <- that bugger does not behave and I see it as a mystery character in the code until I edit them all by hand. The bulletholes look like ᅵ to me.

[edit] That is, if I can edit them... Can't seem to get the ¤ to appear now on the server the bots run on... Must be some character encoding conflict.
[edit2] UTF8 encoding has the troublesome character in it, editing now, I hope it works Smiley
[edit3] Does not work. What is that symbol for and can I work around it somehow? Seems you have it marking spaces in profession names that have two words...
[edit4] Seems I managed to get it to work by replacing the ¤ with @
« Last Edit: February 11, 2008, 06:45:27 PM by porter » Logged
clashbot
Experienced
****
Online Online

Gender: Male
Posts: 192



Re: Updated nanos.php for 0.4
« Reply #14 on: March 17, 2008, 11:27:47 AM »

I am also not getting exact matches...even tried the replacing of the bullet character too...it still wants to list all nanos that contain any of the words. other than changing the bullet character, nothing else was done to the file...

[update] ok putting in !nano "anima of" returned 0 results putting !nano "anima of maddening" returned 585 results

[update] still not sure what is going on, replaced the bullets back, special codes still work such as slquest, etc., but still whenever I do !nano "anima of maddening wrath" is still pulling all 585 nanos, like it is ignoring the quotes.
Quote
function nano($input)
   {
      $hftext = false;
      $ftext = false;
      preg_match_all('¤"([^"]+)"¤U',$input,$exact,PREG_SET_ORDER);
      if (!empty($exact))
         foreach ($exact as $loop)
         {
            $ftext = ($ftext ? $ftext." or ":"")."name like '%".$loop[1]."%'";
            $hftext = (!$hftext ? "'$loop[1]'" : $hftext.", '$loop[1]'");
         }
      $input = preg_replace('¤".+"¤',"",$input);
      $input = preg_replace('|\s\s+|',' ',$input);
      $prof = false;
      $ql = false;
      $hql = false;
      $location = false;
      $loc = false;
      $type = false;
      if (!empty($input))

« Last Edit: March 19, 2008, 10:55:07 AM by clashbot » Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > 0.4.x Custom/Unofficial Modules > Topic: Updated nanos.php for 0.4
« previous next »
 
Jump to:  

Recent
[request] Raid timers
by Elesar1
[Today at 04:41:09 PM]

Shared DB online list
by Temar
[Today at 01:55:47 AM]

relay colors
by Temar
[Today at 01:54:56 AM]

BeBot v0.6.0 released
by Alreadythere
[November 30, 2008, 05:32:00 PM]

Change to Bid.php
by Temar
[November 30, 2008, 11:41:44 AM]

OnlineOrg
by Jiheld
[November 29, 2008, 12:44:27 PM]

Silly Newbie Question.
by Temar
[November 29, 2008, 12:00:02 PM]

massive_pvp_time_table 1
by gerborg
[November 29, 2008, 06:55:35 AM]

Bot not see Guild Chat
by Delvar
[November 28, 2008, 08:30:34 AM]

Starting Bot
by Allisande
[November 28, 2008, 07:08:21 AM]
Stats
Members
Total Members: 1243
Latest: Whackoeng
Stats
Total Posts: 11144
Total Topics: 1505
Online Today: 21
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 1
Guests: 16
Total: 17
clashbot

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.475 seconds with 29 queries. (Pretty URLs adds 0.033s, 4q)
Loading...