Jump to content

Gawdz

Member
  • Content count

    234
  • Joined

  • Last visited

About Gawdz

  • Rank
    Mithril Member
  • Birthday 02/18/1994

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Beautiful release this will be epicly leeched im going to use it and see what i can do with it i am banned from actual runescape so im gonna give rsps another shot i think i am not very good at programming at all tho.
  2. Gawdz

    AFK Zone

    Nice i like your wings and teleporting too :p
  3. 100 errors usually indicates an extra unneeded } look at what you added and or get and ide such as eclipse [url]http://www.eclipse.org/downloads/[/url].
  4. npcspawning.java is not unpackedspawnslist.txt... you have a nulled object in the npcspawning.java file i had this same problem u have to go through and find out which object it is id take the objects and npcs u want to add and know will work and just keep those and delete the rest of them unless this problem just started occouring then id say u added a new object or npc that is nulled.
  5. Gawdz

    Following help?

    Ok so with matrix following when u go to dance and the second player tries to follow it just walks on top of the follower, instead of dancing. U have to run and then follow the person to initiate dancing there is a snippet on different following and it works on the first click by the second player but the dancing isn't in a circle its back an forth. Could anyone tell me the difference between the codes and what makes the second code work on the first click? Matrix Following [code] private Player target; public PlayerFollow(Player target) { this.target = target; } @Override public boolean start(Player player) { player.setNextFaceEntity(target); if (checkAll(player)) return true; player.setNextFaceEntity(null); return false; } private boolean checkAll(Player player) { if (player.isDead() || player.hasFinished() || target.isDead() || target.hasFinished()) return false; int distanceX = player.getX() - target.getX(); int distanceY = player.getY() - target.getY(); int size = target.getSize(); int maxDistance = 16; if (player.getPlane() != target.getPlane() || distanceX > size + maxDistance || distanceX < -1 - maxDistance || distanceY > size + maxDistance || distanceY < -1 - maxDistance) return false; if (player.getFreezeDelay() >= Utils.currentTimeMillis()) return true; maxDistance = 0; if ((!player.clipedProjectile(target, maxDistance == -1)) || distanceX > size + maxDistance || distanceX < -1 - maxDistance || distanceY > size + maxDistance || distanceY < -1 - maxDistance) { if (player.hasWalkSteps()) player.resetWalkSteps(); player.addWalkStepsInteract(target.getX(), target.getY(), player.getRun() ? 2 : 1, size, true); return true; } else { player.resetWalkSteps(); int lastFaceEntity = target.getLastFaceEntity(); if (lastFaceEntity >= 32768) { lastFaceEntity -= 32768; if (lastFaceEntity == player.getIndex()) player.addWalkSteps(target.getLastWorldTile().getX(), target.getLastWorldTile().getY(), size, true); } } return true; } @Override public boolean process(Player player) { return checkAll(player); } @Override public int processWithDelay(Player player) { return 0; } @Override public void stop(final Player player) { player.setNextFaceEntity(null); } } [/code] Then here is the one from the r-s snippet [code]public class PlayerFollow extends Action { private Player target; public PlayerFollow(Player target) { this.target = target; } @Override public boolean start(Player player) { player.setNextFaceEntity(target); if (checkAll(player)) return true; player.setNextFaceEntity(null); return false; } public static boolean forceCheckClipAsRange(Entity target) { return target instanceof NexMinion || target instanceof HarAken || target instanceof HarAkenTentacle || target instanceof QueenBlackDragon; } private boolean checkAll(Player player) { if (player.isDead() || player.hasFinished() || target.isDead() || target.hasFinished()) { player.sendMessage("323"); return false; } int distanceX = player.getX() - target.getX(); int distanceY = player.getY() - target.getY(); int size = target.getSize(); int maxDistance = 16; if (player.getPlane() != target.getPlane() || distanceX > size + maxDistance || distanceX < -1 - maxDistance || distanceY > size + maxDistance || distanceY < -1 - maxDistance) { player.sendMessage("1"); return false; } if (player.getFreezeDelay() >= Utils.currentTimeMillis()) { if (player.withinDistance(target, 0))// done return false; return true; } if (distanceX < size && distanceX > -1 && distanceY < size && distanceY > -1) { player.sendMessage("4"); player.resetWalkSteps(); if (!player.addWalkSteps(target.getX() - size, target.getY())) { player.resetWalkSteps(); if (!player.addWalkSteps(target.getX() + 1, target.getY())) { player.resetWalkSteps(); if (!player.addWalkSteps(target.getX(), target.getY() - size)) { player.resetWalkSteps(); if (!player.addWalkSteps(target.getX(), target.getY() + 1)) { return false; } } } } return true; } else if (Math.abs(player.getX() - target.getX()) == 1 && Math.abs(player.getY() - target.getY()) == 1) { if (!player.addWalkSteps(target.getX(), player.getY(), 1)) player.addWalkSteps(target.getX(), player.getY(), 1); player.sendMessage("5"); return true; } maxDistance = 0; if ((!player.clipedProjectile(target, maxDistance == 0 && !forceCheckClipAsRange(target))) || distanceX > size + maxDistance || distanceX < -1 - maxDistance || distanceY > size + maxDistance || distanceY < -1 - maxDistance) { if (!player.hasWalkSteps()) { player.resetWalkSteps(); player.addWalkStepsInteract(target.getX(), target.getY(), player.getRun() ? 2 : 1, size, true); player.sendMessage("8"); } return true; } else { player.resetWalkSteps(); player.sendMessage("7"); } return true; } @Override public boolean process(Player player) { return checkAll(player); } @Override public int processWithDelay(Player player) { return 0; } @Override public void stop(final Player player) { player.setNextFaceEntity(null); } }[/code]
  6. nah that might be the correct way to do it but that worked perfectly so im not gonna change it lol :) thanks dude for anyone else having same problem [code] public Entity[] getMultiAttackTargets(Player player, int maxDistance, int maxAmtTargets) { List<Entity> possibleTargets = new ArrayList<Entity>(); possibleTargets.add(target); if(target.isAtMultiArea()) { y: for (int regionId : target.getMapRegionsIds()) { Region region = World.getRegion(regionId); if(target instanceof Player) { List<Integer> playerIndexes = region.getPlayerIndexes(); if(playerIndexes == null) continue; for (int playerIndex : playerIndexes) { Player p2 = World.getPlayers().get(playerIndex); if ( p2 == null || p2 == player || p2 == target || ((p2.getCurrentFriendChat() != null && player.getCurrentFriendChat() != null) && p2.getCurrentFriendChat().equals(player.getCurrentFriendChat()) && p2 != target) || p2.isDead() || !p2.hasStarted() || !p2.isCanPvp() || !p2.isAtMultiArea() || !p2.withinDistance(target, maxDistance) || !player.getControlerManager().canHit(p2)) continue; possibleTargets.add(p2); if(possibleTargets.size() == maxAmtTargets) break y; } }else{ List<Integer> npcIndexes = region.getNPCsIndexes(); if(npcIndexes == null) continue; for (int npcIndex : npcIndexes) { NPC n = World.getNPCs().get(npcIndex); if (n == null || n == target || n == player.getFamiliar() || n.isDead() || n.hasFinished() || !n.isAtMultiArea() || !n.withinDistance(target, maxDistance) || !n.getDefinitions().hasAttackOption() || !player.getControlerManager().canHit(n)) continue; possibleTargets.add(n); if(possibleTargets.size() == maxAmtTargets) break y; } } } } return possibleTargets.toArray(new Entity[possibleTargets.size()]); } [/code]
  7. actually bro the code did work thank u very much.

  8. Thats kinda what i thougt but i thought the code was saying if the players are in the same friends chat you cant hit or get hit by your teammates.
  9. Ok so server im using already has multi barrage as all 718s do im guessing but when ur in clanwars it can also attack your team mates i think i know the fix but cant figure out how to rename it or where exactly to put it here is my multi target code [code] public Entity[] getMultiAttackTargets(Player player) { return getMultiAttackTargets(player, 1, 9); } public Entity[] getMultiAttackTargets(Player player, int maxDistance, int maxAmtTargets) { List<Entity> possibleTargets = new ArrayList<Entity>(); possibleTargets.add(target); if(target.isAtMultiArea()) { y: for (int regionId : target.getMapRegionsIds()) { Region region = World.getRegion(regionId); if(target instanceof Player) { List<Integer> playerIndexes = region.getPlayerIndexes(); if(playerIndexes == null) continue; for (int playerIndex : playerIndexes) { Player p2 = World.getPlayers().get(playerIndex); if (p2 == null || p2 == player || p2 == target || p2.isDead() || !p2.hasStarted() || p2.hasFinished() || !p2.isCanPvp() || !p2.isAtMultiArea() || !p2.withinDistance(target, maxDistance) || !player.getControlerManager().canHit(p2)) continue; possibleTargets.add(p2); if(possibleTargets.size() == maxAmtTargets) break y; } }else{ List<Integer> npcIndexes = region.getNPCsIndexes(); if(npcIndexes == null) continue; for (int npcIndex : npcIndexes) { NPC n = World.getNPCs().get(npcIndex); if (n == null || n == target || n == player.getFamiliar() || n.isDead() || n.hasFinished() || !n.isAtMultiArea() || !n.withinDistance(target, maxDistance) || !n.getDefinitions().hasAttackOption() || !player.getControlerManager().canHit(n)) continue; possibleTargets.add(n); if(possibleTargets.size() == maxAmtTargets) break y; } } } } return possibleTargets.toArray(new Entity[possibleTargets.size()]); }[/code] And im guessing i need to add something like [code] if ((victim.getCurrentFriendChat() != null && player.getCurrentFriendChat() != null) && victim.getCurrentFriendChat().equals(player.getCur rentFriendChat()) && victim != target) continue;[/code]
  10. Not sure what exactly that would mean maybe u need to free up some space on your computer and np everyone starts out new and needs help in one way or another so ur not being a burden to me :p
  11. u can make a run.bat [code]@echo off title Running YOUR SERVER NAME "C:\Program Files\Java\jre7\bin\java.exe" -Xms512m -Xmx512m -cp bin;data/libs/* com.rs.Launcher false false true pause[/code] just put that in notepad and save it and when u save it go down to "save as type" and select all files and name it run.bat or whatever u want but has to have .bat on the end of it hope this helps
  12. are u running the server too cuz if the server isn't running the client of course isn't going to connect u can run the server buy using the runserver.bat im pretty sure it is its a .bat file tho and you shouldn't double or triple post on here u post once and wait for someone to respond and if u have something else that u forgot to say u can "edit post"
  13. [quote name='Triggs']Thank you but one thing there's only a Server and Client folder.[/QUOTE] the data folder is in the server folder... u add a folder named cache in data and put the cache inside of it its VERY simple. edit: well actually u probably wont even have to make a new folder named cache cuz it is probably already rared in a folder named cache so all u have to do is extract it to the data folder in the server.
×