Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void revertOnIdle(NPC npc) {
- if(npc == null npc.originalType == npc.npcType npc.lastHit + 5000 >= System.currentTimeMillis())
- return;
- switch(npc.originalType) {
- case 493:
- if(npc.transformDelay == 0 && npc.lastHit + 120000 >= System.currentTimeMillis()) {
- //npc.startAnimation(8269);
- npc.transformDelay = 4;
- } else if(npc.transformDelay == 1) {
- npc.requestTransform(493);
- //npc.startAnimation(8266);
- npc.transformDelay = 0;
- } else {
- npc.transformDelay--;
- }
- break;
- case 496:
- if(npc.transformDelay == 0 && npc.lastHit + 120000 >= System.currentTimeMillis()) {
- //npc.startAnimation(8269);
- npc.transformDelay = 4;
- } else if(npc.transformDelay == 1) {
- npc.requestTransform(496);
- //npc.startAnimation(8266);
- npc.transformDelay = 0;
- } else {
- npc.transformDelay--;
- }
- break;
- case 5534:
- if(npc.transformDelay == 0 && npc.lastHit + 120000 >= System.currentTimeMillis()) {
- //npc.startAnimation(8269);
- npc.transformDelay = 4;
- } else if(npc.transformDelay == 1) {
- npc.requestTransform(5534);
- setAmountOfTentacles(getAmountOfTentacles() - 1);
- //npc.startAnimation(8266);
- npc.transformDelay = 0;
- } else {
- @@ -2184,6 +2229,13 @@ public void stop() {
- }
- }, 5);
- }
- if (npcs[i].npcType == 494) { //Kraken & Tentacles Death Handling
- //kills disturbed tentacles
- kill(5535, 0);
- kill(5534, 0);
- //resets disturbed tentacles
- NPCHandler.setAmountOfTentacles(0);
- }
- }
- public static void transformOnAttack(NPC npc) {
- if(npc == null)
- return;
- switch(npc.npcType) {
- case 493:
- npc.attackTimer = 3;
- npc.requestTransform(492);
- //npc.startAnimation(8268);
- //npc.gfx100(1582);
- break;
- case 496:
- npc.attackTimer = 3;
- npc.requestTransform(494);
- //npc.startAnimation(8268);
- //npc.gfx100(1582);
- break;
- case 5534:
- npc.attackTimer = 3;
- setAmountOfTentacles(getAmountOfTentacles() + 1);
- npc.requestTransform(5535);
- //npc.startAnimation(8268);
- //npc.gfx100(1582);
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement