Thread: [718] Fixing all duel arena dupes!!

Results 1 to 8 of 8
  1. #1 [718] Fixing all duel arena dupes!! 
    Registered Member
    Join Date
    Jul 2013
    Posts
    97
    Thanks given
    2
    Thanks received
    0
    Rep Power
    22
    The dupes in worried about are the cheat engines, and the simultaneously dying glitches...

    Does anyone know easy work arounds or fixed to this?
    Here is my
    DuelArena.Java
    Code:
    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
    	}
    }
    My DuelControler

    Code:
    package com.rs.game.minigames.duel;
    
    import com.rs.game.WorldTile;
    import com.rs.game.player.Player;
    import com.rs.game.player.controlers.Controler;
    
    public class DuelControler extends Controler {
    
    	@Override
    	public void start() {
    		sendInterfaces();
    		player.getAppearence().generateAppearenceData();
    		player.getPackets().sendPlayerOption("Challenge", 1, false);
    		moved();
    	}
    
    	@Override
    	public boolean login() {
    		start();
    		return false;
    	}
    
    	@Override
    	public boolean logout() {
    		return false;
    	}
    
    	@Override
    	public void forceClose() {
    		remove();
    	}
    
    	@Override
    	public boolean processMagicTeleport(WorldTile toTile) {
    		return true;
    	}
    
    	@Override
    	public boolean processItemTeleport(WorldTile toTile) {
    		return true;
    	}
    
    	@Override
    	public void magicTeleported(int type) {
    		removeControler();
    		remove();
    	}
    
    	@Override
    	public void moved() {
    		if (!isAtDuelArena(player)) {
    			removeControler();
    			remove();
    		}
    	}
    
    	@Override
    	public boolean canPlayerOption1(final Player target) {
    		player.stopAll();
    		if (target.getInterfaceManager().containsScreenInter()) {
    			player.getPackets().sendGameMessage("The other player is busy.");
    			return false;
    		}
    		if (target.getTemporaryAttributtes().get("DuelChallenged") == player) {
    			player.getControlerManager().removeControlerWithoutCheck();
    			target.getControlerManager().removeControlerWithoutCheck();
    			target.getTemporaryAttributtes().remove("DuelChallenged");
    			player.setLastDuelRules(new DuelRules(player, target));
    			target.setLastDuelRules(new DuelRules(target, player));
    			player.getControlerManager().startControler("DuelArena", target, target.getTemporaryAttributtes().get("DuelFriendly"));
    			target.getControlerManager().startControler("DuelArena", player, target.getTemporaryAttributtes().remove("DuelFriendly"));
    			return false;
    		}
    		player.getTemporaryAttributtes().put("DuelTarget", target);
    		player.getInterfaceManager().sendInterface(640);
    		player.getTemporaryAttributtes().put("WillDuelFriendly", true);
    		player.getPackets().sendConfig(283, 67108864);
    		return false;
    	}
    
    	public static void challenge(Player player) {
    		player.closeInterfaces();
    		Boolean friendly = (Boolean) player.getTemporaryAttributtes().remove(
    				"WillDuelFriendly");
    		if (friendly == null)
    			return;
    		Player target = (Player) player.getTemporaryAttributtes().remove(
    				"DuelTarget");
    		if (target == null
    				|| target.hasFinished()
    				|| !target.withinDistance(player, 14)
    				|| !(target.getControlerManager().getControler() instanceof DuelControler)) {
    			player.getPackets().sendGameMessage(
    					"Unable to find "
    							+ (target == null ? "your target" : target
    									.getDisplayName()));
    			return;
    		}
    		player.getTemporaryAttributtes().put("DuelChallenged", target);
    		player.getTemporaryAttributtes().put("DuelFriendly", friendly);
    		player.getPackets().sendGameMessage(
    				"Sending " + target.getDisplayName() + " a request...");
    		target.getPackets().sendDuelChallengeRequestMessage(player, friendly);
    	}
    
    	public void remove() {
    		player.getPackets().closeInterface(
    				player.getInterfaceManager().hasRezizableScreen() ? 11 : 27);
    		player.getAppearence().generateAppearenceData();
    		player.getPackets().sendPlayerOption("null", 1, false);
    	}
    
    	@Override
    	public void sendInterfaces() {
    		if (isAtDuelArena(player)) {
    			player.getInterfaceManager().sendTab(
    					player.getInterfaceManager().hasRezizableScreen() ? 11 : 27,
    							638);
    		}
    	}
    
    	public static boolean isAtDuelArena(WorldTile player) {
    		return (player.getX() >= 3355 && player.getX() <= 3360
    				&& player.getY() >= 3267 && player.getY() <= 3279)
    				|| (player.getX() >= 3355 && player.getX() <= 3379
    				&& player.getY() >= 3272 && player.getY() <= 3279)
    				|| (player.getX() >= 3374 && player.getX() <= 3379
    				&& player.getY() >= 3267 && player.getY() <= 3271);
    	}
    }
    and lastly
    duel rules


    Code:
    package com.rs.game.minigames.duel;
    
    import com.rs.game.item.Item;
    import com.rs.game.item.ItemsContainer;
    import com.rs.game.player.Player;
    
    public class DuelRules {
    
    	private Player player, target;
    	public boolean[] duelRules = new boolean[26];
    	private ItemsContainer<Item> stake;
    	
    	public DuelRules(Player player, Player target) {
    		this.player = player;
    		this.target = target;
    		this.stake = new ItemsContainer<Item>(28, false);
    	}
    	
    	public boolean canAccept(ItemsContainer<Item> stake) {
    		if (getRule(0) && getRule(1) && getRule(2)) {
    			player.getPackets().sendGameMessage("You have to be able to use atleast one combat style in a duel.", true);
    			return false;
    		}
    		int count = 0;
    		Item item;
    		for (int i = 10; i < 24; i++) {
    			int slot = i - 10;
    			if (getRule(i) && (item = player.getEquipment().getItem(slot)) != null) {
    				if (i == 23) {// arrows
    					if (!(item.getDefinitions().isStackable() && player.getInventory().getItems().containsOne(item)))
    						count++;
    				} else {
    					count++;
    				}
    			}
    		}
    		int freeSlots = player.getInventory().getItems().freeSlots() - count;
    		if (freeSlots < 0) {
    			player.getPackets().sendGameMessage("You do not have enough inventory space to remove all the equipment.");
    			getTarget().getPackets().sendGameMessage("Your opponent does not have enough space to remove all the equipment.");
    			return false;
    		}
    		for (int i = 0; i < stake.getSize(); i++) {
    			if (stake.get(i) != null) {
    				freeSlots--;
    			}
    		}
    		if (freeSlots < 0) {
    			player.getPackets().sendGameMessage("You do not have enough room in your inventory for this stake.");
    			getTarget().getPackets().sendGameMessage("Your opponent does not have enough room in his inventory for this stake.");
    			return false;
    		}
    		return true;
    	}
    	
    	public void setRules(int ruleId) {
    		setRules(ruleId, true);
    	}
    
    	public void setRules(int ruleId, boolean updated) {
    		if (!getRule(ruleId)) 
    			setRule(ruleId, true);
    		else if (getRule(ruleId)) 
    			setRule(ruleId, false);
    		if (updated) {
    			DuelRules rules = getTarget().getLastDuelRules();
    			if (rules == null) {
    				return;
    			}
    			rules.setRules(ruleId, false);
    		}
    		setConfigs();
    	}
    
    	public void setConfigs() {
    		int value = 0;
    		int ruleId = 16;
    		for (int i = 0; i < duelRules.length; i++) {
    			if (getRule(i)) {
    				if (i == 7) // forfiet
    					value += 5;
    				if (i == 25) // no movement
    					value += 6;
    				value += ruleId;
    			}
    			ruleId += ruleId;
    		}
    		player.getPackets().sendConfig(286, value);
    	}
    
    	public boolean setRule(int ruleId, boolean value) {
    		return duelRules[ruleId] = value;
    	}
    
    	public boolean getRule(int ruleId) {
    		return duelRules[ruleId];
    	}
    
    	public ItemsContainer<Item> getStake() {
    		return stake;
    	}
    
    	public Player getTarget() {
    		return target;
    	}
    }
    Reply With Quote  
     

  2. #2  
    私はちょうど何が重要か

    Jae`'s Avatar
    Join Date
    Mar 2012
    Posts
    1,495
    Thanks given
    236
    Thanks received
    246
    Rep Power
    79
    I'm pretty sure you can just take this from a released 718, there are plenty out there.
    Reply With Quote  
     

  3. #3  
    Trinity II coming soon!
    sunerino's Avatar
    Join Date
    Apr 2014
    Age
    27
    Posts
    146
    Thanks given
    9
    Thanks received
    5
    Rep Power
    11
    Quote Originally Posted by Jae` View Post
    I'm pretty sure you can just take this from a released 718, there are plenty out there.
    ehm he is asking for the fixes? not the duel arena

    the duel arena is working just enable the right click challenge command,
    for the fixes i can help you out!

    add me on skype: player1.noregreth
    Reply With Quote  
     

  4. Thankful user:


  5. #4  
    Registered Member
    Join Date
    Jul 2013
    Posts
    97
    Thanks given
    2
    Thanks received
    0
    Rep Power
    22
    Quote Originally Posted by sun-trinity View Post
    ehm he is asking for the fixes? not the duel arena

    the duel arena is working just enable the right click challenge command,
    for the fixes i can help you out!

    add me on skype: player1.noregreth
    Thank you, request sent!
    I also have enabled the duel arena, just worried about the dupes...
    Reply With Quote  
     

  6. #5  
    BoomScape #1
    BoomScape's Avatar
    Join Date
    May 2013
    Posts
    2,422
    Thanks given
    289
    Thanks received
    234
    Rep Power
    48
    Quote Originally Posted by alext1223 View Post
    The dupes in worried about are the cheat engines, and the simultaneously dying glitches...

    Does anyone know easy work arounds or fixed to this?
    Here is my
    DuelArena.Java
    Code:
    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
    	}
    }
    My DuelControler

    Code:
    package com.rs.game.minigames.duel;
    
    import com.rs.game.WorldTile;
    import com.rs.game.player.Player;
    import com.rs.game.player.controlers.Controler;
    
    public class DuelControler extends Controler {
    
    	@Override
    	public void start() {
    		sendInterfaces();
    		player.getAppearence().generateAppearenceData();
    		player.getPackets().sendPlayerOption("Challenge", 1, false);
    		moved();
    	}
    
    	@Override
    	public boolean login() {
    		start();
    		return false;
    	}
    
    	@Override
    	public boolean logout() {
    		return false;
    	}
    
    	@Override
    	public void forceClose() {
    		remove();
    	}
    
    	@Override
    	public boolean processMagicTeleport(WorldTile toTile) {
    		return true;
    	}
    
    	@Override
    	public boolean processItemTeleport(WorldTile toTile) {
    		return true;
    	}
    
    	@Override
    	public void magicTeleported(int type) {
    		removeControler();
    		remove();
    	}
    
    	@Override
    	public void moved() {
    		if (!isAtDuelArena(player)) {
    			removeControler();
    			remove();
    		}
    	}
    
    	@Override
    	public boolean canPlayerOption1(final Player target) {
    		player.stopAll();
    		if (target.getInterfaceManager().containsScreenInter()) {
    			player.getPackets().sendGameMessage("The other player is busy.");
    			return false;
    		}
    		if (target.getTemporaryAttributtes().get("DuelChallenged") == player) {
    			player.getControlerManager().removeControlerWithoutCheck();
    			target.getControlerManager().removeControlerWithoutCheck();
    			target.getTemporaryAttributtes().remove("DuelChallenged");
    			player.setLastDuelRules(new DuelRules(player, target));
    			target.setLastDuelRules(new DuelRules(target, player));
    			player.getControlerManager().startControler("DuelArena", target, target.getTemporaryAttributtes().get("DuelFriendly"));
    			target.getControlerManager().startControler("DuelArena", player, target.getTemporaryAttributtes().remove("DuelFriendly"));
    			return false;
    		}
    		player.getTemporaryAttributtes().put("DuelTarget", target);
    		player.getInterfaceManager().sendInterface(640);
    		player.getTemporaryAttributtes().put("WillDuelFriendly", true);
    		player.getPackets().sendConfig(283, 67108864);
    		return false;
    	}
    
    	public static void challenge(Player player) {
    		player.closeInterfaces();
    		Boolean friendly = (Boolean) player.getTemporaryAttributtes().remove(
    				"WillDuelFriendly");
    		if (friendly == null)
    			return;
    		Player target = (Player) player.getTemporaryAttributtes().remove(
    				"DuelTarget");
    		if (target == null
    				|| target.hasFinished()
    				|| !target.withinDistance(player, 14)
    				|| !(target.getControlerManager().getControler() instanceof DuelControler)) {
    			player.getPackets().sendGameMessage(
    					"Unable to find "
    							+ (target == null ? "your target" : target
    									.getDisplayName()));
    			return;
    		}
    		player.getTemporaryAttributtes().put("DuelChallenged", target);
    		player.getTemporaryAttributtes().put("DuelFriendly", friendly);
    		player.getPackets().sendGameMessage(
    				"Sending " + target.getDisplayName() + " a request...");
    		target.getPackets().sendDuelChallengeRequestMessage(player, friendly);
    	}
    
    	public void remove() {
    		player.getPackets().closeInterface(
    				player.getInterfaceManager().hasRezizableScreen() ? 11 : 27);
    		player.getAppearence().generateAppearenceData();
    		player.getPackets().sendPlayerOption("null", 1, false);
    	}
    
    	@Override
    	public void sendInterfaces() {
    		if (isAtDuelArena(player)) {
    			player.getInterfaceManager().sendTab(
    					player.getInterfaceManager().hasRezizableScreen() ? 11 : 27,
    							638);
    		}
    	}
    
    	public static boolean isAtDuelArena(WorldTile player) {
    		return (player.getX() >= 3355 && player.getX() <= 3360
    				&& player.getY() >= 3267 && player.getY() <= 3279)
    				|| (player.getX() >= 3355 && player.getX() <= 3379
    				&& player.getY() >= 3272 && player.getY() <= 3279)
    				|| (player.getX() >= 3374 && player.getX() <= 3379
    				&& player.getY() >= 3267 && player.getY() <= 3271);
    	}
    }
    and lastly
    duel rules


    Code:
    package com.rs.game.minigames.duel;
    
    import com.rs.game.item.Item;
    import com.rs.game.item.ItemsContainer;
    import com.rs.game.player.Player;
    
    public class DuelRules {
    
    	private Player player, target;
    	public boolean[] duelRules = new boolean[26];
    	private ItemsContainer<Item> stake;
    	
    	public DuelRules(Player player, Player target) {
    		this.player = player;
    		this.target = target;
    		this.stake = new ItemsContainer<Item>(28, false);
    	}
    	
    	public boolean canAccept(ItemsContainer<Item> stake) {
    		if (getRule(0) && getRule(1) && getRule(2)) {
    			player.getPackets().sendGameMessage("You have to be able to use atleast one combat style in a duel.", true);
    			return false;
    		}
    		int count = 0;
    		Item item;
    		for (int i = 10; i < 24; i++) {
    			int slot = i - 10;
    			if (getRule(i) && (item = player.getEquipment().getItem(slot)) != null) {
    				if (i == 23) {// arrows
    					if (!(item.getDefinitions().isStackable() && player.getInventory().getItems().containsOne(item)))
    						count++;
    				} else {
    					count++;
    				}
    			}
    		}
    		int freeSlots = player.getInventory().getItems().freeSlots() - count;
    		if (freeSlots < 0) {
    			player.getPackets().sendGameMessage("You do not have enough inventory space to remove all the equipment.");
    			getTarget().getPackets().sendGameMessage("Your opponent does not have enough space to remove all the equipment.");
    			return false;
    		}
    		for (int i = 0; i < stake.getSize(); i++) {
    			if (stake.get(i) != null) {
    				freeSlots--;
    			}
    		}
    		if (freeSlots < 0) {
    			player.getPackets().sendGameMessage("You do not have enough room in your inventory for this stake.");
    			getTarget().getPackets().sendGameMessage("Your opponent does not have enough room in his inventory for this stake.");
    			return false;
    		}
    		return true;
    	}
    	
    	public void setRules(int ruleId) {
    		setRules(ruleId, true);
    	}
    
    	public void setRules(int ruleId, boolean updated) {
    		if (!getRule(ruleId)) 
    			setRule(ruleId, true);
    		else if (getRule(ruleId)) 
    			setRule(ruleId, false);
    		if (updated) {
    			DuelRules rules = getTarget().getLastDuelRules();
    			if (rules == null) {
    				return;
    			}
    			rules.setRules(ruleId, false);
    		}
    		setConfigs();
    	}
    
    	public void setConfigs() {
    		int value = 0;
    		int ruleId = 16;
    		for (int i = 0; i < duelRules.length; i++) {
    			if (getRule(i)) {
    				if (i == 7) // forfiet
    					value += 5;
    				if (i == 25) // no movement
    					value += 6;
    				value += ruleId;
    			}
    			ruleId += ruleId;
    		}
    		player.getPackets().sendConfig(286, value);
    	}
    
    	public boolean setRule(int ruleId, boolean value) {
    		return duelRules[ruleId] = value;
    	}
    
    	public boolean getRule(int ruleId) {
    		return duelRules[ruleId];
    	}
    
    	public ItemsContainer<Item> getStake() {
    		return stake;
    	}
    
    	public Player getTarget() {
    		return target;
    	}
    }
    I guess this is from siriusx?
    Attached image
    Reply With Quote  
     

  7. #6  
    Registered Member
    Join Date
    Jul 2013
    Posts
    97
    Thanks given
    2
    Thanks received
    0
    Rep Power
    22
    Quote Originally Posted by BoomScape View Post
    I guess this is from siriusx?


    Ive never heard of that server o.o
    Reply With Quote  
     

  8. #7  
    BoomScape #1
    BoomScape's Avatar
    Join Date
    May 2013
    Posts
    2,422
    Thanks given
    289
    Thanks received
    234
    Rep Power
    48
    Quote Originally Posted by alext1223 View Post
    Ive never heard of server o.o
    Thought you released it mb anyways you can rip it from here http://www.rune-server.org/runescape...42-server.html
    Attached image
    Reply With Quote  
     

  9. #8  
    Registered Member
    Join Date
    Jul 2013
    Posts
    97
    Thanks given
    2
    Thanks received
    0
    Rep Power
    22
    Issue resolved! Much Props to sun-trinity !!!
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [PI] Fixing Another Duel Arena Dupe
    By Hofmann in forum Snippets
    Replies: 17
    Last Post: 01-10-2015, 11:32 PM
  2. Replies: 133
    Last Post: 11-28-2014, 04:49 PM
  3. Replies: 13
    Last Post: 07-30-2013, 11:54 AM
  4. [PI] Duel Arena Dupe Fix
    By I'm A Jerk in forum Selling
    Replies: 2
    Last Post: 07-08-2012, 10:11 AM
  5. Duel Arena Dupe (Fix)
    By Emulation in forum Snippets
    Replies: 12
    Last Post: 11-08-2011, 06:02 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •