Jump to content

Search the Community

Showing results for tags 'pets'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 14 results

  1. There will be NO data reset after the beta. The first player to max will get an Infernal Max Cape, so start now! PLAY NOW AT: https://salve-ps.net/ More media will be posted soon. Credits The Salve-PS Team Salve (former owner) Bartvh (technical support) Kris (technical support)
  2. Encrypted is PVM based eco server. We have over 20 bosses offering players endless hours of farming and diversity. Join here - Custom Interfaces- All Boss Pets + Customs- Boss Logs System- Item Renting System- Fully working Gambling - Completionist & Max Cape- Cosmetic System- Dominion Tower - Tzhaar Games- Pest Control- Clan Wars- OSRS & RS3 Content- Custom Weapons (Noxious , Ballista)- PoS ( Player Owned Shops )- All 120 Capes- Daily Updates
  3. vorte

    adding npc's pets

    i have summoning on my server but don't have pets dragons and want them if someone can get them working i will pay also i want to add glacor's and nex my drops don't work properly need them fixing Skype - ish3zz
  4. [CENTER][B][COLOR="#0000CD"][SIZE=7]Problem with pets[/SIZE][/COLOR][/B] [COLOR="#000080"][B][SIZE=6]object to npc (i guess?)[/SIZE][/B][/COLOR][/CENTER] I have problem with Zenithscape too.. :S I've problem in InventoryOptionsHandler.java - Compiler says that there is problem with pets (not item pets but pet npcs). I can't figure out what that problem is.. :S I have been strugling with this for many hours.. Code is shown in picture..Click image for larger version. [ATTACH=CONFIG]7780[/ATTACH] I have took java course in high school (That's my all java experience so far) But i really would like to learn better on coding and i have amazing ideas to my moparscape ^^ Ohh! And my skype name is 'Mini Surma' Thank you for all the help! ;)[ATTACH=CONFIG]7782[/ATTACH]
  5. Just added to my project and it worked out really well, thought I might as well release; Credits: 49% Matrix (source) 50.9% Pulsescape/Xlite667 (configs) 0.1% Me for posting Difficulty; I would guess 3/10 if you know what your doing but maybe 6/10 people who are new to this. Simple copy and paste really... Alright so; Create new Pets.java to com.rs.game.player Add in the new java this [code] package com.rs.game.player; import java.util.HashMap; import java.util.Map; import com.rs.game.Graphics; import com.rs.game.World; import com.rs.game.WorldTile; import com.rs.game.npc.NPC; import com.rs.game.tasks.WorldTask; import com.rs.game.tasks.WorldTasksManager; import com.rs.utils.Misc; public class Pets extends NPC { /** * Objects */ private static final long serialVersionUID = 1325133366821220445L; private transient Player owner; public boolean spawnedPet = false; private int npcId; public static enum Pet { SPARKLES(2267, 22973), JAD(3603, 21512); private static final Map<Integer, Pet> item = new HashMap<Integer, Pet>(); static { for (Pet itemId : Pet.values()) { item.put(itemId.itemId, itemId); } } public static Pet forId(int id) { return item.get(id); } private int npcId; private int itemId; private Pet(int npcId, int itemId) { this.npcId = npcId; this.itemId = itemId; } public int getNpcId() { return npcId; } public int getItemId() { return itemId; } public static Map<Integer, Pet> getItem() { return item; } } public Pets(int npcId, Player owner, WorldTile tile, int mapAreaNameHash, boolean canBeAttackFromOutOfArea) { super(npcId, tile, mapAreaNameHash, canBeAttackFromOutOfArea); setRun(true); this.owner = owner; this.npcId = npcId; spawnPet(npcId, owner); call(true); } public void spawnPet(int npcId, Player owner) { if (owner.getPet() != null) { return; } spawnedPet = true; World.getNPCs().add(this); setNextGraphics(new Graphics(getDefinitions().size <= 1 ? 1314 : 1315)); owner.setPetFollow(owner.getIndex()); owner.setPet(this); } public void processNPC() { if (isDead()) return; if (!withinDistance(owner, 4)) { call(false); return; } trackTimer++; if (trackTimer == 50) { trackTimer = 0; ticks--; if (ticks == 2) owner.getPackets().sendGameMessage( "You have 1 minute before your familiar vanishes."); else if (ticks == 1) owner.getPackets().sendGameMessage( "You have 30 seconds before your familiar vanishes."); else if (ticks == 0) { dissmissPet(false); return; } } sendFollow(); } public void call() { if (getAttackedBy() != null && getAttackedByDelay() > System.currentTimeMillis()) { owner.getPackets().sendGameMessage( "You cant call your familiar while it under combat."); return; } else { call(false); return; } } public void call(boolean login) { int size = getSize(); if (login) { checkNearDirs = Misc.getCoordOffsetsNear(size); } else { removeTarget(); } WorldTile teleTile = null; for (int dir = 0; dir < checkNearDirs[0].length; dir++) { WorldTile tile = new WorldTile(new WorldTile(owner.getX() + checkNearDirs[0][dir], owner.getY() + checkNearDirs[1][dir], owner.getPlane())); if (!World.canMoveNPC(tile.getPlane(), tile.getX(), tile.getY(), size))[/code] Now go to Player.java and add these in there [code] public int petId; public Pets getPet() { return pet; } private Pets pet; public void setPet(Pets pets) { this.pet = pets; } public void setPetFollow(int petFollow) { this.petFollow = petFollow; } public void setPetId(int petId) { this.petId = petId; } public int getPetId() { return petId; } private int petFollow = -1; public int getPetFollow() { return petFollow; } [/code] Now find this in player.java public void run() { under this [code] if (currentFriendChatOwner != null) { FriendChatsManager.joinChat(currentFriendChatOwner, this); if (currentFriendChat == null) // failed currentFriendChatOwner = null; // clanWars = new ClanWars(); }[/code] Add [code] if (pet != null) pet.respawnFamiliar(this); [/code] Now find this [code] public void realFinish() { [/code] and under this [code] if (familiar != null) familiar.dissmissFamiliar(true); [/code] add [Code] if (pet != null) pet.dissmissPet(true); [/code] Now go to com.rs.net.decoders.handlers and open NPCHandler.java under this [code] if (!player.getControlerManager().processNPCClick1(npc)) return; [/code] Add [code] if (npc.getDefinitions().hasPickupOption() || npc.getDefinitions().hasTakeOption()) { if (!player.withinDistance(npc, 2)) { return; } player.faceEntity(npc); if (player.getPetFollow() != player.getIndex()) { player.sendMessage("This isn't your pet!"); return; } if (player.getPetId() == 0) { return; } player.getPet().dissmissPet(false); return; [/code] Now go InvetoryOptionsHandler.java and replace this [code] public static void handleItemOption7(Player player, int slotId, int itemId, Item item) { [/code] With [code] public static void handleItemOption7(Player player, int slotId, int itemId, Item item) { ItemDefinitions def = ItemDefinitions.getItemDefinitions(itemId); long time = System.currentTimeMillis(); if (player.getStopDelay() >= time || player.getEmotesManager().getNextEmoteEnd() >= time) return; player.stopAll(false); if (item.getDefinitions().isDestroyItem()) { player.getDialogueManager().startDialogue("DestroyItemOption", new Object[] { Integer.valueOf(slotId), item }); return; } if (player.getCharges().degradeCompletly(item)) { return; } /** * Pets */ switch (itemId) { case 12196:// BullDog Puppy if (player.getPet() != null) { player.sendMessage("You already have a pet spawned, please dissmis it to spawn another."); return; } player.setPetId(12196); new Pets(6969, player, new WorldTile(player.getX() + 1, player.getY() + 1, player.getPlane()), 0, false); player.getInventory().deleteItem(slotId, item); return; case 21512:// Baby jad. if (player.getPet() != null) { player.sendMessage("You already have a pet spawned, please dissmis it to spawn another."); return; } if (player.getSkills().getLevel(Skills.SUMMONING) != 99) { player.sendMessage("You need 99 Summoning to use this pet!"); return; } player.setPetId(21512); new Pets(3604, player, new WorldTile(player.getX() + 1, player.getY() + 1, player.getPlane()), 0, false); player.getInventory().deleteItem(slotId, item); return; case 22992: if (!player.isDonator()) { player.sendMessage("Only donators can use this pet, sorry!"); return; } if (player.getSkills().getLevel(Skills.SUMMONING) != 99) { player.sendMessage("You need 99 Summoning to use this pet!"); return; } player.setPetId(22992); new Pets(14832, player, new WorldTile(player.getX() + 1, player.getY() + 1, player.getPlane()), 0, false); player.getInventory().deleteItem(slotId, item); return; default: World.addGroundItem(item, new WorldTile(player), player, false, 180, true); player.getInventory().deleteItem(slotId, item); player.getPackets().sendSound(2739, 0, 1); return; } } [/code] Then go to com.rs.cache.loaders Open NPCDefinitions.java and add these in there [code] public boolean hasPickupOption() { String as[]; int j = (as = options).length; for (int i = 0; i < j; i++) { String option = as[i]; if (option != null && option.equalsIgnoreCase("pick-up")) return true; } return false; } public boolean hasTakeOption() { String as[]; int j = (as = options).length; for (int i = 0; i < j; i++) { String option = as[i]; if (option != null && option.equalsIgnoreCase("take")) return true; } return false; } [/code] And your done. Post any errors below, please don't pm me about it... if you don't know how to fix the errors you don't really deserve it IMO. Good Luck.
  6. Okay, so basically this is my way of doing pets, took me around 7 minutes to switch it up, i just wanted an easier way to add it. Basically uses old way in a much smaller and cleaner fashion. This is a snippet, it is the dropping the pets part, not picking them up, several of the pets you gotta change the pickup part on to make them work. In src -> com -> rs -> net -> decoders -> handlers ->inventoryoptions go to the bottom of the file, you will see something along these lines [code] switch (itemId) { case 12196:// BullDog Puppy if (player.getPet() != null) { player.sendMessage("You already have a pet spawned, please dissmis it to spawn another."); return; } player.setPetId(12196); new Pets(6969, player, new WorldTile(player.getX() + 1, player.getY() + 1, player.getPlane()), 0, false); player.getInventory().deleteItem(slotId, item); return; case 21512:// Baby jad. if (player.getPet() != null) { player.sendMessage("You already have a pet spawned, please dissmis it to spawn another."); return; } player.setPetId(21512); new Pets(3604, player, new WorldTile(player.getX() + 1, player.getY() + 1, player.getPlane()), 0, false); player.getInventory().deleteItem(slotId, item); return; case 22992: if (!player.isDonator()) { player.sendMessage("Only donators can use this pet, sorry!"); return; } player.setPetId(22992); new Pets(14832, player, new WorldTile(player.getX() + 1, player.getY() + 1, player.getPlane()), 0, false); player.getInventory().deleteItem(slotId, item); return;*/ default: World.addGroundItem(item, new WorldTile(player), player, false, 180, true); player.getInventory().deleteItem(slotId, item); player.getPackets().sendSound(2739, 0, 1); return; } [/code] Select from there to the bottom of the file, and replace that whole part you selected with the thing below. [code] if (IsPet(itemId)){ for(int i = 0; i < itempets.length; i++){ if (itemId == itempets[i]){ if (player.getPet() != null) { player.sendMessage("You already have a pet spawned, please dissmis it to spawn another."); return; } player.setPetId(itempets[i]); new Pets(npcpets[i], player, new WorldTile(player.getX() + 1, player.getY() + 1, player.getPlane()), 0, false); player.getInventory().deleteItem(slotId, item); } } } else { player.getInventory().deleteItem(slotId, item); World.addGroundItem(item, new WorldTile(player), player, false, 180, true); player.getPackets().sendSound(2739, 0, 1); } } public static int[] itempets = {22973, 12196, 21512, 22992, 22993, 22994, 22995, 12469, 12470, 12471, 12472, 12473, 12474, 12475, 12476, 12481, 12482, 12484, 12485, 12487, 12488, 12489, 12490, 12492, 12493, 12496, 12497, 12498, 12499, 12500, 12501, 12502, 12503, 12505, 12506, 12507, 12508, 12509, 12510, 12511, 12512, 12513, 12514, 12515, 12516, 12517, 12518, 12519, 12520, 12521, 12523, 14627, 14626, 7581, 7582, 7583, 7584, 7585}; public static int[] npcpets = {2267, 6969, 3604, 14832, 14768, 14769, 14770, 6900, 6901, 6902, 6903, 6904, 6905, 6906, 6907, 6908, 6909, 6911, 6912, 6914, 6915, 6916, 6919, 6920, 6923, 6942, 6943, 6945, 6946, 6947, 6948, 6949, 6950, 6951, 6952, 6953, 6954, 6955, 6956, 6957, 6958, 6959, 6960, 6961, 6962, 6963, 6964, 6965, 6966, 6967, 6968, 8550, 8551, 3503, 3504, 3505, 3506, 3507}; public static boolean IsPet(int j){ for(int i : itempets){ if (i != j){ continue; } return true; } return false; } } [/code] Now this makes it extremely simple to add pets, for the item of the pet you want to add you put it in the itempets array, so that it will look like this [code] public static int[] itempets = {/*new item here*/, 22973, 12196, 21512, 22992, 22993, 22994, 22995, 12469, 12470, 12471, 12472, 12473, 12474, 12475, 12476, 12481, 12482, 12484, 12485, 12487, 12488, 12489, 12490, 12492, 12493, 12496, 12497, 12498, 12499, 12500, 12501, 12502, 12503, 12505, 12506, 12507, 12508, 12509, 12510, 12511, 12512, 12513, 12514, 12515, 12516, 12517, 12518, 12519, 12520, 12521, 12523, 14627, 14626, 7581, 7582, 7583, 7584, 7585}; [/code] Then for the npc of the item you have to put it in the same excact slot number of the npcpets array so like this. [code] public static int[] npcpets = {/*new npc here*/, 2267, 6969, 3604, 14832, 14768, 14769, 14770, 6900, 6901, 6902, 6903, 6904, 6905, 6906, 6907, 6908, 6909, 6911, 6912, 6914, 6915, 6916, 6919, 6920, 6923, 6942, 6943, 6945, 6946, 6947, 6948, 6949, 6950, 6951, 6952, 6953, 6954, 6955, 6956, 6957, 6958, 6959, 6960, 6961, 6962, 6963, 6964, 6965, 6966, 6967, 6968, 8550, 8551, 3503, 3504, 3505, 3506, 3507}; [/code] Then just recompile and run, then you should be able to drop the pet easily, run into problems just comment or pm. I will try to help, but im working on my server alot rite now. Thanks for reading it, and this is my first snippet! :P npcs: [URL="http://zenithscape.com/npcs/npcList.txt"]NPC IDS here, for up to 718[/URL] Items: [URL="http://zenithscape.com/items/718%20itemlist.txt"]Item IDS here, for up to 718[/URL]
  7. Regicide667

    [667/***] Pets.

    Im having a problem with pets.. when i use 'drop' option it summons my pets but it also drops the item here is drop method... [CODE]public static void handleItemOption7(Player player, int slotId, int itemId, Item item) { long time = Utils.currentTimeMillis(); if (player.getStopDelay() >= time || player.getEmotesManager().getNextEmoteEnd() >= time) return; player.stopAll(false); if (item.getDefinitions().isDestroyItem()) { player.getDialogueManager().startDialogue("DestroyItemOption", slotId, item); return; } player.getInventory().deleteItem(slotId, item); if (player.getCharges().degradeCompletly(item)) return; [COLOR="BLUE"]World.addGroundItem(item, new WorldTile(player), player, false, 180, true); [/COLOR] player.getPackets().sendSound(2739, 0, 1);[/CODE] i have done [CODE]if (itemId != 21512){ World.addGroundItem(item, new WorldTile(player), player, false, 180, true); }[/CODE] but i can only do one item, if i try [CODE]if (itemId != 21512 || itemId == 12470){ World.addGroundItem(item, new WorldTile(player), player, false, 180, true); }[/CODE] it doesn't work so any help will be appreciated please.
  8. PerfectScape

    pets 667

    Can anyone give me a base to make a pet work? im such a pet lover :P
  9. willing to make new pets on peoples server for those who dont know how. im not making a tut cuz i dont want this getting out. idc if someone else makes a tut if they do. $1 or 1mil for every pet u want me to add *note that u can make pets like nex, giant wolptingers, phoenixes, and more. pm me or email me on msn or fb [email][email protected][/email]
  10. blik

    making new pets?

    ok im just looking to replace the pets in the project dungeonfest source but i cant seem to find the folder to where ineed to do that can anyone help?
  11. Anyone know where to edit Pets' Attack Animations? Also, what are the TzRek Jad Attack Animations?
  12. This is a fairly simple question, and every opinion is greatly appreciated :D I have a command to spawn different types of pets that follow you, available to all players on my sever. What would you want as pet? (Non attackable npc). I already have the following: -6 colors of cats -an alien (skavid) -ghost (Brown sheets) -cow -sheep. What else do you think people would want to have?
  13. I have a cat and a dog. Heres my cat Heres my dog: Too lazy to get a pic. ill get one latter
×