Jump to content

Search the Community

Showing results for tags 'guild'.



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

  1. [img]http://i.imgur.com/dCtiqBx.png[/img] [img]http://i.imgur.com/KblNKfF.png[/img] [img]http://i.imgur.com/sFeFTJm.png[/img]
  2. Seems to work fine. Most probs work on 718 as the 667 is matrix. Yes I know I could of used the controller system but screw that it sucks lol Was making a 667 but its been put on hold due to being busy so thought id share. Figure out how to use the class. All methods you will need are in here. [CODE]package com.rs.game.player.content; import com.rs.game.Animation; import com.rs.game.ForceTalk; import com.rs.game.World; import com.rs.game.WorldTile; import com.rs.game.item.Item; import com.rs.game.npc.NPC; import com.rs.game.player.Player; import com.rs.game.tasks.WorldTask; import com.rs.game.tasks.WorldTasksManager; import com.rs.utils.Misc; public class WarriorsGuild { /* * 100% crezzy */ public static String armUsed; public static NPC npc; private static int tokenAmount; public static int armToSpawn() { if (armUsed == null) return 0; switch (armUsed) { case "RUNE": tokenAmount = 30; return 4284; case "ADDY": tokenAmount = 25; return 4283; case "MITH": tokenAmount = 20; return 4282; case "BLACK": tokenAmount = 15; return 4281; case "STEEL": tokenAmount = 10; return 4280; default: return 0; } } /* * 1 should = a 10% chance of getting a defender */ public void cyclopsDeath(Player killer, NPC cyclops) { if(killer.getInventory().containsItem(20072, 1)) return; int random = Misc.random(10); Item defToDrop = (getDefString(killer) == "Dragon" ? new Item(20072) : new Item(getWhichDef(killer) + 1)); if (random <= 199) if (inClopsRoom(killer)) { World.addGroundItem(defToDrop, cyclops.getLastWorldTile(), killer, false, 1, false); killer.sm("You have got the " + getDefString(killer) + " Defender within this drop. Please discard your old defender."); } else return; else return; } private String getDefString(Player p) { if (p.getInventory().containsItem(8844, 1)) return "Steel"; else if (p.getInventory().containsItem(8846, 1)) return "Black"; else if (p.getInventory().containsItem(8847, 1)) return "Mithril"; else if (p.getInventory().containsItem(8848, 1)) return "Addy"; else if (p.getInventory().containsItem(8849, 1)) return "Rune"; else if (p.getInventory().containsItem(8850, 1) || p.getInventory().containsItem(20072, 1)) return "Dragon"; else return "Iron"; } private int getWhichDef(Player p) { switch (getDefString(p)) { case "Iron": return 8844; case "Steel": return 8845; case "Black": return 8846; case "Mithril": return 8847; case "Addy": return 8848; case "Rune": return 8849; case "dragon": return 20072; default: return 0; } } private static boolean inClopsRoom(Player p) { return (p.getX() >= 2847 && p.getX() <= 2876 && p.getY() >= 3534 && p.getY() <= 3556 || p.getX() >= 2838 && p.getX() <= 2847 && p.getY() >= 3543 && p.getY() <= 3556) ? true : false; } private WorldTask CyclopsTask; private int ticked = 0; private void armTick(final Player p, final NPC n) { WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { if (!(p.getX() >= 2849 && p.getX() <= 2861 && p.getY() >= 3530 && p .getY() <= 3541) || !World.getPlayers().contains(p)) { p.armSpawned = false; n.sendDeath(n); this.stop(); } else if (p.getX() >= 2849 && p.getX() <= 2861 && p.getY() >= 3530 && p.getY() <= 3541 && n.isDead()) { deleteArmAdd(p, true); armUsed = null; this.stop(); } } }, 0, 1); } private boolean canSpawn(Player p) { if (p.armSpawned) { p.sm("You need to kill the current Npc before spawning another!"); return false; } if (armUsed == "RUNE" || armUsed == "ADDY" || armUsed == "MITH" || armUsed == "BLACK" || armUsed == "STEEL") return true; else return false; } public void cyclopDoorEvent(final Player player) { player.sm(inClopsRoom(player) ? "You left the Cyclops chamber." : (player.getInventory().compairItemAmount(8851, 100)) ? "You need atleast 100 tokens in your inventory to enter into the Cyclops Chamber!" : "You enter the Cyclops chamber." + (getDefString(player) != "" ? " The Cyclops are currently dropping " + getDefString(player) + " Defenders." : "")); if (player.getInventory().compairItemAmount(8851, 100) && !inClopsRoom(player)) return; else { player.setNextWorldTile(new WorldTile(player.getX() + (inClopsRoom(player) ? -1 : +2), player.getY(), player .getPlane())); if (!inClopsRoom(player)) WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { if (!World.getPlayers().contains(player)) this.stop(); player.getInventory().deleteItem(8851, 10); CyclopsTask = this; locationCheck(player); if (!player.getInventory().containsItem(8851, 10) && inClopsRoom(player)) { player.setNextWorldTile(new WorldTile(2843, 3536, 2)); player.sm("All your tokens in your inventory have been used up."); locationCheck(player); this.stop(); return; } } }, 0, 10); } } private void deleteAddArm(Player p, int i1, int i2, int i3, boolean adding) { int[] items = { i1, i2, i3 }; for (int i = 0; i < items.length; i++) if (!adding) p.getInventory().deleteItem(items[i], 1); else { p.getInventory().addItem(items[i], 1); p.armSpawned = false; } } private void deleteArmAdd(Player p, boolean adding) { if (adding) p.getInventory().addItem(8851, tokenAmount); if (armUsed != null) switch (armUsed) { case "RUNE": deleteAddArm(p, 1079, 1163, 1127, adding ? true : false); break; case "STEEL": deleteAddArm(p, 1069, 1119, 1157, adding ? true : false); break; case "BLACK": deleteAddArm(p, 1077, 1125, 1165, adding ? true : false); break; case "MITH": deleteAddArm(p, 1071, 1121, 1159, adding ? true : false); break; case "ADDY": deleteAddArm(p, 1073, 1123, 1161, adding ? true : false); break; } } private boolean hasItems(Player p, int i1, int i2, int i3, String arm) { if (!p.getInventory().containsItem(i1, 1) || !p.getInventory().containsItem(i2, 1) || !p.getInventory().containsItem(i3, 1)) { p.sm("You need all of the pieces of " + arm + " Armour."); return false; } else return true; } private void locationCheck(final Player player) { WorldTasksManager.schedule(new WorldTask() { [MENTION=15855]Over[/MENTION]ride public void run() { if (!inClopsRoom(player)) if (ticked > 20) { ticked++; this.stop(); locationCheck(player); } else { CyclopsTask.stop(); this.stop(); } } }, 0, 20); return; } public void npcSpawnStuff(NPC n) { npc = n; npc.setNextForceTalk(new ForceTalk("I'm Alive!")); npc.setNextAnimation(new Animation(1056, 1)); npc.setForceMultiArea(false); } public void setString(Player p, int itemId) { if (itemId == 1079 || itemId == 1163 || itemId == 1127) if (hasItems(p, 1079, 1163, 1127, "Rune")) armUsed = "RUNE"; else if (itemId == 1069 || itemId == 1119 || itemId == 1157) if (hasItems(p, 1069, 1119, 1157, "Steel")) armUsed = "STEEL"; else if (itemId == 1077 || itemId == 1125 || itemId == 1165) if (hasItems(p, 1077, 1125, 1065, "Black")) armUsed = "BLACK"; else if (itemId == 1071 || itemId == 1121 || itemId == 1159) if (hasItems(p, 1071, 1121, 1159, "Mithril")) armUsed = "MITH"; else if (itemId == 1073 || itemId == 1123 || itemId == 1161) if (hasItems(p, 1073, 1123, 1161, "Addy")) armUsed = "ADDY"; } public void spawnArm(Player p, int x, int y) { if (canSpawn(p)) { World.spawnNPC(armToSpawn(), new WorldTile(x, y, p.getPlane()), -1, true, true); p.armSpawned = true; deleteArmAdd(p, false); p.addWalkSteps(p.getX() == 2851 ? 2851 : 2857, 3537, 5, true); npc.setTarget(p); p.getHintIconsManager().addHintIcon(npc, 0, -1, false); armTick(p, npc); } } } [/CODE] You get any problems/errors setting it up let me know and I will try to help you.
  3. [video=youtube;hdAsrEa9GvI]http://www.youtube.com/watch?v=hdAsrEa9GvI[/video] =]
  4. Mercenary

    Guild Wars 2

    Heya RuneLocus :3 So I have recently pre-purched Guild Wars 2, because it looks AWESOME. I'm pretty excited about it and decided to ask you guys about your opinion about the game. I mainly like the game because of its balanced PvP, Everybody's the same level and has the same gear stats, there's just different classes. (That's only if you decide to play on the PvP only servers) You also have the option to play solo and level up, Judging from GW1's system, the solo gameplay is in your own instance of the world. (Or with a party). Since I pre-purchased it, I get to play the Beta next week. (Tell me if you guys want me to record some footage).. Its full release will be 28 august (Pre-purchasers get a 3day head start too, yay!) So what do you guys think about it? Here's some media about the game. Manifesto Trailer [video=youtube;b_FskSWHLgE]http://www.youtube.com/watch?v=b_FskSWHLgE[/video] PvP Explenation about the system [video=youtube;Y4VKhrCDWfg]http://www.youtube.com/watch?v=Y4VKhrCDWfg[/video] PvP Gameplay [video=youtube;fMrpolYQvag]http://www.youtube.com/watch?v=fMrpolYQvag[/video] World vs World [video=youtube;yMTrsXsb0B4]http://www.youtube.com/watch?v=yMTrsXsb0B4[/video]
  5. Hello this will be my first ever thread post, I am a beginning coder so don't hate on me please :) I made my own custom warrior's guild on a basic PI server because even the building isn't coded in. I am currently working on the ranging and the magic guild. What this thread includes: - Teleport to the portal - Spawn the portal and have the portal teleport you - Spawning the cyclopses and adding drops - The commands to get the defenders - Brief explanation of my code 1. Teleporting to the portal Go to your commands.jave file and add under PlayerCommands [CODE]if (playerCommand.equalsIgnoreCase("guilds")) { c.getPA().startTeleport(3354, 3344, 0, "modern"); c.sendMessage("Coded by lolo1995"); }[/CODE] pretty basic, if you type " ::guilds " you will be teleported to the digsite. 2. Spawning the portal and have it teleport you Open your ObjectManager file and under: public void loadCustomSpawns(Client client) { add: [CODE]client.getPA().checkObjectSpawn(2156, 3347, 3347, 0, 10)[/CODE] 2156 = Object ID 3347,3347 are the X and Y coords (Digsite) 0 = direction of the object 10 = object type Ok, now that you've spawned the object let it tele you somewhere Open your ActionHandler file and search for [CODE]case 410[/CODE] somewhere under it add: [CODE]case 2156: c.getPA().movePlayer(2729, 9761, 0); break;[/CODE] case 2156: the number will be your object ID 2729, 9761, 0: The coordinates which the portal will teleport you to (Dungeon from legends Quest) 3. Spawning the cyclopses and adding drops Open up your spawn-config(data) and just add [CODE]spawn = 116 2725 9756 0 1 10 50 25 cyclops spawn = 116 2722 9756 0 1 10 50 25 " spawn = 116 2719 9756 0 1 10 50 25 " spawn = 116 2723 9751 0 1 10 50 25 " spawn = 116 2720 9751 0 1 10 50 25 " spawn = 116 2717 9751 0 1 10 50 25 " spawn = 116 2723 9746 0 1 10 50 25 " spawn = 116 2720 9746 0 1 10 50 25 " spawn = 116 2717 9746 0 1 10 50 25 " spawn = 116 2722 9743 0 1 10 50 25 " spawn = 116 2719 9743 0 1 10 50 25 " spawn = 116 2716 9743 0 1 10 50 25 "[/CODE] again it's pretty simple spawn = MONSTER ID X-COORD Y-COORD HEIGHT MAX HIT ATTACK LVL DEFENCE LVL DESCRIPTION then for the monster drops open you npcdrops.TSM and npcdrops.CFG file npcdrops.TSM, no matter where u add it [CODE]#cyclops 116:100 8851:100[/CODE] this will make it drop 100 ecto-tokens(4278) at a time(Warrior's guild tokens are not coded in). npcdrops.CFG, no matter where u add it [CODE]116 4278 4278 4278 4278 4278 4278 4278 4278 4278 4278[/CODE] 4.The commands to get the defenders So the idea behind it is, once you've reached a certain amount of ecto-tokens,you will have to do a command that will swap tokens for a defender,if you want to have iron or better, the command will say that you will need the previous one before it will get you a better one. You will also need to be in the cyclops zone or else it won't work. So in commands.java under playercommands add: [CODE]if (playerCommand.equalsIgnoreCase("bronzedef")) { if (c.absX >=2709 && c.absX <= 2728 && c.absY <= 9762 && c.absY >= 9737 && c.getItems().playerHasItem(4278, 500)) { c.getItems().deleteItem(4278, c.getItems().getItemSlot(4278), 500); c.getItems().addItem(8844, 1); c.sendMessage("You swapped 500 ecto-tokens for a bronze defender!"); } else { c.sendMessage("You need to be in the cyclops zone and have 500 tokens!"); } return; } if (playerCommand.equalsIgnoreCase("irondef")) { if (c.absX >= 2709 && c.absX <= 2728 && c.absY <= 9762 && c.absY >= 9737 && c.getItems().playerHasItem(8844, 1) && c.getItems().playerHasItem(4278, 750)) { c.getItems().deleteItem(4278, c.getItems().getItemSlot(4278), 750); c.getItems().addItem(8845, 1); c.sendMessage("You swapped 750 ecto-tokens for an iron defender!"); } else { c.sendMessage("You need to be in the cyclops zone, have 750 tokens and a bronze defender!"); } return; } if (playerCommand.equalsIgnoreCase("steeldef")) { if (c.absX >=2709 && c.absX <= 2728 && c.absY <= 9762 && c.absY >= 9737 && c.getItems().playerHasItem(4278, 1000) && c.getItems().playerHasItem(8845, 1)) { c.getItems().deleteItem(4278, c.getItems().getItemSlot(4278), 1000); c.getItems().addItem(8846, 1); c.sendMessage("You swapped 1k ecto-tokens for a steel defender!"); } else { c.sendMessage("You need to be in the cyclops zone, have 1k ecto-tokens and an iron defender!"); } return; } if (playerCommand.equalsIgnoreCase("blackdef")) { if (c.absX >=2709 && c.absX <= 2728 && c.absY <= 9762 && c.absY >= 9737 && c.getItems().playerHasItem(4278, 1250) && c.getItems().playerHasItem(8846, 1)) { c.getItems().deleteItem(4278, c.getItems().getItemSlot(4278), 1250); c.getItems().addItem(8847, 1); c.sendMessage("You swapped 1250 ecto-tokens for a black defender!"); } else { c.sendMessage("You need to be in the cyclops zone, have 1250 ecto-tokens and a steel defender!"); } return; } if (playerCommand.equalsIgnoreCase("mithrildef")) { if (c.absX >=2709 && c.absX <= 2728 && c.absY <= 9762 && c.absY >= 9737 && c.getItems().playerHasItem(4278, 1500) && c.getItems().playerHasItem(8847, 1)) { c.getItems().deleteItem(4278, c.getItems().getItemSlot(4278), 1500); c.getItems().addItem(8848, 1); c.sendMessage("You swapped 1,5k ecto-tokens for a mithril defender!"); } else { c.sendMessage("You need to be in the cyclops zone, have 1,5k ecto-tokens and a black defender("); } return; } if (playerCommand.equalsIgnoreCase("addydef")) { if (c.absX >=2709 && c.absX <= 2728 && c.absY <= 9762 && c.absY >= 9737 && c.getItems().playerHasItem(4278, 1750) && c.getItems().playerHasItem(8848, 1)) { c.getItems().deleteItem(4278, c.getItems().getItemSlot(4278), 1750); c.getItems().addItem(8849, 1); c.sendMessage("You swapped 1750 ecto-tokens for an adamant defender!"); } else { c.sendMessage("You need to be in the cyclops zone, have 1750 ecto-tokens and a mithril defender!"); } return; } if (playerCommand.equalsIgnoreCase("runedef")) { if (c.absX >=2709 && c.absX <= 2728 && c.absY <= 9762 && c.absY >= 9737 && c.getItems().playerHasItem(4278, 2000) && c.getItems().playerHasItem(8849, 1)) { c.getItems().deleteItem(4278, c.getItems().getItemSlot(4278), 2000); c.getItems().addItem(8850, 2); c.getItems().addItem(995, 10000000); c.sendMessage("You swapped 2k ecto-tokens for a rune defender!"); c.sendMessage("Congratulations on completing this minigame, you recieved an extra rune defender"); c.sendMessage("and 10M coins!"); } else { c.sendMessage("You need to be in the cyclops zone, have 2k ecto-tokens and an adamant defender!"); } return; } [/CODE] So if i translate the code it would be (addy defender). if i do the command ::addydef and i'm in the cyclops zone(the coords) and i have 1750 ecto-tokens(ID 4278) and i have a mithril defender(ID 8848), Delete 1750 ecto-tokens and add an adamant defender and send me a message in the chatbox. Starting from } else { : If i do not meet one of the requirements the command will not work and send me a message in the chatbox. I added a little bonus for the rune defender, you will recieve a second one and 10M GP :) That was it thanks for reading Credits: -80% me for writing all of the code -20% tutorials on multiple rsps websites
  6. [IMG]http://i46.tinypic.com/14ay6pi.png[/IMG]
  7. [img]http://img853.imageshack.us/img853/8599/76970662.png[/img] Saved the psd so if anybody wants me to create one for his GW2 character just tell me :)
  8. A website design for someone here at runelocus, still in progress. I plan on changing the colors to red/white since the person who requested the design asked me to do so, i just haven't gotten to it yet. [img]http://img607.imageshack.us/img607/2373/gw2sitecopy.png[/img]
  9. [img]http://img651.imageshack.us/img651/701/16231656.png[/img]
  10. [img]http://img442.imageshack.us/img442/8045/31917348.png[/img] It's just a basic webdesign i made in photoshop today, took around 2 hours or experimentating and changing things, i'm quite happy with the result. go to [url]http://img442.imageshack.us/img442/8045/31917348.png[/url] and click on the image to see full res. If anyone wants it , just pm me and i'll send you the psd as i'm not planning on using it.
  11. I haven't released anything in a while. I made this for my server a while back. Please do not post begging me to help you with something in this tutorial that you don't understand. If you don't understand how to do something in this incredibly easy tutorial, then you shouldn't have this on your server. So yea... New class: WGuildControler [CODE]package com.rs.game.player.controlers; 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.npc.NPC; import com.rs.game.npc.wguild.AnimatedArmour; import com.rs.game.player.HintIcon; import com.rs.game.player.Player; import com.rs.game.player.actions.PlayerCombat; import com.rs.game.player.controlers.Controler; import com.rs.game.tasks.WorldTask; import com.rs.game.tasks.WorldTasksManager; import com.rs.utils.Utils; public class WGuildControler extends Controler { private int tick; private static NPC animatedArmour; @Override public void start() { sendInterfaces(); } @Override public void process() { sendInterfaces(); if(player.getTemporaryAttributtes().get("killednpc") != null) { player.setWGuildTokens((player.getWGuildTokens() + (Integer) player.getTemporaryAttributtes().get("killednpc"))); player.getTemporaryAttributtes().remove("killednpc"); sendInterfaces(); return; } if(player.inClopsRoom()) { if(player.getWGuildTokens() <= 20) { player.getPackets().sendGameMessage("Your time is about to run out. Please leave the cyclops room."); } if(player.getWGuildTokens() <= 10) { player.setNextWorldTile(new WorldTile(2843, 3536, 2)); player.getPackets().sendGameMessage("Your time has run out."); player.setInClopsRoom(false); return; } if(tick == 20) { player.setWGuildTokens((player.getWGuildTokens() - 10)); sendInterfaces(); player.getPackets().sendGameMessage("Your tokens reduce by 10.", true); tick = 0; } tick++; } } @Override public boolean processMagicTeleport(WorldTile toTile) { if(player.inClopsRoom()) { player.getDialogueManager() .startDialogue("SimpleMessage", new Object[] {"A magical force prevents you from teleporting." }); return false; } else { stop(); return true; } } @Override public boolean processItemTeleport(WorldTile toTile) { if(player.inClopsRoom()) { player.getDialogueManager() .startDialogue("SimpleMessage", new Object[] {"A magical force prevents you from teleporting." }); return false; } else { stop(); return true; } } public static void handleItemOnObject(final Player player, WorldObject object, Item item) { player.getControlerManager().startControler("WGuildControler", new Object[] { }); if(isArmour(item.getId())) { if(player.getY() != 3533) { player.getPackets().sendGameMessage("You cannot add the armour from this side."); return; } int npcId = 0; int armourSlot = 0; switch(getArmour(item)) { case "bronze": npcId = 4278; armourSlot = 1; break; case "iron": npcId = 4279; armourSlot = 0; break; case "steel": npcId = 4280; armourSlot = 2; break; case "mithril": npcId = 4282; armourSlot = 3; break; case "adamant": npcId = 4283; armourSlot = 4; break; case "rune": npcId = 4284; armourSlot = 5; break; } final int finalNpc = npcId; if(!contains(player, ARMOURS[armourSlot])) { player.getPackets().sendGameMessage("You do not have all the required armour pieces."); return; } player.setNextAnimation(new Animation(827)); player.getPackets().sendGameMessage("You place the armour on the animator and it starts to glow"); deleteItems(player, ARMOURS[armourSlot]); WorldTasksManager.schedule(new WorldTask() { @Override public void run() { player.addWalkSteps(player.getX(), player.getY()+5); stop(); } }, 3); WorldTasksManager.schedule(new WorldTask() { @Override public void run() { animatedArmour = new AnimatedArmour(finalNpc, new WorldTile(player.getX(), player.getY()-5, player.getPlane()), -1, true, true); animatedArmour.setNextForceTalk(new ForceTalk("I'm ALIVE!")); animatedArmour.addWalkSteps(animatedArmour.getX(), animatedArmour.getY()+4); animatedArmour.setTarget(player); ((AnimatedArmour) animatedArmour).setPlayerCon(player); animatedArmour.setAttackedBy(player); player.getHintIconsManager().addHintIcon(animatedArmour, 0, -1, false); stop(); } }, 6); } } @Override public boolean canAttack(Entity target) { if(target instanceof AnimatedArmour) { AnimatedArmour n = (AnimatedArmour) target; if(player != n.getPlayerCon()) { player.getPackets().sendGameMessage("It's not after you."); return false; } } return true; } public static void deleteItems(Player player, int[] items) { for(int i = 0; i < items.length; i++) player.getInventory().deleteItem(items[i], 1); } public static boolean isArmour(int itemId) { for(int i = 0; i < ARMOURS.length; i++) { for(int i2 = 0; i2 < ARMOURS[i].length; i2++) { if(itemId == ARMOURS[i][i2]) { return true; } } } return false; } public static String getArmour(Item item) { String name = item.getDefinitions().getName().toLowerCase(); if(name.contains("bronze")) { return "bronze"; } else if(name.contains("steel")) { return "steel"; } else if(name.contains("iron")) { return "iron"; } else if(name.contains("mithril")) { return "mithril"; } else if(name.contains("adamant")) { return "adamant"; } else if(name.contains("rune")) { return "rune"; } return null; } public static boolean contains(Player player, int[] item) { for(int i = 0; i < item.length; i++) { if(!player.getInventory().containsItem(item[i], 1)) { return false; } } return true; } @Override public boolean processObjectTeleport(WorldTile tile) { if(player.inClopsRoom()) { player.getDialogueManager() .startDialogue("SimpleMessage", new Object[] {"A magical force prevents you from teleporting." }); return false; } else { stop(); return true; } } public void stop() { if(animatedArmour != null) { animatedArmour.finish(); } player.getPackets().closeInterface(player.getInterfaceManager().hasRezizableScreen() ? 10 : 8); removeControler(); } @Override public boolean processObjectClick1(WorldObject object) { start(); if(object.getId() == 66599 || object.getId() == 66601) { if(player.getX() == 2846) { enterClopsRoom(); } else if(player.getX() == 2847) { leaveClopsRoom(); } return false; } if(animatedArmour != null) { animatedArmour.finish(); } return true; } @Override public boolean logout() { return false; } @Override public boolean login() { start(); return false; } @Override public boolean processButtonClick(int interfaceId, int componentId, int slotId, int packetId) { if(interfaceId == 271) { if(player.getPrayer().isAncientCurses()) { player.getPackets().sendGameMessage("The warriors of this guild forbid such dark prayers."); return false; } } return true; } public void enterClopsRoom() { if(player.getWGuildTokens() < 100) { player.getPackets().sendGameMessage("You must have over 100 tokens to enter."); return; } player.setInClopsRoom(true); player.setNextWorldTile(new WorldTile(player.getX()+1, player.getY(), player.getPlane())); } public void leaveClopsRoom() { player.setInClopsRoom(false); player.setNextWorldTile(new WorldTile(player.getX()-1, player.getY(), player.getPlane())); } public void sendInterfaces() { player.getInterfaceManager().sendTab(player.getInterfaceManager().hasRezizableScreen() ? 10 : 8, 1057); player.getPackets().sendConfig(2030, player.getWGuildTokens()); } public static void dropDefender(Player player, NPC npc) { int itemId = 8844; for(int i = 0; i < DEFENDERS.length; i++) { if(player.getInventory().containsItem(DEFENDERS[i], 1) || player.getBank().containsItem(DEFENDERS[i], 1)) { if(DEFENDERS[i] == 20072) { itemId = 20072; } else { itemId = DEFENDERS[i + 1]; } } } World.addGroundItem(new Item(itemId, 1), new WorldTile( npc.getCoordFaceX(npc.getSize()), npc.getCoordFaceY(npc.getSize()), npc.getPlane()), player, false, 180, true); } // Iron Bronze Steel public static int[][] ARMOURS = { {1153, 1115, 1067 }, { 1155, 1117, 1075 }, { 1157, 1119, 1069 }, //Mithril Adamant Rune { 1159, 1121, 1071 }, { 1161, 1123, 1073 }, { 1163, 1127, 1079 } }; public static int[] DEFENDERS = { 8844, 8845, 8846, 8847, 8848, 8849, 8850, 20072 }; } [/CODE] New Class: AnimatedArmour [CODE]package com.rs.game.npc.wguild; import com.rs.game.Entity; import com.rs.game.WorldTile; import com.rs.game.npc.NPC; import com.rs.game.player.Player; public class AnimatedArmour extends NPC { public Player playerCon; public void setPlayerCon(Player con) { playerCon = con; } public Player getPlayerCon() { return playerCon; } public AnimatedArmour(int id, WorldTile tile, int mapAreaNameHash, boolean canBeAttackFromOutOfArea, boolean spawned) { super(id, tile, mapAreaNameHash, canBeAttackFromOutOfArea, spawned); } @Override public void sendDeath(Entity source) { Player other = (Player) source; super.sendDeath(source); other.getTemporaryAttributtes().put("killednpc", getTokensForNpcId()); } public int getTokensForNpcId() { switch(this.getId()) { case 4278: return 20; case 4279: return 25; case 4280: return 30; case 4282: return 35; case 4283: return 40; case 4284: return 100; } return 0; } } [/CODE] in Player.java [CODE] private boolean inClops; private int wGuildTokens; public int getWGuildTokens() { return wGuildTokens; } public void setWGuildTokens(int tokens) { wGuildTokens = tokens; } public boolean inClopsRoom() { return inClops; } public void setInClopsRoom(boolean in) { inClops = in; }[/CODE] NPC.java In the sendDrop method, right above the actual World.addGroundItem. [CODE]if (this.getId() == 116 && drop.getItemId() == 8844) { WGuildControler.dropDefender(player, this); return; }[/CODE] Bank.java [CODE]public boolean containsItem(int itemId, int amount) { for(int i = 0; i < bankTabs.length; i++) { for(Item item : bankTabs[i]) { if(item.getId() == itemId && item.getAmount() >= amount) { return true; } } } return false; }[/CODE] ObjectHandler.java In the itemOnObject method. [CODE]} else if (object.getId() == 15621) { WGuildControler .handleItemOnObject(player, object, item);[/CODE] Finally, you'll have to add the drop 8844 to cyclops which are npc 116. I won't teach you how to edit NPC Drops.
  12. Hello, i have looked everywhere for the warrior guild minigame interface id , if someone could give me it i would be appreciated. Kind regards, -Prothieum
  13. Title says it all
  14. Hi, I want to add 100% working warriors guild to my server... but the actual building where the warriors guild is supposed to be isn't even there... I know nothing at all about this shit so please don't say "you have to add the blah blah class to blah blah blah" or "an an if statement to blah blah" cuz i will have no idea what you're talking about..... if it's easier for you to help me over tv then add me on skype... but please I need help from someone (P.S: and if you do offer help on this thread then please explain everything you say, otherwise you're basically talking to a brick wall)
  15. Anybody know them? Thanks.
  16. For all you WoW players... If you don't play WoW, is what I did was steal pretty much everything from the guild bank, and then leave the guild, and sell everything. Total worth... around 15k gold. That is quite a lot! It was funny to see their nerd reactions. Pictures... [IMG]http://i53.tinypic.com/2s9asll.png[/IMG] [IMG]http://i53.tinypic.com/2ewfi54.png[/IMG]
  17. Hello, This isnt really much of a project thread right now but I am about to start off a Guild Wars community forum and I would need all the help I could get from (web developers, guild wars veterans, staff) everything! So please reply/PM/contact me on MSN: [B][email protected][/B] if you would like to become a part of this project or even support this project! We will hopefully fire up a GWPS aswell for you guys to play on... More information etc. will be added when I find out more. ~Thankyou! Twirled.
  18. Source using: BrokenX V2 Everytime the Auntomated Armor dies it doesnt drop the armor? How can I fix?
×