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: Items crafted by guild  (Read 55440 times)

0 Members and 3 Guests are viewing this topic.

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: Items crafted by guild
« Reply #60 on: December 13, 2010, 08:25:07 pm »
You can use phpMyAdmin to delete the table.

http://www.phpmyadmin.net

Offline jimango

  • BeBot User
  • **
  • Posts: 36
  • Karma: +0/-0
Re: Items crafted by guild
« Reply #61 on: January 18, 2011, 03:50:21 am »
hi

I have adjust the module for german users.

the problem: after adjust the module i can add a new item to the guild item list but when i access the guild item list he said "There are no Guild Items."

can anyone help me? Here is the adjusted file.
I have only adjusted the line 53, 58, 74 and 465 with the german categorie words


This is the last link of the file so I wonder have this been fixed?
If so please give me a PM with the new file and Ill update it in the original post.

I have tried to make track of all the beautiful new improvements you all have made to this mod.
So if anyone know of any other functions this module can do at this stage please let me know in a PM.
The functions I have track of is:

!help gitems  - help meny           ~Taxoman and Jimango
!gitems          - list of items        ~Taxoman and Jimango
!gitems add <category1> <category2> <itemlink> - how to add item to list   ~Taxoman and Jimango

-Potions under misc                  ~WeZoN
-modified gems to show color   ~WeZoN  (the forum say WeZon made it, but in the mod it only say Kyr made a fix for this. I guess WeZoN made it.. right?)

!gitem search <part_of_item_name>              ~Kyr
-Show only items made by character               ~Kyr
-Show only items by category                          ~Kyr
-Show only items by category +subcategory   ~Kyr
Updated version with more categories, better function fixes and missing language fix  ~Kyr
Alternative view                                                ~Kyr

If anyone see that I have forgotten any changes or people that should be mentioned please let me know by sending me a message and I will correct it at once.
If not I will try to make a new improved first post with all the changes that have been made.

Best regards Jimango
« Last Edit: January 18, 2011, 02:45:03 pm by jimango »

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: Items crafted by guild
« Reply #62 on: March 13, 2011, 08:33:48 pm »
This module is not working to add items now.  I think its from the patch that changed the item link format.

~Kyr

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: Items crafted by guild
« Reply #63 on: March 13, 2011, 09:12:08 pm »
Try replace line 43:
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>)';With:
Code: [Select]
var $itemPattern = '(<a style="text-decoration:none" href="itemref:\/\/([0-9]*)\/([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]*)\/([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>)';
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 Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: Items crafted by guild
« Reply #64 on: March 14, 2011, 06:14:39 pm »
thank you for your help.  the item now gets added but it doesn't show the item correctly on the list.

Code: [Select]
Armor
  Cloth 
    b290805c:29e627ca:b290805c:29e627ca | QL: 0 | Added by: Kyrit | Main: Kyrit
    Darkfate Armwraps | QL: 80 | Added by: Kyrzon | Main: Kyrit
    Grasp of Death | QL: 72 | Added by: Kyrzon | Main: Kyrit

It shows b290805c:29e627ca:b290805c:29e627ca instead of the item name.

~Kyr

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: Items crafted by guild
« Reply #65 on: March 14, 2011, 06:22:44 pm »
Code: [Select]
//Parse an item
    function parseitem($item)
    {
        preg_match_all("/".$this->itemPattern."/i", $item, $matches, PREG_SET_ORDER);
            foreach ($matches as $match)
            {
                $a[id] = $match[2];
                $a[ql] = $match[4];
                $a[color] = $match[7];
                $a[name] = $match[8];
            }
        return $a;
    }
Into:
Code: [Select]
//Parse an item
    function parseitem($item)
    {
        preg_match_all("/".$this->itemPattern."/i", $item, $matches, PREG_SET_ORDER);
            foreach ($matches as $match)
            {
                $a[id] = $match[2];
                $a[ql] = $match[5];
                $a[color] = $match[9];
                $a[name] = $match[10];
            }
        return $a;
    }
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 Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: Items crafted by guild
« Reply #66 on: March 14, 2011, 10:11:52 pm »
Thank you again Getrix.  That fixes the problem.

~Kyr

Offline GaRoN

  • BeBot User
  • **
  • Posts: 31
  • Karma: +0/-0
Re: Items crafted by guild
« Reply #67 on: March 15, 2011, 03:38:19 pm »
can someone upload the complete new code that works ??

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: Items crafted by guild
« Reply #68 on: March 18, 2011, 02:27:17 am »
Here it is! This will fix the problem where you can't add items since the patch (2.1.3– Dreamworld Technology Update).

Also, I added a little something.  You can choose to show for characters or character and alts.

!gitems charall <character name>
or
!gitems char <character name>

Also, you can see more details in the help.  !help gitems

I updated the default gitems.txt to show for alts in the sample alternate view.  That file is included here too and should be put in the extra folder. (<bot folder>/extra)  And to turn this feature on use !settings guild_items. Enable the Use_Alt_View.

~Kyr
« Last Edit: March 20, 2011, 08:31:40 am by Kyr »

Offline GaRoN

  • BeBot User
  • **
  • Posts: 31
  • Karma: +0/-0
Re: Items crafted by guild
« Reply #69 on: March 18, 2011, 09:46:30 am »
thanks alot  :D

Offline GaRoN

  • BeBot User
  • **
  • Posts: 31
  • Karma: +0/-0
Re: Items crafted by guild
« Reply #70 on: August 03, 2011, 12:08:40 pm »
I have overhauled the german gitems.php & maked a german gitems.txt
 maikee's germanmod had a bug i think .. have not seen the itemlinks and the ql etc. wasn't right..
some categorys are little bit confused but it works fine by mine
gathering staff is Sammeln Stab .. I haven't find a better translation the others are fine ^^
And I don't know why the /gu,/guild,/Gilde command doesn't work..
It also doesn't work by writing in chat-window too...

Greetings GaRoN
« Last Edit: August 03, 2011, 12:12:30 pm by GaRoN »

Offline Yite

  • BeBot Apprentice
  • ***
  • Posts: 152
  • Karma: +0/-0
    • Niflheim - Crom
Re: Items crafted by guild
« Reply #71 on: December 08, 2011, 11:51:55 am »
Added Architect Consumable, Architect Sculpture, Architect Pillar, Architect Centerpiece, Architect Megalith, increased version to 3
-Yite [Crom]

Offline Zeephonz

  • BeBot User
  • **
  • Posts: 43
  • Karma: +0/-0
Re: Items crafted by guild
« Reply #72 on: December 08, 2011, 10:00:32 pm »
Added Architect Consumable, Architect Sculpture, Architect Pillar, Architect Centerpiece, Architect Megalith, increased version to 3

Nice Yite!

Just need a working bot to use it :(

Offline joneitp

  • BeBot Rookie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: Items crafted by guild
« Reply #73 on: January 04, 2012, 01:06:17 pm »
Hello!
Im new to this...
Well ive setup the module and managed to add items on its db... but im getting this error when i click on the item name link:

!item 3806147
[Mercbot]: Error in query to database
Mercbot is my botname

Alread deleted the Table and restarted the bot.. any clues?


Offline joel47

  • BeBot Rookie
  • *
  • Posts: 16
  • Karma: +0/-0
Re: Items crafted by guild
« Reply #74 on: January 05, 2012, 09:02:18 pm »
I used Kyr's March 17  gitems fix and the one with his items and it works for me....

BUT the depot module i'm trying to get going says the same as your problem  Error in database query  Seems like a similar problem.. since they booth seem to referenct !gitems  Could some one help us out on this  thanks all :)

 

* 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: 363
  • 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