mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-05 16:49:06 +00:00
New stuff 4 (#315)
* Added some sound, refactored fletching and arrowmaking a bit... I've maybe fixed the issue with fletching.. idk Added some sound, refactored fletching and arrowmaking a bit... I've maybe fixed the issue with fletching.. idk * Commented clipping server side check so we can work on it Commented and brought back the old code so gates works while we work in the clipping check server side. * Added Canifis bank to the bank boolean * Fixed the drops problem
This commit is contained in:
@@ -165,26 +165,43 @@ public enum NpcEmotes {
|
||||
return -1;
|
||||
}
|
||||
|
||||
public static int getDeadEmote(Player player, int i) {
|
||||
for (NpcEmotes e : NpcEmotes.values()) {
|
||||
for (int f = 0; f < e.getNpcId().length; f++) {
|
||||
if (NpcHandler.npcs[i].npcType == e.getNpcId()[f]) {
|
||||
return e.getDead();
|
||||
} else {
|
||||
switch (NpcHandler.npcs[i].npcType) {
|
||||
// public static int getDeadEmote(Player player, int i) {
|
||||
// for (NpcEmotes e : NpcEmotes.values()) {
|
||||
// for (int f = 0; f < e.getNpcId().length; f++) {
|
||||
// if (NpcHandler.npcs[i].npcType == e.getNpcId()[f]) {
|
||||
// return e.getDead();
|
||||
// } else {
|
||||
// switch (NpcHandler.npcs[i].npcType) {
|
||||
// case 2745:
|
||||
// return 2654;
|
||||
// case 1158:
|
||||
// GameEngine.npcHandler.spawnSecondForm(player, i);
|
||||
// return 6242;
|
||||
// case 1160:
|
||||
// GameEngine.npcHandler.spawnFirstForm(player, i);
|
||||
// return 6233;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// return 2304;
|
||||
// }
|
||||
//
|
||||
//}
|
||||
public static int getDeadEmote(int i) {
|
||||
for (NpcEmotes e : NpcEmotes.values()) {
|
||||
for (int f = 0; f < e.getNpcId().length; f++) {
|
||||
if (NpcHandler.npcs[i].npcType == e.getNpcId()[f]) {
|
||||
return e.getDead();
|
||||
} else {
|
||||
switch (NpcHandler.npcs[i].npcType) {
|
||||
case 2745:
|
||||
return 2654;
|
||||
case 1158:
|
||||
GameEngine.npcHandler.spawnSecondForm(player, i);
|
||||
return 6242;
|
||||
case 1160:
|
||||
GameEngine.npcHandler.spawnFirstForm(player, i);
|
||||
return 6233;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return 2304;
|
||||
}
|
||||
return 2304;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user