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

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

Author Topic: Items crafted by guild  (Read 35547 times)

0 Members and 2 Guests are viewing this topic.

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: Items crafted by guild
« Reply #15 on: October 22, 2009, 08:03:36 pm »
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
« Last Edit: October 22, 2009, 08:06:45 pm by Kyr »

Offline Margon

  • BeBot Apprentice
  • ***
  • Posts: 80
  • Karma: +0/-0
Re: Items crafted by guild
« Reply #16 on: October 26, 2009, 06:59:11 pm »
....
*ignore my post*
« Last Edit: October 26, 2009, 10:34:37 pm by Margon »

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: Items crafted by guild
« Reply #17 on: November 02, 2009, 11:06:23 pm »
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.

Quote from: names replaced with XXX to protect the guilty
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

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: Items crafted by guild
« Reply #18 on: November 03, 2009, 01:29:24 am »
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.

Code: (replace the function show_gitems with the one below 2 lines (104 thru 147) with this) [Select]
//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##&nbsp;&nbsp;$item_category[1]&nbsp;##end##\n";
$blob .= "&nbsp;&nbsp;&nbsp;&nbsp;$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##&nbsp;&nbsp;$item_category[1]&nbsp;##end##\n";
$blob .= "&nbsp;&nbsp;&nbsp;&nbsp;$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 .= "&nbsp;&nbsp;&nbsp;&nbsp;$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);
}

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: Items crafted by guild
« Reply #19 on: November 04, 2009, 12:46:26 am »
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.
« Last Edit: November 08, 2009, 08:46:37 pm by Kyr »

Offline viggen

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: Items crafted by guild
« Reply #20 on: November 06, 2009, 11:18:33 pm »
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 ]



Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: Items crafted by guild
« Reply #21 on: November 08, 2009, 08:52:25 pm »
Here is the correct file.  Sorry about the confusion.

~Kyr

Offline Direwolf19

  • BeBot Rookie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Items crafted by guild
« Reply #22 on: November 14, 2009, 08:35:15 pm »
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?

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: Items crafted by guild
« Reply #23 on: November 15, 2009, 12:21:33 am »
Thats probly something todo with the old item database...
http://bebot.link/index.php/topic,2041.0.html
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 #24 on: November 15, 2009, 04:40:34 am »
I dont have this problem as I use the new central item DB from Getrix.

Offline Taker

  • BeBot Rookie
  • *
  • Posts: 11
  • Karma: +0/-0
Re: Items crafted by guild
« Reply #25 on: December 27, 2009, 06:42:31 am »
Is there a way to edit what has been added instead of just deleting? like updating the categories?

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: Items crafted by guild
« Reply #26 on: December 28, 2009, 05:13:16 pm »
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

Offline BoA-Gert

  • BeBot User
  • **
  • Posts: 45
  • Karma: +0/-0
Re: Items crafted by guild
« Reply #27 on: January 07, 2010, 11:49:32 am »
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...

Offline Shaidar

  • BeBot Rookie
  • *
  • Posts: 11
  • Karma: +0/-0
Re: Items crafted by guild
« Reply #28 on: February 14, 2010, 01:16:50 pm »
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?

Offline fowlskins

  • BeBot User
  • **
  • Posts: 33
  • Karma: +0/-0
Re: Items crafted by guild
« Reply #29 on: February 14, 2010, 02:04:01 pm »
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
« Last Edit: February 14, 2010, 02:10:11 pm by fowlskins »

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 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: 478
  • 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