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: Tradeskill module  (Read 4137 times)

0 Members and 1 Guest are viewing this topic.

Offline saik0

  • BeBot Rookie
  • *
  • Posts: 13
  • Karma: +0/-0
Tradeskill module
« on: August 01, 2008, 06:22:42 pm »
This is my first module, it allows people to tell the bot what tradeskills they have and ask the bot for a list. The fun part was writing the GUI for people to change their own skills around. It's still very much beta, but pretty usable. Me and my guild are pretty happy with it thus far.

Member commands
!tradeskill - Lists all the characters that have tradeskills by online status, type, skill, and tier
!tradeskill set - Gives the player a GUI to change their skills.

Commands used by GUI
!tradeskill add <skill> <tier> - Adds a skill or changes the tier. Tier is optional.
!tradeskill del <skill> - Removes a skill.

Download
Most recent version attached at the bottom of this post. You must be registered and logged in to download.

Yet to come
Tradeskill info in Whois details
Searching and sorting options.
Spamming level appropriate characters who have not set tradeskills. (And the ability to shut it off in settings and preferences)

Way off in the horizon...
Guides to each skill.
Info to know what tier you're on.

Version history
0.1 - First release

Offline durroch

  • BeBot User
  • **
  • Posts: 43
  • Karma: +0/-0
Re: Tradeskill module
« Reply #1 on: August 02, 2008, 01:27:15 am »
You need to include the ?> at the very end of your module.  It does still work but it's not good practice to leave it out :).  Good job though!

*edit*
Looking at your code and seeing how you used the "impload()" function to insert those values into the enum field of the database gave me an idea for my gitems module :).  If you don't mind, I'd like to use your method?
« Last Edit: August 02, 2008, 01:39:09 am by durroch »

Offline saik0

  • BeBot Rookie
  • *
  • Posts: 13
  • Karma: +0/-0
Re: Tradeskill module
« Reply #2 on: August 02, 2008, 04:28:35 am »
You need to include the ?> at the very end of your module.  It does still work but it's not good practice to leave it out :).  Good job though!

*edit*
Looking at your code and seeing how you used the "impload()" function to insert those values into the enum field of the database gave me an idea for my gitems module :).  If you don't mind, I'd like to use your method?

Oops on the closing tag, it's the first thing I've done in PHP. It took me about a week just to get used to ending lines with a semicolon. (I miss Python)
Feel free to use ANY of my code, I'ts GPLed after all, you could do it whether I like it or not. =)

Offline Tichy

  • BeBot User
  • **
  • Posts: 42
  • Karma: +0/-0
Re: Tradeskill module
« Reply #3 on: August 04, 2008, 06:57:49 am »
You need to include the ?> at the very end of your module.  It does still work but it's not good practice to leave it out :)

Adding a closing "?>"-tag at the end of PHP files should be avioded. They are absolute useless and give the danger of printing accidental output if your file is POSIX conform (ending with a blank line -> your output will always be append with a newline at the end of an included file).

Offline saik0

  • BeBot Rookie
  • *
  • Posts: 13
  • Karma: +0/-0
Re: Tradeskill module
« Reply #4 on: August 04, 2008, 08:43:43 pm »
Bebot doesn't run on the web server, so there's no danger of accidental output after the closing tag.

Offline nhoople

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
    • The Older Gamers
Re: Tradeskill module
« Reply #5 on: August 11, 2008, 12:53:56 am »
Great module.  Using this instead of the default craft module.  Had a question though, would it be possible to limit what trade skills are shown when using the !tradeskill command?  For instance instead of showing all trade skills, just have it show the crafting professions.

Offline saik0

  • BeBot Rookie
  • *
  • Posts: 13
  • Karma: +0/-0
Re: Tradeskill module
« Reply #6 on: August 11, 2008, 01:34:46 am »
Great module.  Using this instead of the default craft module.  Had a question though, would it be possible to limit what trade skills are shown when using the !tradeskill command?  For instance instead of showing all trade skills, just have it show the crafting professions.

I'm trying to work that into the search parameters for the next release. That and the spamming. I'm going to have to look into how bebot uses schema versions for the db and change the structure of the class table to make the module level aware. Should help my guild stop the "i dont know what tier I am" whining.

Offline Organizer

  • BeBot Apprentice
  • ***
  • Posts: 135
  • Karma: +0/-0
Re: Tradeskill module
« Reply #7 on: August 11, 2008, 11:47:07 am »
saik0 good work m8, sounds like I will try this bot for my guild whenever you're done with the next version. Need spamming members to set crafts like the original, and would not hurt if the latest !whois would be changed as well + the great plans you are looking into, I can believe "i don't know what tier I am" is a concern for most guilds :)

 

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