Jump to content

Search the Community

Showing results for tags 'frosts'.



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

  1. Bazi

    Frosts Help

    Whenever i kill my frost dragons... they dont spawn back.. idk why they just dont. I set a timer for them i think? this is my code for Frosts. [QUOTE]package com.rs.game.npc.combat.impl; import java.util.List; import java.util.concurrent.TimeUnit; import com.rs.game.Animation; import com.rs.game.Entity; import com.rs.game.Graphics; import com.rs.game.World; import com.rs.game.npc.NPC; import com.rs.game.npc.combat.CombatScript; import com.rs.game.npc.combat.NPCCombatDefinitions; import com.rs.game.player.Player; import com.rs.game.player.content.Combat; import com.rs.utils.Utils; @SuppressWarnings("serial") public final class FrostDragon extends NPC { private boolean[] demonPrayer; private int fixedCombatType; private int[] cachedDamage; private int shieldTimer; private int fixedAmount; private int prayerTimer; public FrostDragon(int id, WorldTile tile, int mapAreaNameHash, boolean canBeAttackFromOutOfArea, boolean spawned) { super(id, tile, mapAreaNameHash, canBeAttackFromOutOfArea, spawned); demonPrayer = new boolean[3]; cachedDamage = new int[3]; shieldTimer = 0; switchPrayers(0); } public void switchPrayers(int type) { resetPrayerTimer(); } private void resetPrayerTimer() { prayerTimer = 16; } @Override public void setRespawnTask() { if (!hasFinished()) { reset(); setLocation(getRespawnTile()); finish(); } final NPC npc = this; CoresManager.slowExecutor.schedule(new Runnable() { @Override public void run() { setFinished(false); World.addNPC(npc); npc.setLastRegionId(0); World.updateEntityRegion(npc); loadMapRegions(); checkMultiArea(); shieldTimer = 0; fixedCombatType = 0; fixedAmount = 0; } }, getCombatDefinitions().getRespawnDelay() * 600, TimeUnit.MILLISECONDS); } //Your re-spawn time on them. public class FrostDragonCombat extends CombatScript { @Override public Object[] getKeys() { return new Object[] { "Frost dragon" }; } @Override public int attack(NPC npc, Entity target) { final NPCCombatDefinitions defs = npc.getCombatDefinitions(); final Player player = target instanceof Player ? (Player) target : null; int damage; switch (Utils.getRandom(3)) { case 0: // Melee if (npc.withinDistance(target, 3)) { damage = getRandomMaxHit(npc, defs.getMaxHit(), NPCCombatDefinitions.MELEE, target); npc.setNextAnimation(new Animation(defs.getAttackEmote())); delayHit(npc, 0, target, getMeleeHit(npc, damage)); } else { damage = Utils.getRandom(650); if (Combat.hasAntiDragProtection(target) || (player != null && (player.getPrayer().usingPrayer( 0, 17) || player.getPrayer().usingPrayer(1, 7)))) { damage = 0; player.getPackets() .sendGameMessage( "Your " + (Combat .hasAntiDragProtection(target) ? "shield" : "prayer") + " absorbs most of the dragon's breath!", true); } else if ((!Combat.hasAntiDragProtection(target) || !player.getPrayer().usingPrayer(0, 17) || !player .getPrayer().usingPrayer(1, 7)) && player.getFireImmune() > Utils.currentTimeMillis()) { damage = Utils.getRandom(164); player.getPackets().sendGameMessage( "Your potion absorbs most of the dragon's breath!", true); } npc.setNextAnimation(new Animation(13155)); World.sendProjectile(npc, target, 393, 28, 16, 35, 35, 16, 0); delayHit(npc, 1, target, getRegularHit(npc, damage)); } break; case 1: // Dragon breath if (npc.withinDistance(target, 3)) { damage = Utils.getRandom(650); if (Combat.hasAntiDragProtection(target) || (player != null && (player.getPrayer().usingPrayer( 0, 17) || player.getPrayer().usingPrayer(1, 7)))) { damage = 0; player.getPackets() .sendGameMessage( "Your " + (Combat .hasAntiDragProtection(target) ? "shield" : "prayer") + " absorbs most of the dragon's breath!", true); } else if ((!Combat.hasAntiDragProtection(target) || !player.getPrayer().usingPrayer(0, 17) || !player .getPrayer().usingPrayer(1, 7)) && player.getFireImmune() > Utils.currentTimeMillis()) { damage = Utils.getRandom(164); player.getPackets() .sendGameMessage( "Your potion fully protects you from the heat of the dragon's breath!", true); } npc.setNextAnimation(new Animation(13152)); npc.setNextGraphics(new Graphics(2465)); delayHit(npc, 1, target, getRegularHit(npc, damage)); } else { damage = Utils.getRandom(650); if (Combat.hasAntiDragProtection(target) || (player != null && (player.getPrayer().usingPrayer( 0, 17) || player.getPrayer().usingPrayer(1, 7)))) { damage = 0; player.getPackets() .sendGameMessage( "Your " + (Combat .hasAntiDragProtection(target) ? "shield" : "prayer") + " absorbs most of the dragon's breath!", true); } else if ((!Combat.hasAntiDragProtection(target) || !player.getPrayer().usingPrayer(0, 17) || !player .getPrayer().usingPrayer(1, 7)) && player.getFireImmune() > Utils.currentTimeMillis()) { damage = Utils.getRandom(164); player.getPackets() .sendGameMessage( "Your potion fully protects you from the heat of the dragon's breath!", true); } npc.setNextAnimation(new Animation(13155)); World.sendProjectile(npc, target, 393, 28, 16, 35, 35, 16, 0); delayHit(npc, 1, target, getRegularHit(npc, damage)); } break; case 2: // Range damage = Utils.getRandom(250); npc.setNextAnimation(new Animation(13155)); World.sendProjectile(npc, target, 2707, 28, 16, 35, 35, 16, 0); delayHit(npc, 1, target, getRangeHit(npc, damage)); break; case 3: // Ice arrows range damage = Utils.getRandom(250); npc.setNextAnimation(new Animation(13155)); World.sendProjectile(npc, target, 369, 28, 16, 35, 35, 16, 0); delayHit(npc, 1, target, getRangeHit(npc, damage)); break; case 4: // Orb crap break; } return defs.getAttackDelay(); } } [/QUOTE]
  2. [CENTER] [IMG]http://i.imgur.com/CLqvR.png[/IMG] Links [url=http://durathium.info/index.php]Forums[/url] WebClient - Coming Soon Highscores - Coming Soon Welcome to Durathium We are a brand new Server based on the Massively Multiplayer On-line Role-Playing Game- RuneScape. We're Still under development, So post glitches\bugs you find on forums. We have a lot of features to our server, these include; - Many armours like The PvP based armours (statius's, Vesta's, Morrigan'e ect..) - Many new armours like the Torva, Pernix, and the Virtus set. - Many cool bosses. - Many skills trainable and those that aren't are still being coded. - Fullscreen -HD - Friendly Staff - Spawn\Eco - Special Weapons - Hybriding - PvP - PvM - Summoning - Dungeoneering - Dicing! - Clan Chat Loads Of More Features! Come and Check it out MEDIA [IMG]http://i.imgur.com/RikJ1.png[/IMG] [IMG]http://i.imgur.com/6jlQs.png[/IMG] [IMG]http://i.imgur.com/enYBP.png[/IMG] [IMG]http://i.imgur.com/Ksjs2.png[/IMG] [IMG]http://i.imgur.com/LK9pJ.png[/IMG] [IMG]http://i.imgur.com/DuUBf.png[/IMG] [IMG]http://i.imgur.com/DLtpO.png[/IMG] [IMG]http://i.imgur.com/mRvVM.png[/IMG] [IMG]http://i.imgur.com/LcIt4.png[/IMG] [IMG]http://i.imgur.com/mUA6A.png[/IMG] [IMG]http://i.imgur.com/z7mFv.png[/IMG] [IMG]http://i.imgur.com/QkQ8C.png[/IMG] [IMG]http://i.imgur.com/vSC2U.png[/IMG] [IMG]http://i.imgur.com/VRuQl.png[/IMG] [IMG]http://i.imgur.com/QsuGE.png[/IMG] [IMG]http://i.imgur.com/0EcSX.png[/IMG] [IMG]http://i.imgur.com/cQeDQ.png[/IMG] [IMG]http://i.imgur.com/bwV0k.png[/IMG] [IMG]http://i.imgur.com/CLqvR.png[/IMG] This Thread Is Under Construction.[/CENTER]
×