Archive > BeBot Hyborian modules

Guild Items

(1/5) > >>

durroch:
Greetings,

I've put together a module that helps your guild keep track of what items the guild currently owns.  It will show a list of every item in stock so your members can see what the guild currently has.  If an item is currently out of stock it will not be shown on the list.  If an item is out of stock but is loaned to someone, it will show it on the list but tell the person looking that it's currently loaned out. I will be adding screen shots as soon as my guild gets all our items propagated into the database.

This is my very first module so if some of you guru's out there want to give me some pointers, drop me a PM or reply to this post :).  Also if anyone would like a feature tweaked or added, let me know.

When I mention <itemlink> it means to drag an item to the chat and drop it in.

Working On
-[ Done ] Sprucing up the code
-[ Done ] Adding colors to each item listed (i.e. grey, green, blue, purple)
-[ Done ] Add a function to show all items that have been 'Given' and 'Loaned' because you are not always going to have the item in your inventory to do !gitems history item <itemlink> and you're not always going to remember who has what using the !gitems history member <Name> command.

Screen Shots
List of Items (Page 1 of 4) - Note: The [ Delete ] button will not be there when someone lower than Admin uses the !gitems command.


List of Items (Page 2 of 4) - Note: The [ Delete ] button will not be there when someone lower than Admin uses the !gitems command.


History of a Member (Durroch)


History of an Item (Clan Gaud Chestguard)


Below is quoted from the bots help command:

--- Quote ---::::: HELP ON GITEMS :::::

Keeps track of what items the Guild currently owns and also what the guild has loaned out or given to its members

 !gitems - Shows a list of all the items the Guild owns.
 !gitems add <qty> <category1> <category2> <itemlink> - Adds an item to the list.
 !gitems give <member> <qty> <itemlink> - Permanently gives an item to a Guild Member and records it in the transaction history of said Member.
 !gitems loan <member> <qty> <itemlink> - Loans an item to a Guild Member and records it in the transaction history of said Member.
 !gitems update add <qty> <itemlink> - Adds <qty> to the current stock of the specified item.
 !gitems update rem <qty> <itemlink> - Subtracts <qty> from the current stock of the specified item.
 !gitems history member <member> - Gives you a transaction history of all items given or loaned to <member>, as well as items checked back in.
 !gitems history item <itemlink> - Gives you a transaction history of loans and who's been given the specified item.
 !gitems history all - Gives you a transaction history every item every loaned or given.

NOTES:
Created by Durroch - Invictrum Guild Leader - US-Derketo
When using the Add sub-command to add an item (i.e. !gitems add 1 Armor Heavy <itemlink>) to the Guild Items list please use the following categories:
Armor Cloth
Armor Silk
Armor Light
Armor Medium
Armor Heavy
Armor Plate
Armor Shields
Armor Back
Weapons 1HE
Weapons 2HE
Weapons 1HB
Weapons 2HB
Weapons Daggers
Weapons Polearms
Weapons Staves
Weapons Bows
Weapons Arrows
Weapons Crossbows
Weapons Bolts
Weapons Thrown
Misc Necklaces
Misc Rings
Misc Talismans
Potions Mana
Potions Stamina
Potions Health
Gems Rhombic
Gems Trillion
Gems Oval
Gems Teardrop
Gems Oblique
Gems Cabochon

--- End quote ---

Roath:
what about tradeskill resources? would be nice to be able to add, for example resources for the guildcity, alchemy or similar

Organizer:

--- Quote ---what about tradeskill resources? would be nice to be able to add, for example resources for the guildcity, alchemy or similar
--- End quote ---

He left that out on purpose as we have mods like the !city guild management module to take care of such a resource list...

Loden:
Good work Durroch

Very well done.  Are you doing ok with quality recognition?  Looks like items has something in there for that.  I'm working on adding an item request link, allowing members to add/delete their names from the record as an interested party and allowing folks with proper premissions to raffle it for the interested parties.

Sounds like a bit much but you've got a great template here to work from.  Much further along than I was.

I'll give you my results if you haven't already coded something similar when I'm done.

durroch:
Thank you, I appreciate that :).
I believe there's already a raffle function in the bot so I'm not too keen to reinvent the wheel. 
Yes, I used the code from Items.php that already figured out how to extract the QL, Name, ItemID, and Color :).  This weekend, my guild will be propagating this module so I will take screen shots after it's done :).

Navigation

[0] Message Index

[#] Next page

Go to full version