Thread: Minimap Icons (adding/removing)

Results 1 to 3 of 3
  1. #1 Minimap Icons (adding/removing) 
    Registered Member
    Stugger's Avatar
    Join Date
    Apr 2016
    Posts
    208
    Thanks given
    119
    Thanks received
    294
    Rep Power
    358
    Someone asked me about this so I figured I would write this, I don't know if it's common knowledge or well documented so apologies if so.
    I don't know how these are handled on revisions other than 667 but I would have to assume it's the same.

    Minimap icons are just dummy objects. These objects have a definition that dictates their map sprite id (if any). The objects with the sole purpose of drawing a minimap icon are type 22 and have no model.

    If you haven't noticed; minimap icons do not always reside in the exact spot (the tile they are spawned on). Instead, they change location within their area each map update, I think this is done so they can be spawned a fair distance away as to not interfere with other type 22 objects such as rugs, ground tiles..etc and still have the icon appear relative to where it needs to be displayed. (There might be a definition to disable this, I haven't looked into it)

    The most basic way to locate these objects coordinates would be to go to the general area that the icon appears on your minimap and spawn a null type 22 object, then teleport up one plane and back down a plane to force a map update. If the icon disappears then you've located the coordinate it is spawned on, if not, then simply move one tile, try again and repeat until it disappears.

    To locate the object id of an icon, you can do the same as above, but instead before spawning a null object: use a script to print all the objects spawned on the tile you're standing on, then spawn a null object and check if the icon disappears, if it does, then voila the printed object id is what you're looking for.

    It's incredibly simple, probably doesn't require even this amount of explanation.

    Here are some object ids of various icons I've found while playing around with my map editor, as you can probably guess they're most likely all going to be around the same id range:

    2733 - General Store
    2734 - Weapon Store (melee)
    2738 - Bank
    2739 - Quest
    2741 - Mining
    2742 - Furnace
    2759 - Fishing spot
    2764 - Beer glass (bar)
    2767 - Woodcutting
    2771 - Water
    2772 - Cooking
    Reply With Quote  
     

  2. #2  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    Let me save you the trouble here, I once got all of them(all that existed back then) mapped down the best I could.

    Edit: This is OSRS. I'm sure all the early ones will match your revision but at some point they will no longer match; I don't know where that line is.
    Code:
    Emblem trader - 673
    Ironman - 674
    Minigames - 738
    Agility - 775
    General store - 2733
    Sword shop - 2734
    Magic shop - 2735
    Axe shop - 2736
    Helmet shop - 2737
    Bank - 2738
    Quest start - 2739
    Amulet shop - 2740
    Mining site - 2741
    Furnace - 2742
    Anvil - 2743
    Combat training - 2744
    Dungeon - 2745
    Staff shop - 2746
    Platebody shop - 2747
    Platelegs shop - 2748
    Scimitar shop - 2749
    Archery shop - 2750
    Shield shop - 2751
    Altar - 2752
    Herbalist - 2753
    Jewellery shop - 2754
    Gem shop - 2755
    Crafting shop - 2756
    Candle shop - 2757
    Fishing shop - 2758
    Fishing spot - 2759
    Clothes shop - 2760
    Apothecary - 2761
    Silk trader - 2762
    Kebab - 2763
    Pub - 2764
    Mace shop - 2765
    Tannery - 2766
    Rare trees - 2767
    Spinning wheel - 2768
    Food shop - 2769
    Unknown - fork and knife - 2770
    Water source - 2771
    Cooking range - 2772
    Plateskirt shop - 2773
    Pottery - 2774
    Windmill - 2775
    Mining shop - 2776
    Platebody shop - 2777
    Silver shop - 2778
    Fur trader - 2779
    Hot pot - 2780//unknown
    Green Apple - 4709
    Skull - 5118
    Barber - 5119
    Makeover mage - 5120
    Quest - 5249
    Information point - 7054
    Transportation - 7389
    Quest with floor - 8718
    Farming - 8719
    Pot - 8721
    Loom - 8722
    Keg - 8723
    Water source with floor - 9678
    Odd keg - 10095
    Light water source - 10176
    Water source with tile - 10462
    Tzhaar sword - 11981
    Tzhaar runes - 11982
    Tzhaar bank - 11983
    Tzhaar gem - 11984
    Tzhaar minigame - 11985
    Dungeon with map shortcut - 14108
    Purple portal - 15531
    Estate agent - 15532
    Sawmill - 15533
    Odd smithing - 15534
    Grand exchange - 16458
    Grand exchange sword - 16459
    Grand exchange logs - 16460
    Grand exchange herbs - 16461
    Grand exchange runes - 16462
    Grand exchange ores - 16463
    Green agility shortcut - 17030
    Hunter - 19750
    Hunter shop - 19751
    Seasonal quest - 20132
    Slice of bread - 20989
    Tree stump - 21655
    Achievement diary - 23590
    Voting booth - 26301
    Blue agility shortcut - 26710
    Pet shop - 26821
    Kourend symbol - 27120
    Chambers of Xeric symbol - 29994
    Transportation with tile - 30090
    Quest with wooden tile - 30243
    Attached image
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Banned

    Join Date
    Mar 2010
    Posts
    2,218
    Thanks given
    170
    Thanks received
    262
    Rep Power
    0
    If you want to be lazy you can find the object Ids, spawn them server sided and force a map/region refresh with an outgoing packet to the client.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Replies: 0
    Last Post: 10-28-2015, 11:02 PM
  2. Adding minimap icons?
    By Jazzy Acid in forum Help
    Replies: 1
    Last Post: 07-01-2014, 09:19 PM
  3. Removing/Adding Minimap Icons
    By Extrocity in forum Help
    Replies: 5
    Last Post: 03-15-2014, 10:14 PM
  4. [PI] How to add/remove minimap icons?
    By Blaketon in forum Help
    Replies: 3
    Last Post: 05-03-2012, 05:34 PM
  5. Remove minimap icons!
    By gamerx in forum Snippets
    Replies: 3
    Last Post: 02-28-2009, 07:44 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •