Jump to content

Search the Community

Showing results for tags 'hand'.



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

  1. so, hand cannon special only attacks one time. i went through and figured out the file, and here's it's contents. i'm not too sure what to do. [code]package org.dementhium.model.combat.impl.specs; import org.dementhium.model.Projectile; import org.dementhium.model.SpecialAttack; import org.dementhium.model.combat.Ammunition; import org.dementhium.model.combat.CombatType; import org.dementhium.model.combat.Damage; import org.dementhium.model.combat.Interaction; import org.dementhium.model.combat.RangeData; import org.dementhium.model.combat.RangeFormulae; import org.dementhium.model.combat.RangeWeapon; import org.dementhium.model.mask.Graphic; import org.dementhium.model.misc.DamageManager.DamageType; import org.dementhium.model.misc.ProjectileManager; /** * Executes the Hand cannon's Aimed shot special attack. * @author Emperor * */ public class AimedShot extends SpecialAttack { /** * The graphics. */ private static final Graphic GRAPHICS = Graphic.create(2141, 96 << 16); /** * The special attack projectile GFX id. */ private static final short PROJECTILE_ID = 2143; [MENTION=15855]Over[/MENTION]ride public boolean commenceSpecialAttack(Interaction interaction) { RangeData data = new RangeData(true); data.setWeapon(RangeWeapon.get(interaction.getSource().getPlayer().getEquipment().getSlot(3))); data.setAmmo(Ammunition.get(interaction.getSource().getPlayer().getEquipment().getSlot(13))); if (data.getAmmo() == null || !data.getWeapon().getAmmunition().contains(data.getAmmo().getItemId())) { interaction.getSource().getPlayer().sendMessage("You do not have enough ammo left."); interaction.getSource().getCombatExecutor().reset(); return false; } if (interaction.getVictim().isPlayer()) { interaction.setDeflected(interaction.getVictim().getPlayer().getPrayer().usingPrayer(1, 8)); } int maximum = RangeFormulae.getRangeDamage(interaction.getSource(), 1.0); data.setDamage(Damage.getDamage(interaction.getSource(), interaction.getVictim(), CombatType.RANGE,RangeFormulae.getDamage(interaction.getSource(), interaction.getVictim(), 1.49, 1.0, 0.952))); data.getDamage().setMaximum(maximum); interaction.getSource().setAttribute("aimingTicks", 3); interaction.setTicks((int) Math.floor(interaction.getSource().getLocation().distance(interaction.getVictim().getLocation()) * 0.3) + 3); interaction.getSource().getPlayer().getEquipment().deleteItem(data.getAmmo().getItemId(), 1); interaction.setRangeData(data); return true; } [MENTION=15855]Over[/MENTION]ride public boolean tick(Interaction interaction) { int aimingTicks = interaction.getSource().getAttribute("aimingTicks"); interaction.getSource().setAttribute("aimingTicks", aimingTicks - 1); if (aimingTicks < 1) { interaction.getSource().turnTo(interaction.getVictim()); interaction.getSource().animate(12175); interaction.getSource().graphics(GRAPHICS); int speed = (int) (32 + (interaction.getSource().getLocation().distance(interaction.getVictim().getLocation()) * 5)); ProjectileManager.sendProjectile(Projectile.create(interaction.getSource(), interaction.getVictim(), PROJECTILE_ID, 31, 36, 45, speed, 0)); } if (interaction.getTicks() < 2) { interaction.getVictim().animate(interaction.isDeflected() ? 12573 : interaction.getVictim().getDefenceAnimation()); if (interaction.isDeflected()) { interaction.getVictim().graphics(2229); } } interaction.setTicks(interaction.getTicks() - 1); return interaction.getTicks() < 1; } [MENTION=15855]Over[/MENTION]ride public boolean endSpecialAttack(final Interaction interaction) { interaction.getVictim().getDamageManager().damage( interaction.getSource(), interaction.getRangeData().getDamage(), DamageType.RANGE); if (interaction.getRangeData().getDamage().getVenged() > 0) { interaction.getVictim().submitVengeance( interaction.getSource(), interaction.getRangeData().getDamage().getVenged()); } if (interaction.getRangeData().getDamage().getDeflected() > 0) { interaction.getSource().getDamageManager().damage(interaction.getVictim(), interaction.getRangeData().getDamage().getDeflected(), interaction.getRangeData().getDamage().getDeflected(), DamageType.DEFLECT); } if (interaction.getRangeData().getDamage().getRecoiled() > 0) { interaction.getSource().getDamageManager().damage(interaction.getVictim(), interaction.getRangeData().getDamage().getRecoiled(), interaction.getRangeData().getDamage().getRecoiled(), DamageType.DEFLECT); } interaction.getVictim().retaliate(interaction.getSource()); return true; } [MENTION=15855]Over[/MENTION]ride public CombatType getCombatType() { return CombatType.RANGE; } [MENTION=15855]Over[/MENTION]ride public int getSpecialEnergyAmount() { return 500; } [MENTION=15855]Over[/MENTION]ride public int getCooldownTicks() { return 6; } }[/code]
  2. [IMG]http://i.imgur.com/N8Ti1FZ.png[/IMG] not very good but there it is thank you
  3. l pixel l

    Hand cannon.

    Hello. I've recently added Hand Cannon, but it hits once and then it doesn't do anything. Anyone help me with this? As i recall i'm using Impozzes [PI].
  4. [QUOTE][CENTER]In order to use this you need 602 animations/gfx and Hand cannon shots + Hand cannon in your server! Assumed Knowledge: Copy And Pasting. Posting feedback. Difficulty 1/10. (If you have any knowledge of reading/c+p. Tested on: FormationX[/QUOTE] [COLOR="#008000"]Trees[/COLOR] takes [B]no credit[/B] for this except for reformatting the thread for RL. I saw someone asking about this on the help thread and decided to post it here. Firstly open your combatassistant.java [Spoiler=CombatAssist.java] [CODE]public void attackNpc(int i) {[/CODE] Under that add; [CODE] if (c.playerEquipment[c.playerWeapon] == 15241) { c.gfx0(2138); } if(c.playerEquipment[c.playerWeapon] == 15241 && 15243 != c.playerEquipment[c.playerArrows]){ c.sendMessage("You can't use Hand Cannon without the shots! (You dumb?)"); return; }[/CODE] Next find (Still in combatassistant.java: [CODE]public void attackPlayer(int i) {[/CODE] And once again below that add; [CODE] if (c.playerEquipment[c.playerWeapon] == 15241) { c.gfx0(2138); } if(c.playerEquipment[c.playerWeapon] == 15241 && 15243 != c.playerEquipment[c.playerArrows]){ c.sendMessage("You can't use Hand Cannon without the shots! (You dumb?)"); return; }[/CODE] Next find in combatassistant.java still (This is optional if u dont have it dw about it). [CODE] for (int u : c.Bolts) { for (int y : c.BOWS) {[/CODE] And replace it with. [CODE] for (int u : c.Bolts) { for (int y : c.BOWS) { if(y == c.playerEquipment[c.playerWeapon] && c.playerEquipment[c.playerWeapon] != 9185 && u == c.playerEquipment[c.playerArrows] && c.playerEquipment[c.playerWeapon] != 15241 && u == c.playerEquipment[c.playerArrows]){ c.sendMessage("You can only use arrows with this bow."); return; } } }[/CODE] Next still in combatassistant.java find; [CODE] c.sendMessage("You have run out of arrows!");[/CODE] Above that add. [CODE] if(c.playerEquipment[c.playerWeapon] == 15241) c.sendMessage("You have run out of Shots!"); else[/CODE] Still in combatassistant.java find: [CODE]public void fireProjectilePlayer() {[/CODE] Replace that with. [CODE]public void fireProjectilePlayer() { if(c.oldPlayerIndex > 0) { if(Server.playerHandler.players[c.oldPlayerIndex] != null) { c.projectileStage = 2; int pX = c.getX(); int pY = c.getY(); int oX = Server.playerHandler.players[c.oldPlayerIndex].getX(); int oY = Server.playerHandler.players[c.oldPlayerIndex].getY(); int offX = (pY - oY)* -1; int offY = (pX - oX)* -1; if(c.playerEquipment[c.playerWeapon] == 15241) { if(!c.specGfx) { c.gfx0(2138); } c.getPA().createPlayersProjectile2(pX, pY, offX, offY, 50, 55, getRangeProjectileGFX(), 22, 22, c.oldPlayerIndex - 1, getStartDelay(), -1); c.handCannonDestory(); c.specGfx = false; } else if(!c.msbSpec) c.getPA().createPlayersProjectile(pX, pY, offX, offY, 50, getProjectileSpeed(), getRangeProjectileGFX(), 43, 31, - c.oldPlayerIndex - 1, getStartDelay()); else if (c.msbSpec) { c.getPA().createPlayersProjectile2(pX, pY, offX, offY, 50, getProjectileSpeed(), getRangeProjectileGFX(), 43, 31, - c.oldPlayerIndex - 1, getStartDelay(), 10); c.msbSpec = false; } if (usingDbow()) c.getPA().createPlayersProjectile2(pX, pY, offX, offY, 50, getProjectileSpeed(), getRangeProjectileGFX(), 60, 31, - c.oldPlayerIndex - 1, getStartDelay(), 35); } } } [/CODE] Next still in combatassistant.java find; [CODE] case 1215: // dragon daggers case 1231: case 5680: case 5698: c.gfx100(252); c.startAnimation(1062); c.hitDelay = getHitDelay(c.getItems().getItemName(c.playerEquipment[c.playerWeapon]).toLowerCase()); c.doubleHit = true; c.specAccuracy = 1.30; c.specDamage = 1.05; break;[/CODE] Above that add. [CODE] case 15241: // hand cannon spec!! c.usingBow = true; c.rangeItemUsed = c.playerEquipment[c.playerArrows]; c.getItems().deleteArrow(); c.lastWeaponUsed = weapon; c.startAnimation(12175); c.specAccuracy = 8.5; c.specDamage = 2.25; c.hitDelay = 5; c.attackTimer-= 7; c.hitDelay = getHitDelay(c.getItems().getItemName(c.playerEquipment[c.playerWeapon]).toLowerCase()); if (c.fightMode == 2) if (c.playerIndex > 0) fireProjectilePlayer(); else if (c.npcIndex > 0) fireProjectileNpc(); break;[/CODE] Still in combatassistant.java find: [CODE] case 4151: case 11694: case 11698: case 4153: case 15241: case 14484: if(c.specAmount >= 5) { c.specAmount -= 5; c.getItems().addSpecialBar(weapon); return true; } return false;[/CODE] Below that add [CODE]case 15241:[/CODE] Next in combatassistant.java find: [CODE] public void getPlayerAnimIndex(String weaponName){[/CODE] Somewhere in there add. [CODE] case 15241: c.playerStandIndex = 12155; c.playerWalkIndex = 12154; c.playerRunIndex = 12154; break;[/CODE] Next find in combatassistant.java: [CODE]public int getWepAnim(String weaponName) {[/CODE] Somewhere in there add. [CODE] case 15241: return 12153;[/CODE] Keep searching for in combatassistant.java: [CODE]public int getBlockEmote() {[/CODE] Below that add. [CODE]case 15241: return 1666;[/CODE] Find. [CODE]public int getAttackDelay(String s) {[/CODE] add This somewhere in there. [CODE] case 15241: return 9;[/CODE] Next find still in combatassistant.java: [CODE]public int rangeMaxHit() { [/CODE] below that add. [CODE]int weapon = c.playerEquipment[c.playerWeapon];[/CODE] And under [CODE]if (c.fullVoidRange()) {[/CODE] Add. [CODE]if(weapon == 15241) b *= 1.35;[/CODE] Next find still in combatassistant.java: [CODE]public int correctBowAndArrows() {[/CODE] Below that add. [CODE]case 15241://hand cannon with Shots return 15243;[/CODE] Next still in combatassistant.java find; [CODE]switch(c.rangeItemUsed) {[/CODE] Above that add. [CODE]if (c.playerEquipment[c.playerWeapon] == 15241) return 2143;[/CODE] Now find; [CODE]public int getStartDelay() {[/CODE] Right under that like seriously right under it add. [CODE]if(c.playerEquipment[c.playerWeapon] == 15241) return 30;[/CODE] Still In combatassistant.java find: [CODE]public int getRangeStr(int i) {[/CODE] Replace it with: [CODE] public int getRangeStr(int i) { int str = 0; int[][] data = { {877, 10}, {9140, 46}, {9145, 36}, {9141, 64}, {9142, 82}, {9143,100}, {9144,115}, {9236, 14}, {9237, 30}, {9238, 48}, {9239, 66}, {9240, 83}, {9241, 85}, {9242,103}, {9243,105}, {9244,117}, {9245,120}, {882, 7}, {884, 10}, {886, 16}, {888, 22}, {890, 31}, {892, 49},{15243, 60}, {4740, 55}, {11212, 60}, {806, 1}, {807, 3}, {808, 4}, {809, 7}, {810,10}, {811,14}, {11230,20}, {864, 3}, {863, 4}, {865, 7}, {866, 10}, {867, 14}, {868, 24}, {825, 6}, {826,10}, {827,12}, {828,18}, {829,28}, {830,42}, {800, 5}, {801, 7}, {802,11}, {803,16}, {804,23}, {805,36}, {9976, 0}, {9977, 15}, {4212, 70}, {4214, 70}, {4215, 70}, {4216, 70}, {4217, 70}, {4218, 70}, {4219, 70}, {4220, 70}, {4221, 70}, {4222, 70}, {4223, 70}, {6522, 49}, {10034, 15}, }; for(int l = 0; l < data.length; l++) { if(i == data[l][0]) { str = data[l][1]; } } return str; }[/CODE] Still in combatassistant.java find: [CODE]} else if (Arrows == 11212) {//dragon arrows[/CODE] Above that add: [CODE]} else if (Arrows == 15243) {//Hand cannon shots rangehit = 4; rangehit += c.playerLevel[4] / 6; [/CODE] [/spoiler] Now open Client.java [Spoiler=Client.java] In client.java add; [CODE]public void handCannonDestory() { cannonTimer = 0; int chance = playerLevel[playerFiremaking] * 5 + 25; if(specGfx) chance/=2; if(Misc.random(chance) == 1) EventManager.getSingleton().addEvent(new Event() { public void execute(EventContainer c) { if(cannonTimer <= 0) { gfx0(2140); playerEquipment[playerWeapon] = -1; sendMessage("Your hand cannon explodes LMFAO!"); int damage = Misc.random(15) + 1; setHitDiff(damage); setHitUpdateRequired(true); dealDamage(Misc.random(15) + 1); updateRequired = true; getItems().sendWeapon(playerEquipment[playerWeapon], getItems().getItemName(playerEquipment[playerWeapon])); getCombat().getPlayerAnimIndex(getItems().getItemName(playerEquipment[playerWeapon]).toLowerCase()); getItems().resetBonus(); getItems().getBonus(); getItems().writeBonus(); getPA().requestUpdates();getOutStream().createFrame(34); getOutStream().writeWord(6); getOutStream().writeWord(1688); getOutStream().writeByte(playerWeapon); getOutStream().writeWord(0); getOutStream().writeByte(0); updateRequired = true; setAppearanceUpdateRequired(true); c.stop(); } else { cannonTimer--; } } }, 500); } public boolean specGfx = false; public void handCannonSpec() { cannonTimer = 0; EventManager.getSingleton().addEvent(new Event() { public void execute(EventContainer c) { cannonTimer--; if(cannonTimer == 0) { gfx0(2141); specGfx = true; } if(cannonTimer == 1) { if (playerIndex > 0) getCombat().fireProjectilePlayer(); else if (npcIndex > 0) getCombat().fireProjectileNpc(); c.stop(); } } }, 25); }[/CODE] Oh and declare this in client.java aswell; [CODE]public int cannonTimer = 0;[/CODE] [/spoiler] Now open Itemassistant.java [Spoiler=ItemAssist.java] In Itemassistant.java find; [CODE]public void sendWeapon(int Weapon, String WeaponName) {[/CODE] In there you should find something like. [CODE]} else if (WeaponName.endsWith("bow") || WeaponName.endsWith("10") || c.playerEquipment[c.playerWeapon] == 15015 || c.playerEquipment[c.playerWeapon] == 15016 || WeaponName.endsWith("full") || WeaponName.startsWith("seercull")) {[/CODE] Replace that with; [CODE]} else if (WeaponName.endsWith("bow") || WeaponName.endsWith("10") || c.playerEquipment[c.playerWeapon] == 15015 || c.playerEquipment[c.playerWeapon] == 15241 || c.playerEquipment[c.playerWeapon] == 15016 || WeaponName.endsWith("full") || WeaponName.startsWith("seercull")) {[/CODE] Next still in itemassistant.java find; [CODE]case 11284: case 11283: c.defenceLevelReq = 75; return;[/CODE] In there add; [CODE]case 15241: //hand cannon c.rangeLevelReq = 61; break;[/CODE] Still in there find; [CODE]case 859: // magic bows case 861:[/CODE] In below them add. [CODE]case 15241: [/CODE] In player.java find [CODE]public final int[] BOWS =[/CODE] In that array Add, 15241 Now find [CODE]public final int[] ARROWS =[/CODE] In that array add, 15243. If you do not understand replace urs with mine. [CODE]public final int[] BOWS = {15241,9185,839,845,847,851,855,859,841,843,849,853,857,861,4212,4214,4215,11235,4216,4217,4218,4219,4220,4221,4222,4223,6724,4734,4934,4935,4936,4937}; public final int[] ARROWS = {15243,882,884,886,888,890,892,4740,11212,9140,9141,4142,9143,9144,9240,9241,9242,9243,9244,9245}; [/CODE] [/spoiler] If you get setHitDiff(Damage); Error then replace the current handCannon destroy method in client.java with this one below Mainly an error on FormationX V3. But if you get it use this one /: [spoiler=Destroy method && Spec method] [CODE]public void handCannonDestory() { cannonTimer = 0; int chance = playerLevel[playerFiremaking] * 5 + 25; if(specGfx) chance/=2; if(Misc.random(chance) == 1) EventManager.getSingleton().addEvent(new Event() { public void execute(EventContainer c) { if(cannonTimer <= 0) { gfx0(2140); playerEquipment[playerWeapon] = -1; sendMessage("Your hand cannon explodes LMFAO!"); int damage = Misc.random(15) + 1; hitDiff = new Hit(damage, CombatType.RANGE); setHitUpdateRequired(true); dealDamage(Misc.random(15) + 1); updateRequired = true; getItems().sendWeapon(playerEquipment[playerWeapon], getItems().getItemName(playerEquipment[playerWeapon])); getCombat().getPlayerAnimIndex(getItems().getItemName(playerEquipment[playerWeapon]).toLowerCase()); getItems().resetBonus(); getItems().getBonus(); getItems().writeBonus(); getPA().requestUpdates();getOutStream().createFrame(34); getOutStream().writeWord(6); getOutStream().writeWord(1688); getOutStream().writeByte(playerWeapon); getOutStream().writeWord(0); getOutStream().writeByte(0); updateRequired = true; setAppearanceUpdateRequired(true); c.stop(); } else { cannonTimer--; } } }, 500); } public boolean specGfx = false; public void handCannonSpec() { cannonTimer = 0; EventManager.getSingleton().addEvent(new Event() { public void execute(EventContainer c) { cannonTimer--; if(cannonTimer == 0) { gfx0(2141); specGfx = true; } if(cannonTimer == 1) { if (playerIndex > 0) getCombat().fireProjectilePlayer(); else if (npcIndex > 0) getCombat().fireProjectileNpc(); c.stop(); } } }, 25); }[/CODE] [/spoiler] We are all done now.[/CENTER]
  5. [B][COLOR="#0000FF"]I am coding a 562 source and have alot to do with organizing and creating web based the server will require. I'm basically looking for a second hand man that can do simple things like take pictures of the server, create a forum or webclient and possibly help me with coords and ideas. I am pretty far on the server as of right now but i still have much to do. So if you are experienced in any way I need you :cool:. I plan getting a VPS hopefully soon I am on a strong connection right now that can support 40-60 players. The server will have alot of extra features and is time consuming, bunch of rewards that make you want to work towards getting. Alot of minigames and bosses also. Highscores will be working and economy will be great From donations you will be given 30% and all other incomes possible. [depending on how much you do] PM me if you are interested! *Live Messenger or Any type of messenger would be a really helpful tool to communicate also*[/COLOR][/B]
  6. hey everybody!, I need a little hand setting up my 700+ rsps. For some reason it wont download the cache. I dont know if its the right one or not, i HAVE tryed others but this wont WORK!. Its so frustrating, if some1 could help me via Teamviewer, i would kindly give you the highest rank after mine. And whatever you want. I will even give you a maxed combat runescape account. 92 herb, maxed cb. like, 2088 total level. Brand new mems, im just giving up on rs now. But yeh if some1 could help me as soon as possible. I would appreciate it! Thanks - Spotz
  7. Just added hand cannon from this link : [url]http://www.rune-server.org/runescape-development/rs2-server/tutorials/332592-almost-100-hand-cannon-pi-dspk.html[/url] and im getting 100 errors when i compile can someone with teamviewer help please?
  8. Hey guys, I have problem with Hand Cannon hits. When i be in pk and shoot the player, I HIT TO OTHER PLAYER 990... So how can i fix this bug, to hit normaly hit?? Image: [IMG]http://www.part.lt/img/f4a2dd68ef48dc5467cd2704c895c114820.jpg[/IMG]
  9. hey guys im trying to help a friend here he has been coding his server for a few months now, and found that his hand cannon for some reason is attacking with melee.... instead of range.. i was wondering if their is any fix for this... also when he shoots none of the cannons go away! thnx!
  10. Hey Im wondering how i fix my hand cannon it shoots once and then doesnt work anymore and you have to relog to attack anything even if u switch weapons. How do i fix this?
  11. Hey all, I made a new home, and i've put the X, Y coords in my config.java at lumby, but the home teleport , teleports me to the old home everytime, so i used ::mypos, and searched the config.jave for the old home coords, but they don't seems to be in there ;/ Hoep you understand what i mean, had to type fast ><
  12. Hey all, I'm using the renegadezpkz source, but it don't seem to have bandos and stuff? when i check the item list it isn't there and i looked the id up on google, tried to spawn one in my bag but i get 'null' and it looks like a big head. I started coding yesterday so don't call me a noob, simply cause i know i am. Thanks :D
×