Jump to content

sk8nbail

Members
  • Posts

    61
  • Joined

  • Last visited

Posts posted by sk8nbail

  1. For my Intro. to Computer Sciences class, we had to write a program that we/others would use for our midterm project. Being into Runescape, I decided to write a Mining Calculator from scratch. Its still very basic, and roughly coded in my opinion but it works. I think I will write a calculator for all the other skills and then try and work on a GUI version of them later down the road. Heres the code for the program:

     

     

     

    # Runescape Mining Calculator
    
    # Coded by Dan Collins
    
    # October 23rd 2007
    
    
    
    def main():
    
       print "This program allows the user to enter his current experience,"
    
       print "desired level, and the ore he will be mining to calculate how"
    
       print "many ores he would have to mine to reach that desired level."
    
       print
    
    
    
       # This is a python dictonary used for storing the
    
       # levels and the corresponding experience points
    
       levelexp = { 1 : 0, 2 : 83, 3 : 174, 4 : 276, 5 : 388, 6 : 512, 7 : 650, \
    
                    8 : 801, 9 : 969, 10 : 1154, 11 : 1358, 12 : 1584, 13 : 1833, \
    
                    14 : 2107, 15 : 2411, 16 : 2746, 17 : 3115, 18 : 3523, 19 : 3973, \
    
                    20 : 4470, 21 : 5018, 22 : 5624, 23 : 6291, 24 : 7028, 25: 7842, \
    
                    26 : 8740, 27 : 9730, 28 : 10824, 29 : 12031, 30 : 13363, 31 : 14833, \
    
                    32 : 16456, 33 : 18247, 34 : 20224, 35 : 22406, 36 : 24815, \
    
                    37 : 27473, 38 : 30408, 39 : 33648, 40 : 37224, 41 : 41171, \
    
                    42 : 45529, 43 : 50339, 44 : 55649, 45 : 61512, 46 : 67893, \
    
                    47 : 75127, 48 : 83014, 49 : 91721, 50 : 101333, 51 : 111945, \
    
                    52 : 123660, 53 : 136594, 54 : 150872, 55 : 166636, 56 : 184040, \
    
                    57 : 203254, 58 : 224466, 59 : 247886, 60 : 273742, 61 : 302288, \
    
                    62 : 333804, 63 : 368599, 64 : 407015, 65 : 449428, 66 : 496254, \
    
                    67 : 547953, 68 : 605032, 69 : 668051, 70 : 737627, 71 : 814445, \
    
                    72 : 899257, 73 : 992895, 74 : 1096278, 75 : 1210421, 76 : 1336443, \
    
                    77 : 1475581, 78 : 1629200, 79 : 1798808, 80 : 1986068, 81 : 2192818, \
    
                    82 : 2421087, 83 : 2673114, 84 : 2951373, 85 : 3258594, 86 : 3597792, \
    
                    87 : 3972294, 88 : 4385776, 89 : 4842295, 90 : 5346332, 91 : 5902831, \
    
                    92 : 6517253, 93 : 7195629, 94 : 7944614, 95 : 8771558, 96 : 9684577, \
    
                    97 : 10692629, 98 : 11805606, 99 : 13034431 }
    
    
    
       # This is a python dictonary used for storing the
    
       # names of the ores and the experience they give
    
       oreexp = { 'Rune Essence' : 5, 'Clay' : 5, 'Copper' : 17.5, 'Tin' : 17.5, 'Blurite' : 17.5, \
    
                  'Limestone' : 26.5, 'Iron' : 35, 'Silver' : 40, 'Coal' : 50, 'Gold' : 65, \
    
                  'Mithril' : 80, 'Adamant' : 95, 'Runite' : 125}
    
    
    
       # Prompts user for his/her current mining experience,
    
       # desired level, and ore intended to mine
    
       currentxp = input("Please enter your current experience: ")
    
       targetlvl = input("Please enter the desired level you are aiming to reach: ")
    
       oremining = raw_input("Please enter the ore you wish to mine to that level: ")
    
    
    
       # Formulas for getting the experience points until target level
    
       # and ores until target level
    
       exptillvl = levelexp.get(targetlvl) - currentxp
    
       orestillvl = round((levelexp.get(targetlvl) - currentxp) / oreexp.get(oremining))
    
    
    
    
    
       print "You have", exptillvl, "experience left to level", targetlvl, "and", orestillvl, oremining, "ores left to reach that level."
    
    
    
    
    
    main()
    
    

     

     

     

    NOTE: the last print statement appears to be on 2 lines but in the editor its actually written on two. Also the dictionaries look a little weird in the format of the post :(

     

     

     

    Feel free to make any suggestions on how to make it work more efficiently. You can reach me on here or my email ([email protected]).

  2. Ankous are ok but if you want it fast without wasting as much food as you do with the Ankous the spiders on the 3rd are really nice. They are aggressive and they dont hurt bad so you can browse through forums while training.

  3. Official forum time -

     

     

     

    Vorpalbunnie

     

    Forum Mod

     

     

     

     

     

    03-Jun-2007 03:28:29

     

    Apologies but several worlds are experiencing diffculties; a solution to this problem is being looked into right now and we expect to have the issue resolved soon.

     

     

     

    Your account may be showing as logged in still. Don't panic, this is just a side-effect of the server being down; you will be able to log in again as normal soon. During this time your character will not be in the game so you have no fear of dying or losing items from this server problem.

     

     

     

    In the event of a server crash your account will be returned to play with the most recent version of that servers 'saved game' file. As such any trades, training, questing, or items gained that happened before the crash will be undone as your file returns to the most recent backup. It is not possible for us to return anything undone from this crash but as these saves happen every 15 minutes we are sure you will not have lost too much of your time and effort.

     

     

     

    Thank you and apologies for the disruption.

     

     

     

    Thanks, you're a good man

  4. Anyone need to do it right now? Theres a part where you have to have a friend in either the Black Arm Gang and the Pheonix Gang (depend on which one your in) and I need a bud to help me out. Im not sure which gang im in so im going to have to go check.

  5. Yeah my worry about the Abyss was the pkers and if its not too much long i thought about just getting the glider to there and then back to the bank in al kharid unless theres a better way...

  6. Im getting ready to start crafting nats but before I wanted to ask what ways you guys take whether its the Fairy Rings to the altar, the Abbyss, Glider, etc.

     

    Im only combat lvl 79 and Im not able to do the quest for fairy rings so my options are kinda limited. If anyone can give me some tips on this id appreciate it.

  7. World 16, Air Power Crafting (if you have the money and ess)

     

     

     

    Power crafting fire runes using rings of dueling

     

     

     

    I used both these options. Both fast, both using some money

  8. It really depends on your style of learning. I learn by watching and analyzing code and understanding what part of code does what. Once I understand "Why" code works it becomes alot easier to learn. Also depends on if this is your first language or if youve had some previous knowledge of code. I learned on BASIC and after that taught myself C then C++.

     

     

     

    Hoped I helped any, Good Luck!

  9. Ive used PbP a couple times. Just take it easy. Try logging on a members server to see if you browser just had a problem loading the page. Also be aware that the login servers are being screwy lately. Im not sure if this will have any effect on the enter pin service. If you wrote it down then just wait a while if your members didnt go through and try again. A good tip is always right down that pin number. I hope ive helped in some way.

     

     

     

     

     

     

     

    sk8nbail

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.