mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-04 00:31:54 +00:00
Quick patch (#316)
- Fixed npc drops/anims - Fixed some combat sounds that were not working - Made Kalphite Queen a multi area
This commit is contained in:
committed by
Daniel Ginovker
parent
bc4320ee68
commit
32bbf1e003
@@ -647,27 +647,16 @@ public class NpcHandler {
|
||||
}
|
||||
|
||||
if (npcs[i].isDead) {
|
||||
if (npcs[i].actionTimer == 0 && npcs[i].applyDead == false
|
||||
&& npcs[i].needRespawn == false) {
|
||||
if (npcs[i].actionTimer == 0 && npcs[i].applyDead == false && npcs[i].needRespawn == false) {
|
||||
npcs[i].updateRequired = true;
|
||||
npcs[i].facePlayer(0);
|
||||
if (npcs[i].killedBy <= 0)
|
||||
npcs[i].killedBy = NpcData.getNpcKillerId(i);
|
||||
npcs[i].animNumber = NpcEmotes.getDeadEmote(i); // dead
|
||||
// emote
|
||||
Player c = (Client) PlayerHandler.players[npcs[i].killedBy];
|
||||
if (c != null) {
|
||||
// if (npcs[i].killedBy <= 0)
|
||||
// npcs[i].killedBy = NpcData.getNpcKillerId(i);
|
||||
// npcs[i].animNumber = NpcEmotes.getDeadEmote(c, i); // dead emote
|
||||
if (CombatConstants.COMBAT_SOUNDS
|
||||
&& NpcHandler.npcs[i].npcType < 3177
|
||||
&& NpcHandler.npcs[i].npcType > 3180) {
|
||||
c.getPacketSender()
|
||||
.sendSound(
|
||||
CombatSounds
|
||||
.getNpcDeathSounds(npcs[i].npcType),
|
||||
100, 0);
|
||||
npcs[i].animNumber = NpcEmotes.getDeadEmote(c, i); // dead emote
|
||||
if (CombatConstants.COMBAT_SOUNDS) {
|
||||
c.getPacketSender().sendSound(CombatSounds.getNpcDeathSounds(npcs[i].npcType), 100, 0);
|
||||
}
|
||||
}
|
||||
npcs[i].animUpdateRequired = true;
|
||||
|
||||
Reference in New Issue
Block a user