Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package server.model.npcs;
- import java.io.BufferedReader;
- import java.io.FileNotFoundException;
- import java.io.FileReader;
- import java.io.IOException;
- import java.util.ArrayList;
- import server.Config;
- import server.Server;
- import server.model.players.Client;
- import server.util.Misc;
- import server.world.map.VirtualWorld;
- import server.event.EventManager;
- import server.event.Event;
- import server.event.EventContainer;
- public class NPCHandler {
- public static int maxNPCs = 10000;
- public static int maxListedNPCs = 10000;
- public static int random;
- public static int maxNPCDrops = 10000;
- public static NPC npcs[] = new NPC[maxNPCs];
- public static NPCList NpcList[] = new NPCList[maxListedNPCs];
- public NPCHandler() {
- for(int i = 0; i < maxNPCs; i++) {
- npcs[i] = null;
- }
- for(int i = 0; i < maxListedNPCs; i++) {
- NpcList[i] = null;
- }
- loadNPCList("./Data/CFG/npc.cfg");
- loadAutoSpawn("./Data/CFG/spawn-config.cfg");
- }
- public void Summon(Client c, int npcType, int x, int y, int heightLevel, int WalkingType, int HP, int maxHit, boolean attackPlayer, int attack, int defence) {
- // first, search for a free slot
- int slot = -1;
- for (int i = 1; i < maxNPCs; i++) {
- if (npcs[i] == null) {
- slot = i;
- break;
- }
- }
- if(slot == -1) {
- //Misc.println("No Free Slot");
- return; // no free slot found
- }
- NPC newNPC = new NPC(slot, npcType);
- newNPC.absX = x;
- newNPC.absY = y;
- newNPC.makeX = x;
- newNPC.makeY = y;
- newNPC.heightLevel = heightLevel;
- newNPC.walkingType = WalkingType;
- newNPC.HP = HP;
- newNPC.MaxHP = HP;
- newNPC.maxHit = maxHit;
- newNPC.attack = attack;
- newNPC.defence = defence;
- newNPC.spawnedBy = c.getId();
- newNPC.followPlayer = c.getId();
- // followPlayer(npcType, c.getId());
- newNPC.summon = true;
- c.lastsummon = npcType;
- c.summon = true;
- newNPC.gfx0(1315);
- c.summoningnpcid = slot;
- newNPC.npcslot = slot;
- if(attackPlayer) {
- newNPC.underAttack = true;
- if(c != null) {
- if(server.model.minigames.Barrows.COFFIN_AND_BROTHERS[c.randomCoffin][1] != newNPC.npcType) {
- if(newNPC.npcType == 2025 || newNPC.npcType == 2026 || newNPC.npcType == 2027 || newNPC.npcType == 2028 || newNPC.npcType == 2029 || newNPC.npcType == 2030) {
- newNPC.forceChat("You dare disturb my rest!");
- }
- }
- if(server.model.minigames.Barrows.COFFIN_AND_BROTHERS[c.randomCoffin][1] == newNPC.npcType) {
- newNPC.forceChat("You dare steal from us!");
- }
- newNPC.killerId = c.playerId;
- }
- }
- npcs[slot] = newNPC;
- }
- /*public void spawnNpc3(Client c, int npcType, int x, int y, int heightLevel, int WalkingType, int HP, int maxHit, int attack, int defence, boolean attackPlayer, boolean headIcon, boolean summonFollow) {
- // first, search for a free slot
- int slot = -1;
- for (int i = 1; i < maxNPCs; i++) {
- if (npcs[i] == null) {
- slot = i;
- break;
- }
- }
- if(slot == -1) {
- //Misc.println("No Free Slot");
- return; // no free slot found
- }
- NPC newNPC = new NPC(slot, npcType);
- newNPC.absX = x;
- newNPC.absY = y;
- newNPC.makeX = x;
- newNPC.makeY = y;
- newNPC.heightLevel = heightLevel;
- newNPC.walkingType = WalkingType;
- newNPC.HP = HP;
- newNPC.MaxHP = HP;
- newNPC.maxHit = maxHit;
- newNPC.attack = attack;
- newNPC.defence = defence;
- newNPC.spawnedBy = c.getId();
- newNPC.underAttack = true;
- newNPC.facePlayer(c.playerId);
- if(headIcon)
- c.getPA().drawHeadicon(1, slot, 0, 0);
- if (summonFollow) {
- newNPC.summoner = true;
- newNPC.summonedBy = c.playerId;
- c.summonId = npcType;
- c.hasNpc = true;
- }
- if(attackPlayer) {
- newNPC.underAttack = true;
- if(c != null) {
- newNPC.killerId = c.playerId;
- }
- }
- npcs[slot] = newNPC;
- }*/
- public void appendJailKc(int i) {
- Client c = (Client)Server.playerHandler.players[npcs[i].killedBy];
- if(c != null) {
- int[] Jail = {
- 132
- };
- for (int j : Jail) {
- if (npcs[i].npcType == j) {
- c.monkeyk0ed++;
- c.sendMessage("You now have "+c.monkeyk0ed+" Monkey kills!");
- } else {
- c.sendMessage("Woah man slow down.. you already have 20 monkey kills..");
- break;
- }
- }
- }
- }
- public void multiAttackGfx(int i, int gfx) {
- if (npcs[i].projectileId < 0)
- return;
- for (int j = 0; j < Server.playerHandler.players.length; j++) {
- if (Server.playerHandler.players[j] != null) {
- Client c = (Client)Server.playerHandler.players[j];
- if (c.heightLevel != npcs[i].heightLevel)
- continue;
- if (Server.playerHandler.players[j].goodDistance(c.absX, c.absY, npcs[i].absX, npcs[i].absY, 15)) {
- int nX = Server.npcHandler.npcs[i].getX() + offset(i);
- int nY = Server.npcHandler.npcs[i].getY() + offset(i);
- int pX = c.getX();
- int pY = c.getY();
- int offX = (nY - pY)* -1;
- int offY = (nX - pX)* -1;
- c.getPA().createPlayersProjectile(nX, nY, offX, offY, 50, getProjectileSpeed(i), npcs[i].projectileId, 43, 31, -c.getId() - 1, 65);
- }
- }
- }
- }
- public boolean switchesAttackers(int i) {
- switch(npcs[i].npcType) {
- case 6261:
- case 6263:
- case 6265:
- case 6223:
- case 6225:
- case 6227:
- case 6248:
- case 6250:
- case 8133:
- case 6252:
- case 8596:
- case 2892:
- case 2894:
- case 50:
- case 6206:
- case 6208:
- case 6204:
- case 9947:
- case 3847:
- return true;
- }
- return false;
- }
- public boolean ArmadylKC(int i) {
- switch(npcs[i].npcType) {
- case 6222:
- case 6223:
- case 6225:
- case 6230:
- case 6239: // Aviansie
- case 6227:
- case 6232:
- case 6229:
- case 6233:
- case 6231:
- return true;
- }
- return false;
- }
- public boolean BandosKC(int i) {
- switch(npcs[i].npcType) {
- case 6260:
- case 6261:
- case 6263:
- case 6265:
- case 6277:
- case 6269:
- case 6270:
- case 3247:
- case 6276:
- case 6272:
- case 6274:
- case 6278:
- return true;
- }
- return false;
- }
- public boolean ZammyKC(int i) {
- switch(npcs[i].npcType) {
- case 6203:
- case 3065:
- case 6204:
- case 6206:
- case 6208:
- case 10039:
- case 5247:
- case 6219:
- case 1904:
- case 1977:
- case 6218:
- case 3067:
- case 6212:
- case 205:
- case 3248:
- case 6220:
- case 6221:
- case 6272:
- case 10903:
- case 7160:
- case 7159:
- case 7158:
- case 10093:
- case 3665:
- case 3062:
- return true;
- }
- return false;
- }
- public boolean SaraKC(int i) {
- switch(npcs[i].npcType) {
- case 6247:
- case 6248:
- case 6250:
- case 6254:
- case 6252:
- case 6257:
- case 6255:
- case 6256:
- case 6258:
- return true;
- }
- return false;
- }
- public int getNpcDeleteTime(int i) {
- switch(npcs[i].npcType) {
- case 1265:
- case 90:
- case 1648:
- case 1341:
- case 1851:
- case 1857:
- case 1854:
- return 2;
- case 82:
- return 3;
- case 103:
- return 0;
- case 117:
- return 6;
- default:
- return 4;
- }
- }
- public void multiAttackDamage(int i) {
- int max = getMaxHit(i);
- for (int j = 0; j < Server.playerHandler.players.length; j++) {
- if (Server.playerHandler.players[j] != null) {
- Client c = (Client)Server.playerHandler.players[j];
- if (c.isDead || c.heightLevel != npcs[i].heightLevel)
- continue;
- if (Server.playerHandler.players[j].goodDistance(c.absX, c.absY, npcs[i].absX, npcs[i].absY, 15)) {
- if (npcs[i].attackType == 2) {
- if (!c.prayerActive[16] && !c.curseActive[7]) {
- if (Misc.random(500) + 200 > Misc.random(c.getCombat().mageDef())) {
- int dam = Misc.random(max);
- c.dealDamage(dam);
- c.handleHitMask(dam);
- } else {
- c.dealDamage(0);
- c.handleHitMask(0);
- }
- } else {
- c.dealDamage(0);
- c.handleHitMask(0);
- }
- } else if (npcs[i].attackType == 1) {
- if (!c.prayerActive[17] && !c.curseActive[8]) {
- int dam = Misc.random(max);
- if (Misc.random(500) + 200 > Misc.random(c.getCombat().calculateRangeDefence())) {
- c.dealDamage(dam);
- c.handleHitMask(dam);
- } else {
- c.dealDamage(0);
- c.handleHitMask(0);
- }
- } else {
- c.dealDamage(0);
- c.handleHitMask(0);
- }
- }
- if (npcs[i].endGfx > 0) {
- c.gfx0(npcs[i].endGfx);
- }
- }
- c.getPA().refreshSkill(3);
- }
- }
- }
- public int getClosePlayer(int i) {
- for (int j = 0; j < Server.playerHandler.players.length; j++) {
- if (Server.playerHandler.players[j] != null) {
- if (j == npcs[i].spawnedBy)
- return j;
- if (goodDistance(Server.playerHandler.players[j].absX, Server.playerHandler.players[j].absY, npcs[i].absX, npcs[i].absY, 2 + distanceRequired(i) + followDistance(i)) || isFightCaveNpc(i) || isRFDNpc(i)) {
- if ((Server.playerHandler.players[j].underAttackBy <= 0 && Server.playerHandler.players[j].underAttackBy2 <= 0) || Server.playerHandler.players[j].inMulti())
- if (Server.playerHandler.players[j].heightLevel == npcs[i].heightLevel)
- return j;
- }
- }
- }
- return 0;
- }
- public int getCloseRandomPlayer(int i) {
- ArrayList<Integer> players = new ArrayList<Integer>();
- for (int j = 0; j < Server.playerHandler.players.length; j++) {
- if (Server.playerHandler.players[j] != null) {
- if (goodDistance(Server.playerHandler.players[j].absX, Server.playerHandler.players[j].absY, npcs[i].absX, npcs[i].absY, 2 + distanceRequired(i) + followDistance(i)) || isFightCaveNpc(i) || isRFDNpc(i)) {
- if ((Server.playerHandler.players[j].underAttackBy <= 0 && Server.playerHandler.players[j].underAttackBy2 <= 0) || Server.playerHandler.players[j].inMulti())
- if (Server.playerHandler.players[j].heightLevel == npcs[i].heightLevel)
- players.add(j);
- }
- }
- }
- if (players.size() > 0)
- return players.get(Misc.random(players.size() -1));
- else
- return 0;
- }
- public int npcSize(int i) {
- switch (npcs[i].npcType) {
- case 2883:
- case 2882:
- case 2881:
- case 3493:
- return 3;
- case 3494:
- return 5;
- }
- return 0;
- }
- public boolean isAggressive(int i) {
- switch (npcs[i].npcType) {
- case 6260:
- case 6261:
- case 6263:
- case 6265:
- case 6222:
- case 6223:
- case 6225:
- case 6227:
- case 6998:
- case 6692:
- case 6247:
- case 6248:
- case 6250:
- case 6252:
- case 1158:
- case 1160:
- case 1154:
- case 1157:
- case 6713:
- case 1156:
- case 795:
- case 8133:
- case 3101:
- case 3102:
- case 5666:
- case 3103:
- case 2892:
- case 2894:
- case 2881:
- case 50:
- case 2882:
- case 2883:
- case 6203:
- case 6206:
- case 6208:
- case 6204:
- case 9947:
- case 3847:
- return true;
- }
- if (npcs[i].inWild() && npcs[i].MaxHP > 0 && npcs[i].npcType != 941)
- return false;
- if (isFightCaveNpc(i))
- return true;
- if (isRFDNpc(i))
- return true;
- return false;
- }
- public boolean isFightCaveNpc(int i) {
- switch (npcs[i].npcType) {
- case 2627:
- case 2630:
- case 2631:
- case 2741:
- case 2743:
- case 2745:
- return true;
- }
- return false;
- }
- public boolean isRFDNpc(int i) {
- switch (npcs[i].npcType) {
- case 3493:
- case 3494:
- case 3495:
- case 3496:
- case 3491:
- return true;
- }
- return false;
- }
- public boolean isRFDNpc2(int i) {
- switch (npcs[i].npcType) {
- case 3495:
- return true;
- }
- return false;
- }
- /**
- * Summon npc, barrows, etc
- **/
- public void spawnNpc(Client c, int npcType, int x, int y, int heightLevel, int WalkingType, int HP, int maxHit, int attack, int defence, boolean attackPlayer, boolean headIcon) {
- int slot = -1;
- for (int i = 1; i < maxNPCs; i++) {
- if (npcs[i] == null) {
- slot = i;
- break;
- }
- }
- if(slot == -1) {
- return;
- }
- NPC newNPC = new NPC(slot, npcType);
- newNPC.absX = x;
- newNPC.absY = y;
- newNPC.makeX = x;
- newNPC.makeY = y;
- newNPC.heightLevel = heightLevel;
- newNPC.walkingType = WalkingType;
- newNPC.HP = HP;
- newNPC.MaxHP = HP;
- newNPC.maxHit = maxHit;
- newNPC.attack = attack;
- newNPC.defence = defence;
- newNPC.spawnedBy = c.getId();
- if(headIcon)
- c.getPA().drawHeadicon(1, slot, 0, 0);
- if(attackPlayer) {
- newNPC.underAttack = true;
- if(c != null) {
- if(server.model.minigames.Barrows.COFFIN_AND_BROTHERS[c.randomCoffin][1] != newNPC.npcType) {
- if(newNPC.npcType == 2025 || newNPC.npcType == 2026 || newNPC.npcType == 2027 || newNPC.npcType == 2028 || newNPC.npcType == 2029 || newNPC.npcType == 2030) {
- newNPC.forceChat("You dare disturb my rest!");
- }
- }
- if (newNPC.npcType >= 4278 && newNPC.npcType <= 4284) {
- newNPC.forceAnim(4410);
- newNPC.forceChat("I'M ALIVE!");
- }
- if(server.model.minigames.Barrows.COFFIN_AND_BROTHERS[c.randomCoffin][1] == newNPC.npcType) {
- newNPC.forceChat("You dare steal from us!");
- }
- newNPC.killerId = c.playerId;
- }
- }
- npcs[slot] = newNPC;
- }
- public void spawnNpc2(int npcType, int x, int y, int heightLevel, int WalkingType, int HP, int maxHit, int attack, int defence) {
- // first, search for a free slot
- int slot = -1;
- for (int i = 1; i < maxNPCs; i++) {
- if (npcs[i] == null) {
- slot = i;
- break;
- }
- }
- if(slot == -1) {
- //Misc.println("No Free Slot");
- return; // no free slot found
- }
- NPC newNPC = new NPC(slot, npcType);
- newNPC.absX = x;
- newNPC.absY = y;
- newNPC.makeX = x;
- newNPC.makeY = y;
- newNPC.heightLevel = heightLevel;
- newNPC.walkingType = WalkingType;
- newNPC.HP = HP;
- newNPC.MaxHP = HP;
- newNPC.maxHit = maxHit;
- newNPC.attack = attack;
- newNPC.defence = defence;
- npcs[slot] = newNPC;
- }
- public static void spawnNewNPC(int npcType, int x, int y, int heightLevel, int WalkingType, int HP, int maxHit, int attack, int defence, boolean needSpawn) {
- int slot = -1;
- for (int i = 1; i < maxNPCs; i++) {
- if (npcs[i] == null) {
- slot = i;
- break;
- }
- }
- if(slot == -1) {
- return;
- }
- NPC newNPC = new NPC(slot, npcType);
- newNPC.absX = x;
- newNPC.absY = y;
- newNPC.makeX = x;
- newNPC.makeY = y;
- newNPC.heightLevel = heightLevel;
- newNPC.walkingType = WalkingType;
- newNPC.HP = HP;
- newNPC.MaxHP = HP;
- newNPC.maxHit = maxHit;
- newNPC.attack = attack;
- newNPC.defence = defence;
- newNPC.NeedsRespawn = needSpawn;
- npcs[slot] = newNPC;
- if (newNPC.npcType == 1160) {
- newNPC.startAnim(1181);//spawn anim
- }
- }
- /**
- * Emotes
- **/
- public static int getAttackEmote(int i) {
- switch(Server.npcHandler.npcs[i].npcType) {
- case 6795:
- return 1010;
- case 1648:
- return 9125;
- case 1612:
- return 9449;
- case 1643:
- return 7183;
- case 1618:
- return 9130;
- case 1610:
- return 9454;
- case 1613:
- return 9487;
- case 10775:
- return 13151;
- case 2037:
- return 5485;
- case 6797:
- return 8104;
- case 8596:
- return 11197;
- case 6799:
- return 8069;
- case 6801:
- return 7853;
- case 6803:
- return 8159;
- case 8528:
- return 12696;
- case 6805:
- return 7786;
- case 6807:
- return 8148;
- case 6810:
- return 7970;
- case 6812:
- return 7935;
- case 6814:
- return 7741;
- case 6816:
- return 8288;
- case 6819:
- return 7667;
- case 6821:
- return 7680;
- case 6823:
- return 6376;
- case 6826:
- return 5387;
- case 6828:
- return 8208;
- case 6830:
- return 8292;
- case 6832:
- return 7795;
- case 6834:
- return 8248;
- case 6836:
- return 8275;
- case 6838:
- return 6254;
- case 6856:
- return 4921;
- case 6858:
- return 5327;
- case 6860:
- case 6862:
- case 6864:
- return 7656;
- case 6868:
- return 7896;
- case 6870:
- return 8303;
- case 6872:
- return 7769;
- case 6874:
- return 5782;
- case 6890:
- return 7260;
- case 7330:
- return 8223;
- case 7332:
- return 8032;
- case 7338:
- return 5228;
- case 7352:
- return 8234;
- case 7354:
- return 7755;
- case 7355:
- return 7834;
- case 7358:
- return 7844;
- case 7359:
- return 8183;
- case 7362:
- return 8257;
- case 7364:
- case 7366:
- return 5228;
- case 7368:
- case 7369:
- return 8130;
- case 7371:
- return 8093;
- case 7374:
- return 7994;
- case 7376:
- return 7946;
- case 6260:
- if (npcs[i].attackType == 0)
- return 7060;
- else
- return 7063;
- ///Kq
- case 1158:
- case 3835:
- if (npcs[i].attackType == 0)
- return 6241;
- else
- return 6240;
- case 1160:
- case 3836:
- if (npcs[i].attackType == 0)
- return 6235;
- else
- return 6234;
- case 2892:
- case 2894:
- case 9947:
- case 3847:
- return 2868;
- case 2627:
- return 2621;
- case 2630:
- return 2625;
- case 2631:
- return 2633;
- case 2741:
- return 2637;
- case 2746:
- return 2637;
- case 2607:
- return 2611;
- case 2743://360
- return 2647;
- //bandos gwd
- case 6261:
- case 6263:
- case 6265:
- return 6154;
- case 6267:
- return 361;
- case 6268:
- return 2930;
- case 6269:
- case 6270:
- return 4652;
- case 6271:
- case 6272:
- case 6273:
- case 6274:
- return 4320;
- case 6275:
- return 164;
- case 6276:
- case 6277:
- case 6278:
- return 4320;
- case 6279:
- case 6280:
- return 6184;
- case 6281:
- return 6134;
- case 6282:
- return 6188;
- case 6283:
- return 6184;
- //end of gwd
- //zammy gwd
- case 6203:
- return 6945;
- case 6204:
- case 6206:
- case 6208:
- return 64;
- case 6210:
- return 6581;
- case 6211:
- return 169;
- case 6212:
- case 6213:
- return 6536;
- case 6215:
- return 1552;
- case 6216:
- case 6217:
- return 1582;
- case 6218:
- return 4300;
- //end of zammy gwd
- //arma gwd
- case 6222:
- return 6973;
- case 6225:
- return 6953;
- case 6223:
- return 6954;
- case 6227:
- return 6953;
- //spiritual mages
- case 6229:
- case 6230:
- case 6231:
- return 6954;
- //aviansies
- case 6232:
- case 6233:
- case 6234:
- case 6235:
- case 6236:
- case 6237:
- case 6238:
- case 6239:
- case 6240:
- case 6241:
- case 6242:
- case 6243:
- case 6244:
- case 6245:
- case 6246:
- return 6953;
- //end of arma gwd
- //sara gwd
- case 6247:
- if (npcs[i].attackType == 2)
- return 6967;
- else
- return 6964;
- case 10057:
- if (npcs[i].attackType == 1)
- return 10817;
- else
- return 10816;
- case 6248:
- return 6376;
- case 6250:
- return 7018;
- case 6252:
- return 7009;
- //end of sara gwd
- case 13: //wizards
- return 711;
- case 103:
- return 123;
- case 1624:
- return 1557;
- case 90: //skele
- return 260;
- case 50://drags
- case 53:
- case 54:
- case 55:
- case 941:
- case 1590:
- case 1591:
- case 1592:
- return 80;
- case 124: //earth warrior
- return 390;
- case 803: //monk
- return 422;
- case 52: //baby drag
- return 25;
- case 58: //Shadow Spider
- case 59: //Giant Spider
- case 60: //Giant Spider
- case 61: //Spider
- case 62: //Jungle Spider
- case 63: //Deadly Red Spider
- case 64: //Ice Spider
- case 134:
- return 143;
- case 105: //Bear
- case 106: //Bear
- return 41;
- case 412:
- case 78:
- return 30;
- case 2033: //rat
- return 138;
- case 2031: // bloodworm
- return 2070;
- case 101: // goblin
- return 309;
- case 81: // cow
- return 0x03B;
- case 21: // hero
- return 451;
- case 41: // chicken
- return 55;
- case 9: // guard
- case 32: // guard
- case 20: // paladin
- return 451;
- case 1338: // dagannoth
- case 1340:
- case 1342:
- return 1341;
- case 19: // white knight
- return 406;
- case 110:
- case 111: // ice giant
- case 112:
- case 117:
- return 128;
- case 2452:
- return 1312;
- case 2889:
- return 2859;
- case 118:
- case 119:
- return 99;
- case 82://Lesser Demon
- case 83://Greater Demon
- case 84://Black Demon
- case 1472://jungle demon
- case 10039:
- return 64;
- case 1267:
- case 1265:
- return 1312;
- case 125: // ice warrior
- case 178:
- return 451;
- case 1153: //Kalphite Worker
- case 1154: //Kalphite Soldier
- case 1155: //Kalphite guardian
- case 1156: //Kalphite worker
- case 1157: //Kalphite guardian
- return 1184;
- case 123:
- case 122:
- return 164;
- case 7334:
- return 8172;
- case 7336:
- return 7871;
- case 5228:
- return 5228;
- case 7340:
- return 7879;
- case 7342:
- return 7879;
- case 7344:
- return 8183;
- case 7346:
- return 8048;
- case 7348:
- return 5989;
- case 7350:
- return 7693;
- case 2028: // karil
- return 2075;
- case 2025: // ahrim
- return 729;
- case 2026: // dharok
- return 2067;
- case 2027: // guthan
- return 2080;
- case 2029: // torag
- return 0x814;
- case 2030: // verac
- return 2062;
- case 2881: //supreme
- return 2855;
- case 2882: //prime
- return 2854;
- case 2883: //rex
- return 2851;
- case 3340: // giant mole test
- return 3312;
- case 3200:
- return 3146;
- case 8349://tormented demon
- if (npcs[i].attackType == 2)
- return 10917;
- else if (npcs[i].attackType == 1)
- return 10918;
- else if (npcs[i].attackType == 0)
- return 10922;
- case 8133://corp beast
- if (npcs[i].attackType == 2)
- return 10053;
- else if (npcs[i].attackType == 1)
- return 10059;
- else if (npcs[i].attackType == 0)
- return 10057;
- case 10127:
- if (npcs[i].attackType == 2)
- return 13176;
- else if (npcs[i].attackType == 0)
- return 13169;
- case 10141://corp beast
- if (npcs[i].attackType == 2)
- return 10053;
- else if (npcs[i].attackType == 0)
- return 13599;
- else if (npcs[i].attackType == 1)
- return 13603;
- case 2745:
- if (npcs[i].attackType == 2)
- return 9300;
- else if (npcs[i].attackType == 1)
- return 9276;
- else if (npcs[i].attackType == 0)
- return 9277;
- case 655:
- return 129;
- default:
- return 0x326;
- }
- }
- public int getDeadEmote(int i) {
- switch(npcs[i].npcType) {
- case 8133: // corp beast
- return 10059;
- case 10141:
- return 13602;
- case 10127:
- return 13171;
- case 8596:
- return 11199;
- case 10057:
- return 10815;
- case 1648:
- return 9125;
- case 1612:
- return 9449;
- case 1643:
- return 7183;
- case 1618:
- return 9130;
- case 1610:
- return 9454;
- case 1613:
- return 9487;
- case 8349: // torm demon
- return 10924;
- //sara gwd
- case 6247:
- return 6965;
- case 10775:
- return 13153;
- case 9947:
- return 13772;
- case 8528:
- return 12694;
- case 6248:
- return 6377;
- case 6250:
- return 7016;
- case 6252:
- return 7011;
- //bandos gwd
- case 6261:
- case 6263:
- case 6265:
- return 6156;
- case 6260:
- return 7062;
- case 2892:
- case 2894:
- return 2865;
- case 6203: //zammy gwd
- return 6946;
- case 6204:
- case 6206:
- case 6208:
- return 67;
- case 6222:
- return 6975;
- case 6223:
- case 6225:
- case 6227:
- return 6956;
- case 2607:
- return 2607;
- case 2627:
- return 2620;
- case 2630:
- return 2627;
- case 2631:
- return 2630;
- case 2738:
- return 2627;
- case 2741:
- return 2638;
- case 2746:
- return 2638;
- case 2743:
- return 2646;
- case 2745:
- return 2654;
- case 3200:
- return 3147;
- case 3847:
- return 3993;
- case 2035: //spider
- return 146;
- case 2033: //rat
- return 141;
- case 2031: // bloodvel
- return 2073;
Add Comment
Please, Sign In to add comment