Jump to content

Search the Community

Showing results for tags 'duel'.



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

  1. so all of my options work on duel arena and all that.. but when i get into the battle it wont let me attack and it says "you may only attack players in a player-vs-player area" .. how can i fix?
  2. Hi, i din't had the challange option in my duelcontroler.java so i removed the // and i also added this part: [QUOTE] @Override public void start() { sendInterfaces(); player.getAppearence().generateAppearenceData(); //player.getPackets().sendPlayerOption("Challenge", 1, false); moved(); } [/QUOTE] However im getting this wird error: [QUOTE] Building please wait... src\com\rs\game\minigames\duel\DuelControler.java:18: error: method does not ove rride or implement a method from a supertype @Override ^ 1 error Compiled. [/QUOTE] Anybody knows how to fix this error and how to let the challange button to appear? Thanks for youre response.
  3. Hi, i got a duel arena issue, when im entering the duel arena i see the battleaxe icon but i when im right clicking on a person there is no 'challange' option. Anybody knows how to fix this? Il also give the names of my files from Duel Arena: Duelarena.java DuelControler.java DuelRules.java Thanks for answer, would be appriciated.
  4. I need help fixing this, I know it's something to do with the slots and it's not sending the right slots but I can't seem to find the fix. This is what it looks like: [IMG]http://i.imgur.com/NfPJrnC.png?1[/IMG]
  5. Can sombody give me the right Duel Arena code so it can function as the normal duel arena. Becuse when ever i enter the duel arena i can't challange nobody and also can't see the battle axe icon. Thanks, would be appriciated. I got this code (but it doesn't work in game) [QUOTE]package com.rs.game.minigames.duel; import com.rs.cache.loaders.ItemDefinitions; import com.rs.game.Animation; import com.rs.game.Entity; import com.rs.game.ForceTalk; import com.rs.game.World; import com.rs.game.WorldObject; import com.rs.game.WorldTile; import com.rs.game.item.Item; import com.rs.game.player.Player; import com.rs.game.player.actions.PlayerCombat; import com.rs.game.player.content.Foods.Food; import com.rs.game.player.content.ItemConstants; import com.rs.game.player.content.Pots.Pot; import com.rs.game.player.controlers.Controler; import com.rs.game.tasks.WorldTask; import com.rs.game.tasks.WorldTasksManager; import com.rs.net.decoders.WorldPacketsDecoder; import com.rs.net.decoders.handlers.ButtonHandler; import com.rs.utils.Utils; public class DuelArena extends Controler { private Player target; private boolean ifFriendly, isDueling; private final Item[] FUN_WEAPONS = {new Item(4566)}; private final WorldTile[] LOBBY_TELEPORTS = { new WorldTile(3367, 3275, 0), new WorldTile(3360, 3275, 0), new WorldTile(3358, 3270, 0), new WorldTile(3363, 3268, 0), new WorldTile(3370, 3268, 0), new WorldTile(3367, 3267, 0), new WorldTile(3376, 3275, 0), new WorldTile(3377, 3271, 0), new WorldTile(3375, 3269, 0), new WorldTile(3381, 3277, 0) }; @Override public void start() { this.target = (Player) getArguments()[0]; ifFriendly = (boolean) getArguments()[1]; openDuelScreen(target, ifFriendly); } private void openDuelScreen(Player target, boolean ifFriendly) { if (!ifFriendly) { sendOptions(player); player.getLastDuelRules().getStake().clear(); } player.getTemporaryAttributtes().put("acceptedDuel", false); player.getPackets().sendItems(134, false, player.getLastDuelRules().getStake()); player.getPackets().sendItems(134, true, player.getLastDuelRules().getStake()); player.getPackets().sendIComponentText(ifFriendly ? 637 : 631, ifFriendly ? 16 : 38, " " + Utils.formatPlayerNameForDisplay(target.getUsername())); player.getPackets().sendIComponentText(ifFriendly ? 637 : 631, ifFriendly ? 18 : 40, "" + (target.getSkills().getCombatLevel())); player.getPackets().sendConfig(286, 0); player.getTemporaryAttributtes().put("firstScreen", true); player.getInterfaceManager().sendInterface(ifFriendly ? 637 : 631); refreshScreenMessage(true, ifFriendly); player.setCloseInterfacesEvent(new Runnable() { @Override public void run() { closeDuelInteraction(true, DuelStage.DECLINED); } }); } private void accept(boolean firstStage) { if(!hasTarget()) return; boolean accepted = (Boolean) player.getTemporaryAttributtes().get("acceptedDuel"); boolean targetAccepted = (Boolean) target.getTemporaryAttributtes().get("acceptedDuel"); DuelRules rules = player.getLastDuelRules(); if (!rules.canAccept(player.getLastDuelRules().getStake())) return; if(accepted && targetAccepted) { if(firstStage) { if(nextStage()) ((DuelArena) target.getControlerManager().getControler()).nextStage(); } else { player.setCloseInterfacesEvent(null); player.closeInterfaces(); closeDuelInteraction(true, DuelStage.DONE); } return; } player.getTemporaryAttributtes().put("acceptedDuel", true); refreshScreenMessages(firstStage, ifFriendly); } protected void closeDuelInteraction(boolean started, DuelStage duelStage) { Player oldTarget = target; if(duelStage != DuelStage.DONE) { target = null; WorldTasksManager.schedule(new WorldTask() { @Override public void run() { player.getControlerManager().startControler("DuelControler"); } }); player.getInventory().getItems().addAll(player.getLastDuelRules().getStake()); player.getInventory().init(); player.getLastDuelRules().getStake().clear(); } else { removeEquipment(); beginBattle(started); } Controler controler = oldTarget.getControlerManager().getControler(); if (controler == null) return; DuelArena targetConfiguration = (DuelArena) controler; if (controler instanceof DuelArena) { if (targetConfiguration.hasTarget()) { oldTarget.setCloseInterfacesEvent(null); oldTarget.closeInterfaces(); if (duelStage != DuelStage.DONE) player.getControlerManager().removeControlerWithoutCheck(); if (started) targetConfiguration.closeDuelInteraction(false, duelStage); if (duelStage == DuelStage.DONE) player.getPackets().sendGameMessage("Your battle will begin shortly."); else if (duelStage == DuelStage.SECOND) player.getPackets().sendGameMessage("<col=ff0000>Please check if these settings are correct."); else if (duelStage == DuelStage.DECLINED) oldTarget.getPackets().sendGameMessage("<col=ff0000>Other player declined the duel!"); else if (duelStage == DuelStage.DECLINED) { oldTarget.getPackets().sendGameMessage("You do not have enough space to continue!"); oldTarget.getPackets().sendGameMessage("Other player does not have enough space to continue!"); } } } } public void addItem(int slot, int amount) { if(!hasTarget()) return; Item item = player.getInventory().getItem(slot); if (item == null) return; if (!ItemConstants.isTradeable(item)) { player.getPackets().sendGameMessage("That item cannot be staked!"); return; } Item[] itemsBefore = player.getLastDuelRules().getStake().getItemsCopy(); int maxAmount = player.getInventory().getItems().getNumberOf(item); if (amount < maxAmount) item = new Item(item.getId(), amount); else item = new Item(item.getId(), maxAmount); player.getLastDuelRules().getStake().add(item); player.getInventory().deleteItem(slot, item); refreshItems(itemsBefore); cancelAccepted(); } public void removeItem(final int slot, int amount) { if(!hasTarget()) return; Item item = player.getLastDuelRules().getStake().get(slot); if (item == null) return; Item[] itemsBefore = player.getLastDuelRules().getStake().getItemsCopy(); int maxAmount = player.getLastDuelRules().getStake().getNumberOf(item); if (amount < maxAmount) item = new Item(item.getId(), amount); else item = new Item(item.getId(), maxAmount); player.getLastDuelRules().getStake().remove(slot, item); player.getInventory().addItem(item); refreshItems(itemsBefore); cancelAccepted(); } private void refreshItems(Item[] itemsBefore) { int[] changedSlots = new int[itemsBefore.length]; int count = 0; for (int index = 0; index < itemsBefore.length; index++) { Item item = player.getLastDuelRules().getStake().getItems()[index]; if (item != null) if (itemsBefore[index] != item) { changedSlots[count++] = index; } } int[] finalChangedSlots = new int[count]; System.arraycopy(changedSlots, 0, finalChangedSlots, 0, count); refresh(finalChangedSlots); } private void refresh(int... slots) { player.getPackets().sendUpdateItems(134, player.getLastDuelRules().getStake(), slots); target.getPackets().sendUpdateItems(134, true, player.getLastDuelRules().getStake().getItems(), slots); } public void cancelAccepted() { boolean canceled = false; if((Boolean) player.getTemporaryAttributtes().get("acceptedDuel")) { player.getTemporaryAttributtes().put("acceptedDuel", false); canceled = true; } if((Boolean) target.getTemporaryAttributtes().get("acceptedDuel")) { target.getTemporaryAttributtes().put("acceptedDuel", false); canceled = true; } if(canceled) refreshScreenMessages(canceled, ifFriendly); } private void openConfirmationScreen(boolean ifFriendly) { player.getInterfaceManager().sendInterface(ifFriendly ? 639 : 626); refreshScreenMessage(false, ifFriendly); } private void refreshScreenMessages(boolean firstStage, boolean ifFriendly) { refreshScreenMessage(firstStage, ifFriendly); ((DuelArena) target.getControlerManager().getControler()).refreshScreenMessage(firstStage, ifFriendly); } private void refreshScreenMessage(boolean firstStage, boolean ifFriendly) { player.getPackets().sendIComponentText(firstStage ? (ifFriendly ? 637 : 631) : (ifFriendly ? 639 : 626), firstStage ? (ifFriendly ? 20 : 41) : (ifFriendly ? 23 : 35), "<col=ff0000>"+getAcceptMessage(firstStage)); } private String getAcceptMessage(boolean firstStage) { if (target.getTemporaryAttributtes().get("acceptedDuel") == Boolean.TRUE) return "Other player has accepted."; else if (player.getTemporaryAttributtes().get("acceptedDuel") == Boolean.TRUE) return "Waiting for other player..."; return firstStage ? "" : "Please look over the agreements to the duel."; } public boolean nextStage() { if(!hasTarget()) return false; if(player.getInventory().getItems().getUsedSlots() + target.getLastDuelRules().getStake().getUsedSlots() > 28) { player.setCloseInterfacesEvent(null); player.closeInterfaces(); closeDuelInteraction(true, DuelStage.NO_SPACE); return false; } player.getTemporaryAttributtes().put("acceptedDuel", false); openConfirmationScreen(false); player.getInterfaceManager().closeInventoryInterface(); return true; } private void sendOptions(Player player) { player.getInterfaceManager().sendInventoryInterface(628); player.getPackets().sendUnlockIComponentOptionSlots(628, 0, 0, 27, 0, 1, 2, 3, 4, 5); player.getPackets().sendInterSetItemsOptionsScript(628, 0, 93, 4, 7, "Stake 1", "Stake 5", "Stake 10", "Stake All", "Examine"); player.getPackets().sendUnlockIComponentOptionSlots(631, 47, 0, 27, 0, 1, 2, 3, 4, 5); player.getPackets().sendInterSetItemsOptionsScript(631, 0, 120, 4, 7, "Remove 1", "Remove 5", "Remove 10", "Remove All", "Examine"); } public void endDuel(Player victor, Player loser) { endDuel(victor, loser, true); } public void endDuel(final Player victor, final Player loser, boolean removeLoserControler) { for (Item item : player.getLastDuelRules().getStake().getItems()) { if (item == null) continue; victor.getInventory().addItem(item); } for (Item item : target.getLastDuelRules().getStake().getItems()) { if (item == null) continue; victor.getInventory().addItem(item); } if (loser.getControlerManager().getControler() != null && removeLoserControler) loser.getControlerManager().removeControlerWithoutCheck(); loser.setCanPvp(false); loser.getHintIconsManager().removeUnsavedHintIcon(); loser.reset(); loser.closeInterfaces(); if (victor.getControlerManager().getControler() != null) victor.getControlerManager().removeControlerWithoutCheck(); victor.setCanPvp(false); victor.getHintIconsManager().removeUnsavedHintIcon(); victor.reset(); victor.closeInterfaces(); startEndingTeleport(victor); startEndingTeleport(loser); loser.getPackets().sendGameMessage("Oh dear, it seems you have lost to "+victor.getDisplayName()+"."); victor.getPackets().sendGameMessage("Congradulations! You easily defeated "+loser.getDisplayName()+"."); WorldTasksManager.schedule(new WorldTask() { @Override public void run() { victor.getControlerManager().startControler("DuelControler"); loser.getControlerManager().startControler("DuelControler"); } }, 2); } private void startEndingTeleport(Player player) { WorldTile tile = LOBBY_TELEPORTS[Utils.random(LOBBY_TELEPORTS.length)]; WorldTile teleTile = tile; for (int trycount = 0; trycount < 10; trycount++) { teleTile = new WorldTile(tile, 2); if (World.canMoveNPC(tile.getPlane(), teleTile.getX(), teleTile.getY(), player.getSize())) break; teleTile = tile; } player.setNextWorldTile(teleTile); } private void removeEquipment() { int slot = 0; for (int i = 10; i < 23; i++) { if (i == 14) { if (player.getEquipment().hasTwoHandedWeapon()) ButtonHandler.sendRemove(target, 3); } if (player.getLastDuelRules().getRule(i)) { slot = i - 10; ButtonHandler.sendRemove(player, slot); } } } private void beginBattle(boolean started) { if (started) { WorldTile[] teleports = getPossibleWorldTiles(); int random = Utils.getRandom(1); player.setNextWorldTile(random == 0 ? teleports[0] : teleports[1]); target.setNextWorldTile(random == 0 ? teleports[1] : teleports[0]); } player.stopAll(); player.lock(2); // fixes mass click steps player.reset(); isDueling = true; player.getTemporaryAttributtes().put("startedDuel", true); player.getTemporaryAttributtes().put("canFight", false); player.setCanPvp(true); player.getHintIconsManager().addHintIcon(target, 1, -1, false); WorldTasksManager.schedule(new WorldTask() { int count = 3; @Override public void run() { if (count > 0) player.setNextForceTalk(new ForceTalk("" + count)); if (count == 0) { player.getTemporaryAttributtes().put("canFight", true); player.setNextForceTalk(new ForceTalk("FIGHT!")); this.stop(); } count--; } }, 0, 2); } @Override public boolean canEat(Food food) { if (player.getLastDuelRules().getRule(4) && isDueling) { player.getPackets().sendGameMessage("You cannot eat during this duel.", true); return false; } return true; } @Override public boolean canPot(Pot pot) { if (player.getLastDuelRules().getRule(3) && isDueling) { player.getPackets().sendGameMessage("You cannot drink during this duel.", true); return false; } return true; } @Override public boolean canMove(int dir) { if (player.getLastDuelRules().getRule(25) && isDueling) { player.getPackets().sendGameMessage("You cannot move during this duel!", true); return false; } return true; } @Override public boolean canSummonFamiliar() { if (player.getLastDuelRules().getRule(24) && isDueling) return true; player.getPackets().sendGameMessage("Summoning has been disabled during this duel!"); return false; } @Override public boolean processMagicTeleport(WorldTile toTile) { player.getDialogueManager().startDialogue("SimpleMessage", "A magical force prevents you from teleporting from the arena."); return false; } @Override public boolean processItemTeleport(WorldTile toTile) { player.getDialogueManager().startDialogue("SimpleMessage","A magical force prevents you from teleporting from the arena."); return false; } @Override public void magicTeleported(int type) { if (type != -1) return; } @Override public boolean processObjectClick1(WorldObject object) { player.getDialogueManager().startDialogue("ForfeitDialouge"); return true; } @Override public boolean sendDeath() { player.lock(7); WorldTasksManager.schedule(new WorldTask() { int loop; @Override public void run() { player.stopAll(); if (loop == 0) { player.setNextAnimation(new Animation(836)); } else if (loop == 1) { player.getPackets().sendGameMessage( "Oh dear, you have died."); } else if (loop == 3) { player.setNextAnimation(new Animation(-1)); endDuel(target, player); this.stop(); } loop++; } }, 0, 1); return false; } @Override public boolean login() { startEndingTeleport(player); removeControler(); return true; } @Override public boolean logout() { if (isDueling) endDuel(target, player, false); else closeDuelInteraction(true, DuelStage.DECLINED); return isDueling ? false : true; } @Override public boolean keepCombating(Entity victim) { DuelRules rules = player.getLastDuelRules(); boolean isRanging = PlayerCombat.isRanging(player) != 0; if (player.getTemporaryAttributtes().get("canFight") == Boolean.FALSE) { player.getPackets().sendGameMessage("The duel hasn't started yet.", true); return false; } if (target != victim) return false; if (player.getCombatDefinitions().getSpellId() > 0 && rules.getRule(2) && isDueling) { player.getPackets().sendGameMessage("You cannot use Magic in this duel!", true); return false; } else if (isRanging && rules.getRule(0) && isDueling) { player.getPackets().sendGameMessage("You cannot use Range in this duel!", true); return false; } else if (!isRanging && rules.getRule(1) && player.getCombatDefinitions().getSpellId() <= 0 && isDueling) { player.getPackets().sendGameMessage("You cannot use Melee in this duel!", true); return false; } else { for (Item item : FUN_WEAPONS) { if (rules.getRule(8) && !player.getInventory().containsItem(item.getId(), item.getAmount())) { player.getPackets().sendGameMessage("You can only use fun weapons in this duel!"); return false; } } } return true; } @Override public boolean canEquip(int slotId, int itemId) { DuelRules rules = player.getLastDuelRules(); if (isDueling) { if (rules.getRule(10 + slotId)) { player.getPackets().sendGameMessage("You can't equip " + ItemDefinitions.getItemDefinitions(itemId).getName().toLowerCase() + " during this duel."); return false; } if (slotId == 3 && player.getEquipment().hasTwoHandedWeapon() && rules.getRule(15)) { player.getPackets().sendGameMessage("You can't equip "+ ItemDefinitions.getItemDefinitions(itemId).getName().toLowerCase() + " during this duel."); return false; } } return true; } private WorldTile[] getPossibleWorldTiles() { final int arenaChoice = Utils.getRandom(2); WorldTile[] locations = new WorldTile[2]; int[] arenaBoundariesX = { 3337, 3367, 3336 }; int[] arenaBoundariesY = { 3246, 3227, 3208 }; int[] maxOffsetX = { 14, 14, 16 }; int[] maxOffsetY = { 10, 10, 10 }; int finalX = arenaBoundariesX[arenaChoice] + Utils.getRandom(maxOffsetX[arenaChoice]); int finalY = arenaBoundariesY[arenaChoice] + Utils.getRandom(maxOffsetY[arenaChoice]); locations[0] = (new WorldTile(finalX, finalY, 0)); if (player.getLastDuelRules().getRule(25)) { int direction = Utils.getRandom(1); if (direction == 0) { finalX--; } else { finalY++; } } else { finalX = arenaBoundariesX[arenaChoice] + Utils.getRandom(maxOffsetX[arenaChoice]); finalY = arenaBoundariesY[arenaChoice] + Utils.getRandom(maxOffsetY[arenaChoice]); } locations[1] = (new WorldTile(finalX, finalY, 0)); return locations; } @Override public boolean processButtonClick(int interfaceId, int componentId, int slotId, int packetId) { synchronized (this) { synchronized (target.getControlerManager().getControler()) { DuelRules rules = player.getLastDuelRules(); switch (interfaceId) { case 271: if (rules.getRule(5) && isDueling) { player.getPackets().sendGameMessage("You can't use prayers in this duel."); return false; } return true; case 193: case 430: case 192: if (rules.getRule(2) && isDueling) return false; return true; case 884: if (componentId == 4) { if (rules.getRule(9) && isDueling) { player.getPackets().sendGameMessage("You can't use special attacks in this duel."); return false; } } return true; case 631: switch (componentId) { case 56: // no range rules.setRules(0); return false; case 57: // no melee rules.setRules(1); return false; case 58: // no magic rules.setRules(2); return false; case 59: // fun wep rules.setRules(8); return false; case 60: // no forfiet rules.setRules(7); return false; case 61: // no drinks rules.setRules(3); return false; case 62: // no food rules.setRules(4); return false; case 63: // no prayer rules.setRules(5); return false; case 64: // no movement rules.setRules(25); if (rules.getRule(6)) { rules.setRule(6, false); player.getPackets().sendGameMessage( "You can't have movement without obstacles."); } return false; case 65: // obstacles rules.setRules(6); if (rules.getRule(25)) { rules.setRule(25, false); player.getPackets().sendGameMessage( "You can't have obstacles without movement."); } return false; case 66: // enable summoning rules.setRules(24); return false; case 67:// no spec rules.setRules(9); return false; case 21:// no helm rules.setRules(10); return false; case 22:// no cape rules.setRules(11); return false; case 23:// no ammy rules.setRules(12); return false; case 31:// arrows rules.setRules(23); return false; case 24:// weapon rules.setRules(13); return false; case 25:// body rules.setRules(14); return false; case 26:// shield rules.setRules(15); return false; case 27:// legs rules.setRules(17); return false; case 28:// ring rules.setRules(19); return false; case 29: // bots rules.setRules(20); return false; case 30: // gloves rules.setRules(22); return false; case 107: closeDuelInteraction(true, DuelStage.DECLINED); return false; case 46: accept(true); return false; case 47: switch (packetId) { case WorldPacketsDecoder.ACTION_BUTTON1_PACKET: removeItem(slotId, 1); return false; case WorldPacketsDecoder.ACTION_BUTTON2_PACKET: removeItem(slotId, 5); return false; case WorldPacketsDecoder.ACTION_BUTTON3_PACKET: removeItem(slotId, 10); return false; case WorldPacketsDecoder.ACTION_BUTTON4_PACKET: Item item = player.getInventory().getItems().get(slotId); if (item == null) return false; removeItem(slotId, player.getInventory().getItems().getNumberOf(item)); return false; case WorldPacketsDecoder.ACTION_BUTTON5_PACKET: player.getInventory().sendExamine(slotId); return false; } return false; } case 628: switch (packetId) { case WorldPacketsDecoder.ACTION_BUTTON1_PACKET: addItem(slotId, 1); return false; case WorldPacketsDecoder.ACTION_BUTTON2_PACKET: addItem(slotId, 5); return false; case WorldPacketsDecoder.ACTION_BUTTON3_PACKET: addItem(slotId, 10); return false; case WorldPacketsDecoder.ACTION_BUTTON4_PACKET: Item item = player.getInventory().getItems().get(slotId); if (item == null) return false; addItem(slotId, player.getInventory().getItems().getNumberOf(item)); return false; case WorldPacketsDecoder.ACTION_BUTTON5_PACKET: player.getInventory().sendExamine(slotId); return false; } case 626: switch (componentId) { case 43: accept(false); return false; } case 637: // friendly switch (componentId) { case 25: // no range rules.setRules(0); return false; case 26: // no melee rules.setRules(1); return false; case 27: // no magic rules.setRules(2); return false; case 28: // fun wep rules.setRules(8); return false; case 29: // no forfiet rules.setRules(7); return false; case 30: // no drinks rules.setRules(3); return false; case 31: // no food rules.setRules(4); return false; case 32: // no prayer rules.setRules(5); return false; case 33: // no movement rules.setRules(25); if (rules.getRule(6)) { rules.setRule(6, false); player.getPackets().sendGameMessage( "You can't have movement without obstacles."); } return false; case 34: // obstacles rules.setRules(6); if (rules.getRule(25)) { rules.setRule(25, false); player.getPackets().sendGameMessage("You can't have obstacles without movement."); } return false; case 35: // enable summoning rules.setRules(24); return false; case 36:// no spec rules.setRules(9); return false; case 43:// no helm rules.setRules(10); return false; case 44:// no cape rules.setRules(11); return false; case 45:// no ammy rules.setRules(12); return false; case 53:// arrows rules.setRules(23); return false; case 46:// weapon rules.setRules(13); return false; case 47:// body rules.setRules(14); return false; case 48:// shield rules.setRules(15); return false; case 49:// legs rules.setRules(17); return false; case 50:// ring rules.setRules(19); return false; case 51: // bots rules.setRules(20); return false; case 52: // gloves rules.setRules(22); return false; case 86: closeDuelInteraction(true, DuelStage.DECLINED); return false; case 21: accept(true); return false; } case 639: switch (componentId) { case 25: accept(false); return false; } } } } return true; } public boolean isDueling() { return isDueling; } public boolean hasTarget() { return target != null; } public Entity getTarget() { if (hasTarget()) return target; return null; } enum DuelStage { DECLINED, NO_SPACE, SECOND, DONE } } [/QUOTE]
  6. Hi im new too coding ,but kinda know what im doing ,can anyone give me the codes too put in a full working duel for a 639 and where too put them ,thank you
  7. [center][img]http://i.imgur.com/Tg9EE98.png[/img] [size=18pt][b]Welcome to Vitrium![/b][/size] [b]A unique addicting RSPS jam packed with content and a amazing economy along with amazing combat and PKing. Never be bored again playing Vitrium and compete for #1 spot on the Highscores! All skills working along with summoning and dungeoneering. Originally the server was hosted by a different server in which fell apart so we decided not to waste it and we're fortunate to get the server and client. The RSPS is ran by Puritania and Shane and is a non-profit RSPS meaning all donations go into the server may that be new content or better forums, etc... Hope you enjoy the server and give it a try! [/b] [size=12pt][b][url=http://vitrium-ps.org/play.html]Play Now[/url] [url=http://vitrium-ps.org/mybb/]Forums[/url] [url=http://vitrium-ps.org/client.jar]Download[/url] [url=http://vitrium-ps.org/highscores/]Highscores[/url] [url=http://vitrium-ps.org/vote/]Vote[/url][/b][/size] [size=14pt][b]Features:[/b] [/size][b]- Castle Wars[size=8pt] - Barrows[/size] - Pest Control - Highscores - Vote4Cash - Auto Donate - Webclient - Working Farming - Skilling perfected - Duel Tournaments - Dungeoneering - Summoning - 100% Clan Chat - Bank Pin - Bank tabs - Donor symbol changing - God Wars - Corperal Beast - Kalphite Queen - Dags - Working Slayer reward system - Fullscreen/Resizable - KBD - Frost Dragons - Nex - Bork - Tormented Demons - 50% more Exp for donors - Fun PK[/b] [size=14pt][b]Pictures:[/b][/size] [b]Home w/ Fullscreen and Resizable:[/b] [IMG]http://i.imgur.com/nZsdPXs.png[/img] [b]Dungeoneering:[/b] [IMG]http://i.imgur.com/U8MDDB3.png[/img] [b]Summoning:[/b] [IMG]http://i.imgur.com/dDsxQaP.png[/img] [b]Duel Tournaments:[/b] [IMG]http://i.imgur.com/tgiQiIZ.png[/img] [b]Better Farming:[/b] [IMG]http://i.imgur.com/YzGW6pW.png[/img] [b]GWD:[/b] [IMG]http://i.imgur.com/a7Uetso.png[/img] [b]Nex:[/b] [IMG]http://i.imgur.com/kEAnl27.png[/img] [b]Clan Chat:[/b] [IMG]http://i.imgur.com/7Dmamkz.png[/img] [b]Skilling Zone:[/b] [IMG]http://i.imgur.com/zKvZcqS.png[/img] [b]Donor Zone:[/b] [IMG]http://i.imgur.com/1hnYr4D.png[/img] [size=14pt][b][url=http://vitrium-ps.org/play.html]Play Now[/url] [url=http://vitrium-ps.org/mybb/]Forums[/url] [url=http://vitrium-ps.org/client.jar]Download[/url] [url=http://vitrium-ps.org/highscores/]Highscores[/url] [url=http://vitrium-ps.org/vote/]Vote[/url][/b][/size] [/center]
  8. [center][center][IMG]http://i.imgur.com/XcFn0gO.png[/IMG] [HR][/HR][video=youtube;zOtreEtKR6o]http://www.youtube.com/watch?v=zOtreEtKR6o[/video] [HR][/HR][IMG]http://www.speedtest.net/result/2730190391.png[/IMG][/center] [SIZE=3][CENTER]Website: [URL="http://statius.net"]Statius Website[/URL] WebClient: [URL="http://statius.net/pvp"]StatiusWebClient[/URL] Desktop Client Download: [URL="http://www.statius.net/pvp/app.jar"]Statius Desktop Client[/URL] Join the forums at [URL="http://www.statius.net/community/forum.php"]Statius Forums[/URL][/CENTER] [/SIZE][CENTER] [/CENTER] [IMG]http://i.imgur.com/L7C2kSQ.png[/IMG][IMG]http://i.imgur.com/UKDcSIv.jpg[/IMG] [IMG]http://i.imgur.com/5Ny0eOM.png[/IMG] [/CENTER]
  9. [CENTER]BoomScape 718 RSPS Eco / Pk / Pvm Server! [URL="http://boomscape.co.uk/"][IMG]http://boomscape.co.uk/banner1.png[/IMG][/URL] [URL="http://boomscape.co.uk/"]BoomScape - Home[/URL] [URL="http://boomscape.co.uk/boomscape718.jar"]BoomScape - Download[/URL] [URL="http://boomscape.co.uk/webclient.html"]BoomScape - Webclientl[/URL] [URL="http://boomscape.co.uk/forum/forum.php"]BoomScape - Forums[/URL] [URL="http://boomscape.co.uk/highscores/"]BoomScape - Highscores[/URL] [URL="http://boomscape.co.uk/vote/"]BoomScape - Vote[/URL] In the first image I would like to show you guys is where our home is located & our Teleport Hub which you can use to teleport around, everything goes down here pretty much! [IMG]http://gyazo.com/499b49612302b2c4542751c272acfc32.png[/IMG] The next few images will show you our Grand Exchange [IMG]http://gyazo.com/7dcb74aea0c0f386e11f1dc311ae5279.png[/IMG] [IMG]http://gyazo.com/5edea7ca188c5b4a90e0ce2ee02b9a67.png[/IMG] [IMG]http://gyazo.com/4964bbcd6d1a3d9f86b5b7aa97fb9ea7.png[/IMG] [IMG]http://gyazo.com/e8dda4510d90afa32efc5be971cb707d.png[/IMG] In the next picture you can see our duel arena which works perfectly, and in this image you can see "The Spoils" from a stake! [IMG]http://gyazo.com/e1c82d14d0ce20b9d958e3cf989d6e62.png[/IMG] In this image, I show you another way of teleporting around, you'll need this especially if your looking to go down to Glacors and pick up yourself some Steads! [IMG]http://gyazo.com/9bcf0481833136532b7ccfd7de43c93d.png[/IMG] Talking about Glacors! Here they are, working 100% like runescape, Double HP bars Minions and weak to Fire Spells! [IMG]http://gyazo.com/0e2ad324696170cfcc86e9dd70af3c7d.png[/IMG] [IMG]http://gyazo.com/cf599facdeee8325868a5960ade4060b.png[/IMG] Whats this we have? A fun minigame Pest Control working fabulously and users enjoy playing it, saving up for that void armour! Heres a few images of it! [IMG]http://gyazo.com/bd54ad97e077bdc13b621047122c3988.png[/IMG] [IMG]http://gyazo.com/8befef73ac8a1e40468cdaa9c9976950.png[/IMG] [IMG]http://gyazo.com/0f11b1024aed3882f7439aa3ff35db17.png[/IMG] [IMG]http://gyazo.com/e738439944463b392eba0b414e53a83a.png[/IMG] You into bossing? Find it pretty much easy as hell to go boss, what we have choose to do is use the way Runescape do it and make you have to kill 25 Minions before entering past the door to slay Bandos etc! [IMG]http://gyazo.com/762829f9585504e5ad9c4399c8e473de.png[/IMG] Currently on BoomScape we have the Construction system of making planks, done much better than most servers but still something we will be working on to upgrade heres a few images! [IMG]http://gyazo.com/f3afdd9912bd55be2944eab6f43c97af.png[/IMG] [IMG]http://gyazo.com/cb0ac3be977e33e1a2112d938cd308a2.png[/IMG] [IMG]http://gyazo.com/b94bb30187782a233550fb094805f0d7.png[/IMG] Dungeoneering find it boring and very easy on most servers? Not on BoomScape, our Dung system requires you to go through a series of waves to kill all different NPC's like Jad, Nomad and much more but don't worry they don't come at you until you get onto higher waves! [IMG]http://gyazo.com/df2fc353e7d3cc350330f6640c8b0e02.png[/IMG] Completionist Cape Rewards, we have decided not to make them to easy, they have been made like this to keep you guys entertained and work hard towards your goal of getting Comp! [IMG]http://gyazo.com/abd881e01fe01971f34e45fbae578a98.png[/IMG] Don't worry we didn't forget Completionist Cape Trimmed! To acquire this cape your going to have to do a little more! [IMG]http://gyazo.com/cd4e48d196423a6512bc910938408e44.png[/IMG] Donator boxes, what these will do is give you a chance of getting Rare items and Rusty coins, Rusty coins are a currency which allow you to buy Donator, Extreme Donator & VIP ranks from the shop! Character Customisation! We have long waited fixing this one up, we now have it working just like Runescape, when you login you will be able to style up your character and look cool without armour! [IMG]http://gyazo.com/8f8314b2ef2186be63a0f500b83c2dfc.png[/IMG] Even though on BoomScape all Nulls have been fixed, instead of making Mules, we have a Token System currency which are worth 100m each and can be traded around to buy stuff :) [IMG]http://gyazo.com/11b1179d3f29e6d73be7f1f1417b95a9.png[/IMG] Pyramid Plunder minigame, perfect for you thief's out there! Play this minigame to level up in Thieving! [IMG]http://gyazo.com/1fb3552d27502ae787d9c5839344f586.png[/IMG] On BoomScape the Dominion Tower is a great place to get the best gloves on the game! After getting a certain amount of Dominion Factor points you can go and purchase your long waited gloves! [IMG]http://gyazo.com/63c99dbe07e31af0aa493a4125cf31f3.png[/IMG] Pvm Points, on most slayer tasks, when killing the NPC's you will notice you get Pvm points, these are great for earning rewards in the stores! [IMG]http://gyazo.com/a59d934c0e4820d2e3cb46af7b824575.png[/IMG] No longer need to have cash in your inventory to Buy & Sell items they go straight from your Money Pouch, Buying & Selling, you still can buy from using Coins in your inventory though! [IMG]http://gyazo.com/5e3a481c4c05f9bd5ae72ee766009a87.png[/IMG] Dragonfire shield working just like Runescape & Cools down like Runescape, giving you the ultimate Shield as you can see below! [IMG]http://gyazo.com/e3aadb70b68180cb2ce1529c40a0db3f.png[/IMG] [IMG]http://gyazo.com/68816cb4598772aa52eb7bde473094ac.png[/IMG] Bank Pins, speak to a banker to get one of these, we are still working on making it so you can use the interface for Bank Pins though! [IMG]http://gyazo.com/bef3eb4d652274868c703afd52cc39ff.png[/IMG] Correct Stats Checker in Shops, Select Item Click Stats to see! [IMG]http://gyazo.com/bde36997ce7aaf6bf36a5ef490cc526b.png[/IMG] Gambling! At BoomScape we have a great Gambling Community, we allow Extreme Donators + Plant Mithril Seeds & After 150 Votes you can buy a Dice Bag!! [IMG]http://gyazo.com/b6a58605bcfae819263ef9fe6721b868.png[/IMG] & Here you can see you can't plant ontop of another flower ;) [IMG]http://gyazo.com/189c098d99c8d2e780b9fd83168ff989.png[/IMG] Squeal Of Fortune 100% Working, as you can see in the pictures below, I show you has Earned, Daily & Bought Spins, Saves your item for you to Claim Later even if you logout, if you DC whilst spinning your reward will still be there to collect when you log back in, your rewards are set so re-logging won't reset your reward items (The items that are winnable won't get reset basically until your next spin) [IMG]http://gyazo.com/06ca8810ed4c9f4872279e24980b7950.png[/IMG] [IMG]http://gyazo.com/400e05d7e730419307e395542a310d25.png[/IMG] Check out the SOF yourself to hard to show how it works through images :) Currently that's all we have got to show you, we will be back here to update the thread add more images and include much more infortmation about BoomScape, be sure to get this server link around to your friends and family who Play RSPS's or even RuneScape! Thanks for your guys time please post below on any questions & thoughts about BoomScape! [/CENTER]
  10. lord boss

    duel arena

    when i want to stake with someone in duel arena its works and there always a looser and winner but the looser die and he go to duel arena back but the winner stay at the ring with his reward why he dont go back to duel arena?
  11. My duel arena works, well partly... You get into the stake selection window to disable this like melee etc. and put the items up to stake... But you can put an item up to stake, you click it to offer it up and nothing happens. Any fixes? Will teamview, skype - r1chbyafk SOURCE: ARDI
  12. Forums link: [URL="http://vindiction317.webs.com/"]http://vindiction317.webs.com/[/URL] Download links: jar link :[URL="https://www.dropbox.com/s/5akwesvqsdh27mc/vindiction.jar"]https://www.dropbox.com/s/5akwesvqsdh27mc/vindiction.jar[/URL] webclient: [URL="http://vindiction317.webs.com/webclient"]http://vindiction317.webs.com/webclient[/URL] [IMG]http://i40.tinypic.com/2vje8fo.png[/IMG] [IMG]http://i44.tinypic.com/9gy5c2.png[/IMG] [IMG]http://i41.tinypic.com/117bq5h.png[/IMG] vindiction !!FunPK|| ||ALL Skills work|| Premuim Zone|| Spirit Shields|| Chaotics|| Primal || Nice Staff|| Autocast|| HD Graphics|| Bosses|| expertly designed website|| fantastic stores|| Steadfast boots! tokhaar kal (new fire cape)! jad fully work prest control fully work Duel arena 100% work with stakes all everything! Dicing 100% Fully working skills. -100% All working bosses, great for money making! -Great dedicated staffteam, -Weekly updates! -Open staff spots! -718 Loading 742. -100% working dicing! -Vote4Cash system! -Small ever growing community, join today! (Info : IM looking a staff (moderators and admins
  13. Hey guys! Im playing a server where on duel arena you cant "Challenge" Im asking how to fix that problem? Feel free skype me problem "Benn.Bm"
  14. Just Recently On my server, When players Duel, (Stake, or whatever). A bug happens where the account Stays logged, as like a decoy, for however long, until Manually restarted. [url]http://prntscr.com/1eq5jc[/url] As you can see, He's just standing there. You cannot interact with him, You cannot trade, and It does not even show the account is logged in. What is happening? How can this be fixed? Thank you, tyler.
  15. Revant

    Duel arena bug

    Hey, In the duel arena when both players die in a stake, they both get the winning items, and basically is a dupe. If anyone can help me fix this please post, Thanks. (ps I've already tried using this under the senddeath method and declared it ---> if(player.isDead() && target.isDead()) { tie = true; }
  16. void rambo

    [P.I] duel arena

    Whenever you fight someone, ONLY one person can attack the other, and it's random. The other player that tries to attack it says "The duel hasn't started yet!", and the other one can attack freely. However if the opposer has auto-retaliate on, he can hit back, but he can't hit first.
  17. OCD

    [PI] Duel arena glitch

    I've had to disable staking Duel Arena due this, and have no idea on how to fix this.. So here's an example of what happens inside Duel Arena: 1. Player1 duels Player2 2. Player1 and Player2 are doing whatever kind of fight, 3. Player1 kills Player2. 4. Player2 teleports to Duel Arena (As usual when you die), but Player1 is stuck in the Duel, and has to re-log to get out of it. 5. When Player1 Re-logs, Player2 Wins.. (so pretty much what happens is the duel doesn't end on death. and I don't know how to fix this..)
  18. Proper fix to the Duel Arena/Fight Pits dupe, with both minigames still fully functional. In PlayerAssistant.java search for: [code] } else if (c.inPits) {[/code] Under that add: [code] c.duelStatus = 0;[/code] If we died in Fight Pits, we obviously weren't in a duel, so we reset our duel status to 0. Next search for: [code] if (c.pitsStatus == 1) {[/code] Under that add: [code] c.pitsStatus = 0;[/code] Before it wasn't resetting the variable to 0 after we had already spawned. All credits to me, bla bla bla, enjoy. :)
  19. ok well im trying to add the duel arena to my 562 but for some reason i cant challenge i have put duel request in request.java compiled and did all that good stuff but still not working could any1 shoot me some ideas plz. :D
  20. ok im offering rsgp everything is up for negotiation: duel arena-offer (must buy this first #1 priority atm) fixing hunter 99% (imps 1-99)-offer rsgp fight pits (with added rewards for winning)-offer rsgp a task system for rewarding ppl-offer rsgp (if u have any other ideas u can leave in post) this is 562 loading 659 Alhassa-Scape im just 2 lazy to bother with it been working on the sever like 20 some hrs adding bosses patching glitches and dealing with ppl in the past 2 day. skype is: cody.twigg1
  21. Okay, so the glitch is When ever you win the winner stay at the duel arena while the losser gets teleported out, and the winner is stuck in the duel arena until the losser re-logs. Then the winner gets his price and gets teleported. Any one got a clue how to fix it?
  22. I cant get it to work i dont know what im doing wrong. In my player.java [code] public boolean inDuelArena() { if(getLocation().getX() >= 3333 && getLocation().getX() <= 3356 && getLocation().getY() >= 3244 && getLocation().getY() <= 3258) { return true; } else { return false; } } [/code] Then i got this also in player.java [code] if (inDuelArena()) { actionSender.sendPlayerOption("Attack", 1, false); } [/code] And basicly i cant attack the opponent in that area it wont give me the attack option what did i do wrong ? Do i have to make some kind of chek to see if im in the duel arena ?? if so how do i do it ?
  23. The 'duelDecline' method is executing a setted close interface event which isn't setted when you open a new interface. (Show the main method for example) When you accepted both on the first interface it will open the second interface. So just replace your 'openSecondScreenInterface' method with this one: [CODE] /** * Sending second screen. * * @param player * The player. * @param other * The opponent. * @param ifFriendly * {@code true} if the duel is friendly, {@code false} the duel * is stake. */ private void openSecondInterface(final Player player, final Player other, boolean ifFriendly) { player.setCloseInterfacesEvent(new Runnable() { @Override public void run() { declineDuel(player); } }); other.setCloseInterfacesEvent(new Runnable() { @Override public void run() { declineDuel(other); } }); other.getInterfaceManager().sendInterface(ifFriendly ? 639 : 626); player.getInterfaceManager().sendInterface(ifFriendly ? 639 : 626); }[/CODE]
  24. 1. Every time you duel someone on my server in the duel arena, you can attack anyone that is in the Duel Arena. How can I fix this? 2. Every time you duel someone on my server in the duel arena, after you kill someone, you can click somewhere on the duel arena and you get to stay in the duel arena. How can I fix this? Thanks you guys!
  25. So getting into duel arena is all fine, but once someone dies, the person that dies is ok, but the person who wins stay in the duel arena? I have no clue where to start tbh anyhelp?
×