Minor code improvements.
This commit is contained in:
@@ -32,7 +32,7 @@ public final class CharacterBirthday extends AbstractNpcAI
|
||||
private static final int ALEGRIA = 32600;
|
||||
private static int SPAWNS = 0;
|
||||
|
||||
private final static int[] GK =
|
||||
private static final int[] GK =
|
||||
{
|
||||
30006,
|
||||
30059,
|
||||
|
@@ -130,12 +130,9 @@ public final class FreyaCelebration extends LongTimeEvent
|
||||
|
||||
caster.addItem("FreyaCelebration", FREYA_GIFT, 1, npc, true);
|
||||
}
|
||||
else
|
||||
else if (getRandom(10) < 2)
|
||||
{
|
||||
if (getRandom(10) < 2)
|
||||
{
|
||||
npc.broadcastPacket(new CreatureSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getName(), FREYA_TEXT[getRandom(FREYA_TEXT.length - 1)]));
|
||||
}
|
||||
npc.broadcastPacket(new CreatureSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getName(), FREYA_TEXT[getRandom(FREYA_TEXT.length - 1)]));
|
||||
}
|
||||
}
|
||||
return super.onSkillSee(npc, caster, skill, targets, isSummon);
|
||||
|
@@ -27,20 +27,20 @@ import com.l2jmobius.gameserver.model.quest.LongTimeEvent;
|
||||
*/
|
||||
public final class HeavyMedal extends LongTimeEvent
|
||||
{
|
||||
private final static int CAT_ROY = 31228;
|
||||
private final static int CAT_WINNIE = 31229;
|
||||
private final static int GLITTERING_MEDAL = 6393;
|
||||
private static final int CAT_ROY = 31228;
|
||||
private static final int CAT_WINNIE = 31229;
|
||||
private static final int GLITTERING_MEDAL = 6393;
|
||||
|
||||
private final static int WIN_CHANCE = 50;
|
||||
private static final int WIN_CHANCE = 50;
|
||||
|
||||
private final static int[] MEDALS =
|
||||
private static final int[] MEDALS =
|
||||
{
|
||||
5,
|
||||
10,
|
||||
20,
|
||||
40
|
||||
};
|
||||
private final static int[] BADGES =
|
||||
private static final int[] BADGES =
|
||||
{
|
||||
6399,
|
||||
6400,
|
||||
@@ -92,12 +92,12 @@ public final class HeavyMedal extends LongTimeEvent
|
||||
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
level++;
|
||||
}
|
||||
htmltext = "31229-" + event.toLowerCase() + "-" + String.valueOf(level) + ".htm";
|
||||
htmltext = "31229-" + event.toLowerCase() + "-" + level + ".htm";
|
||||
}
|
||||
}
|
||||
else if (event.equalsIgnoreCase("talk"))
|
||||
{
|
||||
htmltext = String.valueOf(npc.getId()) + "-lvl-" + String.valueOf(level) + ".htm";
|
||||
htmltext = npc.getId() + "-lvl-" + level + ".htm";
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
Reference in New Issue
Block a user