BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Age of Conan Archive => BeBot Hyborian modules => Topic started by: kardsen on July 09, 2008, 03:34:39 am
-
Thanks Vry for fixing my code, and to Noer for converting the original 4.x KOS module
This module allows the person in charge of managing guild materials to allow the guild to query what materials are needed and for what purpose
NOTE: IF YOU HAVE USED MY OLD SUPPLIES MODULE (Rev 3 or older). PLEASE PUT THE runmeonce.php file in the modules directory for the next bot load.. then remove it
it deletes the old DB
!supplies =====Display supply list.
!supplies add <material> <amount> <reason> =====Add Material, amount and reason to supplies list.
!supplies givei <itemlink> =====Advertise item to guild";
!supplies givem <material> <amount> =====Advertise materials to guild with available amount.
!supplies change <material> <amount> =====Changes Material amount.
!supplies changemy <material> <amount> =====Changes Players offered Material amount.
!supplies del <material> =====Remove material from supply list.
!supplies delmy <material>=====Removes material or item listing by your character
!supplies delplayer <playername> =====remove all listings by playername
===================================================
Changes
=================================================
Rev1 07/08 Now has option to change material amount
Rev2 07/10 Gave the ability to deny add/change/del commands to only certain group members via the !commands all menu.
Rev3 07/11 Changed default permissions from ADMIN to MEMBER.
Rev4 07/12 Added Features for members to add items and materials available to others.
Rev5 07/13 Fixed error in the !supplies player <playername> command
It should now properly delete the character you are referring to instead of your own.
Rev5a 7/15 Removed reference to kooopatroopa :) srry
Rev6 7/17 Added Advertisement of supplies needed every hour. This is changeable on line 47 of the code ( $this -> register_event('cron', '1hour'); )
if you like to use minutes it would like like $this -> register_event('cron', '15min');
You can change the permissions per command by running
/tell BOTNAME !commands subs supplies
-
try this (note that I've changed the add to require add in the command):
Code snipped as it's now available in the first post>
-
Man Vrykolas,
Everywhere I go you seem to be there to help out :)
Thanks again, worked perfectly.
-
The Bebot team really rocks. I wish companies I paid money to supported their stuff like they do.
Kudos to you Kardsen - I was actually trying to do this module myself, but had trouble getting passed <? ?> :)
-
The Bebot team really rocks. I wish companies I paid money to supported their stuff like they do.
Kudos to you Kardsen - I was actually trying to do this module myself, but had trouble getting passed <? ?> :)
Thank you very much for the kind words meatshield. :)
And very nice module kardsen.
-
Id love an option to be able to do as an example "!supplies add YEW 100 Guild city" and then "!supplies del YEW 35" and have it remove 35 from the 100 instead of deleting it all.
-
hrmm,
Your asking the wrong guy lol. My php skills are not that good to create math with the module :)
I could probably pull of a
!supplies change Yew 65
and have it change the amount to 65
-
change made. See First post for DL.
-
Thanks alot :) thats brilliant and will serve my purpose !
But would it be a far stretch to allow adding of items as well so that people can offer special items or stacks of resources that may not be currently requested ?
-
This is what I am working on per user suggestion...
I hope to have it done by today....
Please keep in mind, I am by no means a php expert.. So my code may not be the best way of doing things.
Feel free to correct my code and give feedback.
!supplies Display supply list
!supplies add <material> <amount> <reason> add a requested material and amount
!supplies givei itemlink add a item you are offering to the guild
!supplies givem material amount add material and amount you are offering to the guild
!supplies change material amount change amount of a material the guild needs
!supplies changem material amountChanges Players offered Material amount.
!supplies del material Remove material from supply list.
!supplies delmine Removes all listing by your character
!supplies delplayer playername remove all listings by playername
Thats alot of commands..... But it keeps the items offered, materials offered, and mats needed separate.
This module was originally meant as a way for the guild members to know what mats the guild needed for the next city building, ect... but I guess it's taking on a life of its own.
Also. I will try to set up each command with its own permissions...
using the /tell BOTNAME !commands subs supplies command
-
Sounds great, yeah it is taking a life of its own it contains the basics for so many different uses, thanks alot for your effort :)
-
Still working on this.
Having trouble with the handling of the item links.
I have a post in the support forums, here's hoping someone can show me my error.
-
Finished!
NOTE: IF YOU HAVE USED MY OLD SUPPLIES MODULE. PLEASE PUT THE runmeonce.php file in the modules directory for the next bot load.. then remove it
it deletes the old DB
!supplies =====Display supply list.
!supplies add <material> <amount> <reason> =====Add Material, amount and reason to supplies list.
!supplies givei <itemlink> =====Advertise item to guild";
!supplies givem <material> <amount> =====Advertise materials to guild with available amount.
!supplies change <material> <amount> =====Changes Material amount.
!supplies changemy <material> <amount> =====Changes Players offered Material amount.
!supplies del <material> =====Remove material from supply list.
!supplies delmy <material>=====Removes material listing by your character
!supplies delplayer <playername> =====remove all listings by playername
-
Would it be hard to code an option to have the bot display the supplies needed in gc on a specified timer?
-
Hia!
Im a bit new to this php and bot thingie but......
I got the bot up and running (Brilliant work guys!)
Where do i edit the text in the window after doing a /Tell bot !supplies (Koopatroopa, is surley a very nice guy but sending all our mats to him might not be an option at this point ;D)
-
open supplies.php search for Koopatroopa and replace it with nick of your choice
-
I will get that removed.. Sorry guys
-
Would it be hard to code an option to have the bot display the supplies needed in gc on a specified timer?
Vain, I'm having some trouble with the new bot. Once I get that ironed out I'll look into this.
-
Added Module advertisement
See first post for new supplies.phps
-
Added Module advertisement
See first post for new supplies.phps
Your the man!
-
Kardsen
Im having a problem loading this module, ill quote from what i posted in the support forums here. :
Hi guys, im hoping for help regarding a module that wont load.
the module i want to run is installed into botfolder\custom\modules (also tried in custom\core and in botfolder\modules with the same result)
What happens is that the bot loads, the custom module seems to load in my commandwindow and ingame i can see the module under !modules.
looks like this under !modules :
Custom_Modules
-Supplies.php - [disable]
but when i try the !supplies command it just gives me a "/tell bot !help" back
and if i try !commands the !supplies is not listed :S
the module i want to run is the "Supplies Needed" but i havent checked with the mod author yet since im guessing its likely a fault on my side that is giving me problems and not a problem with the module :D
I havent labbed any further with this since i posted, but i remember reading somewhere about sub folders for custom modules like /04 and /05
so Kardsen, if youre still reading these forums i would really appreciate a last "omfg noob just do this and your set" :D but i guess a nice reply would do just fine too
-
Hello there,
does anybody know how to delete 1 of the items i have added to the supplies?
Many Members have added more than 1 item with !supplies givei <Itemref> and now want to delete some of them.