Thread: Custom Minimap icons release

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 38
  1. #1 Custom Minimap icons release 
    Apocalyptism
    Harry's Avatar
    Join Date
    Apr 2007
    Posts
    3,783
    Thanks given
    594
    Thanks received
    1,834
    Rep Power
    2934
    DO NOT release modified versions of my work without my permission! This includes converting it to "non-renamed"

    Even though this is pretty simple, I've never actually seen this done before. So yeah, here you go.

    In this tutorial we will be adding two Construction icons, you can use the methods to later add your own.

    open client.java and search for

    Code:
    cleanUpForQuit()
    add these with the other sprites in that method, declaration code is further down.

    Code:
    map67 = null;
    map64 = null;
    search for
    Code:
    drawLoadingText(80, "Unpacking media");
    under that add...

    Code:
    map67 = new Sprite("./MAPFUNCTIONS/MAPFUNCTION 67.png");
    map64 = new Sprite("./MAPFUNCTIONS/MAPFUNCTION 64.png");
    search for

    Code:
    private Sprite aBackground_966;
    under that add

    Code:
    private Sprite map67;
    private Sprite map64;
    search for

    Code:
    markMinimap(aClass30_Sub2_Sub1_Sub1Array1140[j5], k, i3);
    under the next }

    add.......

    Code:
    markMinimap(map67, ((2982 - ba***) * 4 + 2) - myPlayer.x / 32, ((3369 - baseY) * 4 + 2) - myPlayer.y / 32);
    markMinimap(map64, ((2952 - ba***) * 4 + 2) - myPlayer.x / 32, ((3224 - baseY) * 4 + 2) - myPlayer.y / 32);
    There you go, all done

    Red is X coord
    Blue is Y coord
    ~ Harry
    Please bear this in mind when hearing the word 'soon' from a software programmer.

    As coding software generally takes thousands of years, software programmers have developed a natural adaptation to this in the form of an altered perception of the flow of time.

    Due to this, the word 'soon' when uttered by a programmer should be taken to mean 'a very, very long time from now' in the terminology used by common human specimens who have not developed such an adaptation.
    knowledge can be taught, but passion cannot.
    It's better to create something that others criticise than to create nothing and criticise others.
    Attached image
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Oct 2007
    Posts
    2,413
    Thanks given
    254
    Thanks received
    479
    Rep Power
    2785
    Lol nice!
    Reply With Quote  
     

  3. #3  
    Registered Member
    Kelvin's Avatar
    Join Date
    Jun 2007
    Posts
    1,433
    Thanks given
    48
    Thanks received
    33
    Rep Power
    269
    lawl this is easy yeah, nice work,.
    Reply With Quote  
     

  4. #4  
    Fuckin PRO

    Tyler's Avatar
    Join Date
    Jan 2008
    Age
    33
    Posts
    6,017
    Thanks given
    46
    Thanks received
    507
    Rep Power
    3330
    dam, need non renamed ;/
    Reply With Quote  
     

  5. #5  
    Registered Member
    Firefight's Avatar
    Join Date
    Aug 2007
    Posts
    1,506
    Thanks given
    6
    Thanks received
    31
    Rep Power
    160
    Go renamed fool. Anyways, nice job haha! I'm definitely going to use this!
    Back for now...
    Reply With Quote  
     

  6. #6  
    Ex Rune-Scaper

    Join Date
    Jun 2008
    Posts
    3,534
    Thanks given
    457
    Thanks received
    1,257
    Rep Power
    990
    Yeah renamed is the best i can see a lot of people switching in these few months, as everyone leeches bluurrs non-renamed anyway.
    Attached image
    Reply With Quote  
     

  7. #7  
    Jeremy Yak
    Guest
    People don't know about this? Lol

    Fun find none the less
    Reply With Quote  
     

  8. #8  
    F*ck the rest join the best, WoR

    sigex's Avatar
    Join Date
    Mar 2008
    Age
    34
    Posts
    2,086
    Thanks given
    123
    Thanks received
    147
    Rep Power
    690
    Quote Originally Posted by Blood Isle View Post
    even tho this is stupidly easy, the only person ive seen with this is zee best. So yea lol, heres how to add them

    PICS






    In this tutorial we will be adding 2 Construction icons, you can use the methods to later add your own.

    In your client directory make a new folder called MAPFUNCTIONS
    in that folder, add these 2 sprites here

    Renamed

    open client.java and search for

    Code:
    cleanUpForQuit()
    add these with the other sprites

    Code:
    map67 = null;
    map64 = null;
    search for
    Code:
    drawLoadingText(80, "Unpacking media");
    under that add...

    Code:
    map67 = new Sprite("./MAPFUNCTIONS/MAPFUNCTION 67.png");
    map64 = new Sprite("./MAPFUNCTIONS/MAPFUNCTION 64.png");
    search for

    Code:
    private Sprite aBackground_966;
    under that add

    Code:
    private Sprite map67;
    private Sprite map64;
    search for

    Code:
    markMinimap(aClass30_Sub2_Sub1_Sub1Array1140[j5], k, i3);
    under the next }

    add.......

    Code:
    markMinimap(map67, ((2982 - baseX) * 4 + 2) - myPlayer.x / 32, ((3369 - baseY) * 4 + 2) - myPlayer.y / 32);
    markMinimap(map64, ((2952 - baseX) * 4 + 2) - myPlayer.x / 32, ((3224 - baseY) * 4 + 2) - myPlayer.y / 32);
    There you go all done xd

    if you havent already worked out...
    red is X coord
    blue is Y coord


    credits
    sigex ~ loading custom sprites method without replacing.
    Take the credits off that wasn't man the mad that method i can't remember who though gj very simple


    markMinimap(Sprite sprite, int i, int j)

    image,x,y lol

    you could make like an icon follow you around by putting in the players cords and display admin crown or somin i know alot of you fuckers like that shit


    this i think marks them flciker


    private void method81(Sprite sprite, int j, int k)
    {
    int l = k * k + j * j;
    if(l > 4225 && l < 0x15f90)
    {
    int i1 = minimapInt1 + minimapInt2 & 0x7ff;
    int j1 = Model.modelIntArray1[i1];
    int k1 = Model.modelIntArray2[i1];
    j1 = (j1 * 256) / (minimapInt3 + 256);
    k1 = (k1 * 256) / (minimapInt3 + 256);
    int l1 = j * j1 + k * k1 >> 16;
    int i2 = j * k1 - k * j1 >> 16;
    double d = Math.atan2(l1, i2);
    int j2 = (int)(Math.sin * 63D);
    int k2 = (int)(Math.cos * 57D);
    mapEdge.method353(83 - k2 - 20, d, (94 + j2 + 4) - 10);
    } else
    {
    markMinimap(sprite, k, j);
    }
    }
    Last edited by sigex; 02-07-2009 at 01:44 AM. Reason: Double posting is not allowed!


    The wor has begun.

    Reply With Quote  
     

  9. #9  
    I'm Back

    Stewie's Avatar
    Join Date
    Jul 2008
    Age
    29
    Posts
    7,987
    Thanks given
    1,877
    Thanks received
    1,491
    Rep Power
    5000
    Thanks for this Blood Isle.


    Reply With Quote  
     

  10. #10  
    F*ck the rest join the best, WoR

    sigex's Avatar
    Join Date
    Mar 2008
    Age
    34
    Posts
    2,086
    Thanks given
    123
    Thanks received
    147
    Rep Power
    690
    nvm it just makes them follow you they get sticky 0.o lol! were the one that flashes!!! i wana put a flashing **** on there


    The wor has begun.

    Reply With Quote  
     

Page 1 of 4 123 ... LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •