Jump to content

Search the Community

Showing results for tags 'multiplier'.



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

  1. Hello guys, i have recently added penguins into my server, and i wanted to progress to make a multiplier for the players. This basically means players will upgrade there multiplier allowing them to hit harder on the penguins giving them more tokens. I need to create an instance of this but ive forgotten how, any help is muchly appreciated. Thank you.
  2. Does anyone have the correct multiplier for runes? [SPOILER=CraftRunes Code][QUOTE] public static void craftRunes(Client c, int itemID) { int index = -1; int essence; int multiplier = 1; int multiplier2 = 0; for (int i1 = 0; i1 < runeInfo.length; i1++) if (runeInfo[i1][0] == itemID) index = i1; if (c.getPA().getXPForLevel(20) < runeInfo[index][1]) { c.sendMessage("You need at least "+runeInfo[index][1]+" to runecraft this."); return; } if (c.getItems().getItemAmount(1436) > 0) essence = c.getItems().getItemAmount(1436); else return; if (index == 0) multiplier = 11; else if (index <= 5) multiplier2 = 18+2*(index-2); else if (index <= 9) multiplier2 = 63+2*(index-2); if (index <= 9) for (int i2 = 1; i2 < 11; i2++) if (c.getPA().getXPForLevel(20) >= multiplier2*i2) multiplier = i2+1; for (int i = 0; i < essence; i++) c.getItems().deleteItem(1436, c.getItems().getItemSlot(1436), 1); c.getItems().addItem(itemID, essence*multiplier); c.getPA().addSkillXP(runeInfo[index][2], 20); c.getLevelForXP(20); c.sendMessage("You bind the temple's power into "+c.getItems().getItemName(itemID)+"s."); c.gfx0(186); c.startAnimation(791, 0); }[/QUOTE][/SPOILER] [SPOILER=Runecrafting.java][QUOTE]package server.model.player.skills; import server.Config; import server.model.player.Client; import server.util.Misc; /** * RuneCrafting.java * * @author Sanity * **/ public class Runecrafting { private Client c; public Runecrafting(Client c) { this.c = c; } /** * Rune essence ID constant. */ private static final int RUNE_ESS = 1436; /** * Pure essence ID constant. */ private static final int PURE_ESS = 7936; /** * An array containing the rune item numbers. */ public int[] runes = { 556, 558, 555, 557, 554, 559, 564, 562, 561, 563, 560, 565 }; /** * An array containing the object IDs of the runecrafting altars. */ public int[] altarID = { 2478, 2479, 2480, 2481, 2482, 2483, 2484, 2487, 2486, 2485, 2488, 2489 }; /** * 2D Array containing the levels required to craft the specific rune. */ public int[][] craftLevelReq = { {556, 1}, {558, 2}, {555, 5}, {557, 9}, {554, 14}, {559, 20}, {564, 27}, {562, 35}, {561, 44}, {563, 54}, {560, 65}, {565, 77} }; /** * 2D Array containing the levels that you can craft multiple runes. */ public int[][] multipleRunes = { {11, 22, 33, 44, 55, 66, 77, 88, 99}, {14, 28, 42, 56, 70, 84, 98}, {19, 38, 57, 76, 95}, {26, 52, 78}, {35, 70}, {46, 92}, {59}, {74}, {91}, {100}, {100}, {100} }; public int[] runecraftExp = { 5, 6, 6, 7, 7, 8, 9, 9, 10, 11, 11, 11 }; /** * Checks through all 28 item inventory slots for the specified item. */ private boolean itemInInv(int itemID, int slot, boolean checkWholeInv) { if (checkWholeInv) { for (int i = 0; i < 28; i++) { if (c.playerItems[i] == itemID + 1) { return true; } } } else { if (c.playerItems[slot] == itemID + 1) { return true; } } return false; } /** * Replaces essence in the inventory with the specified rune. */ private void replaceEssence(int essType, int runeID, int multiplier, int index) { System.out.println("multipler: " + multiplier); int exp = 0; for (int i = 0; i < 28; i++) { if (itemInInv(essType, i, false)) { c.getItems().deleteItem(essType, i, 1); c.getItems().addItem(runeID, 1 * multiplier); exp += runecraftExp[index]; } } c.getPA().addSkillXP(exp * Config.RUNECRAFTING_EXPERIENCE, c.playerRunecrafting); } private enum Abyss_Data { THIEVING(new int[]{7150, 7146}, 17), FIRE(new int[]{7151, 7145}, 11), WOODCUTTING(new int[]{7152, 7144}, 8), MINING(new int[]{7153}, 14), AGILITY(new int[]{7147, 7148, 7149}, 16); int[] objectId; int skill; private Abyss_Data(int[] objectId, int skill) { this.objectId = objectId; this.skill = skill; } } public static void locate(Client c, int xPos, int yPos) { String X = ""; String Y = ""; if (c.absX >= xPos) { X = "west"; } if (c.absY > yPos) { Y = "South"; } if (c.absX < xPos) { X = "east"; } if (c.absY <= yPos) { Y = "North"; } c.sendMessage("You need to travel "+Y+"-"+X+"."); } public void handleAbyss(int objectId) { for (Abyss_Data ad : Abyss_Data.values()) { for (int curObj : ad.objectId) { if (curObj == objectId) { if (ad != null) { if (c.playerLevel[ad.skill] >= 35) { c.getPA().movePlayer(Misc.random(1)+3039, Misc.random(1) + 4834, 0); } else { c.sendMessage("You need a higher level to go through here."); } } } } } } private enum Altar_Data { AIR(2478, 1, 6, 556, false, new int[][]{{11, 2}, {22, 3}, {33, 4}, {44, 5}, {55, 6}, {66, 7}, {77, 8}, {88, 9}, {99, 9}}), MIND(2479, 5, 6, 558, false, new int[][]{{14, 2}, {28, 3}, {42, 4}, {56, 5}, {70, 6}, {84, 7}, {98, 8}}), WATER(2480, 9, 7, 555, false, new int[][]{{ 19, 2}, {38, 3}, {57, 4}, {76, 5}, {95, 6}}), EARTH(2481, 14, 7, 557, false, new int[][]{{26, 2}, {52, 3}, {78, 4}}), FIRE(2482, 14, 7, 554, false, new int[][]{{26, 2}, {52, 3}, {78, 4}}), BODY(2483, 20, 8, 559, false, new int[][]{{35, 2}, {70, 3}}), COSMIC(2484, 27, 9, 564, false, new int[][]{{59, 2}}), CHAOS(2485, 35, 9, 562, false, new int[][]{{74, 2}}), NATURE(2486, 44, 10, 561, false, new int[][]{{91, 2}}), LAW(2487, 54, 11, 563, false, new int[][]{{100, 2}}), DEATH(2488, 65, 13, 560, false, new int[][]{{100, 2}}); int altarID, levelReq, xp, rewardedRune; boolean pess; int[][] multiRunes; private Altar_Data(int altarID, int levelReq, int xp, int rewardedRune, boolean pess, int[][] multiRunes) { this.altarID = altarID; this.levelReq = levelReq; this.xp = xp; this.rewardedRune = rewardedRune; this.pess = pess; this.multiRunes = multiRunes; } } public Altar_Data forObj(int obj) { for (Altar_Data ad : Altar_Data.values()) { if (ad.altarID == obj) { return ad; } } return null; } private enum Altars { AIR_ALTAR(2452, new int[] {1438, 5527}, new int[] {2842, 4829}), MIND_ALTAR(2453, new int[] {1448, 5529}, new int[] {2793, 4828}), WATER_ALTAR(2454, new int[] {1444, 5531}, new int[] {2713, 4836}), EARTH_ALTAR(2455, new int[] {1440, 5535}, new int[] {2655, 4831}), FIRE_ALTAR(2456, new int[] {1442, 5537}, new int[] {2577, 4845}), BODY_ALTAR(2457, new int[] {1446, 5533}, new int[] {2521, 4834}), COSMIC_ALTAR(2458, new int[] {1454, 5539}, new int[] {2162, 4833 }), CHAOS_ALTAR(2461, new int[] {1452, 5543}, new int[] {2268, 4842}), NATURE_ALTAR(2460, new int[] {1462, 5541}, new int[] {2400, 4835}), LAW_ALTAR(2459, new int[] {1458, 5545}, new int[] {2464, 4819}), DEATH_ALTAR(2462, new int[] {1456, 5547}, new int[] {2208, 4831}); int objId; int[] keys, loc; private Altars(int objId, int[] keys, int[] loc) { this.objId = objId; this.loc = loc; this.keys = keys; } private int getObj() { return objId; } private int[] getKeys() { return keys; } private int[] getNewLoc() { return loc; } } public Altars forAltar(int id) { for (Altars a : Altars.values()) { if (a.getObj() == id) { return a; } } return null; } public void enterAltar(int objId, int itemUse) { Altars a = forAltar(objId); if (a != null) { if (a.getKeys()[1] == c.playerEquipment[c.playerHat] || a.getKeys()[0] == itemUse) { c.getPA().movePlayer(a.getNewLoc()[0], a.getNewLoc()[1], 0); c.sendMessage("You enter the mysterious ruins."); } else { c.sendMessage("Nothing interesting happens."); } } } /** * Crafts the specific rune. */ public static void craftRunes(Client c, int itemID) { int index = -1; int essence; int multiplier = 1; int multiplier2 = 0; for (int i1 = 0; i1 < runeInfo.length; i1++) if (runeInfo[i1][0] == itemID) index = i1; if (c.getPA().getXPForLevel(20) < runeInfo[index][1]) { c.sendMessage("You need at least "+runeInfo[index][1]+" to runecraft this."); return; } if (c.getItems().getItemAmount(1436) > 0) essence = c.getItems().getItemAmount(1436); else return; if (index == 0) multiplier = 11; else if (index <= 5) multiplier2 = 18+2*(index-2); else if (index <= 9) multiplier2 = 63+2*(index-2); if (index <= 9) for (int i2 = 1; i2 < 11; i2++) if (c.getPA().getXPForLevel(20) >= multiplier2*i2) multiplier = i2+1; for (int i = 0; i < essence; i++) c.getItems().deleteItem(1436, c.getItems().getItemSlot(1436), 1); c.getItems().addItem(itemID, essence*multiplier); c.getPA().addSkillXP(runeInfo[index][2], 20); c.getLevelForXP(20); c.sendMessage("You bind the temple's power into "+c.getItems().getItemName(itemID)+"s."); c.gfx0(186); c.startAnimation(791, 0); } public int getMultiplier(Altar_Data ad) { int temp = 1; for (int i = 0; i < ad.multiRunes.length; i++) { for (int j = 0; j < ad.multiRunes[i].length; j++) if (c.playerLevel[c.playerRunecrafting] >= ad.multiRunes[i][0]) { temp++; } } return temp; } public static int[][] runeInfo = { // {itemID, LevelReq, XP per} {556, 1, 150},//air {558, 2, 200},//mind {555, 5, 300},//water {557, 9, 350},//earth {554, 14, 450},//fire {559, 20, 500},//body {564, 27, 550},//cosmic {562, 35, 600},//chaos {561, 44, 650},//nature {563, 54, 700},//law {560, 65, 1000},//death {565, 77, 2500},//blood {566, 90, 4000},//soul {4694, 95, 20},//steam }; } [/QUOTE][/SPOILER]
  3. I have a mezzyscape source (562) and theres a x10 multiplier, everything works but magic, magic doesnt make the hits x10, say if i hit a 20, it should be a 200 and it gives the xp like i really hit a 20.. if someone could help me or guide me where to fix it that would be great.
×