New addAttackDesire method.

This commit is contained in:
MobiusDev
2016-02-07 13:15:29 +00:00
parent e08de63a5c
commit fff8cd473b
48 changed files with 100 additions and 187 deletions

View File

@@ -147,7 +147,7 @@ public final class MuseumDungeon extends AbstractInstance
}
world.toyron.setIsRunning(true);
world.thiefSpawns = spawnGroup("thiefs", world.getInstanceId());
((L2MonsterInstance) world.thiefSpawns.get(0)).addDamage(player, 1, null);
addAttackDesire(world.thiefSpawns.get(0), player);
startQuestTimer("assist_player", 2000, world.toyron, player);
}
}
@@ -168,7 +168,7 @@ public final class MuseumDungeon extends AbstractInstance
qs.setCond(2);
giveItems(player, THE_WAR_OF_GODS_AND_GIANTS, 1);
world.thiefSpawns = spawnGroup("thiefs", world.getInstanceId());
((L2MonsterInstance) world.thiefSpawns.get(0)).addDamage(player, 1, null);
addAttackDesire(world.thiefSpawns.get(0), player);
showOnScreenMsg(player, NpcStringId.WATCH_OUT_YOU_ARE_BEING_ATTACKED, ExShowScreenMessage.TOP_CENTER, 5000);
startQuestTimer("assist_player", 2000, world.toyron, player);
htmltext = "desk_correct.html";