Thread: Fishing Spot Sprites

Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1 Fishing Spot Sprites 
    Banned

    Join Date
    Jul 2018
    Posts
    121
    Thanks given
    82
    Thanks received
    55
    Rep Power
    0
    Before I even start yes I know a version was released here: https://www.rune-server.ee/runescape...-runelite.html

    But this one uses item sprites and an enum Anyways lets start

    1) Add this class somewhere

    Code:
    package com.illerai.model;
    
    public enum FishingSpotData {
    	
    		SMALL_NET_OR_BAIT(1518, 315),
    		LURE_OR_BAIT(1526, 333),
    		CAGE_OR_HARPOON(1519, 379),
    		LARGE_NET_OR_HARPOON(1520, 385),
    		HARPOON_OR_SMALL_NET(1534, 7946),
    		MANTA_RAY(3019, 391),
    		KARAMBWAN(635, 3144),
    		DARK_CRAB(1536, 11936);
    		
    		private final int spot_id;
    		private final int fish_id;
    		
    		FishingSpotData(int spot_id, int fish_id) {
    			this.spot_id = spot_id;
    			this.fish_id = fish_id;
    		}
    		
    		public int getId() {
    			return spot_id;
    		}
    		
    		public int getFishId() {
    			return fish_id;
    		}
    		
    		public static FishingSpotData forId(int id) {
    			for (FishingSpotData texture : FishingSpotData.values()) {
    				if (texture.getId() == id) {
    					return texture;
    				}
    			}
    			return null;
    		}
    		
    		
    	}
    2) Look for

    Code:
    if (obj instanceof Npc) {
    Yours may be a little different but it will look like this

    Code:
    	if (obj instanceof Npc) {
    					NpcDefinition entityDef = ((Npc) obj).desc;
    					if (entityDef.childrenIDs != null)
    						entityDef = entityDef.morph();
    					if (entityDef == null)
    						continue;
    				}

    3) Under


    Code:
    NpcDefinition entityDef = ((Npc) obj).desc;
    Add the following

    Code:
    npcScreenPos((Npc) obj, ((Npc) obj).height + 15);
    if(SettingRunelite.FISHING_SPRITES.toggled()) {
    						if (spriteDrawX > -1) {
    							for(FishingSpotData data : FishingSpotData.values()) {
    								if (entityDef.id == data.getId()) {
    									ItemDefinition.getSprite(data.getFishId(),0,0).drawSprite(spriteDrawX - 12, spriteDrawY - 30);
    								}
    							}
    						}
    					}
    And that is it ... Let me know if you need anyhelp

    Other Ideas you can add:

    • Tree Spots (Logs)
    • Icon on Minimap
    • Farming Spots (Herbs)



    Attached image
    Reply With Quote  
     


  2. #2  
    Donator

    Join Date
    Feb 2018
    Posts
    66
    Thanks given
    29
    Thanks received
    10
    Rep Power
    60
    Nice and simple, great touch!

    Thanks for the release, seems more of a snippet tho too
    Reply With Quote  
     

  3. Thankful user:

    Zac

  4. #3  
    Banned

    Join Date
    Jul 2018
    Posts
    121
    Thanks given
    82
    Thanks received
    55
    Rep Power
    0
    Quote Originally Posted by Strict View Post
    Nice and simple, great touch!

    Thanks for the release, seems more of a snippet tho too
    Ye well a mod can move it if they feel the need too I was not too sure
    Reply With Quote  
     

  5. #4  
    Registered Member
    Join Date
    Sep 2018
    Posts
    22
    Thanks given
    11
    Thanks received
    0
    Rep Power
    11
    im getting errors cus my client cant read SettingRunelite
    Reply With Quote  
     

  6. #5  
    Banned

    Join Date
    Jul 2018
    Posts
    121
    Thanks given
    82
    Thanks received
    55
    Rep Power
    0
    Quote Originally Posted by guthixpk View Post
    im getting errors cus my client cant read SettingRunelite
    That's just my setting system you can remove that along with the LAST bracket
    Reply With Quote  
     

  7. Thankful user:


  8. #6  
    pride, love, happiness
    .alycia's Avatar
    Join Date
    Jun 2010
    Age
    28
    Posts
    4,106
    Thanks given
    1,714
    Thanks received
    2,062
    Rep Power
    5000
    Hey I like this, I never thought to draw a sprite instead of a string. I'll get back to you on how this looks on my 530 client
    Reply With Quote  
     

  9. Thankful user:

    Zac

  10. #7  
    Registered Member
    Join Date
    Sep 2018
    Posts
    22
    Thanks given
    11
    Thanks received
    0
    Rep Power
    11
    entityDef.id last thing what this should be ?cuz my server cant read .id i tried serching but didnt got it
    Reply With Quote  
     

  11. #8  
    Registered Member

    Join Date
    Sep 2016
    Posts
    384
    Thanks given
    1
    Thanks received
    117
    Rep Power
    311
    Quote Originally Posted by guthixpk View Post
    entityDef.id last thing what this should be ?cuz my server cant read .id i tried serching but didnt got it
    Show me your ItemDef Class
    Reply With Quote  
     

  12. #9  
    Registered Member
    Join Date
    Sep 2018
    Posts
    22
    Thanks given
    11
    Thanks received
    0
    Rep Power
    11
    public boolean membersObject;
    private int anInt162;
    public int certTemplateID;
    private int anInt164;
    public int maleModel;
    private int anInt166;
    private int anInt167;
    public String groundOptions[];
    public int modelOffset1;
    public String name;
    private static ItemDefinition[] cache;
    private int anInt173;
    public int modelId;
    private int anInt175;
    public boolean stackable;
    public String description;
    public int certID;
    private static int cacheIndex;
    public int modelZoom;
    private static Stream stream;
    private int anInt184;
    private int anInt185;
    private int anInt188;
    public String inventoryOptions[];
    public String equipActions[];
    public int modelRotation1;
    private int anInt191;
    private int anInt192;
    private int[] stackIDs;
    public int modelOffset2;
    private static int[] streamIndices;
    private int anInt196;
    private int anInt197;
    public int modelRotation2;
    public int femaleModel;
    private int[] stackAmounts;
    public int team;
    public static int totalItems;
    private int anInt204;
    private byte aByte205;
    public boolean searchableItem;
    private static BufferedWriter writer;
    Reply With Quote  
     

  13. #10  
    Registered Member

    Join Date
    Sep 2016
    Posts
    384
    Thanks given
    1
    Thanks received
    117
    Rep Power
    311
    Quote Originally Posted by guthixpk View Post
    public boolean membersObject;
    private int anInt162;
    public int certTemplateID;
    private int anInt164;
    public int maleModel;
    private int anInt166;
    private int anInt167;
    public String groundOptions[];
    public int modelOffset1;
    public String name;
    private static ItemDefinition[] cache;
    private int anInt173;
    public int modelId;
    private int anInt175;
    public boolean stackable;
    public String description;
    public int certID;
    private static int cacheIndex;
    public int modelZoom;
    private static Stream stream;
    private int anInt184;
    private int anInt185;
    private int anInt188;
    public String inventoryOptions[];
    public String equipActions[];
    public int modelRotation1;
    private int anInt191;
    private int anInt192;
    private int[] stackIDs;
    public int modelOffset2;
    private static int[] streamIndices;
    private int anInt196;
    private int anInt197;
    public int modelRotation2;
    public int femaleModel;
    private int[] stackAmounts;
    public int team;
    public static int totalItems;
    private int anInt204;
    private byte aByte205;
    public boolean searchableItem;
    private static BufferedWriter writer;
    modelId
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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: 11
    Last Post: 06-28-2018, 03:34 PM
  2. Replies: 11
    Last Post: 06-28-2018, 03:34 PM
  3. Fishing (SPOTS)
    By advent in forum Help
    Replies: 3
    Last Post: 05-17-2009, 02:17 AM
  4. Fishing Spots
    By Chachi in forum Requests
    Replies: 1
    Last Post: 04-30-2009, 01:28 AM
  5. fishing spot
    By harmy in forum Help
    Replies: 5
    Last Post: 03-14-2009, 03:04 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
  •