Various thing (#400)
- Nearly perfected fight caves now (should fix wave spawning, some dialogue bugs, instance issues) - Added fully working monkey gree grees - Fixed somes skill interface typos - Added ability to dye goblin mails - Fixed restless ghost quest interface typo - Clarified herb cleaning required level message
This commit is contained in:
1 parent
a55a0fdefb
commit
43f4b14dbf
20 files changed
+1121
-921
No files matched your search
@@ -527,8 +527,9 @@ public class NpcHandler {
|
||||
if (npcs[i].npcType == FightCaves.YT_HURKOT) {
|
||||
Player c = ((Client)PlayerHandler.players[npcs[i].spawnedBy]);
|
||||
int ranHeal = Misc.random(10);
|
||||
if (ranHeal == 10)
|
||||
if (ranHeal == 10) {
|
||||
FightCaves.healJad(c, i);
|
||||
}
|
||||
}
|
||||
if (PlayerHandler.players[npcs[i].spawnedBy] != null) {
|
||||
for (int o = 0; o < PlayerHandler.players[npcs[i].spawnedBy].barrowsNpcs.length; o++) {
|
||||
@@ -558,8 +559,7 @@ public class NpcHandler {
|
||||
npcs[i].underAttackBy = 0;
|
||||
}
|
||||
|
||||
if ((npcs[i].killerId > 0 || npcs[i].underAttack)
|
||||
&& !npcs[i].walkingHome && retaliates(npcs[i].npcType)) {
|
||||
if ((npcs[i].killerId > 0 || npcs[i].underAttack) && !npcs[i].walkingHome && retaliates(npcs[i].npcType)) {
|
||||
if (!npcs[i].isDead) {
|
||||
int p = npcs[i].killerId;
|
||||
if (PlayerHandler.players[p] != null) {
|
||||
@@ -568,7 +568,7 @@ public class NpcHandler {
|
||||
if (npcs[i] == null) {
|
||||
continue;
|
||||
}
|
||||
stepAway(c,i);
|
||||
stepAway(c, i);
|
||||
if (npcs[i].attackTimer == 0) {
|
||||
NpcCombat.attackPlayer(c, i);
|
||||
}
|
||||
@@ -1186,8 +1186,7 @@ public class NpcHandler {
|
||||
int playerX = PlayerHandler.players[playerId].absX;
|
||||
int playerY = PlayerHandler.players[playerId].absY;
|
||||
npcs[i].randomWalk = false;
|
||||
if (goodDistance(npcs[i].getX(), npcs[i].getY(), playerX, playerY,
|
||||
distanceRequired(i))) {
|
||||
if (goodDistance(npcs[i].getX(), npcs[i].getY(), playerX, playerY, distanceRequired(i))) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user