Welcome Back!

Join the forum, it's quick and easy

Welcome Back!

Would you like to react to this message? Create an account in a few clicks or log in to continue.

+4
Desmond_Harold
Fluxx_is_angry
pepsda
Olyol95
8 posters

    Minecraft XP Calculator

    Poll

    Useful?

    [ 4 ]
    Minecraft XP Calculator Bar_left67%Minecraft XP Calculator Bar_right [67%] 
    [ 2 ]
    Minecraft XP Calculator Bar_left33%Minecraft XP Calculator Bar_right [33%] 
    [ 0 ]
    Minecraft XP Calculator Bar_left0%Minecraft XP Calculator Bar_right [0%] 
    [ 0 ]
    Minecraft XP Calculator Bar_left0%Minecraft XP Calculator Bar_right [0%] 

    Total Votes: 6
    Olyol95
    Olyol95
    Admin


    Posts : 138
    Points : 4831
    Reputation : 0
    Join date : 2012-02-10
    Age : 29

    Minecraft XP Calculator Empty Minecraft XP Calculator

    Post  Olyol95 Fri Jun 22, 2012 11:55 am

    Hullo there.

    I was messing about with some coding the other day and I decided it would be cool to make a calculator that tells you how much xp you need to get from one level to the next, and how many mobs of a certain type that would take to reach said goal.

    If you are interested in checking it out, please support it by having a look here:
    http://www.minecraftforum.net/topic/1303464-minecraft-xp-calculator-mcxpc/page__fromsearch__1

    If you like it please tell your friends!

    If you have any suggestions do tell me Smile

    ~Oly


    Last edited by Olyol95 on Mon Jun 25, 2012 3:53 am; edited 2 times in total
    pepsda
    pepsda


    Posts : 249
    Points : 4970
    Reputation : 0
    Join date : 2012-02-12
    Age : 29

    Minecraft XP Calculator Empty Re: Minecraft XP Calculator

    Post  pepsda Fri Jun 22, 2012 12:33 pm

    DAMN YOU AND YOUR FANCY CENTERED TEXT!!!!!

    But i do liek it.
    Fluxx_is_angry
    Fluxx_is_angry


    Posts : 134
    Points : 4787
    Reputation : 0
    Join date : 2012-03-09
    Age : 27
    Location : Canada,ontario

    Minecraft XP Calculator Empty Re: Minecraft XP Calculator

    Post  Fluxx_is_angry Sun Jun 24, 2012 8:05 am

    thats actually a sick idea. good work oly
    Desmond_Harold
    Desmond_Harold


    Posts : 76
    Points : 4695
    Reputation : 0
    Join date : 2012-04-18
    Age : 30
    Location : The Great white North eh

    Minecraft XP Calculator Empty Re: Minecraft XP Calculator

    Post  Desmond_Harold Sun Jun 24, 2012 8:51 am

    Working great in linux mint 12 (running under wine), keep up the great work mr computer programmer , software designer eh.
    Desmond
    andf
    andf
    Admin


    Posts : 232
    Points : 4968
    Reputation : 0
    Join date : 2012-02-10

    Minecraft XP Calculator Empty Re: Minecraft XP Calculator

    Post  andf Sun Jun 24, 2012 9:05 am

    Desmond_Harold wrote:Working great in linux mint 12 (running under wine), keep up the great work mr computer programmer , software designer eh.
    Desmond

    Nah, he is still a newbie:P

    You have to start somewhere though.
    Desmond_Harold
    Desmond_Harold


    Posts : 76
    Points : 4695
    Reputation : 0
    Join date : 2012-04-18
    Age : 30
    Location : The Great white North eh

    Minecraft XP Calculator Empty Re: Minecraft XP Calculator

    Post  Desmond_Harold Sun Jun 24, 2012 9:37 am

    Haha i know andf he isnt making any revolutionary minecraft plugins like some people here. It was simply a joke and encouragement Razz
    God bless
    Desmond
    andf
    andf
    Admin


    Posts : 232
    Points : 4968
    Reputation : 0
    Join date : 2012-02-10

    Minecraft XP Calculator Empty Re: Minecraft XP Calculator

    Post  andf Sun Jun 24, 2012 7:16 pm

    You could also try uploading the source to github.
    Olyol95
    Olyol95
    Admin


    Posts : 138
    Points : 4831
    Reputation : 0
    Join date : 2012-02-10
    Age : 29

    Minecraft XP Calculator Empty Re: Minecraft XP Calculator

    Post  Olyol95 Mon Jun 25, 2012 1:48 am

    hahah noone needs to see the source code, its messy as hell and is written in a retarded language Razz I wont stick it on github for now, but it is here if you wanna look. P.S it is probably very inefficiently coded!

    Code:

    [startup]
        nomainwin
        WindowWidth = 230
        WindowHeight = 105
        UpperLeftX=int((DisplayWidth-WindowWidth)/2)
        UpperLeftY=int((DisplayHeight-WindowHeight)/2)

        BackgroundColor$ = "white"

        '-----Begin GUI objects code

        statictext #startup.statictext1, "MCXPC", 26, 5, 180, 60
        statictext #startup.statictext2, "A handy XP calculation tool",  5, 60, 220, 20
        statictext #startup.statictext3, "v1.01", 180, 80, 40, 20

        '-----End GUI objects code

        open "startup" for window_popup as #startup
        print #startup, "font ms_sans_serif 10"
        print #startup.statictext1, "!font minecraft 36"
        print #startup.statictext2, "!font minecraft 10"
        print #startup.statictext3, "!font minecraft 10"
        timer 3000, [open]
        wait

    [open]
        timer 0
        close #startup
        goto [main]

    [main]
        nomainwin
        WindowWidth = 267
        WindowHeight = 210
        UpperLeftX=int((DisplayWidth-WindowWidth)/2)
        UpperLeftY=int((DisplayHeight-WindowHeight)/2)


        '-----Begin GUI objects code

        statictext #main.statictext2, "Current Level:",  10,  7, 135,  20
        TextboxColor$ = "white"
        textbox #main.currentlevel, 150,  6, 90,  25
        statictext #main.statictext4, "Target Level:",  10,  32, 130,  25
        textbox #main.targetlevel, 150,  31, 90,  25
        button #main.button6,"Calculate!",[calculate], UL,  10,  60, 228,  25
        statictext #main.statictext7, "XP required:",  11, 91, 115,  30
        textbox #main.xprequired, 127, 90, 113,  25
        statictext #main.statictext9, "This is equivalent to:",  10, 115, 200,  25
        ComboboxColor$ = "white"
        combobox #main.combobox10, array$(, [combo],  125, 140, 115, 150
        statictext #main.statictext11, "X", 110, 141,  11,  20
        textbox #main.mobnumber,  10, 140, 95,  25

        '-----End GUI objects code

        array$ (1) = "Tiny Slime(s)"
        array$ (2) = "Small Slime(s)"
        array$ (3) = "Big Slime(s)"
        array$ (4) = "Blaze(s)"
        array$ (5) = "Other Hostile(s)"
        array$ (6) = "Any Passive(s)"
        open "Minecraft XP Calculator" for window as #main
        print #main, "font ms_sans_serif 10"
        print #main.statictext2, "!font minecraft 11"
        print #main.statictext4, "!font minecraft 11"
        print #main.xprequired, "!disable"
        print #main.mobnumber, "!disable"
        print #main.button6, "!font minecraft 10"
        print #main.statictext7, "!font minecraft 11"
        print #main.statictext9, "!font minecraft 11"
        print #main.statictext11, "!font minecraft 11"
        print #main, "trapclose [quit]"
        wait

    [calculate]
        print #main.currentlevel, "!contents? currentlevel$"
        print #main.targetlevel, "!contents? targetlevel$"
        let targetxp = 1.75*(val(targetlevel$)^2)+5*val(targetlevel$)
        let currentxp = 1.75*(val(currentlevel$)^2)+5*val(currentlevel$)
        if targetxp < currentxp then goto [clean]
        print #main.xprequired, targetxp-currentxp
        if count = 1 then goto [combo]
        let count = 2
        if count = 2 then goto [combo]
        wait

    [clean]
        print #main.currentlevel, ""
        print #main.targetlevel, ""
        let count = 1
        goto [calculate]

    [combo]
        #main.combobox10 "selection? sel$"
        let xp = targetxp-currentxp
        if sel$ = "Tiny Slime(s)" then goto [tinyslime]
        if sel$ = "Small Slime(s)" then goto [smallslime]
        if sel$ = "Big Slime(s)" then goto [bigslime]
        if sel$ = "Blaze(s)" then goto [blaze]
        if sel$ = "Other Hostile(s)" then goto [hostile]
        if sel$ = "Any Passive(s)" then goto [passive]
        wait

    [tinyslime]
        let x = 1
        goto [result]

    [smallslime]
        let x = 2
        goto [result]

    [bigslime]
        let x = 4
        goto [result]

    [blaze]
        let x = 10
        goto [result]

    [hostile]
        let x = 5
        goto [result]

    [result]
        let rounding = int(xp/x)
        if rounding = xp/x then print #main.mobnumber, xp
        if rounding <> xp/x then print #main.mobnumber, int(xp/x)+1
        wait

    [passive]
        let lowerbracket = int(xp/1)
        let upperbracket = int(xp/3)
        if lowerbracket = xp/1 then goto [lownoround]
        if lowerbracket <> xp/1 then goto [lowround]

    [lownoround]
        let lb$ = str$(lowerbracket)
        goto [next]

    [lowround]
        let lb$ = str$(int(xp/1)+1)
        goto [next]

    [next]
        if upperbracket = xp/3 then goto [highnoround]
        if upperbracket <> xp/3 then goto [highround]

    [hignoround]
        let ub$ = str$(upperbracket)
        goto [final]

    [highround]
        let ub$ = str$(int(xp/3)+1)
        goto [final]

    [final]
        print #main.mobnumber, lb$+"-"+ub$
        wait

    [quit]
        confirm "The minecraft XP calculator will now close."; response$
        if response$ <> "yes" then wait
        close #main
        end
    redrooster9500
    redrooster9500


    Posts : 304
    Points : 5089
    Reputation : 0
    Join date : 2012-02-11
    Age : 25
    Location : Newfoundland

    Minecraft XP Calculator Empty Re: Minecraft XP Calculator

    Post  redrooster9500 Wed Jul 11, 2012 12:02 am

    oly that looks like gibberish hehe sorry for the random post Razz 1200 post sooo yay Very Happy
    Guenther
    Guenther


    Posts : 73
    Points : 4643
    Reputation : 3
    Join date : 2012-07-06
    Age : 28
    Location : Florida

    Minecraft XP Calculator Empty Re: Minecraft XP Calculator

    Post  Guenther Thu Jul 19, 2012 11:57 am

    It would make things easier for the players, but players would start to count how many kills they have to get, and if there is an error ... Kids will start blaming the least cool moderator.
    mavric_XXX
    mavric_XXX


    Posts : 207
    Points : 4927
    Reputation : 0
    Join date : 2012-02-18
    Location : UK Bromsgrove

    Minecraft XP Calculator Empty Re: Minecraft XP Calculator

    Post  mavric_XXX Thu Jul 19, 2012 10:55 pm

    DuckMan>Smile

    Sponsored content


    Minecraft XP Calculator Empty Re: Minecraft XP Calculator

    Post  Sponsored content


      Current date/time is Thu Nov 14, 2024 5:51 pm