Jump to content

Pescao6

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by Pescao6

  1. I have a nice spaghetti code program I did as a project for my Linux class.

    The main code is a bash script.

    I'm using perl to check if the player name is valid (not really important).

    I'm using bash to get the osrs hiscores.

    I'm using awk to put the combat stats into a file.

    I'm using python to read the combat stats file and calculate the combat level.
    Then this information gets passed to other python functions to calculate what rank I should assign my clanmates.

    import math
    
    def combat_level(stats):
        #1.	Take your Prayer level and divide it by two and round down 
        base = math.trunc(stats[5]/2)
        #2.	Add this to your Hitpoints and Defence levels and divide the result by 4.
        base = (base+stats[3]+stats[1])/4
        #3. Add your Strength and Attack levels together and multiply by 0.325.
        melee = (stats[2]+stats[0])*0.325
        #Add this to your base combat level and you should have your melee combat level.
        #4.	If your Magic or Ranged level is exceptionally higher than your Attack and Strength,
        #carry on - in the calculation noted below Magic is used, 
        #but if your Ranged is exceptionally higher, use that instead in all cases
        higher = stats[6]
        if (higher < stats[4]):
            higher = stats[4]
        if (higher > stats[0]+14 and higher > stats[2]+14):
        #5. Divide your Magic level by 2 and round down, and then add your Magic level again to this 
            magic = math.trunc(higher/2)+higher
        #6. Multiply this by 0.325 and add the result to your base combat level calculated above, 
        #and you should have your magic combat level
            magic = magic*0.325
            return math.trunc(base+magic)
        else:
             return math.trunc(base+melee)
    
    ...
    
    stats = []
    try:
        f = open("osrs/temp")
        for line in f:
            line = line.rstrip("\n")
            stats.append(int(line))
    finally:
        f.close()
    combat=combat_level(stats)
    
    ...
    

    Anyway, I just wanted to ask if anyone knows what the wiki means by

    "If your Magic or Ranged level is exceptionally higher than your Attack and Strength"?

    I just did +14, but I'm not sure if this is correct.

     

  2. I wish to update El Imperio Latino's information.


    Your Clan Name (as you want it to appear): El Imperio Latino

    A link to your clan's banner: http://209.85.12.237/30016/110/0/p1038540/original_minibanner.gif

    A link to your clan's website/forums: http://www.elimperiolatino.org/

    A link to your clan's runehead/memberlist: http://www.runehead.com/clans/ml.php?clan=latinempire

    Your Clan Leaders: Cronoschild, Pescao6, Ricrey

    Your Clan's Main Focus:

    Warring & Skilling Clan

    Spanish Help & Support Community

    Miscellaneous Info:

    Clan Initials: IL

    Friends Chat: Pescao6

    Clan Chat: El Imperio Latino

    IRC Channel: #il [irc.swiftirc.net]

    Other Memberlists: FA / Inactive / Retired


    Small update - Added Friends Chat and changed Clan Chat.

  3. I wish to update El Imperio Latino's information.


    Your Clan Name (as you want it to appear): El Imperio Latino

    A link to your clan's banner: http://209.85.12.237/30016/110/0/p1038540/original_minibanner.gif

    A link to your clan's website/forums: http://www.elimperiolatino.org/

    A link to your clan's runehead/memberlist: http://www.runehead.com/clans/ml.php?clan=latinempire

    Your Clan Leaders: Cronoschild, Pescao6, Ricrey

    Your Clan's Main Focus:

    Warring & Skilling Clan

    Spanish Help & Support Community

    Miscellaneous Info:

    Clan Initials: IL

    Clan Chat: Pescao6

    IRC Channel: #il [irc.swiftirc.net]

    Other Memberlists: FA / Inactive / Retired


    Please displace any other information.

  4. Humble pie:

    f2iI5.png

     

    Options:

    nh0uN.png

     

    Weight: 0kg

     

    Examine:

    dfR19.jpg

     

    Members only: Yes.

     

    Obtained from: Court Cases Reward.

     

    Category: Distractions and Diversions

     

    Uses: When you click it, it will give you a chance to increase any skill. The formula is the skill you chose * 10.

     

    Notes: It cannot be banked or traded.

     

    All Credits go to: Myself (Pescao6)

     

    This information was posted for use of Tip.It only.

  5. Hi everyone.

     

    Mod Achilles is organizing a gathering for everyone that speaks spanish.

    Quick find code: 42-43-763-59772409

     

    So if you speak spanish, please spread the word to all of your friends.

     

    Hi there!

     

    EVENT: - Spanish Speakers Gathering number 1.

    DATE: - 25, October, 2009. (Sunday).

    TIME: - 16:00 until 18:00 Jagex Time.

    WORLD: - World 80.

    MEET: - Party Room in Falador.

     

    This is the basic information about the event.

     

    Be aware that this Sunday the time will change.

    The time scheduled for the Event is still 16:00 ok? Check the time in the forum thread: 42-43-223-59592553

     

    The Event will consist in a small (or huge) gathering for the Spanish Community. This does not mean that you have to speak Spanish to go there. Everyone is invited!

     

    Looking forward to seeing everyone there!

     

    PS: These are the times for different regions:

     

    Spain (Madrid): 17:00 - 19:00

    Spain (Canarias): 16:00 - 18:00

    Mexico DF: 10:00 - 12:00

    Costa Rica, El Salvador, Guatemala,... :09:00 - 11:00

    Colombia & Peru: 10:00 - 12:00

    Venezuela: 10:30 - 12:30

    Paraguay & Chile: 12:00 - 14:00

    Uruguay & Argentina (Buenos Aires): 12:00 - 14:00

     

    I think I have not forgot anyone!

     

    Mod Achilles

×
×
  • Create New...

Important Information

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