A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

Item_Pricer Class - For Python 3.1.1

908 views · started by Riddle ·
#1
Item_Pricer Class - For Python 3.1.1
Item_Pricer Class: Version 0.1
Python Version: 3.1.1

Used to create Gaiaonline item databases that include the name of the item, the id of the item, and the price of the item in a comprehensible format.

I understand that not many will use this, however for those that are interested in Market Place Bots, then this is a start (since you WILL need something to update your item's data).

I will be using this thread as a journal to document my progress on this class. Even though it is basically finished, I still must polish the script, it's good practice and will make a difference on big programs.

Any suggestions on what other features might be added are welcomed.

[b]To do for Version 0.2:[/b]
1. Document code

[b]To do for Version 0.3:[/b]
1. Clean code, get rid of all those global variables and un-needed crap

[b]To do for Version 0.4:[/b]
1. Add error-handling!!

[b]To do for Version 0.5:[/b]
1. Make a settings file which will be read to customize the enviroment


Progress:
Jan 10, 2010: Finished writing the major concepts of the class. It is functional and can be applied in other programs, however there is no error-handling and there is a risk for crash.


To test it, just extract all three .py documents and run Item_Pricer.py.
#2
God I hate the look of Python syntax. But as more and more people are becoming converts I guess I'll have to start using it sooner or later. It looks good.
#3
You wont, exactly. If you use C# you can do similar functions with it and in a better syntax that you'd probably like.
#4
Python is only used because it has outstanding mathematical computation skillz and because it's fast to script in + cross-platform.