BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Age of Conan Archive => AoC 0.6.x Custom/Unofficial modules => Topic started by: jimango on February 27, 2009, 10:56:20 am
-
Many have made this mod better and better.
So ill update this first post with the last published files.
If anything is wrong please give me an PM so I can fix it.
This is a mod to keep track of items craftable in the guild.
All the commands is then as follow:
!help gitems
!gitems
!gitems add <category1> <category2> <itemlink>
!gitem search <part_of_item_name>
I gathered the files I could find from the others into this post:
gitems.jpg, gitems.txt, Guild_Items.phps and Guild_Items.phps.germanmodific (made an extra name extension for the last one to see the difference)
In the .phps files just remove the 's' and whatnot that might follow so it becomes .php at the server.
gitems.txt support:
If you want to use the alternate view (not on by default)
* gitems.txt must go in your extra folder
* you must tell the bot !settings guild_items Use_Alt_View on
You can change the gitems.txt file to match the needs of your guild. I have included a screen shot of how my version looks. (if you are familiar with the scripts module this works in a similar fashion)
You can also now hide the delete button (shown by default):
* you must tell the bot !settings guild_items show_delete_button off
~Kyr
People mentioned in these mods are:
Taxoman, Jimango, Kyr, WeZoN and maikee (maikee is only mentioned in the 'Guild_Items.phps.germanmodific' since I dont know if Kyrs last file is a newer version of that one)
-
ok looks like you can't only use for crafting items ... is it possible to add the owner of the item ???
like ...
!gitems add <qty> <category1> <categroy2> <itemlink> <owner>
would this possible ??? would be very nice ...
greetz drizz
-
The player that does the command that i shown will be automaticly regged as the owner ;)
we will soon add a few other things as:
- leather recipes
- nr2 that makes an item allready regged, is just added as owner nr2 (it will look cleaner)
-
I would like to upload an update here, but cant upload the file..
I tried to change it to .txt but it doesnt help..
The message i get say it used to long time to upload, but its a tiny file, how can that be?
-
Email it to thomas.juberg [at] gmail.com and I'll have it posted and also look into why there was issues uploading it.
-
I found the problem, it was the machine i was one that didnt alow it..
So the file is updated now.
Still plans for further develop ;)
-
BUMP!
How is the progress on: ??
- we are still working on the module to have mats needed for each item.
- nr2 that makes an item allready regged, is just added as owner nr2 (it will look cleaner)
-
Is this supposed to go in the modules\AoC folder, or straight into the modules folder?
I had it running last night but when someone added an item it was just a big mess of nonsensical characters for each item added.
Also, does it have to be added as the right category / sub-category, or can my lazy guild members just add things they can make and the person clicking on it can figure out the what it is?
-
Is this supposed to go in the modules\AoC folder, or straight into the modules folder?
I had it running last night but when someone added an item it was just a big mess of nonsensical characters for each item added.
Also, does it have to be added as the right category / sub-category, or can my lazy guild members just add things they can make and the person clicking on it can figure out the what it is?
you put in the module folder in the bot directory!
Yes, you need to put items in category / subcategory, or the items won't show on list and it wil just be a mess..
what you need to to:
!gitems add armor cloth item_you_want_added
-
Thanks for the reply. Unfortunately I doubt many in the guild are up to the task of entering the category and sub-category for each item they enter. Also there are categories missing like Potions.
-
I cannot upload the file here for some reason :S
I have added potions under misc!
I also modified gems to show color!
http://www.cero89.com/downloads/guild_items.zip
-
I might be missing something. Using the commands stated in the OP to add an item .. !gitems add catagory1 subcatagory itemname the result only gives this with the !gitems command:
:: Available Crafted Items In Guild ::
Armor
Cloth
| QL: | Added by: Zoye | [ Delete ]
| QL: | Added by: Zoye | [ Delete ]
Where it says "QL" I would assume that is supposed to be the item name? Did I miss something?
Also a note: the command !gitems help also returns the same text as above in an info window. Please tell me what I did wrong so I can stop bashing my head on the keyboard. my asdf keys are starting to wear off :P
-
Looks like you have a problem with parsing the item link as you only have nickname and type saved.
QL is Item Level. You are also missing Item name, and probly also some IDs and other referances that arent showed but used in dababase.
This can be caused by different .php and database/table version. Best would be to delete guild_items table in your database and restart your bot.
-
Well it would really help if i got some sleep before adding mods...
the commands is:
!help gitems - help meny
!gitems - list of items
!gitems add <category1> <category2> <itemlink> - how to add item to list
As posted by the OP...
I had not used the "link" *bangs head* but the name of the item... lol its working now for us thanks for the reply :)
-
This is working great appreciate you guys getting this set up. Couple questions if you have time to answer. Is there anyway to get this to break down by catagory instead of page after page of returned data?
For example just my recipes alone returns 3 pages of data for members to sift thru. It is also slowing down with a return time each page that got added. Might the !gitems offer a menu to click to the catagory the member would be interested in? and that catagory listing all recipes entered for it?
Also I saw the note that plans are being made or worked on to include the mats needed. That would be nice also, hows the progress for this?
Again thank you
-
Added this today and seems to work good. Thanks.
Weird that it has the same name as a mod I noticed in the archive, not one I want to use so no big deal.
question: Is "Gathering Tradeskill" what you intend for alchemy recipes like Royal Gold and Billon? If not, can you add a new category for that?
question: Can you report a message to the user when the item fails to add because of using the wrong category/sub? Right now it gives a positive message as if the item was added, but it does not show on the list of items.
~Kyr
-
....
*ignore my post*
-
Another issue:
Gem subcategories and the color headings are not working correctly. I'm not sure how to explain this so I have included what is displayed. Other categories/subcategories work as intended. What you can't see is that the colors are all wrong too.
Potions
Misc
Tainted Alkahest | QL: 40 | Added by: XXX | [ Delete ]
Gems
##gitems_heading2end##
Omnific Marquise Pushparagam | QL: 70 | Added by: XXX | [ Delete ]
Omnific Marquise Pushparagam | QL: 70 | Added by: XXX | [ Delete ]
##gitems_heading2end##
Sanguine Radiant Sapphire | QL: 75 | Added by: XXX | [ Delete ]
Sanguine Radiant Sapphire | QL: 75 | Added by: XXX | [ Delete ]
##gitems_heading2end##
Glacial Marquise Jet | QL: 70 | Added by: XXX | [ Delete ]
Glacial Marquise Jet | QL: 70 | Added by: XXX | [ Delete ]
Igneous Marquise Jet | QL: 70 | Added by: XXX | [ Delete ]
~Kyr
-
The problem is that the subcategory is an actually color as defined by BeBot so ##Yellow## gets replaced with some color html code, by adding spaces around the category fixes this.
//Shows Guild Items List
function show_gitems($name)
{
if (empty($this -> items_list)) return "There are currently no Guild Items.";
$blob = "<font color='SILVER' face='hyborianlarge'>:: Available Crafted Items In Guild ::</font>\n";
if (!empty($this -> items_list))
{
$item_cat = "";
$item_cat2 = "";
foreach ($this -> items_list AS $items)
{
$item_category = preg_split('/ /', $items['item_cat']);
if ($this -> bot -> core("security") -> check_access($name, $this -> bot -> core("settings") -> get('Guild_Items', 'Item_Del')))
{
$delete = "##gitems_highlight1##|##end## [ " . $this -> bot -> core("tools") -> chatcmd("gitems del $items[id]", "Delete") . " ]";
}
$itemlink = $this -> itemlink("item $items[item_id]", "$items[item_color]", "$items[item_name]");
if($item_cat<>$item_category[0])
{
$blob .= "\n##gitems_heading1##$item_category[0]##end##\n";
$blob .= "##gitems_heading2## $item_category[1] ##end##\n";
$blob .= " $itemlink ##gitems_highlight1##|##end## ##gitems_highlight2##QL:##end## $items[item_ql] ##gitems_highlight1##|##end## ##gitems_highlight2##Added by:##end## $items[item_addedby] $delete\n";
$item_cat2 = $item_category[1];
} else {
if($item_cat2<>$item_category[1])
{
$blob .= "##gitems_heading2## $item_category[1] ##end##\n";
$blob .= " $itemlink ##gitems_highlight1##|##end## ##gitems_highlight2##QL:##end## $items[item_ql] ##gitems_highlight1##|##end## ##gitems_highlight2##Added by:##end## $items[item_addedby] $delete\n";
} else {
$blob .= " $itemlink ##gitems_highlight1##|##end## ##gitems_highlight2##QL:##end## $items[item_ql] ##gitems_highlight1##|##end## ##gitems_highlight2##Added by:##end## $items[item_addedby] $delete\n";
}
$item_cat2 = $item_category[1];
}
$item_cat = $item_category[0];
}
}
return $this -> bot -> core("tools") -> make_blob("Guild Items", $blob);
}
-
Made some more changes to this.
- show only items made by character
- show only items by category
- show only items by category + subcategory
- show message when trying to add with invalid category or subcategory
~Kyr
edit-- some how I attached the wrong file here. Will make a new reply with the correct file.
-
getting a wierd text in the middle of the gems section.
Gems
##gitems_heading2end##
Omnific Marquise Pushparagam | QL: 70 | Added by: xxx | [ Delete ]
##gitems_heading2end##
Sanguine Radiant Sapphire | QL: 75 | Added by: xxx | [ Delete ]
-
Here is the correct file. Sorry about the confusion.
~Kyr
-
Love this module. We've been having problems as of late with the item lookup since the last patch though. It was working perfectly before.
The error message is:
Warning: socket_read(): unable to read from socket - : An existing connection was forcibly closed by the remote host.
in C:\BeBot\main\14_Tools.php on line 210
Any idea's?
-
Thats probly something todo with the old item database...
http://bebot.link/index.php/topic,2041.0.html
-
I dont have this problem as I use the new central item DB from Getrix.
-
Is there a way to edit what has been added instead of just deleting? like updating the categories?
-
If you wanted to edit the category or subcategories you could make edits in the table directly, with phpMyAdmin or similar tool for accessing MySql databases.
There is no way built into the module for doing that.
~Kyr
-
Nice module - got this working with the new central itemDB so when people do a search it also lists from the guild_items table who can make it...
-
Very nice module this :)
I'm guessing that the item names are links, but all I get from the bot when clicking on them is this:
!item 3843053
Followed by the bot telling me (in norwegian) that a connection attempt has failed.
Any ideas?
-
you need to be conected to getrix's database to get the links to work
read this thread i think
Re: New Central itemDB (!item[s|reg])
http://bebot.link/aoc-0-6-x-customunofficial-modules/alternative-central-itemdb-(!item!items!itemreg(auto))/msg14663/#msg14663
-
Thanks, didnt know that. Have sent him a pm about getting access.
Thanks :)
-
kk ... we love this module ... but one bug or feature ;)
Armor
Silk
| QL: | Added by: Drizzurden | [ Delete ]
Light
| QL: | Added by: Drizzurden | [ Delete ]
Medium
| QL: | Added by: Drizzurden | [ Delete ]
Bestienzorn-Armschutz | QL: 79 | Added by: Drizzurden | [ Delete ]
Bestienzorn-Gurt | QL: 79 | Added by: Drizzurden | [ Delete ]
we are on german server Mitra and we ad items with ä,ö,ü these items would not be shown in the gitems overview ... ist there any workaround to see this items ... and no pls nothing like ... hey just use the eng items ;)
thanks drizz
-
!item 3860703
Error in query to database
i got this error when i want to see the stat for the item any idea why?
thx
-
New version attached:
- It will add some new categories from the last patch and some that should have been there all along.
- I hope it will fix the german language problem as reported here (please test and verify)
- Can add items to the list even if they have a colon(:) in the name.
~Kyr
-
i really love this module and so do all my guildys
but ive seemed to encoutered a problem with ours to start with everything added to the list fine but now ive got to 15 items in gitems although we still get the this item has been added message they dont show up in the list only the first 15 that were added
its like there should be a second page or something but i cant seem to get to it or maby its just not properly adding to the database any ideas ?
-
!item 3860703
Error in query to database
i got this error when i want to see the stat for the item any idea why?
thx
Because the database BeBot is referring to doesn't any longer exist.
-
The entire list is now almost 20 pages for my guild. As you can imagine this takes awhile to complete and prohibits other bot commands from responding until the 20 pages have finished displaying.
As a result I am working on a new version that won't show the whole thing at once and instead will provide an alternate view, a list of category searches that users can click on. I will add a setting to use the view how it looks now (the default) or my new alternate view.
Also, it was requested by a guildie that when you search by character it show what that characters other toons can make. Also, adding main to the display list.
If anyone has suggestions related to these changes or other requests feel free to say so.
(this was previously mistakenly posted on instance bound tracker)
And now has been complete and is being tested now.
I made the first page template like so guilds can format to their own needs.
Also added an option to not show the delete button even if you are permitted to delete. Made the list longer plus I was accidentally deleting items from the list.
-
From my view the !gitems listing is abit heavy and personaly i disabled the possible to view that list ingame. Added a browsing page on forum with aoc.yg.com pictures for easier browsing.
@Kyr: I think your changes will be a good way of fixing the problem.
-
Here it is!
If you want to use the alternate view (not on by default)
- gitems.txt must go in your extra folder
- you must tell the bot !settings guild_items Use_Alt_View on
You can change the gitems.txt file to match the needs of your guild. I have included a screen shot of how my version looks. (if you are familiar with the scripts module this works in a similar fashion)
You can also now hide the delete button (shown by default):
- you must tell the bot !settings guild_items show_delete_button off
~Kyr
-
This is an excellent module, and works very well.
What would be very cool, is to have a clickable "i can do this too" kind of link next to each loaded item, so that if anyone else can craft it, they just need to click the link as opposed to having to load it up themselves the long way.
Just a thought.
-
That's an interesting idea Zeephonz, I will think about it.
-
I added a search function.
!gitems search <part of item name>
Also provided a new alternate view script that demonstrates how to use the search (remember this goes in the bots extra folder, and you have to enable its use in '!settings guild_items'). Personally I like the old one better, because in order to fit the search samples in I had to remove some of the formatting. Not sure what the limit is on scripts, but it was cutting it off when I added the sample searches.
Enjoy!
~Kyr
-
I added a search function.
!gitems search <part of item name>
Also provided a new alternate view script that demonstrates how to use the search (remember this goes in the bots extra folder, and you have to enable its use in '!settings guild_items'). Personally I like the old one better, because in order to fit the search samples in I had to remove some of the formatting. Not sure what the limit is on scripts, but it was cutting it off when I added the sample searches.
Enjoy!
~Kyr
Its work!!!))))
But i dont any items delete.....
Edit plz this module :(
-
Have you added items to your list?
Did it give you a positive message when you added them?
I will need more information if you want me to help ya.
Might help if you post a screen shot or copy of the text output.
~Kyr
-
Have you added items to your list?
Did it give you a positive message when you added them?
I will need more information if you want me to help ya.
Might help if you post a screen shot or copy of the text output.
~Kyr
thx.work.but dont work delete items.
i have question.
i can add items another people?
-
nope, you cannot add items for other people.
-
nope, you cannot add items for other people.
yes i cannot delete my items and another people too.its no work
-
I have verified that there is a problem with deleting guild items. I will fix this bug and repost a new file. Thank you for reporting this bug.
~Kyr
-
I have verified that there is a problem with deleting guild items. I will fix this bug and repost a new file. Thank you for reporting this bug.
~Kyr
Thx.where you repost this file?
-
Ok, here it is. Pretty sure that was introduced with the new search feature. Thanks for letting me know about it.
~Kyr
-
Ok, here it is. Pretty sure that was introduced with the new search feature. Thanks for letting me know about it.
~Kyr
THX.GREAT.ITS WORK
-
Strange, it does not work for me.
The old database system is down and I switched to a new one that requires server and password. Does this have to do anything with it?
When I do !gitems add Armor Medium 3875347 and type !gitems, I see only this:
:: Available Crafted Items In Guild ::
Armor
Medium
:: Also made by :: | QL: | Added by: Bhaltair | Main: Bhaltair | [ Delete ]
How can I solve this?
-
I believe you actually have to give it a real drag and drop item link. A rewrite to accept db links should be possible imho
-
Ahh I see, it's the drag and drop link that works.
Thanks Yite, would be nice if it actually accepts database link.
-
I don't think DB links would be all that useful. If you can make it, then its in your book. Most people wouldn't even know there was an ID.
Feel free to explain why it would be useful.
~Kyr
-
Hi i see this module work fine but i only get this on the scripts
:: Available Guild Items ::
Robes of Incantation ##gitems_highlight1##| ##gitems_highlight2##QL: 62 ##gitems_highlight1##| ##gitems_highlight2##Stock: 1 ##gitems_highlight1##| [ Delete ]
anyone know or have similar problem? tks
-
This module is just super smooth now! Especially the search categories helps a lot.
It was first created by two of our guild members/leaders, and we used the first version for a long time. I'm glad it's been improved though! :) Thanks for all the work you've done!
-
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
-
I suspect that the table still has the old category names in the enum for item_cat. If you and your guild mates haven't added lots of things they can make, delete the table and restart the bot.
Let me know if this doesn't fix you or if you have any more questions.
~Kyr
-
thx for your answer.
But how can i delete the table?
-
You can use phpMyAdmin to delete the table.
http://www.phpmyadmin.net
-
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
-
This module is not working to add items now. I think its from the patch that changed the item link format.
~Kyr
-
Try replace line 43:
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:
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>)';
-
thank you for your help. the item now gets added but it doesn't show the item correctly on the list.
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
-
//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:
//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;
}
-
Thank you again Getrix. That fixes the problem.
~Kyr
-
can someone upload the complete new code that works ??
-
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
-
thanks alot :D
-
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
-
Added Architect Consumable, Architect Sculpture, Architect Pillar, Architect Centerpiece, Architect Megalith, increased version to 3
-
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 :(
-
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?
-
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 :)
-
http://bebot.link/aoc-0-6-x-customunofficial-modules/alternative-central-itemdb-(!item!items!itemreg(auto))/ (http://bebot.link/aoc-0-6-x-customunofficial-modules/alternative-central-itemdb-(!item!items!itemreg(auto))/)
-
Thx for the infos.... Managed to make it work using the infos that Getrix sent me :D
Now it works, but mostly of craftable armorsmith itens that i register on the db wont show its description.. some comes as an empty brackets.
example for this item: Fine Sateen Gloves (its a lvl 60 Coth Gloves )
To [Mercbot]: !item 219064 (this is when i click on item name.)
[Mercbot]:[]
For example the Entire "Fine Silk" set all the pieces wont show the description.
And there are lots of items like this, do i did something wrong or?
PS: Ive already deleted the gitems DB in PHPmyadmin
-
Thank You so much:) Fixed my Depot and EVERYONE in guild is happier and better for it...Your the Best!!