Jump to content

Search the Community

Showing results for tags 'slayer'.



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 49 results

  1. So I need someone to add duo slayer & auto vote or one of the both :P Paying $8 for each duo slayer & auto vote must do over teamviewer
  2. Okey so imma ask the question real simple. How do i let this slayer part check on slayer level and combatlevel, ive been trying to many things, and really don't know why it always gives erorrs... public void giveTask() { if (c.combatLevel < 50) giveTask(1); else if (c.combatLevel >= 50 && c.combatLevel <= 90) giveTask(2); else if (c.combatLevel > 90 && c.combatLevel <= 121) giveTask(3); else if (c.combatLevel >= 122 && c.combatLevel <= 138) giveTask(4); else giveTask(2); }
  3. Okey so i wanna make it so when you have a slayer task, only the monsters from that task only will drop caskets. But how do i say in java like to check the slayertask and add casket drop to those monsters?
  4. [CODE]package server.model.players.skills.slayer; import java.util.ArrayList; import java.util.List; import server.util.Misc; import server.util.TextUtils; /** * @author FUZENSETH * [MENTION=98951]infor[/MENTION]mation Slayer resources. */ public enum SlayerTask { /** The elite tasks */ GENERAL_GRAARDOR(27, Difficulty.ELITE, 1, 1100, 6260), /** The hard tasks */ BLACK_DEMON(4,Difficulty.HARD, 1, 170, 84), HELL_HOUND(6,Difficulty.HARD, 1, 119, 6210, 49), DARK_BEAST(7,Difficulty.HARD, 95, 347, 2783), ABYSSAL_DEMON(8,Difficulty.HARD, 85, 240, 2783, 1615), GARGOYLE(9,Difficulty.HARD, 75, 190, 1610), STEEL_DRAGON(10,Difficulty.HARD, 1, 263, 1592), BLACK_DRAGON(29, Difficulty.HARD, 1, 490, 54), BRONZE_DRAGON(31, Difficulty.HARD, 1, 560, 1590), /** Medium tasks */ ABERANT_SPECTRES(31, Difficulty.DIFFICULT, 60, 500, 1606), ORK(30, Difficulty.DIFFICULT, 1, 320, 6272, 6271, 6273), GREATER_DEMON(26, Difficulty.DIFFICULT, 1, 210, 83), JELLY(14,Difficulty.DIFFICULT, 52, 102, 1637, 1638, 1640), FIRE_GIANT(12,Difficulty.DIFFICULT, 1, 353, 1582, 110, 1583, 1584), BLOOD_VELD(13,Difficulty.MEDIUM, 50, 277, 6215, 1618, 1619), CHAOS_DWARF(24, Difficulty.MEDIUM, 1, 150, 119), MAGIC_AXE(23, Difficulty.MEDIUM, 1, 180, 127), BLUE_DRAGON(15,Difficulty.MEDIUM, 1, 205, 55, 52), LESSER_DEMON(25, Difficulty.MEDIUM, 1, 150, 82), POISON_SPIDERS(28, Difficulty.MEDIUM, 1, 130, 134), /** Easy tasks */ SKELETON(16,Difficulty.EASY, 1, 45, 92, 89,459), EXPERIMENT(17,Difficulty.EASY, 1, 42, 1678, 1677), ROCK_CRAB(18,Difficulty.EASY, 1, 57, 1265,1266), CHAOS_DRUID(19,Difficulty.EASY, 1, 60, 181), GIANT_BAT(20,Difficulty.EASY, 1, 35, 78), GHOST(21, Difficulty.EASY, 1, 50, 103); private final Difficulty difficulty; private final int slayerLevel, slayerXP, index; private final List<Integer> ids = new ArrayList<>(); private static final int EXP_MULTIPLIER = 14; private SlayerTask(final int index,final Difficulty difficulty, final int slayerLevel, final int slayerXP, final int... ids) { this.difficulty = difficulty; this.slayerLevel = slayerLevel; this.slayerXP = slayerXP * EXP_MULTIPLIER; this.index = index; for(int i : ids) this.ids.add(i ); } public Difficulty getDifficulty() { return difficulty; } public List<Integer> getIds() { return ids; } public int getXP() { return slayerXP; } public int getId() { return index; } public static SlayerTask forLevel(final int slayerLevel) { final SlayerTask task = values()[Misc.random(values().length - 1)]; if(slayerLevel >= task.slayerLevel && Math.abs(slayerLevel - task.difficulty.slayerLevel) <= 25) //ensure task is not too easy and they have the level for it return task; else return forLevel(slayerLevel); } static enum Difficulty { EASY(10, 40, 0, 4), MEDIUM(20, 80, 26, 6), DIFFICULT(40, 100, 50, 7), HARD(60, 150, 75, 8), ELITE(5, 10, 99, 8); private final int minAmount, maxAmount, slayerLevel, slayerPoints; private Difficulty(final int minAmount, final int maxAmount, final int slayerLevel, final int slayerPoints) { this.minAmount = minAmount; this.maxAmount = maxAmount; this.slayerLevel = slayerLevel; this.slayerPoints = slayerPoints; } public int getAmount() { return minAmount + Misc.random(maxAmount - minAmount); } public int getSlayerPoints() { return slayerPoints; } } [MENTION=15855]Over[/MENTION]ride public String toString() { return TextUtils.titleCase(super.toString().replaceAll("_", " ").toLowerCase()); } /** * Get all npc ids for slayer npc death for contenttemplate * [MENTION=184045]return[/MENTION] all slayer task npc ids */ public static final int[] getTasks() { final List<Integer> list = new ArrayList<>(); for(final SlayerTask tasks : SlayerTask.values()) { for(final int i : tasks.ids) list.add(i); } final int[] n = new int[list.size()]; for(int i = 0; i < n.length; i++) { n[i] = list.get(i); } return n; } public static SlayerTask taskForId(int npcID) { for(final SlayerTask task : SlayerTask.values()) { if(task.ids.contains(npcID)) return task; } return null; } public static SlayerTask load(final int index) { for(SlayerTask task : SlayerTask.values()) if(index == task.index) return task; return null; } public static int getLevelById(int npcID) { SlayerTask task = taskForId(npcID); if(task != null) return task.slayerLevel; else return 0; } }[/CODE] [CODE]package server.model.players.skills.slayer; import server.model.players.Client; /** * @author FUZENSETH * [MENTION=98951]infor[/MENTION]mation RS2 Slayer task holder * [MENTION=3199]Sin[/MENTION]ce 4.12.2014 */ public class SlayerHolder { //the ints needs to be initialized to client private int taskAmount, totalTasks, slayerPoints; /** * SlayerHolder that they have, save the ordinal */ private SlayerTask task; public SlayerHolder(final Client player) { } public boolean assignTask(final int slayerLevel) { if(taskAmount > 0) return false; task = SlayerTask.forLevel(slayerLevel); taskAmount = task.getDifficulty().getAmount(); return true; } public int killedTask(final int npcid) { if(task == null) return 0; if(isTask(npcid)) { if(--taskAmount == 0) { totalTasks++; slayerPoints += task.getDifficulty().getSlayerPoints() + handleTotalTasks(); } return task.getXP(); } return 0; } public boolean isTask(final int npcId) { return task != null && task.getIds().contains(npcId) && taskAmount > 0; } public boolean resetTask() { if(slayerPoints < 20) return false; slayerPoints -= 20; taskAmount = 0; return true; } public void removeTask() { taskAmount = 0; totalTasks = 0; slayerPoints -= 3; } public int handleTotalTasks() { int pointsToAdd =0; if(totalTasks%250 == 0) pointsToAdd = 180; else if(totalTasks%100 == 0) pointsToAdd = 100; else if(totalTasks %50 == 0) pointsToAdd = 50; else if(totalTasks%10 == 0) pointsToAdd = 20; return pointsToAdd; } public void load(final String string) { try { final String[] split = string.split(","); task = SlayerTask.load(Integer.parseInt(split[0])); taskAmount = Integer.parseInt(split[1]); slayerPoints = Integer.parseInt(split[2]); totalTasks = Integer.parseInt(split[3]); } catch (Exception e) { //fail safe e.printStackTrace(); } } public void setPoints(int value) { slayerPoints = value; } [MENTION=15855]Over[/MENTION]ride public String toString() { return String.format("%d,%d,%d,%d", task == null ? -1 : task.getId(), taskAmount, slayerPoints, totalTasks); } public int getTotalTasks() { return totalTasks; } public int getTaskAmount() { return taskAmount; } public SlayerTask getTask() { return task; } public int getSlayerPoints() { return slayerPoints; } } [/CODE]
  5. MikeMike1997

    Slayer Class

    My slayer is not making a class file. Not really sure why, this is preventing myself from updating slayer... SlayerMaster code [code] package com.rs.game.player.dialogues.impl; import com.rs.game.player.dialogues.Dialogue; public class SlayerMaster extends Dialogue { [MENTION=15855]Over[/MENTION]ride public void start() { sendEntityDialogue(IS_NPC, "Kuradal", 9085, 9827, "Hello warrior, What can i do for you? (Test for Mike)"); stage = 1; } [MENTION=15855]Over[/MENTION]ride public void run(int interfaceId, int componentId) { if (stage == 1) { sendOptionsDialogue("Slayer Options", "I would like a new Slayer Task", "Reset my slayer task (Cost: 500k)", "Tell me my current task", "I have completed my current task", "Show me the Rewards Shop"); stage = 2; } else if (stage == 2) { if (componentId == OPTION_1) { if (player.getTask().isComplete()) { sendEntityDialogue(IS_NPC, "Kuradal", 9085, 9827, "Turn in your previous task before getting a new one!"); stage = 1; return; } if (player.getTask().getTaskAmount() > 0){ sendEntityDialogue(IS_NPC, "Kuradal", 9085, 9827, "Please reset or finsh your ", "task if you want another!"); stage = 1; return; } player.getTask().getNewTask(); int amount = player.getTask().getTaskAmount(); sendEntityDialogue(IS_NPC, "Kuradal", 9085, 9827, "Your new task is to kill:", "x"+amount+" "+player.getTask().getName()+""); stage = 1; } else if (componentId == OPTION_2) { if (player.getInventory().containsItem(995, 500000)) { player.getTask().getNewTask(); int amount = player.getTask().getTaskAmount(); player.getInventory().deleteItem(995, 500000); sendEntityDialogue(IS_NPC, "Kuradal", 9085, 9827, "Your new task is to kill:", "x"+amount+" "+player.getTask().getName()+""); } else { sendEntityDialogue(IS_NPC, "Kuradal", 9085, 9827, "Please come back when you", "have atleast 500k on you."); stage = 1; } } else if (componentId == OPTION_3) { int amount = player.getTask().getTaskAmount(); if (player.getTask().getTaskAmount() == -2) { sendEntityDialogue(IS_NPC, "Kuradal", 9085, 9827, "You do not have a task."); } else { sendEntityDialogue(IS_NPC, "Kuradal", 9085, 9827, "Your current task is to kill:", "x"+amount+" "+player.getTask().getName()+""); } stage = 1; } else if (componentId == OPTION_4) { if (player.getTask().getCurrentTask() > 0) { sendEntityDialogue(IS_NPC, "Kuradal", 9085, 9827, "You still have remaining:", "x"+player.getTask().getTaskAmount()+" "+player.getTask().getName()+""); stage = 1; } else { if (player.getTask().getCurrentTask() < 1) { sendEntityDialogue(IS_NPC, "Kuradal", 9085, 9827, "Very good! Have some slayer points!", "You can now set a new task."); boolean hasSlayerRing = player.getEquipment().getRingId() == 13281; player.setSlayerPoints(player.getSlayerPoints() + (hasSlayerRing == true ? 40 : 20)); player.getTask().resetTask(); stage = 1; } else { sendEntityDialogue(IS_NPC, "Kuradal", 9085, 9827, "You do not currently have a task."); stage = 1; } } } else if (componentId == OPTION_5) { end(); player.getInterfaceManager().sendInterface(164); player.getPackets().sendIComponentText(164, 20, ""+player.getSlayerPoints()+""); } } } [MENTION=15855]Over[/MENTION]ride public void finish() { // TODO Auto-generated method stub } } [/code]
  6. Dear users, This may seem like a weird question, but I am looking for a server that has slayer working 100% so that I can play it locally on my own computer. I would prefer if the server was like oldschool. So nothing too new like Torva, Turmoil or corporeal. Something around 2007-2008. I do not know if anyone can help me out with this one but I would take any help that I can possible get. Kind Regards, Quartrmain
  7. BlackTurtle

    Slayer

    Hello, I wanted to add that players only could it slayer monsters if they had a certain lvl. in combat.java i have got this : public static int getSlayerLevelForNPC(int id) { switch (id) { case 1648: return 5; case 1649: return 5; case 1650: return 5; case 1651: return 5; case 1652: return 5; case 1653: return 5; case 1654: return 5; case 1655: return 5; case 1656: return 5; case 1657: return 5; case 4226: return 5; case 106694: return 5; case 14202: return 5; // cave bugs, 7 slayer required. case 1832: return 7; case 5750: //this one is cb 96 and in dorgesh kaan, gotta get mapdata for it return 7; //cave crawlers, 10 slayer required. case 1600: return 10; case 1601: return 10; case 1602: return 10; case 1603: return 10; case 7787: return 10; case 7798: //monstrous cave crawler, prob from qbd no idea. return 10; case 10695: //high rev cave crawler, so from new content, qbd prob. return 10; //banshee, 15 slayer required. case 1612: return 15; //cave slime, 17 slayer required. case 1831: return 17; case 10696: //high rev npc, qbd possibly? return 17; //rockslug, 20 slayer required. case 1631: return 20; case 1632: return 20; //desert lizards, 22 slayer required. case 2804: return 22; case 2805: return 22; case 2806: return 22; //cockatrice, 25 slayer required. case 1620: return 25; case 4227: return 25; //pyrefiend, 30 slayer required.µ case 1633: return 30; case 1634: return 30; case 1635: return 30; case 1636: return 30; case 6216: return 30; case 8598: return 30; case 8616: return 30; case 10697: //soul wars pyrefiend. return 30; //mogre, 32 slayer required. case 114: return 32; //harpie bug swarm, 33 slayer required. case 3153: return 33; //wall beast, 35 slayer required. case 7823: return 35; //killerwatt, 37 slayer required. case 3201: return 37; case 3202: return 37; //molanisk, 39 slayer required. case 5751: return 39; //basilisk, 40 slayer required. case 1616: return 40; case 1617: return 40; case 4228: return 40; //terror dog, 40 slayer required. case 5417: return 40; case 5418: return 40; case 11365: //not sure where this is from. return 40; //fever spider, 42 slayer required. case 2850: return 42; //infernal mage, 45 slayer required. case 1643: return 45; case 1644: return 45; case 1645: return 45; case 1646: return 45; case 1647: return 45; //brine rat, 47 slayer required. case 3707: return 47; //bloodveld, 50 slayer required. case 1618: return 50; case 1619: return 50; case 6215: return 50; //mutated bloodveld, 50 slayer required. case 7642: return 50; case 7643: return 50; //phoenix, 51 slayer required. case 8548: return 51; case 8549: return 51; case 8575: return 51; case 8576: return 51; //jelly, 52 slayer required. case 1637: return 52; case 1638: return 52; case 1639: return 52; case 1640: return 52; case 1641: return 52; case 1642: return 52; case 7459: return 52; case 7460: return 52; case 8599: return 52; case 8617: return 52; case 10699: //from soul wars. return 52; //turoth, 55 slayer required. case 1623: return 55; case 1626: return 55; case 1627: return 55; case 1628: return 55; case 1629: return 55; case 1630: return 55; //warped terrorbird, 56 slayer required. case 6285: return 56; case 6286: return 56; case 6287: return 56; case 6288: return 56; case 6289: return 56; case 6290: return 56; case 6291: return 56; case 6292: return 56; case 6293: return 56; case 6294: return 56; case 6295: return 56; case 6322: return 56; case 6323: return 56; case 6324: return 56; case 6325: return 56; case 6326: return 56; case 6327: return 56; case 6328: return 56; case 6329: return 56; case 6330: return 56; case 6331: return 56; case 6332: return 56; case 6608: return 56; //warped tortoise, 56 slayer required. case 6296: return 56; case 6297: return 56; //mutated zygnomite, 57 slayer required. case 3346: return 57; case 3347: return 57; //cave horror, 58 slayer required. case 4353: return 58; case 4354: return 58; case 4355: return 58; case 4356: return 58; case 4357: return 58; //aberrant spectre, 60 slayer required. case 1604: return 60; case 1605: return 60; case 1606: return 60; case 1607: return 60; case 7801: return 60; case 7802: return 60; case 7803: return 60; case 7804: return 60; //'Rum'-pumped crab, 61 slayer required. case 13603: return 61; case 13604: return 61; case 13605: return 61; case 13606: return 61; case 13607: return 61; //spiritual ranger, 63 slayer required. case 6220: return 63; case 6230: return 63; case 6256: return 63; case 6276: return 63; //dust devil, 65 slayer required. case 1624: return 65; //spiritual warrior, 68 slayer required. case 6219: return 68; case 6229: return 68; case 6255: return 68; case 6277: return 68; //kurask, 70 slayer required. case 1608: return 70; case 1609: return 70; case 4229: return 70; //skeletal wyvern, 72 slayer required. case 3068: return 72; case 3069: return 72; case 3070: return 72; case 3071: return 72; //Jungle strykewyrm, 73 slayer required. case 9467: return 73; //gargoyle, 75 slayer required. case 1610: return 75; case 1827: return 75; case 6389: return 75; case 9087: return 75; //Desert strykewyrm, 77 slayer required. case 9465: return 77; //nechryael, 80 slayer required. case 1613: return 80; case 10702: return 80; //aquanite, 80 slayer required. case 9172: return 80; //spiritual mage, 83 slayer required. case 6221: return 83; case 6231: return 83; case 6257: return 83; case 6258: return 83; //abyssal demon, 85 slayer required. case 1615: return 85; case 4230: return 85; case 9086: return 85; //dark beast, 90 slayer required. case 2783: return 90; //ice strykewyrm, 93 slayer required. case 9463: return 93; //Ganodermic runt, 95 slayer required. case 14698: return 95; case 14699: return 95; //ganodermic beast, 95 slayer required. case 14696: return 95; case 14697: return 95; default: return 0; } } in playercombat.java this: else { int slayerLevel = Combat .getSlayerLevelForNPC(n.getId()); if (slayerLevel > player.getSkills().getLevel( Skills.SLAYER)) { player.getPackets().sendGameMessage( "You need at least a slayer level of " + slayerLevel + " to fight this."); return false; } } Still it doesnt work properly, anyone a suggestion,
  8. tomkaz

    Slayer problem

    Hello I'm coding new server but i have one problem, when i kill any of monster in my server i always get slayer exp, how to fix it? please help someone!!!
  9. Hello I'm coding new server but i have one problem, when i kill any of monster in my server i always get slayer exp, how to fix it? please help someone!!!
  10. does anyone have the slayer tower clipped with this format tiles.put(0 << 28 | x << 14 | y, true);
  11. I found a guide off of Mopar on adding slayer points. But I keep getting this error: [code]src\server\model\players\PlayerSave.java:173: error: orphaned case break;case 3: ^ 1 error[/code] After I added the new code to my PlayerSave file I got 2 errors, I forget what the other error was but I keep getting this error. Here is my case2 and case3 code: [code] case 2: } if (token.equals("slayerPoints")) { p.slayerPoints = Integer.parseInt(token2); if (token.equals("character-height")) { p.heightLevel = Integer.parseInt(token2); } else if (token.equals("character-posx")) { p.teleportToX = (Integer.parseInt(token2) <= 0 ? 3210 : Integer.parseInt(token2)); } else if (token.equals("character-posy")) { p.teleportToY = (Integer.parseInt(token2) <= 0 ? 3424 : Integer.parseInt(token2)); } else if (token.equals("character-rights")) { p.playerRights = Integer.parseInt(token2); } else if (token.equals("Used-Puremaster")) { p.pure = Integer.parseInt(token2); } else if (token.equals("tutorial-progress")) { p.tutorial = Integer.parseInt(token2); } else if (token.equals("crystal-bow-shots")) { p.crystalBowArrowCount = Integer.parseInt(token2); } else if (token.equals("skull-timer")) { p.skullTimer = Integer.parseInt(token2); } else if (token.equals("EP")) { p.earningPotential = Integer.parseInt(token2); } else if (token.equals("magic-book")) { p.playerMagicBook = Integer.parseInt(token2); } else if (token.equals("xpLock")) { p.xpLock = Boolean.parseBoolean(token2); } else if (token.equals("Jailed")) { p.Jail = Boolean.parseBoolean(token2); } else if (token.equals("summonId")) { p.summonId = Integer.parseInt(token2); } else if (token.equals("has-npc")) { p.hasNpc = Boolean.parseBoolean(token2); } else if (token.equals("Agrith")) { p.Agrith = Boolean.parseBoolean(token2); } else if (token.equals("vls-hits")) { p.degradeTime = Integer.parseInt(token2); } else if (token.equals("Flambeed")) { p.Flambeed = Boolean.parseBoolean(token2); } else if (token.equals("Karamel")) { p.Karamel = Boolean.parseBoolean(token2); } else if (token.equals("Dessourt")) { p.Dessourt = Boolean.parseBoolean(token2); } else if (token.equals("culin")) { p.Culin = Boolean.parseBoolean(token2); } else if (token.equals("Monkey-Kc")) { p.monkeyk0ed = Integer.parseInt(token2); } else if (token.equals("brother-info")) { p.barrowsNpcs[Integer.parseInt(token3[0])][1] = Integer.parseInt(token3[1]); } else if (token.equals("special-amount")) { p.specAmount = Double.parseDouble(token2); } else if (token.equals("selected-coffin")) { p.randomCoffin = Integer.parseInt(token2); } else if (token.equals("barrows-killcount")) { p.pkPoints = Integer.parseInt(token2); } else if (token.equals("teleblock-length")) { p.teleBlockDelay = System.currentTimeMillis(); p.teleBlockLength = Integer.parseInt(token2); } else if (token.equals("pc-points")) { p.pcPoints = Integer.parseInt(token2); } else if (token.equals("gwdelay")) { p.gwdelay = Integer.parseInt(token2); } else if (token.equals("Altar")) { p.altarPrayed = Integer.parseInt(token2); } else if (token.equals("Arma-KC")) { p.Arma = Integer.parseInt(token2); } else if (token.equals("Band-KC")) { p.Band = Integer.parseInt(token2); } else if (token.equals("Zammy-KC")) { p.Zammy = Integer.parseInt(token2); } else if (token.equals("Sara-KC")) { p.Sara = Integer.parseInt(token2); } else if (token.equals("pk-points")) { p.pkPoints = Integer.parseInt(token2); } else if (token.equals("isDonator")) { p.isDonator = Integer.parseInt(token2); } else if (token.equals("slayerTask")) { p.slayerTask = Integer.parseInt(token2); } else if (token.equals("taskAmount")) { p.taskAmount = Integer.parseInt(token2); } else if (token.equals("magePoints")) { p.magePoints = Integer.parseInt(token2); } else if (line.startsWith("KC")) { p.KC = Integer.parseInt(token2); } else if (line.startsWith("DC")) { p.DC = Integer.parseInt(token2); } else if (token.equals("autoRet")) { p.autoRet = Integer.parseInt(token2); } else if (token.equals("trade11")) { p.trade11 = Integer.parseInt(token2); } else if (token.equals("SpeDelay")) { p.SpecialDelay = Integer.parseInt(token2); } else if (token.equals("barrowskillcount")) { p.barrowsKillCount = Integer.parseInt(token2); } else if (token.equals("flagged")) { p.accountFlagged = Boolean.parseBoolean(token2); } else if (token.equals("wave")) { p.waveId = Integer.parseInt(token2); } else if (token.equals("void")) { for (int j = 0; j < token3.length; j++) { p.voidStatus[j] = Integer.parseInt(token3[j]); } } else if (token.equals("fightMode")) { p.fightMode = Integer.parseInt(token2); } break; case 3: if (token.equals("character-equip")) { p.playerEquipment[Integer.parseInt(token3[0])] = Integer.parseInt(token3[1]); p.playerEquipmentN[Integer.parseInt(token3[0])] = Integer.parseInt(token3[2]); } break;[/code]
  12. hyaass

    Slayer Monsters

    How would I change the amount of xp you get when you kill a certain monster. Like for Glacors I get around 3k slayer xp per kill.
  13. Enahs

    [PI] Slayer

    Alright, I will try to explain myself as best as I can. I have re-done my Slayer class and am nearly finished, but one of the last things is confusing me. How would I go about making multiple NPCs count as the Slayer task. For example, I get Goblins as a Slayer task, but I can only kill the level-5 Goblin to get the Slayer experience and not the level-12 or any other NPC id. Basically I want to be able to kill multiple different NPC ids, but still count as the task. I tried something along the lines of making a Boolean; like this: [code] public boolean isZombieNpc(int i) { switch (npcs[i].npcType) { case 73: case 74: case 75: case 76: case 1465: case 1466: case 1467: case 1826: case 3622: case 4392: case 4393: case 4394: case 4938: case 4939: case 5293: case 5294: case 5295: case 5296: case 5400: case 5401: case 5402: case 5403: case 5404: case 5405: case 5406: case 5407: case 5408: case 5409: case 8149: case 8150: case 8151: case 8152: case 8153: return true; } return false; }[/code] Then for the Slayer assignment I put: [code]ZOMBIE(isZombieNpc, 1, "Zombies");[/code] As far as I know this should work, but I get an error: [code]isZombieNpc cannot be resolved to a variable[/code] Not sure what the problem is. Thank you for any and all help! :) If there is any code you need to see to help me, please let me know and I will get it up ASAP.
  14. Coded this in RuneLite and might as well help out the amazing RuneLocus community! Just follow the instructions below. Very easy stuff. 1) Go to [B]player.java[/B] and put this in: [CODE]private boolean talkedWithSpria;[/CODE] 2) Now scroll down near the bottom and put this in: [CODE]public boolean isTalkedWithSpria() { return talkedWithSpria; } public void setTalkedWithSpria() { talkedWithSpria = true; } public void falseWithSpria() { talkedWithSpria = false; }[/CODE] 3) Now go to your [B]dialogues[/B] folder and add this file: [B]Spria.java[/B] [CODE]package com.rs.game.player.dialogues; import com.rs.game.player.content.SlayerTask; import com.rs.game.player.content.SlayerTask.Master; public class Spria extends Dialogue { int npcId; [MENTION=15855]Over[/MENTION]ride public void start() { if (!player.isTalkedWithSpria()) { sendEntityDialogue(IS_NPC, "Spria", 8462, 9827, "Hello, what can I do for you?"); } else { sendEntityDialogue(IS_NPC, "Spria", 8462, 9827, "What do you need now "+ player.getDisplayName() +"?"); } } [MENTION=15855]Over[/MENTION]ride public void run(int interfaceId, int componentId) { switch (stage) { case -1: if (!player.isTalkedWithSpria()) { stage = 0; sendPlayerDialogue(9827, "Who are you?"); } else { stage = 8; sendPlayerDialogue(9827, "I would like to ask something about my Task."); } break; case 0: stage = 1; sendEntityDialogue( IS_NPC, "Spria", 8462, 9827, "Im the slayer master of <b>RuneLite</b>, Spria! I give out slayer task to the best warriors around!"); break; case 1: stage = 2; sendPlayerDialogue(9827, "Can I please have a task?"); break; case 2: stage = 3; sendEntityDialogue(IS_NPC, "Spria", 8462, 9827, "Of course, here is your task.."); break; case 3: if (player.getTask() == null) { SlayerTask.random(player, Master.SPRIA); sendEntityDialogue(IS_NPC, "Spria", 8462, 9827, "Your task is to kill " + player.getTask().getTaskAmount() + " " + player.getTask().getName().toLowerCase() + "s."); player.setTalkedWithSpria(); stage = 7; } else { sendEntityDialogue(IS_NPC, "Spria", 8462, 9827, "You already have a task that you need to complete! ", "Your task is to kill " + player.getTask().getTaskAmount() + " " + player.getTask().getName().toLowerCase() + "s."); player.setTalkedWithSpria(); stage = 4; } break; case 4: stage = 5; sendPlayerDialogue(9827, "Can you show me where I can kill "+ player.getTask().getName() +"?"); break; case 5: stage = 6; sendEntityDialogue(IS_NPC, "Spria", 8462, 9827, "I have no information for your task, sorry."); break; case 6: stage = 7; sendPlayerDialogue(9827, "Alright, I will use the forums if I need any help!"); break; case 7: /* Offical end of Dialogue */ end(); break; case 8: stage = 9; sendEntityDialogue(IS_NPC, "Spria", 8462, 9827, "Alright, what can I help you with?"); break; case 9: stage = 10; sendOptionsDialogue(SEND_DEFAULT_OPTIONS_TITLE, "I have finished my Task!", "Can you change my Task?", "I dont remember my Task.", "I would like to purchase a Slayer Helmet.", "I would like to have an Enchanted Gem!"); break; case 10: switch (componentId) { case OPTION_1: stage = 11; sendPlayerDialogue(9827, "I have completed the task you assigned me!"); break; case OPTION_2: stage = 12; sendPlayerDialogue(9827, "I would like to have a new task from you."); break; case OPTION_3: stage = 21; sendPlayerDialogue(9827, "I don't remember the task you gave me."); break; case OPTION_4: stage = 24; sendPlayerDialogue(9827, "I would like to purchase a Slayer Helmet."); break; case OPTION_5: stage = 25; sendPlayerDialogue(9827, "I would like to have an Enchantment Gem."); break; } break; case 11: stage = 13; if (player.getTask() == null) { sendEntityDialogue(IS_NPC, "Spria", 8462, 9827, "Very good, would you like to have a new task?"); } else { sendEntityDialogue(IS_NPC, "Spria", 8462, 9827, "No you haven't warrior."); stage = 7; } break; case 12: stage = 14; sendEntityDialogue(IS_NPC, "Spria", 8462, 9827, "I can assign a new task for a fee of 150,000 gp."); break; case 13: stage = 15; sendOptionsDialogue(SEND_DEFAULT_OPTIONS_TITLE, "Yes", "No thanks"); break; case 14: stage = 16; sendOptionsDialogue("Do you want to change your task for 150,000 gp?", "Yes", "No thanks"); break; case 15: switch (componentId) { case OPTION_1: stage = 17; sendPlayerDialogue(9827, "Yes please."); break; case OPTION_2: stage = 18; sendPlayerDialogue(9827, "No thanks."); break; } break; case 16: switch (componentId) { case OPTION_1: stage = 19; sendPlayerDialogue(9827, "Yes please."); break; case OPTION_2: stage = 20; sendPlayerDialogue(9827, "No thanks."); break; } break; case 17: SlayerTask.random(player, Master.SPRIA); sendEntityDialogue(IS_NPC, "Spria", 8462, 9827, "Your new slayertask is to kill " + player.getTask().getTaskAmount() + " " + player.getTask().getName().toLowerCase() + "s.."); stage = 7; break; case 18: sendEntityDialogue(IS_NPC, "Spria", 8462, 9827, "Okay, see you soon!"); stage = 7; break; case 19: if (player.getInventory().containsItem(995, 150000)) { player.getInventory().deleteItem(995, 150000); SlayerTask.random(player, Master.SPRIA); sendEntityDialogue(IS_NPC, "Spria", 8462, 9827, "Your new slayertask is to kill " + player.getTask().getTaskAmount() + " " + player.getTask().getName().toLowerCase() + "s."); stage = 7; } else { sendEntityDialogue(IS_NPC, "Spria", 8462, 9827, "You dont have 150,000 gold, come back later."); stage = 7; } break; case 20: sendEntityDialogue( IS_NPC, "Spria", 8462, 9827, "Sorry to hear, come back later."); stage = 7; break; case 21: sendEntityDialogue(IS_NPC, "Spria", 8462, 9827, "Your new task is to kill.."); stage = 22; break; case 22: sendEntityDialogue(IS_NPC, "Spria", 8462, 9827, "Your slayertask is to kill " + player.getTask().getTaskAmount() + " " + player.getTask().getName().toLowerCase() + "s. Please remember your task next time."); stage = 23; break; case 23: sendPlayerDialogue(9827, "Thank you Spria!"); stage = 7; break; case 24: sendEntityDialogue( IS_NPC, "Spria", 8462, 9827, "Here you go!"); if (player.getSlayerPoints() >= 400) { player.getInventory().addItem(15492, 1); player.setSlayerPoints(player.getSlayerPoints() - 400); stage = 23; } else { sendEntityDialogue(IS_NPC, "Spria", 8462, 9827, "You need 400 Points to purchase the Full Slayer Helmet."); stage = 23; } break; case 25: sendEntityDialogue( IS_NPC, "Kuradal", 8462, 9827, "Here you go!"); if (player.getSlayerPoints() >= 0) { player.getInventory().addItem(4155, 1); stage = 23; } break; } } [MENTION=15855]Over[/MENTION]ride public void finish() { // TODO Auto-generated method stub } }[/CODE] 4) Go to [B]dialoguehandler[/B] and add this: [CODE]handledDialogues.put("Spria", (Class<Dialogue>) Class.forName(Spria.class.getCanonicalName()));[/CODE] 5) Go to [B]NpcHandler[/B] and add this: [CODE]else if (npc.getId() == 8462) player.getDialogueManager().startDialogue("Spria", false);[/CODE] 6) Add this below KURADAL in [B]SlayerTask.java[/B]: [CODE]SPRIA(8462, new Object[][] //easiest { { "Cow", 1, 25, 125, 25.0 }, { "Rock Crab", 1, 25, 125, 25.0 }, { "Crawling hand", 1, 50, 125, 55.0 } }),[/CODE] [CENTER][U]If you need help with this please add me on MSN: [email][email protected][/email][/U] Credits: [MENTION=152696]Citellum[/MENTION] and Me[/CENTER]
  15. Okay adding elite slayer tasks is ALOT easyer then most people think. First, open up Slayer.java And look for this [CODE] public int[] lowTasks = {1648, 1612, 117, 1265, 103, 78, 119, 18,101,1265,181}; public int[] lowReqs = {5, 15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,1,1}; public int[] medTasks = {1643,1618,941,119,82,52,1612,117,1265,112,125,1341}; public int[] medReqs = {45,50,1,1,1,1,15,1,1,1,1,1}; public int[] highTasks = {1624,1611,1613,1615,55,84,49,1618,941,82,2783,1341}; // 1 2 3 4 5 6 7 8 9 10 11 12 public int[] highReqs = {65,75,80,85,1,1,1,50,1, 1 ,90}; // 1 2 3 4 5 6 7 8 9 10 11 public void giveTask() { if (c.combatLevel < 50) giveTask(1); else if (c.combatLevel >= 50 && c.combatLevel <= 90) giveTask(2); else if (c.combatLevel > 90 && c.combatLevel <= 126) giveTask(3); else giveTask(2); }[/CODE] nao you are going to want it to look like this when done "this is what i have for mine" [CODE] public int[] lowTasks = {1648, 1612, 117, 1265, 103, 78, 119, 18,101,1265,181}; public int[] lowReqs = {5, 15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,1,1}; public int[] medTasks = {1643,1618,941,119,82,52,1612,117,1265,112,125,1341}; public int[] medReqs = {45,50,1,1,1,1,15,1,1,1,1,1}; public int[] highTasks = {1624,1611,1613,1615,55,84,49,1618,941,82,2783,1341}; // 1 2 3 4 5 6 7 8 9 10 11 12 public int[] highReqs = {65,75,80,85,1,1,1,50,1, 1 ,90}; // 1 2 3 4 5 6 7 8 9 10 11 public int[] eliteTasks = {####,####,####,####,####,####,####,####};// this is where the npcs go for the task public int[] eliteReqs = {####,####,####,####,####,####,####,####};//slayer level required public void giveTask() { if (c.combatLevel < 50) giveTask(1); else if (c.combatLevel >= 50 && c.combatLevel <= 90) giveTask(2); else if (c.combatLevel > 90 && c.combatLevel <= 125) giveTask(3); else if (c.combatLevel == 126 && c.combatLevel == 126) giveTask(4); else giveTask(2); }[/CODE] Then, you want to look for this [CODE] } else if (taskLevel == 2) { random = (int)(Math.random() * (medTasks.length - 1)); given = medTasks[random]; } else if (taskLevel == 3) { random = (int)(Math.random() * (highTasks.length - 1)); given = highTasks[random]; } if (!canDoTask(taskLevel,random)) { giveTask(taskLevel); return; } c.slayerTask = given; c.taskAmount = Misc.random(15) + 15; c.sendMessage("You have been assigned to kill " + c.taskAmount + " " + Server.npcHandler.getNpcListName(given) + " as a slayer task."); } public boolean canDoTask(int taskLevel, int random) { if (taskLevel == 1) { return c.playerLevel[c.playerSlayer] >= lowReqs[random]; } else if (taskLevel == 2) { return c.playerLevel[c.playerSlayer] >= medReqs[random]; } else if (taskLevel == 3) { return c.playerLevel[c.playerSlayer] >= highReqs[random]; } return false;[/CODE] and replace that with this [CODE] } else if (taskLevel == 2) { random = (int)(Math.random() * (medTasks.length - 1)); given = medTasks[random]; } else if (taskLevel == 3) { random = (int)(Math.random() * (highTasks.length - 1)); given = highTasks[random]; } } else if (taskLevel == 4) { random = (int)(Math.random() * (eliteTasks.length - 1)); given = eliteTasks[random]; } if (!canDoTask(taskLevel,random)) { giveTask(taskLevel); return; } c.slayerTask = given; c.taskAmount = Misc.random(15) + 15; c.sendMessage("You have been assigned to kill " + c.taskAmount + " " + Server.npcHandler.getNpcListName(given) + " as a slayer task."); } public boolean canDoTask(int taskLevel, int random) { if (taskLevel == 1) { return c.playerLevel[c.playerSlayer] >= lowReqs[random]; } else if (taskLevel == 2) { return c.playerLevel[c.playerSlayer] >= medReqs[random]; } else if (taskLevel == 3) { return c.playerLevel[c.playerSlayer] >= highReqs[random]; } else if (taskLevel == 4) { return c.playerLevel[c.playerSlayer] >= eliteReqs[random]; } return false;[/CODE] And thats it. A little extra that you can do with slayer to make it "more realistic" change the eliteTasks to be strykewyrms, abby demons,mithril dragons, tz-tok-jad and others like that. Thats what i have for mine. Also you can change this [CODE]c.taskAmount = Misc.random(15) + 15;[/CODE] this is mine [CODE]c.taskAmount = Misc.random(35) + 15;[/CODE] The reason mine is higher is because instead of getting like 17 black demons or w/e you get like 35-40 so you get better xp and more like runescape in that sense. HOPE THIS HELPED! Heres a picture of it in game to show proof [IMG]http://i55.tinypic.com/ad0vp4.jpg[/IMG]
  16. kuradal slayer dungeon coords where the dark beast abbys iron and steels are anyone know the coords? 667 server Update: Found it; 1633, 5281
  17. To make a long story short, I am trying to find the solution to solving these errors that I get. Once solved, my Slayer skill can be finished. If you need to see any parts of code, I can get that to you! Any help would be appreciated! Here is the error: [code]Building please wait... src\com\rs\game\npc\NPC.java:648: error: cannot find symbol if (getDefinitions().name.toLowerCase().equalsIgnoreCase (killer.getTask().getName().toLowerCase())) { ^ symbol: method getName() location: class SlayerTask src\com\rs\game\npc\NPC.java:650: error: cannot find symbol killer.getTask().decreaseAmount(); ^ symbol: method decreaseAmount() location: class SlayerTask 2 errors Compiled. Press any key to continue . . .[/code] Again, any help would be appreciated! Thank you! ~Derek
  18. hiya i finally added slayer to my server i am a beginner so bear with me please... i get assigned a task but when i kill the npc which i have been assigned i don't get xp how would i fix this thanks alot
  19. Kieran Kelly

    Slayer bug

    All right so the problem is ; I play on a great server (not going to say it incase the post gets removed) and we have a common slayer/cooking bug. What happens is ; The screen kind of goes "cream" and it gives you the message "Connection lost."Please wait - attempting to reestablish". It happens quit often and this is a server with 100+ players. I was just wondering if anyone knew how to resolve it/an updated code to prevent it happening. I'd really appreciate someone who gives it and thanks for reading.
  20. Hydra123

    667/*** Slayer

    hey , could some1 tell me how to make all monsters give certain amount of slayer xp like crabs gives 1k xp , nex 100k xp and so.. because my slayer doenst work as i get a task but it dont give xp as i kill the target because it dont count the kill thanks,
  21. hey , i got this slayer master which gives takss and everything is good but when u get task like zombies you go to kill a zombie but it doenst count ur kills so no exp u get can anyone figure out how to fix this? a mistake i made at skills.java or something thanks
  22. Anyone know where I can find a slayer dialogue? To where they can pick what level of slayer task they want? Example : Easy, Medium, Hard, Elite. I'll appreciate and rep if I ca.
  23. starting... src\com\rs\game\player\dialogues\SlayerMaster.java:16: error: cannot find symbol Master master = player.getSlayerMaster(); ^ symbol: method getSlayerMaster() location: variable player of type Player src\com\rs\game\player\dialogues\SlayerMaster.java:18: error: cannot find symbol player.setSlayerMaster(Master.SPRIA); ^ symbol: method setSlayerMaster(Master) location: variable player of type Player src\com\rs\game\player\dialogues\SlayerMaster.java:26: error: cannot find symbol Master master = playergetSlayerMaster(); ^ symbol: method playergetSlayerMaster() location: class SlayerMaster src\com\rs\game\player\dialogues\SlayerMaster.java:30: error: cannot find symbol if (player.getSlayerTask() != null) { ^ symbol: method getSlayerTask() location: variable player of type Player src\com\rs\game\player\dialogues\SlayerMaster.java:48: error: cannot find symbol SlayerTask task = player.getSlayerTask(); ^ symbol: method getSlayerTask() location: variable player of type Player src\com\rs\game\player\dialogues\SlayerMaster.java:66: error: cannot find symbol + player.getSlayerTask().getName() ^ symbol: method getSlayerTask() location: variable player of type Player src\com\rs\game\player\dialogues\SlayerMaster.java:99: error: cannot find symbol if (player.getSlayerTask() != null) { ^ symbol: method getSlayerTask() location: variable player of type Player src\com\rs\game\player\dialogues\SlayerMaster.java:112: error: cannot find symbo l player.setSlayerMaster(Master.forId(npcI d)); ^ symbol: method forId(int) location: class Master Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 8 errors Press any key to continue . . . Someone please help me thanks :] didnt post out right the arrows are pointing at the dots like this player"."getslayertask
×