Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.rs.game.npc.combat.impl;
- import com.rs.game.Animation;
- import com.rs.game.Entity;
- import com.rs.game.ForceTalk;
- import com.rs.game.Hit;
- import com.rs.game.Hit.HitLook;
- import com.rs.game.Graphics;
- import com.rs.game.npc.NPC;
- import com.rs.game.npc.combat.CombatScript;
- import com.rs.game.npc.combat.NPCCombatDefinitions;
- import com.rs.game.tasks.WorldTask;
- import com.rs.game.tasks.WorldTasksManager;
- import com.rs.game.player.Player;
- import com.rs.game.player.Skills;
- import com.rs.utils.Utils;
- import com.rs.game.player.Appearence;
- import com.rs.cores.CoresManager;
- import com.rs.game.World;
- import com.rs.game.player.content.Magic;
- import com.rs.game.WorldTile;
- import java.util.ArrayList;
- import java.util.List;
- import java.util.concurrent.TimeUnit;
- public class NewplayerMeleeCombat extends CombatScript {
- int Extradelay = 0;
- @Override
- public Object[] getKeys() {
- return new Object[] { 18668 };
- }
- @Override
- public int attack(final NPC npc, final Entity target) {
- final NPCCombatDefinitions defs = npc.getCombatDefinitions();
- switch (Utils.getRandom(1)) {
- case 0:
- Extradelay = 4;
- npc.setNextForceTalk(new ForceTalk("Get crushed by my Maul!"));
- npc.setNextAnimation(new Animation(2661));
- delayHit(npc,1,target,getMeleeHit(npc, Utils.random(10,30)));
- break;
- case 1:
- Extradelay = 0;
- switch (Utils.getRandom(19)) {
- case 0:
- npc.setNextForceTalk(new ForceTalk("Taste my DDS!"));
- npc.transformIntoNPC(18675);
- break;
- case 1:
- npc.setNextForceTalk(new ForceTalk("Get burned by dragonfire!"));
- npc.transformIntoNPC(18678);
- break;
- case 2:
- npc.setNextForceTalk(new ForceTalk("Taste the power of Armadyl!"));
- npc.transformIntoNPC(18670);
- break;
- case 3:
- npc.setNextForceTalk(new ForceTalk("Lend me your strength god of war!"));
- npc.transformIntoNPC(18669);
- break;
- case 4:
- npc.setNextForceTalk(new ForceTalk("Saradomin heal me!"));
- npc.transformIntoNPC(18671);
- break;
- case 5:
- npc.setNextForceTalk(new ForceTalk("Zamorak freeze my opponent!"));
- npc.transformIntoNPC(18672);
- break;
- case 6:
- npc.setNextForceTalk(new ForceTalk("Lightning fast speed with granite solid strength!"));
- npc.transformIntoNPC(18673);
- break;
- case 7:
- npc.setNextForceTalk(new ForceTalk("Claws of fury!"));
- npc.transformIntoNPC(18674);
- break;
- case 8:
- npc.setNextForceTalk(new ForceTalk("Saradomin smite my opponent!"));
- npc.transformIntoNPC(18679);
- break;
- case 9:
- npc.setNextForceTalk(new ForceTalk("Hehe... Prayer won't save you!"));
- npc.transformIntoNPC(18676);
- break;
- case 10:
- npc.setNextForceTalk(new ForceTalk("You stand no chance against the dark powers!"));
- npc.transformIntoNPC(18685);
- break;
- case 11:
- npc.setNextForceTalk(new ForceTalk("Get sliced in half!"));
- npc.transformIntoNPC(18686);
- break;
- case 12:
- npc.setNextForceTalk(new ForceTalk("Get crushed by my anchor!"));
- npc.transformIntoNPC(18687);
- break;
- case 13:
- npc.setNextForceTalk(new ForceTalk("You're helpness now!"));
- npc.transformIntoNPC(18688);
- break;
- case 14:
- npc.setNextForceTalk(new ForceTalk("Spike ball of DOOOOOM!"));
- npc.transformIntoNPC(18680);
- break;
- case 15:
- npc.setNextForceTalk(new ForceTalk("Taste the power of the void knights!"));
- npc.transformIntoNPC(18682);
- break;
- case 16:
- npc.setNextForceTalk(new ForceTalk("Lend me your strength Vesta to spear my opponent!"));
- npc.transformIntoNPC(18689);
- break;
- case 17:
- npc.setNextForceTalk(new ForceTalk("Lend me your strength Vesta to stab my opponent!"));
- npc.transformIntoNPC(18684);
- break;
- case 18:
- npc.setNextForceTalk(new ForceTalk("Statius crush through his defences!"));
- npc.transformIntoNPC(18683);
- break;
- case 19:
- npc.setNextForceTalk(new ForceTalk("Empowered slash!"));
- npc.transformIntoNPC(18681);
- break;
- }
- }
- return 1 + Extradelay;
- }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement