Jump to content

Search the Community

Showing results for tags 'agility'.



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

  1. Hey guys, fixed some errors but can't fix those, someone know what i need to do? Compiler error[QUOTE]Compiling... src\com\rs\net\decoders\handlers\ObjectHandler.java:1606: error: cannot find sym bol AdvancedGnomeAgility.RunGnomeBoard(player); ^ symbol: variable AdvancedGnomeAgility src\com\rs\net\decoders\handlers\ObjectHandler.java:1608: error: cannot find sym bol AdvancedGnomeAgility.PreSwing(player); ^ symbol: variable AdvancedGnomeAgility src\com\rs\net\decoders\handlers\ObjectHandler.java:1610: error: cannot find sym bol AdvancedGnomeAgility.Swing(player); ^ symbol: variable AdvancedGnomeAgility src\com\rs\net\decoders\handlers\ObjectHandler.java:1612: error: cannot find sym bol AdvancedGnomeAgility.Swing1(player); ^ symbol: variable AdvancedGnomeAgility src\com\rs\net\decoders\handlers\ObjectHandler.java:1614: error: cannot find sym bol AdvancedGnomeAgility.Swing2(player); ^ symbol: variable AdvancedGnomeAgility src\com\rs\net\decoders\handlers\ObjectHandler.java:1616: error: cannot find sym bol AdvancedGnomeAgility.JumpDown(player); ^ symbol: variable AdvancedGnomeAgility 6 errors Press any key to continue . . .[/QUOTE] Source code [url=http://pastebin.com/FescfLb1][Java] Source code agility - Pastebin.com[/url]
  2. [CODE]package com.rs.game.player.content.agility; import com.rs.game.Animation; import com.rs.game.ForceMovement; import com.rs.game.Hit; import com.rs.game.World; import com.rs.game.WorldObject; import com.rs.game.WorldTile; import com.rs.game.Hit.HitLook; import com.rs.game.player.Player; import com.rs.game.player.Skills; import com.rs.game.tasks.WorldTask; import com.rs.game.tasks.WorldTasksManager; import com.rs.utils.Utils; public class ApeAtollAgility { public static void ClimbDownTropicalTree(final Player player, final WorldObject object) { if (!Agility.hasLevel(player, 48)) return; if (player.getEquipment().getWeaponId() != 4024) { player.getPackets() .sendGameMessage( "You need to transform into a ninja monkey to use the ape atoll courses."); return; } player.lock(); final WorldTile toTile = new WorldTile(2769, 2746, 1); player.setNextForceMovement(new ForceMovement(player, 1, toTile, 7, ForceMovement.NORTH)); player.getGlobalPlayerUpdate().setRenderEmote(760); player.getPackets().sendGameMessage("You climb the vine..."); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { player.getPackets().sendGameMessage( "..And make it carefully to the end of it."); player.setNextWorldTile(toTile); player.getSkills().addXp(Skills.AGILITY, 55); player.getGlobalPlayerUpdate().setRenderEmote(-1); player.unlock(); stop(); } }, 2); } public static void ClimbDownVine(final Player player, WorldObject object) { if (!Agility.hasLevel(player, 48)) return; if (player.getEquipment().getWeaponId() != 4024) { player.getPackets() .sendGameMessage( "You need to transform into a ninja monkey to use the ape atoll courses."); return; } player.lock(3); final WorldTile toTile = new WorldTile(player.getX(), player.getY(), 0); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { player.getPackets().sendGameMessage("You climb down the vine."); player.setNextAnimation(new Animation(1381)); player.setNextWorldTile(toTile); player.getSkills().addXp(Skills.AGILITY, 36); stop(); } }, 1); } public static void ClimbUpSkullSlope(final Player player, final WorldObject object) { if (!Agility.hasLevel(player, 48)) return; if (player.getEquipment().getWeaponId() != 4024) { player.getPackets() .sendGameMessage( "You need to transform into a ninja monkey to use the ape atoll courses."); return; } player.lock(4); final WorldTile toTile = new WorldTile(2743, 2741, 0); player.setNextForceMovement(new ForceMovement(player, 0, toTile, 3, ForceMovement.WEST)); player.getGlobalPlayerUpdate().setRenderEmote(739); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { player.getPackets().sendGameMessage( "You climb up the skull slope."); player.setNextWorldTile(toTile); player.getSkills().addXp(Skills.AGILITY, 45); player.getGlobalPlayerUpdate().setRenderEmote(-1); stop(); } }, 2); } public static void ClimbUpTropicalTree(final Player player, WorldObject object) { if (!Agility.hasLevel(player, 48)) return; if (player.getEquipment().getWeaponId() != 4024) { player.getPackets() .sendGameMessage( "You need to transform into a ninja monkey to use the ape atoll courses."); return; } player.lock(3); final WorldTile toTile = new WorldTile(2752, 2742, 2); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { player.getPackets().sendGameMessage("You climb up the tree..."); player.setNextAnimation(new Animation(1382)); player.setNextWorldTile(toTile); player.getSkills().addXp(Skills.AGILITY, 25); stop(); } }, 1); } public static void crossMonkeyBars(final Player player, final WorldObject object) { if (!Agility.hasLevel(player, 48)) return; if (player.getEquipment().getWeaponId() != 4024) { player.getPackets() .sendGameMessage( "You need to transform into a ninja monkey to use the ape atoll courses."); return; } player.lock(4); final WorldTile toTile = new WorldTile(2747, 2741, 0); final WorldTile toTile2 = new WorldTile(2747, 2741, 2); player.setNextForceMovement(new ForceMovement(player, 0, toTile2, 4, ForceMovement.WEST)); player.getGlobalPlayerUpdate().setRenderEmote(744); player.getPackets().sendGameMessage("You jump to the monkey bars..."); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { player.getPackets().sendGameMessage( "..And made it carefully to the other side."); player.getGlobalPlayerUpdate().setRenderEmote(-1); player.setNextWorldTile(toTile); player.getSkills().addXp(Skills.AGILITY, 35); stop(); } }, 3); } public static void JumpToSteppingStone(final Player player, WorldObject object) { if (!Agility.hasLevel(player, 48)) return; if (player.getEquipment().getWeaponId() != 4024) { player.getPackets() .sendGameMessage( "You need to transform into a ninja monkey to use the ape atoll courses."); return; } player.lock(3); final WorldTile toTile = new WorldTile(object.getX(), object.getY(), object.getPlane()); final WorldTile toTile2 = new WorldTile(player.getX() == 2755 ? 2753 : 2755, 2742, object.getPlane()); final WorldTile WaterTile = new WorldTile(2756, 2746, object.getPlane()); final WorldTile Land = new WorldTile(2757, 2746, object.getPlane()); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { player.getPackets().sendGameMessage( "You jump to the stepping stone..."); player.setNextAnimation(new Animation(1381)); player.setNextWorldTile(toTile); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { if (Utils.random(5) == 0) { player.setNextAnimation(new Animation(1381)); player.getPackets().sendGameMessage( "..And accidently fall to the water."); player.applyHit(new Hit(player, Utils.random(200), HitLook.REGULAR_DAMAGE)); player.setNextForceMovement(new ForceMovement( player, 0, WaterTile, 3, ForceMovement.NORTH)); player.getGlobalPlayerUpdate().setRenderEmote(741); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { player.getGlobalPlayerUpdate() .setRenderEmote(-1); player.setNextWorldTile(Land); stop(); } }, 1); stop(); } else { player.setNextAnimation(new Animation(1381)); player.setNextWorldTile(toTile2); player.getSkills().addXp(Skills.AGILITY, 15); player.getPackets() .sendGameMessage( "..And made it carefully to the other side."); stop(); } } }, 1); stop(); } }, 1); } public static void swingRope(final Player player, WorldObject object) { if (!Agility.hasLevel(player, 48)) return; if (player.getX() == 2756) return; if (player.getEquipment().getWeaponId() != 4024) { player.getPackets() .sendGameMessage( "You need to be a ninja monkey to be able to do this agility."); return; } player.lock(4); player.setNextAnimation(new Animation(1392)); World.sendObjectAnimation(player, object, new Animation(497)); final WorldTile toTile = new WorldTile(2756, 2731, object.getPlane()); player.setNextForceMovement(new ForceMovement(player, 1, toTile, 3, ForceMovement.EAST)); player.getSkills().addXp(Skills.AGILITY, 22); player.getPackets() .sendGameMessage("You skilfully swing across.", true); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { player.setNextWorldTile(toTile); stop(); } }, 1); } }[/CODE] [CODE]package com.rs.game.player.content.agility; import com.rs.game.Animation; import com.rs.game.ForceMovement; import com.rs.game.World; import com.rs.game.WorldObject; import com.rs.game.WorldTile; import com.rs.game.player.Player; import com.rs.game.player.Skills; import com.rs.game.tasks.WorldTask; import com.rs.game.tasks.WorldTasksManager; public class BarbarianOutpostAgility { public static void climbObstacleNet(final Player player, WorldObject object) { if (!Agility.hasLevel(player, 35) || player.getY() < 3545 || player.getY() > 3547) return; player.getPackets().sendGameMessage("You climb the netting...", true); player.getSkills().addXp(Skills.AGILITY, 8.2); player.useStairs(828, new WorldTile(object.getX() - 1, player.getY(), 1), 1, 2); if (getStage(player) == 1) setStage(player, 2); } public static void climbOverCrumblingWall(final Player player, WorldObject object) { if (!Agility.hasLevel(player, 35)) return; if (player.getX() >= object.getX()) { player.getPackets().sendGameMessage( "You cannot climb that from this side."); return; } player.getPackets().sendGameMessage("You climb the low wall...", true); player.lock(); player.setNextAnimation(new Animation(4853)); final WorldTile toTile = new WorldTile(object.getX() + 1, object.getY(), object.getPlane()); player.setNextForceMovement(new ForceMovement(player, 0, toTile, 2, ForceMovement.EAST)); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { player.setNextWorldTile(toTile); player.getSkills().addXp(Skills.AGILITY, 13.7); int stage = getStage(player); if (stage == 3) setStage(player, 4); else if (stage == 4) { removeStage(player); player.getSkills().addXp(Skills.AGILITY, 150.2); } player.unlock(); } }, 1); } public static void climbUpWall(final Player player, WorldObject object) { if (!Agility.hasLevel(player, 90)) return; player.useStairs(10023, new WorldTile(2536, 3546, 3), 2, 3); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { player.setNextAnimation(new Animation(11794)); player.getSkills().addXp(Skills.AGILITY, 15); } }, 1); } public static void crossBalanceBeam(final Player player, final WorldObject object) { if (!Agility.hasLevel(player, 90)) return; player.lock(); final WorldTile toTile = new WorldTile(2536, 3553, 3); player.setNextForceMovement(new ForceMovement(player, 1, toTile, 3, ForceMovement.EAST)); player.setNextAnimation(new Animation(16079)); player.getGlobalPlayerUpdate().setRenderEmote(330); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { player.setNextWorldTile(toTile); player.getSkills().addXp(Skills.AGILITY, 15); player.setNextAnimation(new Animation(-1)); player.unlock(); stop(); } }, 2); } public static void enterObstaclePipe(final Player player, WorldObject object) { if (!Agility.hasLevel(player, 35)) return; player.lock(); player.setNextAnimation(new Animation(10580)); final WorldTile toTile = new WorldTile(object.getX(), player.getY() >= 3561 ? 3558 : 3561, object.getPlane()); player.setNextForceMovement(new ForceMovement(player, 0, toTile, 2, player.getY() >= 3561 ? ForceMovement.SOUTH : ForceMovement.NORTH)); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { player.setNextWorldTile(toTile); player.getSkills().addXp(Skills.AGILITY, 1 / 20); player.unlock(); } }, 1); } public static void fireSpringDevice(final Player player, final WorldObject object) { if (!Agility.hasLevel(player, 90)) return; player.lock(); player.addWalkSteps(2533, 3547, -1, false); final WorldTile toTile = new WorldTile(2532, 3553, 3); WorldTasksManager.schedule(new WorldTask() { boolean secondLoop; [MENTION=15855]Over[/MENTION]ride public void run() { if (!secondLoop) { player.setNextForceMovement(new ForceMovement(player, 1, toTile, 3, ForceMovement.NORTH)); player.setNextAnimation(new Animation(4189)); World.sendObjectAnimation(player, object, new Animation( 11819)); secondLoop = true; } else { player.setNextWorldTile(toTile); player.getSkills().addXp(Skills.AGILITY, 15); player.unlock(); stop(); } } }, 1, 1); } public static int getStage(Player player) { Integer stage = (Integer) player.getTemporaryAttributtes().get( "BarbarianOutpostCourse"); if (stage == null) return -1; return stage; } public static void jumpOverGap(final Player player, final WorldObject object) { if (!Agility.hasLevel(player, 90)) return; player.lock(); player.setNextAnimation(new Animation(2586)); player.getGlobalPlayerUpdate().setRenderEmote(-1); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { player.setNextWorldTile(new WorldTile(2538, 3553, 2)); player.setNextAnimation(new Animation(2588)); player.getSkills().addXp(Skills.AGILITY, 15); player.unlock(); stop(); } }, 0); } public static void removeStage(Player player) { player.getTemporaryAttributtes().remove("BarbarianOutpostCourse"); } public static void runUpWall(final Player player, WorldObject object) { if (!Agility.hasLevel(player, 90)) return; player.lock(); final WorldTile toTile = new WorldTile(2538, 3545, 2); WorldTasksManager.schedule(new WorldTask() { boolean secondLoop; [MENTION=15855]Over[/MENTION]ride public void run() { if (!secondLoop) { player.setNextForceMovement(new ForceMovement(player, 7, toTile, 8, ForceMovement.NORTH)); player.setNextAnimation(new Animation(10492)); secondLoop = true; } else { player.setNextAnimation(new Animation(10493)); player.setNextWorldTile(toTile); player.getSkills().addXp(Skills.AGILITY, 15); player.unlock(); stop(); } } }, 1, 6); } public static void setStage(Player player, int stage) { player.getTemporaryAttributtes().put("BarbarianOutpostCourse", stage); } public static void slideDownRoof(final Player player, final WorldObject object) { if (!Agility.hasLevel(player, 90)) return; player.lock(); player.setNextAnimation(new Animation(11792)); final WorldTile toTile = new WorldTile(2544, player.getY(), 0); player.setNextForceMovement(new ForceMovement(player, 0, toTile, 5, ForceMovement.EAST)); WorldTasksManager.schedule(new WorldTask() { int stage; [MENTION=15855]Over[/MENTION]ride public void run() { if (stage == 0) { player.setNextWorldTile(new WorldTile(2541, player.getY(), 1)); player.setNextAnimation(new Animation(11790)); stage = 1; } else if (stage == 1) { stage = 2; } else if (stage == 2) { player.setNextAnimation(new Animation(11791)); stage = 3; } else if (stage == 3) { player.setNextWorldTile(toTile); player.setNextAnimation(new Animation(2588)); player.getSkills().addXp(Skills.AGILITY, 15); if (getStage(player) == 1) { removeStage(player); player.getSkills().addXp(Skills.AGILITY, 615); player.setBarbarianAdvancedLaps(player .getBarbarianAdvancedLaps() + 1); if (player.getBarbarianAdvancedLaps() == 250) { if (player.getInventory().getFreeSlots() == 0) { player.getDialogueManager() .startDialogue( "SimpleMessage", "You've ran 250 advanced barbarian laps and as a reward you gain Agile top. [NOTE] You didnt have enough inventory space so it has been banked."); player.getBank().addItem(14936, 1, true); } else { player.getDialogueManager() .startDialogue("SimpleMessage", "You've ran 250 advanced barbarian laps and as a reward you gain Agile top."); player.getInventory().addItem(14936, 1); } } } player.unlock(); stop(); } } }, 0, 0); } public static void swingOnRopeSwing(final Player player, WorldObject object) { if (!Agility.hasLevel(player, 35)) return; if (player.getY() != 3556) { player.getPackets().sendGameMessage( "You'll need to get closer to make this jump."); return; } player.lock(); player.setNextAnimation(new Animation(751)); World.sendObjectAnimation(player, object, new Animation(497)); final WorldTile toTile = new WorldTile(object.getX(), 3549, object.getPlane()); player.setNextForceMovement(new ForceMovement(player, 1, toTile, 3, ForceMovement.SOUTH)); player.getSkills().addXp(Skills.AGILITY, 22); player.getPackets() .sendGameMessage("You skilfully swing across.", true); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { player.setNextWorldTile(toTile); player.unlock(); setStage(player, 0); } }, 1); } public static void walkAcrossBalancingLedge(final Player player, final WorldObject object) { if (!Agility.hasLevel(player, 35)) return; player.getPackets().sendGameMessage( "You put your food on the ledge and try to edge across...", true); player.lock(); player.setNextAnimation(new Animation(753)); player.getGlobalPlayerUpdate().setRenderEmote(157); final WorldTile toTile = new WorldTile(2532, object.getY(), object.getPlane()); player.setRun(true); player.addWalkSteps(toTile.getX(), toTile.getY(), -1, false); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { player.setNextAnimation(new Animation(759)); player.getGlobalPlayerUpdate().setRenderEmote(-1); player.getSkills().addXp(Skills.AGILITY, 22); player.getPackets().sendGameMessage( "You skilfully edge across the gap.", true); if (getStage(player) == 2) setStage(player, 3); player.unlock(); } }, 3); } public static void walkAcrossLogBalance(final Player player, final WorldObject object) { if (!Agility.hasLevel(player, 35)) return; if (player.getY() != object.getY()) { player.addWalkSteps(2551, 3546, -1, false); player.lock(); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { walkAcrossLogBalanceEnd(player, object); } }, 1); } else walkAcrossLogBalanceEnd(player, object); } private static void walkAcrossLogBalanceEnd(final Player player, WorldObject object) { player.getPackets().sendGameMessage( "You walk carefully across the slippery log...", true); player.lock(); player.setNextAnimation(new Animation(9908)); final WorldTile toTile = new WorldTile(2541, object.getY(), object.getPlane()); player.setNextForceMovement(new ForceMovement(player, 0, toTile, 16, ForceMovement.WEST)); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { player.setNextWorldTile(toTile); player.getSkills().addXp(Skills.AGILITY, 13); player.getPackets().sendGameMessage( "... and make it safely to the other side.", true); if (getStage(player) == 0) setStage(player, 1); player.unlock(); } }, 15); } } [/CODE] [CODE]package com.rs.game.player.content.agility; import com.rs.game.Animation; import com.rs.game.ForceMovement; import com.rs.game.WorldObject; import com.rs.game.WorldTile; import com.rs.game.player.Player; import com.rs.game.player.Skills; import com.rs.game.tasks.WorldTask; import com.rs.game.tasks.WorldTasksManager; public class GnomeAgility { // gnome course public static void climbDownGnomeTreeBranch(final Player player) { player.useStairs(828, new WorldTile(2487, 3421, 0), 1, 2, "You climbed the tree branch succesfully."); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { if (getGnomeStage(player) == 3) setGnomeStage(player, 4); player.getSkills().addXp(Skills.AGILITY, 5); } }, 1); } public static void climbGnomeObstacleNet(final Player player) { if (player.getY() != 3426) return; player.getPackets().sendGameMessage("You climb the netting.", true); player.useStairs(828, new WorldTile(player.getX(), 3423, 1), 1, 2); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { if (getGnomeStage(player) == 0) setGnomeStage(player, 1); player.getSkills().addXp(Skills.AGILITY, 7.5); } }, 1); } public static void climbGnomeObstacleNet2(final Player player) { if (player.getY() != 3425) return; player.getPackets().sendGameMessage("You climb the netting.", true); player.useStairs(828, new WorldTile(player.getX(), player.getY() == 3425 ? 3428 : 3425, 0), 1, 2); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { if (getGnomeStage(player) == 4) setGnomeStage(player, 5); player.getSkills().addXp(Skills.AGILITY, 8); } }, 1); } public static void climbUpGnomeTreeBranch(final Player player) { player.getPackets().sendGameMessage("You climb the tree...", true); player.useStairs(828, new WorldTile(2473, 3420, 2), 1, 2, "... to the plantaform above."); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { if (getGnomeStage(player) == 1) setGnomeStage(player, 2); player.getSkills().addXp(Skills.AGILITY, 5); } }, 1); } public static void climbUpTree(final Player player) { if (!Agility.hasLevel(player, 85)) return; player.getPackets().sendGameMessage("You climb the tree.", true); player.useStairs(828, new WorldTile(player.getX(), 3420, 3), 1, 2); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { if (getGnomeStage(player) == 1) setGnomeStage(player, 2); player.getSkills().addXp(Skills.AGILITY, 12.5); } }, 1); } public static void enterGnomePipe(final Player player, int objectX, int objectY) { final boolean running = player.getRun(); player.setRunHidden(false); player.lock(); player.addWalkSteps(objectX, objectY == 3431 ? 3437 : 3430, -1, false); player.getPackets().sendGameMessage( "You pulled yourself through the pipes.", true); WorldTasksManager.schedule(new WorldTask() { boolean secondloop; [MENTION=15855]Over[/MENTION]ride public void run() { if (!secondloop) { secondloop = true; player.getGlobalPlayerUpdate().setRenderEmote(295); } else { player.getGlobalPlayerUpdate().setRenderEmote(-1); player.setRunHidden(running); player.getSkills().addXp(Skills.AGILITY, 7); if (getGnomeStage(player) == 5) { removeGnomeStage(player); player.getSkills().addXp(Skills.AGILITY, 100.5); } player.unlock(); stop(); } } }, 0, 6); } public static int getGnomeStage(Player player) { Integer stage = (Integer) player.getTemporaryAttributtes().get( "GnomeCourse"); if (stage == null) return -1; return stage; } public static void JumpDown(final Player player, WorldObject object) { if (!Agility.hasLevel(player, 85)) return; player.lock(); final WorldTile toTile = new WorldTile(2485, 3436, 0); WorldTasksManager.schedule(new WorldTask() { boolean secondLoop; [MENTION=15855]Over[/MENTION]ride public void run() { if (!secondLoop) { player.setNextForceMovement(new ForceMovement(player, 0, toTile, 5, ForceMovement.NORTH)); player.setNextAnimation(new Animation(2923)); secondLoop = true; } else { player.setNextAnimation(new Animation(2924)); player.setNextWorldTile(toTile); if (getGnomeStage(player) == 4) { player.getSkills().addXp(Skills.AGILITY, 200); player.setGnomeAdvancedLaps(player .getGnomeAdvancedLaps() + 1); setGnomeStage(player, 0); if (player.getGnomeAdvancedLaps() == 200) { if (player.getInventory().getFreeSlots() == 0) { player.getDialogueManager() .startDialogue( "SimpleMessage", "You've ran 200 advanced gnome laps and as a reward you gain Agile legs. [NOTE] You didnt have enough inventory space so it has been banked."); player.getBank().addItem(14938, 1, true); } else { player.getDialogueManager() .startDialogue("SimpleMessage", "You've ran 200 advanced gnome laps and as a reward you gain Agile legs."); player.getInventory().addItem(14938, 1); } } } else { player.getSkills().addXp(Skills.AGILITY, 50); } player.unlock(); stop(); } } }, 1, 2); } public static void PreSwing(final Player player, final WorldObject object) { if (player.getX() != 2486 || player.getY() != 3418 || player.getPlane() != 3) player.lock(); player.setNextAnimation(new Animation(11784)); final WorldTile toTile = new WorldTile(player.getX(), 3421, object.getPlane()); player.setNextForceMovement(new ForceMovement(player, 0, toTile, 2, ForceMovement.NORTH)); WorldTasksManager.schedule(new WorldTask() { int stage; [MENTION=15855]Over[/MENTION]ride public void run() { if (stage == 1) { player.setNextWorldTile(toTile); player.setNextAnimation(new Animation(11785)); Swing(player, object); stop(); } stage++; } }, 0, 1); } public static void removeGnomeStage(Player player) { player.getTemporaryAttributtes().remove("GnomeCourse"); } public static void RunGnomeBoard(final Player player, final WorldObject object) { if (player.getX() != 2477 || player.getY() != 3418 || player.getPlane() != 3) return; player.lock(4); player.setNextAnimation(new Animation(2922)); final WorldTile toTile = new WorldTile(2484, 3418, object.getPlane()); player.setNextForceMovement(new ForceMovement(player, 1, toTile, 3, ForceMovement.EAST)); player.getSkills().addXp(Skills.AGILITY, 22); player.getPackets().sendGameMessage( "You skilfully run across the Board", true); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { player.setNextWorldTile(toTile); setGnomeStage(player, 3); } }, 1); } public static void setGnomeStage(Player player, int stage) { player.getTemporaryAttributtes().put("GnomeCourse", stage); } public static void Swing(final Player player, final WorldObject object) { if (!Agility.hasLevel(player, 85)) return; player.lock(); final WorldTile toTile = new WorldTile(player.getX(), 3425, object.getPlane()); player.setNextForceMovement(new ForceMovement(player, 0, toTile, 1, ForceMovement.NORTH)); WorldTasksManager.schedule(new WorldTask() { int stage; [MENTION=15855]Over[/MENTION]ride public void run() { if (stage == 0) { player.setNextAnimation(new Animation(11789)); player.setNextWorldTile(toTile); } else if (stage == 1) { Swing1(player, object); stop(); } player.unlock(); stage++; } }, 0, 1); } public static void Swing1(final Player player, final WorldObject object) { if (!Agility.hasLevel(player, 85)) return; player.lock(); final WorldTile NextTile = new WorldTile(player.getX(), 3429, object.getPlane()); player.setNextForceMovement(new ForceMovement(player, 2, NextTile, 3, ForceMovement.NORTH)); WorldTasksManager.schedule(new WorldTask() { int stage; [MENTION=15855]Over[/MENTION]ride public void run() { if (stage == 3) { player.setNextWorldTile(NextTile); Swing2(player, object); stop(); } stage++; } }, 0, 1); } public static void Swing2(final Player player, final WorldObject object) { if (!Agility.hasLevel(player, 85)) return; player.lock(); final WorldTile LastTile = new WorldTile(player.getX(), 3432, object.getPlane()); player.setNextForceMovement(new ForceMovement(player, 0, LastTile, 1, ForceMovement.NORTH)); WorldTasksManager.schedule(new WorldTask() { int stage; [MENTION=15855]Over[/MENTION]ride public void run() { if (stage == 2) { player.setNextWorldTile(LastTile); if (getGnomeStage(player) == 3) setGnomeStage(player, 4); player.unlock(); stop(); } stage++; } }, 0, 1); } public static void walkBackGnomeRope(final Player player) { if (player.getX() != 2483 || player.getY() != 3420 || player.getPlane() != 2) return; final boolean running = player.getRun(); player.setRunHidden(false); player.lock(); player.addWalkSteps(2477, 3420, -1, false); WorldTasksManager.schedule(new WorldTask() { boolean secondloop; [MENTION=15855]Over[/MENTION]ride public void run() { if (!secondloop) { secondloop = true; player.getGlobalPlayerUpdate().setRenderEmote(155); } else { player.getGlobalPlayerUpdate().setRenderEmote(-1); player.setRunHidden(running); player.getSkills().addXp(Skills.AGILITY, 7); player.getPackets().sendGameMessage( "You passed the obstacle succesfully.", true); player.unlock(); stop(); } } }, 0, 5); } public static void walkGnomeLog(final Player player) { if (player.getX() != 2474 || player.getY() != 3436) return; final boolean running = player.getRun(); player.setRunHidden(false); player.lock(); player.addWalkSteps(2474, 3429, -1, false); player.getPackets().sendGameMessage( "You walk carefully across the slippery log...", true); WorldTasksManager.schedule(new WorldTask() { boolean secondloop; [MENTION=15855]Over[/MENTION]ride public void run() { if (!secondloop) { secondloop = true; player.getGlobalPlayerUpdate().setRenderEmote(155); } else { player.getGlobalPlayerUpdate().setRenderEmote(-1); player.setRunHidden(running); setGnomeStage(player, 0); player.getSkills().addXp(Skills.AGILITY, 7.5); player.getPackets().sendGameMessage( "... and make it safely to the other side.", true); player.unlock(); stop(); } } }, 0, 6); } public static void walkGnomeRope(final Player player) { if (player.getX() != 2477 || player.getY() != 3420 || player.getPlane() != 2) return; final boolean running = player.getRun(); player.setRunHidden(false); player.lock(); player.addWalkSteps(2483, 3420, -1, false); WorldTasksManager.schedule(new WorldTask() { boolean secondloop; [MENTION=15855]Over[/MENTION]ride public void run() { if (!secondloop) { secondloop = true; player.getGlobalPlayerUpdate().setRenderEmote(155); } else { player.getGlobalPlayerUpdate().setRenderEmote(-1); player.setRunHidden(running); if (getGnomeStage(player) == 2) setGnomeStage(player, 3); player.getSkills().addXp(Skills.AGILITY, 7); player.getPackets().sendGameMessage( "You passed the obstacle succesfully.", true); player.unlock(); stop(); } } }, 0, 5); } } [/CODE] [CODE]package com.rs.game.player.content.agility; import com.rs.game.Animation; import com.rs.game.ForceMovement; import com.rs.game.World; import com.rs.game.WorldObject; import com.rs.game.WorldTile; import com.rs.game.player.Player; import com.rs.game.player.Skills; import com.rs.game.player.controllers.Wilderness; import com.rs.game.tasks.WorldTask; import com.rs.game.tasks.WorldTasksManager; public class WildernessCourseAgility { public static void climbCliff(final Player player, WorldObject object) { if (player.getY() != 3939) return; player.lock(); player.setNextAnimation(new Animation(3378)); final WorldTile toTile = new WorldTile(2995, 3935, 0); player.getPackets().sendGameMessage("You climb up the rock.", true); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { if (Wilderness.isAtWild(player)) { player.setNextWorldTile(toTile); player.setNextAnimation(new Animation(-1)); int stage = getStage(player); if (stage == 3) { removeStage(player); player.getSkills().addXp(Skills.AGILITY, increasedExperience(player, 500)); } player.unlock(); } } }, 5); } public static void enterObstaclePipe(final Player player, WorldObject object) { if (!Agility.hasLevel(player, 52)) return; if (player.getY() == 3937 || player.getY() == 3938) { player.lock(); player.faceObject(object); player.addWalkSteps(3004, 3938, -1, false); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { player.setNextAnimation(new Animation(10580)); stop(); } }, 1); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { if (Wilderness.isAtWild(player)) { player.setNextWorldTile(new WorldTile(3004, 3944, 0)); } player.setNextAnimation(new Animation(10580)); stop(); } }, 3); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { if (Wilderness.isAtWild(player)) { player.setNextWorldTile(new WorldTile(3004, 3948, 0)); } player.setNextAnimation(new Animation(10580)); stop(); } }, 5); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { player.getSkills().addXp(Skills.AGILITY, increasedExperience(player, 60)); if (Wilderness.isAtWild(player)) { player.setNextWorldTile(new WorldTile(3004, 3949, 0)); } setStage(player, 0); player.unlock(); stop(); } }, 6); } } public static int getStage(Player player) { Integer stage = (Integer) player.getTemporaryAttributtes().get( "WildernessAgilityCourse"); if (stage == null) return -1; return stage; } public static double increasedExperience(Player player, double totalXp) { if (Wilderness.isAtWild(player) && player.getEquipment().getGlovesId() == 13849) totalXp *= 1.030; return totalXp; } public static void removeStage(Player player) { player.getTemporaryAttributtes().remove("WildernessAgilityCourse"); } public static void setStage(Player player, int stage) { player.getTemporaryAttributtes().put("WildernessAgilityCourse", stage); } public static void steppingStone(final Player player, final WorldObject object) { if (!Agility.hasLevel(player, 52)) return; player.lock(); player.faceObject(object); player.setNextWorldTile(new WorldTile(3001, 3960, 0)); player.setNextAnimation(new Animation(741)); WorldTasksManager.schedule(new WorldTask() { int jumpStone; [MENTION=15855]Over[/MENTION]ride public void run() { if (jumpStone == 1) { if (Wilderness.isAtWild(player)) { player.setNextWorldTile(new WorldTile(3000, 3960, 0)); } player.setNextAnimation(new Animation(741)); } if (jumpStone == 2) { if (Wilderness.isAtWild(player)) { player.setNextWorldTile(new WorldTile(2999, 3960, 0)); } player.setNextAnimation(new Animation(741)); } if (jumpStone == 3) { if (Wilderness.isAtWild(player)) { player.setNextWorldTile(new WorldTile(2998, 3960, 0)); } player.setNextAnimation(new Animation(741)); } if (jumpStone == 4) { if (Wilderness.isAtWild(player)) { player.setNextWorldTile(new WorldTile(2997, 3960, 0)); } player.setNextAnimation(new Animation(741)); } if (jumpStone == 5) { if (getStage(player) == 1) setStage(player, 2); player.setNextWorldTile(new WorldTile(2996, 3960, 0)); player.setNextAnimation(new Animation(741)); player.getSkills().addXp(Skills.AGILITY, increasedExperience(player, 75)); player.unlock(); } if (jumpStone == 6) { jumpStone = 0; stop(); } jumpStone++; } }, 0, 1); } public static void swingOnRopeSwing(final Player player, WorldObject object) { if (!Agility.hasLevel(player, 52)) return; if (player.getY() == 3958) return; player.lock(2); player.setNextAnimation(new Animation(751)); World.sendObjectAnimation(player, object, new Animation(497)); final WorldTile toTile = new WorldTile(object.getX(), 3958, object.getPlane()); player.setNextForceMovement(new ForceMovement(player, 1, toTile, 3, ForceMovement.NORTH)); player.getSkills().addXp(Skills.AGILITY, increasedExperience(player, 70)); player.getPackets() .sendGameMessage("You skilfully swing across.", true); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { if (getStage(player) == 0) setStage(player, 1); player.setNextWorldTile(toTile); } }, 1); } public static void walkAcrossLogBalance(final Player player) { if (!Agility.hasLevel(player, 52)) return; final boolean running = player.getRun(); player.setRunHidden(false); player.lock(); player.addWalkSteps(2994, 3945, -1, false); player.getPackets().sendGameMessage( "You walk carefully across the balance log...", true); WorldTasksManager.schedule(new WorldTask() { boolean secondloop; [MENTION=15855]Over[/MENTION]ride public void run() { if (!secondloop) { secondloop = true; player.getGlobalPlayerUpdate().setRenderEmote(155); } else { if (getStage(player) == 2) setStage(player, 3); player.getGlobalPlayerUpdate().setRenderEmote(-1); player.setRunHidden(running); player.getSkills().addXp(Skills.AGILITY, increasedExperience(player, 80)); player.getPackets().sendGameMessage( "... and make it safely to the other side.", true); player.unlock(); stop(); } } }, 0, 5); } public static void walkBackGate(final Player player, WorldObject object) { player.faceObject(object); player.lock(); player.getGlobalPlayerUpdate().setRenderEmote(155); player.addWalkSteps(2998, 3916, -1, false); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { player.getGlobalPlayerUpdate().setRenderEmote(-1); player.getPackets().sendGameMessage( "You made it safely to the other side.", true); player.unlock(); stop(); } }, 9); } public static void walkGate(final Player player, WorldObject object) { if (!Agility.hasLevel(player, 52)) return; player.faceObject(object); player.lock(); player.getGlobalPlayerUpdate().setRenderEmote(155); player.addWalkSteps(2998, 3931, -1, false); player.getPackets().sendGameMessage( "You go through the gate and try to edge over the ridge...", true); WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { player.getGlobalPlayerUpdate().setRenderEmote(-1); player.getPackets().sendGameMessage( "You skilfully balance across the ridge.", true); player.unlock(); stop(); } }, 9); } } [/CODE]
  3. So if you guys wanted Agility lap count for let's say.. Agile? Like RuneScape then this should help you out. [B]To the advanced developers:[/B] I understand this is a piece of cake but please understand this is for the people who don't know how to do it. [U]Difficulty: [I]1/10[/I][/U] First, let's go into [B]player.java[/B] and add the following: [code] /** * Agility Laps **/ private int gnomelaps; private boolean completedGnome; private int barbarianlaps; private boolean completedBarbarian; public int getGnomelaps() { return gnomelaps; } public void addGnomelaps(int gnomelaps) { this.gnomelaps += gnomelaps; } public int getBarbarianlaps() { return barbarianlaps; } public void addBarbarianlaps(int barbarianlaps) { this.barbarianlaps += barbarianlaps; } public boolean isCompletedGnome() { return completedGnome; } public void setCompletedGnome(boolean completedGnome) { this.completedGnome = completedGnome; } public boolean isCompletedBarbarian() { return completedBarbarian; } public void setCompletedBarbarian(boolean completedBarbarian) { this.completedBarbarian = completedBarbarian; } [/code] Now go to [B]GnomeAgility.java[/B]: Add this below [B]enterGnomePipe[/B] method under your exp gaining: [code] if (!player.isCompletedGnome()) { player.addGnomelaps(1); } else if (player.getGnomelaps() == 250) { player.setCompletedGnome(true); } [/code] Pretty self explanatory to add Barbarian, pretty much do the same but under different method. You can easily make the dialogue for this with one of the Gnomes located around the agility course.
  4. nattypj

    667 agility help

    I want it so that when you do 1 lap you gain 1 agility arena ticket. Any help? this is my code so far. [CODE]package com.rs.game.player.actions; import com.rs.game.WorldTile; import com.rs.game.player.Player; import com.rs.game.player.Skills; import com.rs.game.tasks.WorldTask; import com.rs.game.tasks.WorldTasksManager; import com.rs.game.player.Equipment; import com.rs.game.player.Inventory; public class Agility { // gnome course public static void walkGnomeLog(final Player player) { if (player.getX() != 2474 || player.getY() != 3436) return; final boolean running = player.isRunning(); player.setRunHidden(false); player.addStopDelay(8); player.addWalkSteps(2474, 3429, -1, false); player.getPackets().sendGameMessage( "You walk carefully across the slippery log...", true); WorldTasksManager.schedule(new WorldTask() { boolean secondloop; @Override public void run() { if (!secondloop) { secondloop = true; player.getAppearence().setRenderEmote(155); } else { player.getAppearence().setRenderEmote(-1); player.setRunHidden(running); setGnomeStage(player, 0); player.getSkills().addXp(Skills.AGILITY, 7.5); player.getPackets().sendGameMessage( "... and make it safely to the other side.", true); stop(); } } }, 0, 6); } public static void climbGnomeObstacleNet(final Player player) { if (player.getY() != 3426) return; player.getPackets().sendGameMessage("You climb the netting.", true); player.useStairs(828, new WorldTile(player.getX(), 3423, 1), 1, 2); WorldTasksManager.schedule(new WorldTask() { @Override public void run() { if (getGnomeStage(player) == 0) setGnomeStage(player, 1); player.getSkills().addXp(Skills.AGILITY, 7.5); } }, 1); } public static void climbUpGnomeTreeBranch(final Player player) { player.getPackets().sendGameMessage("You climb the tree...", true); player.useStairs(828, new WorldTile(2473, 3420, 2), 1, 2, "... to the plantaform above."); WorldTasksManager.schedule(new WorldTask() { @Override public void run() { if (getGnomeStage(player) == 1) setGnomeStage(player, 2); player.getSkills().addXp(Skills.AGILITY, 5); } }, 1); } public static void walkBackGnomeRope(final Player player) { if (player.getX() != 2483 || player.getY() != 3420 || player.getPlane() != 2) return; final boolean running = player.isRunning(); player.setRunHidden(false); player.addStopDelay(7); player.addWalkSteps(2477, 3420, -1, false); WorldTasksManager.schedule(new WorldTask() { boolean secondloop; @Override public void run() { if (!secondloop) { secondloop = true; player.getAppearence().setRenderEmote(155); } else { player.getAppearence().setRenderEmote(-1); player.setRunHidden(running); player.getSkills().addXp(Skills.AGILITY, 7); player.getPackets().sendGameMessage( "You passed the obstacle succesfully.", true); stop(); } } }, 0, 5); } public static void walkGnomeRope(final Player player) { if (player.getX() != 2477 || player.getY() != 3420 || player.getPlane() != 2) return; final boolean running = player.isRunning(); player.setRunHidden(false); player.addStopDelay(7); player.addWalkSteps(2483, 3420, -1, false); WorldTasksManager.schedule(new WorldTask() { boolean secondloop; @Override public void run() { if (!secondloop) { secondloop = true; player.getAppearence().setRenderEmote(155); } else { player.getAppearence().setRenderEmote(-1); player.setRunHidden(running); if (getGnomeStage(player) == 2) setGnomeStage(player, 3); player.getSkills().addXp(Skills.AGILITY, 7); player.getPackets().sendGameMessage( "You passed the obstacle succesfully.", true); stop(); } } }, 0, 5); } public static void climbDownGnomeTreeBranch(final Player player) { player.useStairs(828, new WorldTile(2487, 3421, 0), 1, 2, "You climbed the tree branch succesfully."); WorldTasksManager.schedule(new WorldTask() { @Override public void run() { if (getGnomeStage(player) == 3) setGnomeStage(player, 4); player.getSkills().addXp(Skills.AGILITY, 5); } }, 1); } public static void climbGnomeObstacleNet2(final Player player) { if (player.getY() != 3425) return; player.getPackets().sendGameMessage("You climb the netting.", true); player.useStairs(828, new WorldTile(player.getX(), player.getY() == 3425 ? 3428 : 3425, 0), 1, 2); WorldTasksManager.schedule(new WorldTask() { @Override public void run() { if (getGnomeStage(player) == 4) setGnomeStage(player, 5); player.getSkills().addXp(Skills.AGILITY, 8); } }, 1); } public static void enterGnomePipe(final Player player, int objectX, int objectY) { final boolean running = player.isRunning(); player.setRunHidden(false); player.addStopDelay(8); player.addWalkSteps(objectX, objectY == 3431 ? 3437 : 3430, -1, false); player.getPackets().sendGameMessage( "You pulled yourself through the pipes.", true); WorldTasksManager.schedule(new WorldTask() { boolean secondloop; @Override public void run() { if (!secondloop) { secondloop = true; player.getAppearence().setRenderEmote(295); } else { player.getAppearence().setRenderEmote(-1); player.setRunHidden(running); player.getSkills().addXp(Skills.AGILITY, 7); if (getGnomeStage(player) == 5) { removeGnomeStage(player); player.getSkills().addXp(Skills.AGILITY, 39.5); } stop(); } } }, 0, 6); } public static void removeGnomeStage(Player player) { player.getTemporaryAttributtes().remove("GnomeCourse"); } public static void setGnomeStage(Player player, int stage) { player.getTemporaryAttributtes().put("GnomeCourse", stage); } public static int getGnomeStage(Player player) { Integer stage = (Integer) player.getTemporaryAttributtes().get( "GnomeCourse"); if (stage == null) return -1; return stage; } } [/CODE]
  5. Never mind, I got a new server.
  6. [b]Hello guys, this is my first tutorial here, I hope to do as much as possible to help. Ok, let's start. [color=red][size=3]Information[/color][/size] Files changed: Spawn-config.cfg (or auto-respawn.cfg in any sources), ActionHandler.java, and ClickingButtons.java. Difficulty: 1/10 (Copy, Search and Paste) [color=red][size=5]Step 1[/color][/size] Go into Spawn-config.cfg and create a new NPC (This NPC that will open the Shop). [code]spawn = 607 2475 3440 0 0 0 0 0 Agil Ticket Exchange[/code] You can change the ID for your choice. [color=red][size=5]Step 2[/color][/size] Now go at ActionHandler.java and search for: [code]switch(npcType) {[/code] Under this add: [code]case [color=blue]607[/color]: c.getPA().showInterface(8292); break;[/code] Note: If you changed the NPC ID at Spawn-config.cfg, change the "[color=blue]607[/color]" for the ID you put. [color=red][size=5]Step 3[/color][/size] Now go into ClickingButtons.java and search for: [code]switch (actionButtonId){[/code] Under this add: [code] case 32189: if (c.getItems().playerHasItem(2996, 800)) { c.getItems().deleteItem(2996, 800); c.getItems().addItem(2997, 1); } else { c.sendMessage("You need at least 800 Agility Ticket to buy this item."); return; } break; case 32190: if (c.getItems().playerHasItem(2996, 3)) { c.getItems().deleteItem(2996, 3); c.getItems().addItem(2998, 1); } else { c.sendMessage("You need at least 3 Agility Ticket to buy this item."); return; } break; case 32195: if (c.getItems().playerHasItem(2996, 1)) { c.getItems().deleteItem2(2996, 1); c.getPA().addSkillXP(1000, c.playerAgility); c.sendMessage("You Exchange the Ticket and gain 1000 Exp in Agility!"); } else { c.sendMessage("You need at least 1 Agility Ticket to buy this experience."); return; } break; case 32197: if (c.getItems().playerHasItem(2996, 10)) { c.getItems().deleteItem2(2996, 10); c.getPA().addSkillXP(10000, c.playerAgility); c.sendMessage("You Exchange the Ticket and gain 10000 Exp in Agility!"); } else { c.sendMessage("You need at least 10 Agility Tickets to buy this experience."); return; } break; case 32198: if (c.getItems().playerHasItem(2996, 25)) { c.getItems().deleteItem2(2996, 25); c.getPA().addSkillXP(25000, c.playerAgility); c.sendMessage("You Exchange the Ticket and gain 25000 Exp in Agility!"); } else { c.sendMessage("You need at least 25 Agility Tickets to buy this experience."); return; } break; case 32199: if (c.getItems().playerHasItem(2996, 100)) { c.getItems().deleteItem2(2996, 100); c.getPA().addSkillXP(1000000, c.playerAgility); c.sendMessage("You Exchange the Ticket and gain 100k Exp in Agility!"); } else { c.sendMessage("You need at least 100 Agility Tickets to buy this experience."); return; } break; case 32200: if (c.getItems().playerHasItem(2996, 1000)) { c.getItems().deleteItem2(2996, 1000); c.getPA().addSkillXP(10000000, c.playerAgility); c.sendMessage("You Exchange the Ticket and gain 1M Exp in Agility!"); } else { c.sendMessage("You need at least 1000 Agility Tickets to buy this experience."); return; } break; case 32201: if (c.getItems().playerHasItem(2996, 10)) { c.getItems().deleteItem(2996, 10); c.getItems().addItem(3000, 1); } else { c.sendMessage("You need at least 10 Agility Ticket to buy this item."); return; } break;[/code] [color=red][size=5]Finish![/color][/size] That codes should work. If you get errors post or send me a message. Please, leave your opinion below :). I made it myself these codes, you will not find them anywhere else.[/b]
  7. Just something I collected a long time ago and I found it laying around on my computer so whatever. It's nothing much but if your working towards getting a lot of agility courses done I guess this can benefit you. [code] /** * * Burthope Agility Course. * */ Obstacle #1 Animation: 9908 Type: Log beam. Plane: 0 Obstacle #2 Animation: 15765 Type: Wall. Plane: 0 - 1 Obstacle #3 Animation: Nothing. Type: Balancing Ledge. Plane: 1 Obstacle #4 Animation: 15782 Type: Obstacle Low Wall Plane: 1 Obstacle #5 Animation: 751 Type: Swinging Rope Plane: 1 Obstacle #6 Animation: 16069/16070 Type: Monkey Bars Plane: 1 Obstacle #7 Animation: 2586/2588 Type: Ledge Plane: 0 - 1[/code]
  8. Found them on accident running in the void. :P
  9. Perfect gnome agility course. [video=youtube;jjfrjeLYIZw]http://www.youtube.com/watch?v=jjfrjeLYIZw&feature=plcp[/video]
  10. I am in urgent need of some agility emotes :P if anyone has agility emotes, i need as much as possible. thanks
  11. well you heard it starting agility. [ATTACH=CONFIG]4149[/ATTACH] [ATTACH=CONFIG]4150[/ATTACH] add me ingame falselegend, or friends thanks for support.:cool: [COLOR="#000080"]current laps till 99: 7,500[/COLOR] [ATTACH=CONFIG]4181[/ATTACH] exp update. [ATTACH=CONFIG]4210[/ATTACH]
  12. a little glitch while doing agility. american dad in the background :P [video=youtube;RWT9IHZ0YcQ]http://www.youtube.com/watch?v=RWT9IHZ0YcQ[/video]
  13. [SIZE=6]Curent level: [FONT=lucida console][/FONT]96[/SIZE] [SIZE=6][FONT=fixedsys][/FONT][/SIZE] [SIZE=6]Target: 99 EXP to 97: 1,005,000[/SIZE] [SIZE=4] Will update thread every couple of hours. Currently doing it in Advanced Barbarian Course (700xp per round, average of 45 seconds each one).[/SIZE]
  14. [SIZE="3"]I made this base because I am going to use something like this for my server. It contains the major agility courses including: [CODE] /*******************[B]LEGEND[/B]************************ *Gnome Stronghold agility course 1 *Penguin agility course 30 *Pyramid agility course 30 *Barbarian Outpost agility 35 *Ape Atoll agility course 48 *Wilderness agility course 52 *Advanced Gnome Stronghold agility course 85 *Advanced Barbarian Outpost agility course 90 ************************************************* [/CODE] [B]Base[/B] [SPOILER="Agility Class"] [CODE] package server.model.players.skills; import server.Config; import server.model.players.Client; /******************** * - Agility.java * ********************/ /*******************LEGEND*********************LEVEL** *Gnome Stronghold agility course * 1 * *Penguin agility course * 30 * *Pyramid agility course * 30 * *Barbarian Outpost agility * 35 * *Ape Atoll agility course * 48 * *Wilderness agility course * 52 * *Advanced Gnome Stronghold agility course * 85 * *Advanced Barbarian Outpost agility course * 90 * ***************************************************** /************************************************EXAMPLE********************************************************* * if (object == #### && objectY > c.getY()) { //ITEM ID * * c.startAnimation(##); //ANIMATION * * c.getPA().movePlayer(c.getX(), c.getY() + #, #); //MOVES PLAYER X-Y * * c.getPA().addSkillXP(EXP[#] * Config.AGILITY_EXPERIENCE, c.playerAgility); //MULTIPLY'S AND GIVES XP * **************************************************************************************************************** /*/ public class Agility { private Client c; public Agility(Client c) { this.c = c; } //AGILITY COURSES /**GNOME STRONGHOLD AGILITY COURSE**/ private boolean[] gnomeCourse = new boolean[#]; private final int[] EXP = {#,#}; public void handleGnomeCourse(int object, int objectX, int objectY) { if (object == #### && objectY > c.getY()) { c.startAnimation(###); c.getPA().movePlayer(c.getX(), c.getY() + #, #); c.getPA().addSkillXP(EXP[##] * Config.AGILITY_EXPERIENCE, c.playerAgility); } else if (object == #### || object == ####) { if (object == #### && objectY > c.getY()) { c.startAnimation(###); c.getPA().movePlayer(c.getX(), c.getY() + #, #); c.getPA().addSkillXP(EXP[##] * Config.AGILITY_EXPERIENCE, c.playerAgility); } } private void giveReward(int level) { } c.sendMessage("You have completed the Gnome course and have been given " + level + " tickets."); c.getItems().addItem(2996,level); if (level == 1) c.getPA().addSkillXP(EXP[EXP.length-1] * Config.AGILITY_EXPERIENCE, c.playerAgility); for (int j = 0; j < gnomeCourse.length; j++) gnomeCourse[j] = false; } private boolean isDoneGnome() { //return gnomeCourse[0] && gnomeCourse[1] && gnomeCourse[2] && gnomeCourse[3] && gnomeCourse[4] && gnomeCourse[5]; return false; } } /**PENGUIN AGILITY COURSE**/ private boolean[] penguinCourse = new boolean[#]; private final int[] EXP = {#,#}; public void handlePenguinCourse(int object, int objectX, int objectY) { if (object == #### && objectY > c.getY()) { c.startAnimation(###); c.getPA().movePlayer(c.getX(), c.getY() + #, #); c.getPA().addSkillXP(EXP[##] * Config.AGILITY_EXPERIENCE, c.playerAgility); } else if (object == #### || object == ####) { if (object == #### && objectY > c.getY()) { c.startAnimation(###); c.getPA().movePlayer(c.getX(), c.getY() + #, #); c.getPA().addSkillXP(EXP[##] * Config.AGILITY_EXPERIENCE, c.playerAgility); } } private void giveReward(int level) { } c.sendMessage("You have completed the Penguin course and have been given " + level + " tickets."); c.getItems().addItem(2996,level); if (level == 30) c.getPA().addSkillXP(EXP[EXP.length-1] * Config.AGILITY_EXPERIENCE, c.playerAgility); for (int j = 0; j < penguinCourse.length; j++) penguinCourse[j] = false; } private boolean isDonePenguin() { //return PenguinCourse[0] && PenguinCourse[1] && PenguinCourse[2] && PenguinCourse[3] && PenguinCourse[4] && PenguinCourse[5]; return false; } /**PYRAMID AGILITY COURSE**/ private boolean[] pyramidCourse = new boolean[#]; private final int[] EXP = {#,#}; public void handlePyramidCourse(int object, int objectX, int objectY) { if (object == #### && objectY > c.getY()) { c.startAnimation(###); c.getPA().movePlayer(c.getX(), c.getY() + #, #); c.getPA().addSkillXP(EXP[##] * Config.AGILITY_EXPERIENCE, c.playerAgility); } else if (object == #### || object == ####) { if (object == #### && objectY > c.getY()) { c.startAnimation(###); c.getPA().movePlayer(c.getX(), c.getY() + #, #); c.getPA().addSkillXP(EXP[##] * Config.AGILITY_EXPERIENCE, c.playerAgility); } } private void giveReward(int level) { } c.sendMessage("You have completed the Pyramid course and have been given " + level + " tickets."); c.getItems().addItem(2996,level); if (level == 30) c.getPA().addSkillXP(EXP[EXP.length-1] * Config.AGILITY_EXPERIENCE, c.playerAgility); for (int j = 0; j < pyramidCourse.length; j++) pyramidCourse[j] = false; } private boolean isDonePyramid() { //return PyramidCourse[0] && PyramidCourse[1] && PyramidCourse[2] && PyramidCourse[3] && PyramidCourse[4] && PyramidCourse[5]; return false; } /**BARBARIAN OUTPOST COURSE*/ private boolean[] barbCourse = new boolean[#]; private final int[] EXP = {#,#}; public void handleBarbCourse(int object, int objectX, int objectY) { if (object == #### && objectY > c.getY()) { c.startAnimation(###); c.getPA().movePlayer(c.getX(), c.getY() + #, #); c.getPA().addSkillXP(EXP[##] * Config.AGILITY_EXPERIENCE, c.playerAgility); } else if (object == #### || object == ####) { if (object == #### && objectY > c.getY()) { c.startAnimation(###); c.getPA().movePlayer(c.getX(), c.getY() + #, #); c.getPA().addSkillXP(EXP[##] * Config.AGILITY_EXPERIENCE, c.playerAgility); } } private void giveReward(int level) { } c.sendMessage("You have completed the Barbarian course and have been given " + level + " tickets."); c.getItems().addItem(2996,level); if (level == 35) c.getPA().addSkillXP(EXP[EXP.length-1] * Config.AGILITY_EXPERIENCE, c.playerAgility); for (int j = 0; j < barbCourse.length; j++) gnomeCourse[j] = false; } private boolean isDoneBarb() { //return BarbCourse[0] && BarbCourse[1] && BarbCourse[2] && BarbCourse[3] && BarbCourse[4] && BarbCourse[5]; return false; } } /**APE ATOLL AGILITY COURSE**/ private boolean[] apeCourse = new boolean[#]; private final int[] EXP = {#,#}; public void handleApeCourse(int object, int objectX, int objectY) { if (object == #### && objectY > c.getY()) { c.startAnimation(###); c.getPA().movePlayer(c.getX(), c.getY() + #, #); c.getPA().addSkillXP(EXP[##] * Config.AGILITY_EXPERIENCE, c.playerAgility); } else if (object == #### || object == ####) { if (object == #### && objectY > c.getY()) { c.startAnimation(###); c.getPA().movePlayer(c.getX(), c.getY() + #, #); c.getPA().addSkillXP(EXP[##] * Config.AGILITY_EXPERIENCE, c.playerAgility); } } private void giveReward(int level) { } c.sendMessage("You have completed the Ape Atoll course and have been given " + level + " tickets."); c.getItems().addItem(2996,level); if (level == 48) c.getPA().addSkillXP(EXP[EXP.length-1] * Config.AGILITY_EXPERIENCE, c.playerAgility); for (int j = 0; j < apeCourse.length; j++) gnomeCourse[j] = false; } private boolean isDoneWild() { //return WildCourse[0] && WildCourse[1] && WildCourse[2] && WildCourse[3] && WildCourse[4] && WildCourse[5]; return false; } /**WILDERNESS AGILITY COURSE*/ private boolean[] wildCourse = new boolean[#]; private final int[] EXP = {#,#}; public void handleWildCourse(int object, int objectX, int objectY) { if (object == #### && objectY > c.getY()) { c.startAnimation(###); c.getPA().movePlayer(c.getX(), c.getY() + #, #); c.getPA().addSkillXP(EXP[##] * Config.AGILITY_EXPERIENCE, c.playerAgility); } else if (object == #### || object == ####) { if (object == #### && objectY > c.getY()) { c.startAnimation(###); c.getPA().movePlayer(c.getX(), c.getY() + #, #); c.getPA().addSkillXP(EXP[##] * Config.AGILITY_EXPERIENCE, c.playerAgility); } } private void giveReward(int level) { } c.sendMessage("You have completed the Barbarian course and have been given " + level + " tickets."); c.getItems().addItem(2996,level); if (level == 52) c.getPA().addSkillXP(EXP[EXP.length-1] * Config.AGILITY_EXPERIENCE, c.playerAgility); for (int j = 0; j < wildCourse.length; j++) wildCourse[j] = false; } private boolean isDoneWild() { //return WildCourse[0] && WildCourse[1] && WildCourse[2] && WildCourse[3] && WildCourse[4] && WildCourse[5]; return false; } } /**ADVANCED GNOME AGILITY COURSE**/ private boolean[] agnomeCourse = new boolean[#]; private final int[] EXP = {#,#}; public void handleWildCourse(int object, int objectX, int objectY) { if (object == #### && objectY > c.getY()) { c.startAnimation(###); c.getPA().movePlayer(c.getX(), c.getY() + #, #); c.getPA().addSkillXP(EXP[##] * Config.AGILITY_EXPERIENCE, c.playerAgility); } else if (object == #### || object == ####) { if (object == #### && objectY > c.getY()) { c.startAnimation(###); c.getPA().movePlayer(c.getX(), c.getY() + #, #); c.getPA().addSkillXP(EXP[##] * Config.AGILITY_EXPERIENCE, c.playerAgility); } } private void giveReward(int level) { } c.sendMessage("You have completed the Advanced Gnome course and have been given " + level + " tickets."); c.getItems().addItem(2996,level); if (level == 85) c.getPA().addSkillXP(EXP[EXP.length-1] * Config.AGILITY_EXPERIENCE, c.playerAgility); for (int j = 0; j < agnomeCourse.length; j++) agnomeCourse[j] = false; } private boolean isDoneAgnome() { //return AgnomeCourse[0] && AgnomeCourse[1] && AgnomeCourse[2] && AgnomeCourse[3] && AgnomeCourse[4] && AgnomeCourse[5]; return false; } /**ADVANCED BARBARIAN OUTPOST AGILITY COURSE**/ private boolean[] abarbarianCourse = new boolean[#]; private final int[] EXP = {#,#}; public void handleAbarbarianCourse(int object, int objectX, int objectY) { if (object == #### && objectY > c.getY()) { c.startAnimation(###); c.getPA().movePlayer(c.getX(), c.getY() + #, #); c.getPA().addSkillXP(EXP[##] * Config.AGILITY_EXPERIENCE, c.playerAgility); } else if (object == #### || object == ####) { if (object == #### && objectY > c.getY()) { c.startAnimation(###); c.getPA().movePlayer(c.getX(), c.getY() + #, #); c.getPA().addSkillXP(EXP[##] * Config.AGILITY_EXPERIENCE, c.playerAgility); } } private void giveReward(int level) { } c.sendMessage("You have completed the Advanced Barbarian course and have been given " + level + " tickets."); c.getItems().addItem(2996,level); if (level == 90) c.getPA().addSkillXP(EXP[EXP.length-1] * Config.AGILITY_EXPERIENCE, c.playerAgility); for (int j = 0; j < abarbarianCourse.length; j++) abarbarianCourse[j] = false; } private boolean isDoneAbarbarian() { //return AbarbarianCourse[0] && AbarbarianCourse[1] && AbarbarianCourse[2] && AbarbarianCourse[3] && AbarbarianCourse[4] && AbarabrianCourse[5]; return false; } //END OF //@AUTHOR - ambientX [/CODE] [/SPOILER] [URL="http://pastebin.com/RaHMNPwh"]PASTEBIN[/URL] LINK It has a basic reward system witch is currently set to Agility Tickets. I am no where near completion with this base, but I thought people may find it handy if they decide to make their own base or to build off it's features. This can be replaced With the current Agility class already with the origional PI *Note that I did not compile this, but there shouldn't be any errors *For top convention viewing, use [I]notepad++[/I]! *Any errors or WTF, post them below and I'll update with fixes [B]Credits[/B] [CODE] Sanity - For the methods Me - Adding methods & catagorising it People whole cleared up a few questions [/CODE] *[/SIZE]
  15. I call this a noob guide cause Im a noob and I know it will help other noobs . Ok the first thing you want to do is open up your Client.java file and search for something like this if (command.startsWith Then add copy this code below and paste it under the last } you see if (command.startsWith("sell") && playerHasItem(2996)) { addItem(995, 500000000); deleteItem(2996, 1); } so it should look like this now This will give you a command when you type ::sell in game you must have agility ticket on you to receive 500mil gp for each time you type the command Okay heres the confusing part for you new coders Kinda, Ill try to make it easy... In client.java Look for this code. WanneShop = Next you want to find a empty shop or a shop your not using at the moment, I ll explain how you do this before we move on.. First In your folder with the Client.java folder look for a folder called Config Open that up and look for a file called Shops "no picture needed" and Open that up. You'll see a list of shops that are in your game, Okay remember how i asked you to look up this code. WanneShop = Were gonna use that code to figure out what shop we need thats empty or were not using By comparing the Information with what information is in the Shops file you just opened Take a look at this picture Below You Should be looking at something like this on your screen its okay if the numbers are different. Okay in this case the shop number I am going to be using is 14 *circled in red also titled "A"* the Code circled in purple is the npc Number i will be putting in my auto spawn later, okay next .. We go to your shops file and look for the same shop number as circled in red below. Once you found the shop your going add your Agility ticket codes in In this case mine are 2996 as shown in the picture above The number to the right of 2996 is the amount thats going to be sold in the shop change this if you'd like. Once you've done all that You willl Have to change the price of the Agility Tickets which is pretty simple to do. Go back in your config folder Open up the file called Item.cfg Very important you use this file and NOT the one labeled Item.java Once in there Search for You'll see these 3 numbers I circled in Orange, Change those three 1's to 500000000 Now Go back to your Client.java file and get the NpcID of the shop, In this case its 585 *circled in purple labeled "B" If you know how to do auto spawn then save all your files that you have edited Compile then restart your server and your all done, If you don't keep reading ill guide you threw this last step. Go back into your config folder And open up a file called Autospawn.CFG you'll see a line of numbers Copy with your mouse what i circled in the picture below *your numbers may be different but copy the pattern I copied.* Change your NpcID number to the one you got off the Client.java file, go to where you would like your shop to be at and type ::mypos or ::mycoords and type your coordinates in the code in autospawn accordingly, Once you have done all this you are almost finished, Just save all the folders I had you edit, then compile and RUN I really hoped this help and you can use the main code i put in here for almost anything change it up a bit and enjoy heres what it looks like when your finished And once you have done all that Save ALL the files you edited, Compile and restart your server The reason i made this command was because its easier to do the having to mess around with the percentage that the shop automatically takes off which is 30% of the original price from any item, so be sure to tell your players not to sell there tickets back but use this command instead. Credits 100% to ____Allranger____ comment please
×