Code format for space before comments.
This commit is contained in:
parent
0997c81251
commit
25678c3f9c
@ -53,7 +53,7 @@ public class Q00337_AudienceWithTheLandDragon extends Quest
|
|||||||
private static final int REMAINS_OF_SACRIFIED = 3857; // Remains of Sacrifice
|
private static final int REMAINS_OF_SACRIFIED = 3857; // Remains of Sacrifice
|
||||||
private static final int MARA_FANG = 3862; // Mara Fang
|
private static final int MARA_FANG = 3862; // Mara Fang
|
||||||
private static final int FIRST_FRAGMENT_OF_ABYSS_JEWEL = 3859; // 1st Fragment of Abyssal Jewel
|
private static final int FIRST_FRAGMENT_OF_ABYSS_JEWEL = 3859; // 1st Fragment of Abyssal Jewel
|
||||||
private static final int MARK_OF_WATCHMAN = 3864;// Mark of Watchman
|
private static final int MARK_OF_WATCHMAN = 3864; // Mark of Watchman
|
||||||
private static final int SECOND_FRAGMENT_OF_ABYSS_JEWEL = 3860; // 2nd Fragment of Abyssal Jewel
|
private static final int SECOND_FRAGMENT_OF_ABYSS_JEWEL = 3860; // 2nd Fragment of Abyssal Jewel
|
||||||
private static final int MUSFEL_FANG = 3863; // Musfel Fang
|
private static final int MUSFEL_FANG = 3863; // Musfel Fang
|
||||||
private static final int HERALD_OF_SLAYER = 3890; // Badge of slayer
|
private static final int HERALD_OF_SLAYER = 3890; // Badge of slayer
|
||||||
|
@ -133,7 +133,7 @@ public class GMViewCharacterInfo implements IClientOutgoingPacket
|
|||||||
packet.writeD(_flyRunSpd);
|
packet.writeD(_flyRunSpd);
|
||||||
packet.writeD(_flyWalkSpd);
|
packet.writeD(_flyWalkSpd);
|
||||||
packet.writeF(_moveMultiplier);
|
packet.writeF(_moveMultiplier);
|
||||||
packet.writeF(_player.getAttackSpeedMultiplier()); // 2.9);//
|
packet.writeF(_player.getAttackSpeedMultiplier()); // 2.9); //
|
||||||
packet.writeF(_player.getCollisionRadius()); // scale
|
packet.writeF(_player.getCollisionRadius()); // scale
|
||||||
packet.writeF(_player.getCollisionHeight()); // y offset ??!? fem dwarf 4033
|
packet.writeF(_player.getCollisionHeight()); // y offset ??!? fem dwarf 4033
|
||||||
packet.writeD(_player.getAppearance().getHairStyle());
|
packet.writeD(_player.getAppearance().getHairStyle());
|
||||||
|
@ -79,11 +79,11 @@ public class AteliaManager extends AbstractNpcAI
|
|||||||
private static final int HAYUK = 34060; // Hayuk Aden Vanguard
|
private static final int HAYUK = 34060; // Hayuk Aden Vanguard
|
||||||
private static final int HURAK = 34064; // Hurak Blackbird Clan Member
|
private static final int HURAK = 34064; // Hurak Blackbird Clan Member
|
||||||
// Location Stronghold II
|
// Location Stronghold II
|
||||||
private static final Location HURAK_LOC = new Location(-41766, 50416, -2032, 54353);//
|
private static final Location HURAK_LOC = new Location(-41766, 50416, -2032, 54353); //
|
||||||
private static final Location HAYUK_LOC = new Location(-41879, 50389, -2032, 55286);//
|
private static final Location HAYUK_LOC = new Location(-41879, 50389, -2032, 55286); //
|
||||||
// Flag Stronghold II
|
// Flag Stronghold II
|
||||||
private static final Location FLAG_3_LOC = new Location(-41962, 50182, -1988, 36407);//
|
private static final Location FLAG_3_LOC = new Location(-41962, 50182, -1988, 36407); //
|
||||||
private static final Location FLAG_4_LOC = new Location(-41631, 50246, -2001, 54421);//
|
private static final Location FLAG_4_LOC = new Location(-41631, 50246, -2001, 54421); //
|
||||||
// Npcs Stronghold III
|
// Npcs Stronghold III
|
||||||
private static final int ELISE = 34061; // Elise Aden Vanguard
|
private static final int ELISE = 34061; // Elise Aden Vanguard
|
||||||
private static final int LAFFIAN = 34065; // Laffian Blackbird Clan Member
|
private static final int LAFFIAN = 34065; // Laffian Blackbird Clan Member
|
||||||
|
@ -53,7 +53,7 @@ public class Q00337_AudienceWithTheLandDragon extends Quest
|
|||||||
private static final int REMAINS_OF_SACRIFIED = 3857; // Remains of Sacrifice
|
private static final int REMAINS_OF_SACRIFIED = 3857; // Remains of Sacrifice
|
||||||
private static final int MARA_FANG = 3862; // Mara Fang
|
private static final int MARA_FANG = 3862; // Mara Fang
|
||||||
private static final int FIRST_FRAGMENT_OF_ABYSS_JEWEL = 3859; // 1st Fragment of Abyssal Jewel
|
private static final int FIRST_FRAGMENT_OF_ABYSS_JEWEL = 3859; // 1st Fragment of Abyssal Jewel
|
||||||
private static final int MARK_OF_WATCHMAN = 3864;// Mark of Watchman
|
private static final int MARK_OF_WATCHMAN = 3864; // Mark of Watchman
|
||||||
private static final int SECOND_FRAGMENT_OF_ABYSS_JEWEL = 3860; // 2nd Fragment of Abyssal Jewel
|
private static final int SECOND_FRAGMENT_OF_ABYSS_JEWEL = 3860; // 2nd Fragment of Abyssal Jewel
|
||||||
private static final int MUSFEL_FANG = 3863; // Musfel Fang
|
private static final int MUSFEL_FANG = 3863; // Musfel Fang
|
||||||
private static final int HERALD_OF_SLAYER = 3890; // Badge of slayer
|
private static final int HERALD_OF_SLAYER = 3890; // Badge of slayer
|
||||||
|
@ -129,7 +129,7 @@ public class GMViewCharacterInfo implements IClientOutgoingPacket
|
|||||||
packet.writeD(_flyRunSpd);
|
packet.writeD(_flyRunSpd);
|
||||||
packet.writeD(_flyWalkSpd);
|
packet.writeD(_flyWalkSpd);
|
||||||
packet.writeF(_moveMultiplier);
|
packet.writeF(_moveMultiplier);
|
||||||
packet.writeF(_player.getAttackSpeedMultiplier()); // 2.9);//
|
packet.writeF(_player.getAttackSpeedMultiplier()); // 2.9); //
|
||||||
packet.writeF(_player.getCollisionRadius()); // scale
|
packet.writeF(_player.getCollisionRadius()); // scale
|
||||||
packet.writeF(_player.getCollisionHeight()); // y offset ??!? fem dwarf 4033
|
packet.writeF(_player.getCollisionHeight()); // y offset ??!? fem dwarf 4033
|
||||||
packet.writeD(_player.getAppearance().getHairStyle());
|
packet.writeD(_player.getAppearance().getHairStyle());
|
||||||
|
@ -79,11 +79,11 @@ public class AteliaManager extends AbstractNpcAI
|
|||||||
private static final int HAYUK = 34060; // Hayuk Aden Vanguard
|
private static final int HAYUK = 34060; // Hayuk Aden Vanguard
|
||||||
private static final int HURAK = 34064; // Hurak Blackbird Clan Member
|
private static final int HURAK = 34064; // Hurak Blackbird Clan Member
|
||||||
// Location Stronghold II
|
// Location Stronghold II
|
||||||
private static final Location HURAK_LOC = new Location(-41766, 50416, -2032, 54353);//
|
private static final Location HURAK_LOC = new Location(-41766, 50416, -2032, 54353); //
|
||||||
private static final Location HAYUK_LOC = new Location(-41879, 50389, -2032, 55286);//
|
private static final Location HAYUK_LOC = new Location(-41879, 50389, -2032, 55286); //
|
||||||
// Flag Stronghold II
|
// Flag Stronghold II
|
||||||
private static final Location FLAG_3_LOC = new Location(-41962, 50182, -1988, 36407);//
|
private static final Location FLAG_3_LOC = new Location(-41962, 50182, -1988, 36407); //
|
||||||
private static final Location FLAG_4_LOC = new Location(-41631, 50246, -2001, 54421);//
|
private static final Location FLAG_4_LOC = new Location(-41631, 50246, -2001, 54421); //
|
||||||
// Npcs Stronghold III
|
// Npcs Stronghold III
|
||||||
private static final int ELISE = 34061; // Elise Aden Vanguard
|
private static final int ELISE = 34061; // Elise Aden Vanguard
|
||||||
private static final int LAFFIAN = 34065; // Laffian Blackbird Clan Member
|
private static final int LAFFIAN = 34065; // Laffian Blackbird Clan Member
|
||||||
|
@ -53,7 +53,7 @@ public class Q00337_AudienceWithTheLandDragon extends Quest
|
|||||||
private static final int REMAINS_OF_SACRIFIED = 3857; // Remains of Sacrifice
|
private static final int REMAINS_OF_SACRIFIED = 3857; // Remains of Sacrifice
|
||||||
private static final int MARA_FANG = 3862; // Mara Fang
|
private static final int MARA_FANG = 3862; // Mara Fang
|
||||||
private static final int FIRST_FRAGMENT_OF_ABYSS_JEWEL = 3859; // 1st Fragment of Abyssal Jewel
|
private static final int FIRST_FRAGMENT_OF_ABYSS_JEWEL = 3859; // 1st Fragment of Abyssal Jewel
|
||||||
private static final int MARK_OF_WATCHMAN = 3864;// Mark of Watchman
|
private static final int MARK_OF_WATCHMAN = 3864; // Mark of Watchman
|
||||||
private static final int SECOND_FRAGMENT_OF_ABYSS_JEWEL = 3860; // 2nd Fragment of Abyssal Jewel
|
private static final int SECOND_FRAGMENT_OF_ABYSS_JEWEL = 3860; // 2nd Fragment of Abyssal Jewel
|
||||||
private static final int MUSFEL_FANG = 3863; // Musfel Fang
|
private static final int MUSFEL_FANG = 3863; // Musfel Fang
|
||||||
private static final int HERALD_OF_SLAYER = 3890; // Badge of slayer
|
private static final int HERALD_OF_SLAYER = 3890; // Badge of slayer
|
||||||
|
@ -129,7 +129,7 @@ public class GMViewCharacterInfo implements IClientOutgoingPacket
|
|||||||
packet.writeD(_flyRunSpd);
|
packet.writeD(_flyRunSpd);
|
||||||
packet.writeD(_flyWalkSpd);
|
packet.writeD(_flyWalkSpd);
|
||||||
packet.writeF(_moveMultiplier);
|
packet.writeF(_moveMultiplier);
|
||||||
packet.writeF(_player.getAttackSpeedMultiplier()); // 2.9);//
|
packet.writeF(_player.getAttackSpeedMultiplier()); // 2.9); //
|
||||||
packet.writeF(_player.getCollisionRadius()); // scale
|
packet.writeF(_player.getCollisionRadius()); // scale
|
||||||
packet.writeF(_player.getCollisionHeight()); // y offset ??!? fem dwarf 4033
|
packet.writeF(_player.getCollisionHeight()); // y offset ??!? fem dwarf 4033
|
||||||
packet.writeD(_player.getAppearance().getHairStyle());
|
packet.writeD(_player.getAppearance().getHairStyle());
|
||||||
|
@ -79,11 +79,11 @@ public class AteliaManager extends AbstractNpcAI
|
|||||||
private static final int HAYUK = 34060; // Hayuk Aden Vanguard
|
private static final int HAYUK = 34060; // Hayuk Aden Vanguard
|
||||||
private static final int HURAK = 34064; // Hurak Blackbird Clan Member
|
private static final int HURAK = 34064; // Hurak Blackbird Clan Member
|
||||||
// Location Stronghold II
|
// Location Stronghold II
|
||||||
private static final Location HURAK_LOC = new Location(-41766, 50416, -2032, 54353);//
|
private static final Location HURAK_LOC = new Location(-41766, 50416, -2032, 54353); //
|
||||||
private static final Location HAYUK_LOC = new Location(-41879, 50389, -2032, 55286);//
|
private static final Location HAYUK_LOC = new Location(-41879, 50389, -2032, 55286); //
|
||||||
// Flag Stronghold II
|
// Flag Stronghold II
|
||||||
private static final Location FLAG_3_LOC = new Location(-41962, 50182, -1988, 36407);//
|
private static final Location FLAG_3_LOC = new Location(-41962, 50182, -1988, 36407); //
|
||||||
private static final Location FLAG_4_LOC = new Location(-41631, 50246, -2001, 54421);//
|
private static final Location FLAG_4_LOC = new Location(-41631, 50246, -2001, 54421); //
|
||||||
// Npcs Stronghold III
|
// Npcs Stronghold III
|
||||||
private static final int ELISE = 34061; // Elise Aden Vanguard
|
private static final int ELISE = 34061; // Elise Aden Vanguard
|
||||||
private static final int LAFFIAN = 34065; // Laffian Blackbird Clan Member
|
private static final int LAFFIAN = 34065; // Laffian Blackbird Clan Member
|
||||||
|
@ -53,7 +53,7 @@ public class Q00337_AudienceWithTheLandDragon extends Quest
|
|||||||
private static final int REMAINS_OF_SACRIFIED = 3857; // Remains of Sacrifice
|
private static final int REMAINS_OF_SACRIFIED = 3857; // Remains of Sacrifice
|
||||||
private static final int MARA_FANG = 3862; // Mara Fang
|
private static final int MARA_FANG = 3862; // Mara Fang
|
||||||
private static final int FIRST_FRAGMENT_OF_ABYSS_JEWEL = 3859; // 1st Fragment of Abyssal Jewel
|
private static final int FIRST_FRAGMENT_OF_ABYSS_JEWEL = 3859; // 1st Fragment of Abyssal Jewel
|
||||||
private static final int MARK_OF_WATCHMAN = 3864;// Mark of Watchman
|
private static final int MARK_OF_WATCHMAN = 3864; // Mark of Watchman
|
||||||
private static final int SECOND_FRAGMENT_OF_ABYSS_JEWEL = 3860; // 2nd Fragment of Abyssal Jewel
|
private static final int SECOND_FRAGMENT_OF_ABYSS_JEWEL = 3860; // 2nd Fragment of Abyssal Jewel
|
||||||
private static final int MUSFEL_FANG = 3863; // Musfel Fang
|
private static final int MUSFEL_FANG = 3863; // Musfel Fang
|
||||||
private static final int HERALD_OF_SLAYER = 3890; // Badge of slayer
|
private static final int HERALD_OF_SLAYER = 3890; // Badge of slayer
|
||||||
|
@ -129,7 +129,7 @@ public class GMViewCharacterInfo implements IClientOutgoingPacket
|
|||||||
packet.writeD(_flyRunSpd);
|
packet.writeD(_flyRunSpd);
|
||||||
packet.writeD(_flyWalkSpd);
|
packet.writeD(_flyWalkSpd);
|
||||||
packet.writeF(_moveMultiplier);
|
packet.writeF(_moveMultiplier);
|
||||||
packet.writeF(_player.getAttackSpeedMultiplier()); // 2.9);//
|
packet.writeF(_player.getAttackSpeedMultiplier()); // 2.9); //
|
||||||
packet.writeF(_player.getCollisionRadius()); // scale
|
packet.writeF(_player.getCollisionRadius()); // scale
|
||||||
packet.writeF(_player.getCollisionHeight()); // y offset ??!? fem dwarf 4033
|
packet.writeF(_player.getCollisionHeight()); // y offset ??!? fem dwarf 4033
|
||||||
packet.writeD(_player.getAppearance().getHairStyle());
|
packet.writeD(_player.getAppearance().getHairStyle());
|
||||||
|
@ -69,7 +69,7 @@ public class RecipeShopManageList implements IClientOutgoingPacket
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
packet.writeD(_recipes.size());// number of items in recipe book
|
packet.writeD(_recipes.size()); // number of items in recipe book
|
||||||
|
|
||||||
int i = 1;
|
int i = 1;
|
||||||
for (RecipeHolder recipe : _recipes)
|
for (RecipeHolder recipe : _recipes)
|
||||||
|
@ -79,11 +79,11 @@ public class AteliaManager extends AbstractNpcAI
|
|||||||
private static final int HAYUK = 34060; // Hayuk Aden Vanguard
|
private static final int HAYUK = 34060; // Hayuk Aden Vanguard
|
||||||
private static final int HURAK = 34064; // Hurak Blackbird Clan Member
|
private static final int HURAK = 34064; // Hurak Blackbird Clan Member
|
||||||
// Location Stronghold II
|
// Location Stronghold II
|
||||||
private static final Location HURAK_LOC = new Location(-41766, 50416, -2032, 54353);//
|
private static final Location HURAK_LOC = new Location(-41766, 50416, -2032, 54353); //
|
||||||
private static final Location HAYUK_LOC = new Location(-41879, 50389, -2032, 55286);//
|
private static final Location HAYUK_LOC = new Location(-41879, 50389, -2032, 55286); //
|
||||||
// Flag Stronghold II
|
// Flag Stronghold II
|
||||||
private static final Location FLAG_3_LOC = new Location(-41962, 50182, -1988, 36407);//
|
private static final Location FLAG_3_LOC = new Location(-41962, 50182, -1988, 36407); //
|
||||||
private static final Location FLAG_4_LOC = new Location(-41631, 50246, -2001, 54421);//
|
private static final Location FLAG_4_LOC = new Location(-41631, 50246, -2001, 54421); //
|
||||||
// Npcs Stronghold III
|
// Npcs Stronghold III
|
||||||
private static final int ELISE = 34061; // Elise Aden Vanguard
|
private static final int ELISE = 34061; // Elise Aden Vanguard
|
||||||
private static final int LAFFIAN = 34065; // Laffian Blackbird Clan Member
|
private static final int LAFFIAN = 34065; // Laffian Blackbird Clan Member
|
||||||
|
@ -53,7 +53,7 @@ public class Q00337_AudienceWithTheLandDragon extends Quest
|
|||||||
private static final int REMAINS_OF_SACRIFIED = 3857; // Remains of Sacrifice
|
private static final int REMAINS_OF_SACRIFIED = 3857; // Remains of Sacrifice
|
||||||
private static final int MARA_FANG = 3862; // Mara Fang
|
private static final int MARA_FANG = 3862; // Mara Fang
|
||||||
private static final int FIRST_FRAGMENT_OF_ABYSS_JEWEL = 3859; // 1st Fragment of Abyssal Jewel
|
private static final int FIRST_FRAGMENT_OF_ABYSS_JEWEL = 3859; // 1st Fragment of Abyssal Jewel
|
||||||
private static final int MARK_OF_WATCHMAN = 3864;// Mark of Watchman
|
private static final int MARK_OF_WATCHMAN = 3864; // Mark of Watchman
|
||||||
private static final int SECOND_FRAGMENT_OF_ABYSS_JEWEL = 3860; // 2nd Fragment of Abyssal Jewel
|
private static final int SECOND_FRAGMENT_OF_ABYSS_JEWEL = 3860; // 2nd Fragment of Abyssal Jewel
|
||||||
private static final int MUSFEL_FANG = 3863; // Musfel Fang
|
private static final int MUSFEL_FANG = 3863; // Musfel Fang
|
||||||
private static final int HERALD_OF_SLAYER = 3890; // Badge of slayer
|
private static final int HERALD_OF_SLAYER = 3890; // Badge of slayer
|
||||||
|
@ -107,11 +107,11 @@ public class Q00564_BasicMissionKartiasLabyrinthSolo extends Quest
|
|||||||
}
|
}
|
||||||
if (str.charAt(1) == '1')
|
if (str.charAt(1) == '1')
|
||||||
{
|
{
|
||||||
addFactionPoints(player, Faction.ADVENTURE_GUILD, 125);// add 125 points to ADVENTURE_GUILD Faction
|
addFactionPoints(player, Faction.ADVENTURE_GUILD, 125); // add 125 points to ADVENTURE_GUILD Faction
|
||||||
}
|
}
|
||||||
if (str.charAt(2) == '1')
|
if (str.charAt(2) == '1')
|
||||||
{
|
{
|
||||||
addFactionPoints(player, Faction.ADVENTURE_GUILD, 150);// add 150 points to ADVENTURE_GUILD Faction
|
addFactionPoints(player, Faction.ADVENTURE_GUILD, 150); // add 150 points to ADVENTURE_GUILD Faction
|
||||||
}
|
}
|
||||||
giveItems(player, SCROLL_OF_ESCAPE_KARTIAS_LABYRINTH, 1);
|
giveItems(player, SCROLL_OF_ESCAPE_KARTIAS_LABYRINTH, 1);
|
||||||
addExpAndSp(player, EXP, SP);
|
addExpAndSp(player, EXP, SP);
|
||||||
|
@ -129,7 +129,7 @@ public class GMViewCharacterInfo implements IClientOutgoingPacket
|
|||||||
packet.writeD(_flyRunSpd);
|
packet.writeD(_flyRunSpd);
|
||||||
packet.writeD(_flyWalkSpd);
|
packet.writeD(_flyWalkSpd);
|
||||||
packet.writeF(_moveMultiplier);
|
packet.writeF(_moveMultiplier);
|
||||||
packet.writeF(_player.getAttackSpeedMultiplier()); // 2.9);//
|
packet.writeF(_player.getAttackSpeedMultiplier()); // 2.9); //
|
||||||
packet.writeF(_player.getCollisionRadius()); // scale
|
packet.writeF(_player.getCollisionRadius()); // scale
|
||||||
packet.writeF(_player.getCollisionHeight()); // y offset ??!? fem dwarf 4033
|
packet.writeF(_player.getCollisionHeight()); // y offset ??!? fem dwarf 4033
|
||||||
packet.writeD(_player.getAppearance().getHairStyle());
|
packet.writeD(_player.getAppearance().getHairStyle());
|
||||||
|
@ -69,7 +69,7 @@ public class RecipeShopManageList implements IClientOutgoingPacket
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
packet.writeD(_recipes.size());// number of items in recipe book
|
packet.writeD(_recipes.size()); // number of items in recipe book
|
||||||
|
|
||||||
int i = 1;
|
int i = 1;
|
||||||
for (RecipeHolder recipe : _recipes)
|
for (RecipeHolder recipe : _recipes)
|
||||||
|
@ -79,11 +79,11 @@ public class AteliaManager extends AbstractNpcAI
|
|||||||
private static final int HAYUK = 34060; // Hayuk Aden Vanguard
|
private static final int HAYUK = 34060; // Hayuk Aden Vanguard
|
||||||
private static final int HURAK = 34064; // Hurak Blackbird Clan Member
|
private static final int HURAK = 34064; // Hurak Blackbird Clan Member
|
||||||
// Location Stronghold II
|
// Location Stronghold II
|
||||||
private static final Location HURAK_LOC = new Location(-41766, 50416, -2032, 54353);//
|
private static final Location HURAK_LOC = new Location(-41766, 50416, -2032, 54353); //
|
||||||
private static final Location HAYUK_LOC = new Location(-41879, 50389, -2032, 55286);//
|
private static final Location HAYUK_LOC = new Location(-41879, 50389, -2032, 55286); //
|
||||||
// Flag Stronghold II
|
// Flag Stronghold II
|
||||||
private static final Location FLAG_3_LOC = new Location(-41962, 50182, -1988, 36407);//
|
private static final Location FLAG_3_LOC = new Location(-41962, 50182, -1988, 36407); //
|
||||||
private static final Location FLAG_4_LOC = new Location(-41631, 50246, -2001, 54421);//
|
private static final Location FLAG_4_LOC = new Location(-41631, 50246, -2001, 54421); //
|
||||||
// Npcs Stronghold III
|
// Npcs Stronghold III
|
||||||
private static final int ELISE = 34061; // Elise Aden Vanguard
|
private static final int ELISE = 34061; // Elise Aden Vanguard
|
||||||
private static final int LAFFIAN = 34065; // Laffian Blackbird Clan Member
|
private static final int LAFFIAN = 34065; // Laffian Blackbird Clan Member
|
||||||
|
@ -53,7 +53,7 @@ public class Q00337_AudienceWithTheLandDragon extends Quest
|
|||||||
private static final int REMAINS_OF_SACRIFIED = 3857; // Remains of Sacrifice
|
private static final int REMAINS_OF_SACRIFIED = 3857; // Remains of Sacrifice
|
||||||
private static final int MARA_FANG = 3862; // Mara Fang
|
private static final int MARA_FANG = 3862; // Mara Fang
|
||||||
private static final int FIRST_FRAGMENT_OF_ABYSS_JEWEL = 3859; // 1st Fragment of Abyssal Jewel
|
private static final int FIRST_FRAGMENT_OF_ABYSS_JEWEL = 3859; // 1st Fragment of Abyssal Jewel
|
||||||
private static final int MARK_OF_WATCHMAN = 3864;// Mark of Watchman
|
private static final int MARK_OF_WATCHMAN = 3864; // Mark of Watchman
|
||||||
private static final int SECOND_FRAGMENT_OF_ABYSS_JEWEL = 3860; // 2nd Fragment of Abyssal Jewel
|
private static final int SECOND_FRAGMENT_OF_ABYSS_JEWEL = 3860; // 2nd Fragment of Abyssal Jewel
|
||||||
private static final int MUSFEL_FANG = 3863; // Musfel Fang
|
private static final int MUSFEL_FANG = 3863; // Musfel Fang
|
||||||
private static final int HERALD_OF_SLAYER = 3890; // Badge of slayer
|
private static final int HERALD_OF_SLAYER = 3890; // Badge of slayer
|
||||||
|
@ -107,11 +107,11 @@ public class Q00564_BasicMissionKartiasLabyrinthSolo extends Quest
|
|||||||
}
|
}
|
||||||
if (str.charAt(1) == '1')
|
if (str.charAt(1) == '1')
|
||||||
{
|
{
|
||||||
addFactionPoints(player, Faction.ADVENTURE_GUILD, 125);// add 125 points to ADVENTURE_GUILD Faction
|
addFactionPoints(player, Faction.ADVENTURE_GUILD, 125); // add 125 points to ADVENTURE_GUILD Faction
|
||||||
}
|
}
|
||||||
if (str.charAt(2) == '1')
|
if (str.charAt(2) == '1')
|
||||||
{
|
{
|
||||||
addFactionPoints(player, Faction.ADVENTURE_GUILD, 150);// add 150 points to ADVENTURE_GUILD Faction
|
addFactionPoints(player, Faction.ADVENTURE_GUILD, 150); // add 150 points to ADVENTURE_GUILD Faction
|
||||||
}
|
}
|
||||||
giveItems(player, SCROLL_OF_ESCAPE_KARTIAS_LABYRINTH, 1);
|
giveItems(player, SCROLL_OF_ESCAPE_KARTIAS_LABYRINTH, 1);
|
||||||
addExpAndSp(player, EXP, SP);
|
addExpAndSp(player, EXP, SP);
|
||||||
|
@ -129,7 +129,7 @@ public class GMViewCharacterInfo implements IClientOutgoingPacket
|
|||||||
packet.writeD(_flyRunSpd);
|
packet.writeD(_flyRunSpd);
|
||||||
packet.writeD(_flyWalkSpd);
|
packet.writeD(_flyWalkSpd);
|
||||||
packet.writeF(_moveMultiplier);
|
packet.writeF(_moveMultiplier);
|
||||||
packet.writeF(_player.getAttackSpeedMultiplier()); // 2.9);//
|
packet.writeF(_player.getAttackSpeedMultiplier()); // 2.9); //
|
||||||
packet.writeF(_player.getCollisionRadius()); // scale
|
packet.writeF(_player.getCollisionRadius()); // scale
|
||||||
packet.writeF(_player.getCollisionHeight()); // y offset ??!? fem dwarf 4033
|
packet.writeF(_player.getCollisionHeight()); // y offset ??!? fem dwarf 4033
|
||||||
packet.writeD(_player.getAppearance().getHairStyle());
|
packet.writeD(_player.getAppearance().getHairStyle());
|
||||||
|
@ -69,7 +69,7 @@ public class RecipeShopManageList implements IClientOutgoingPacket
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
packet.writeD(_recipes.size());// number of items in recipe book
|
packet.writeD(_recipes.size()); // number of items in recipe book
|
||||||
|
|
||||||
int i = 1;
|
int i = 1;
|
||||||
for (RecipeHolder recipe : _recipes)
|
for (RecipeHolder recipe : _recipes)
|
||||||
|
@ -79,11 +79,11 @@ public class AteliaManager extends AbstractNpcAI
|
|||||||
private static final int HAYUK = 34060; // Hayuk Aden Vanguard
|
private static final int HAYUK = 34060; // Hayuk Aden Vanguard
|
||||||
private static final int HURAK = 34064; // Hurak Blackbird Clan Member
|
private static final int HURAK = 34064; // Hurak Blackbird Clan Member
|
||||||
// Location Stronghold II
|
// Location Stronghold II
|
||||||
private static final Location HURAK_LOC = new Location(-41766, 50416, -2032, 54353);//
|
private static final Location HURAK_LOC = new Location(-41766, 50416, -2032, 54353); //
|
||||||
private static final Location HAYUK_LOC = new Location(-41879, 50389, -2032, 55286);//
|
private static final Location HAYUK_LOC = new Location(-41879, 50389, -2032, 55286); //
|
||||||
// Flag Stronghold II
|
// Flag Stronghold II
|
||||||
private static final Location FLAG_3_LOC = new Location(-41962, 50182, -1988, 36407);//
|
private static final Location FLAG_3_LOC = new Location(-41962, 50182, -1988, 36407); //
|
||||||
private static final Location FLAG_4_LOC = new Location(-41631, 50246, -2001, 54421);//
|
private static final Location FLAG_4_LOC = new Location(-41631, 50246, -2001, 54421); //
|
||||||
// Npcs Stronghold III
|
// Npcs Stronghold III
|
||||||
private static final int ELISE = 34061; // Elise Aden Vanguard
|
private static final int ELISE = 34061; // Elise Aden Vanguard
|
||||||
private static final int LAFFIAN = 34065; // Laffian Blackbird Clan Member
|
private static final int LAFFIAN = 34065; // Laffian Blackbird Clan Member
|
||||||
|
@ -53,7 +53,7 @@ public class Q00337_AudienceWithTheLandDragon extends Quest
|
|||||||
private static final int REMAINS_OF_SACRIFIED = 3857; // Remains of Sacrifice
|
private static final int REMAINS_OF_SACRIFIED = 3857; // Remains of Sacrifice
|
||||||
private static final int MARA_FANG = 3862; // Mara Fang
|
private static final int MARA_FANG = 3862; // Mara Fang
|
||||||
private static final int FIRST_FRAGMENT_OF_ABYSS_JEWEL = 3859; // 1st Fragment of Abyssal Jewel
|
private static final int FIRST_FRAGMENT_OF_ABYSS_JEWEL = 3859; // 1st Fragment of Abyssal Jewel
|
||||||
private static final int MARK_OF_WATCHMAN = 3864;// Mark of Watchman
|
private static final int MARK_OF_WATCHMAN = 3864; // Mark of Watchman
|
||||||
private static final int SECOND_FRAGMENT_OF_ABYSS_JEWEL = 3860; // 2nd Fragment of Abyssal Jewel
|
private static final int SECOND_FRAGMENT_OF_ABYSS_JEWEL = 3860; // 2nd Fragment of Abyssal Jewel
|
||||||
private static final int MUSFEL_FANG = 3863; // Musfel Fang
|
private static final int MUSFEL_FANG = 3863; // Musfel Fang
|
||||||
private static final int HERALD_OF_SLAYER = 3890; // Badge of slayer
|
private static final int HERALD_OF_SLAYER = 3890; // Badge of slayer
|
||||||
|
@ -107,11 +107,11 @@ public class Q00564_BasicMissionKartiasLabyrinthSolo extends Quest
|
|||||||
}
|
}
|
||||||
if (str.charAt(1) == '1')
|
if (str.charAt(1) == '1')
|
||||||
{
|
{
|
||||||
addFactionPoints(player, Faction.ADVENTURE_GUILD, 125);// add 125 points to ADVENTURE_GUILD Faction
|
addFactionPoints(player, Faction.ADVENTURE_GUILD, 125); // add 125 points to ADVENTURE_GUILD Faction
|
||||||
}
|
}
|
||||||
if (str.charAt(2) == '1')
|
if (str.charAt(2) == '1')
|
||||||
{
|
{
|
||||||
addFactionPoints(player, Faction.ADVENTURE_GUILD, 150);// add 150 points to ADVENTURE_GUILD Faction
|
addFactionPoints(player, Faction.ADVENTURE_GUILD, 150); // add 150 points to ADVENTURE_GUILD Faction
|
||||||
}
|
}
|
||||||
giveItems(player, SCROLL_OF_ESCAPE_KARTIAS_LABYRINTH, 1);
|
giveItems(player, SCROLL_OF_ESCAPE_KARTIAS_LABYRINTH, 1);
|
||||||
addExpAndSp(player, EXP, SP);
|
addExpAndSp(player, EXP, SP);
|
||||||
|
@ -129,7 +129,7 @@ public class GMViewCharacterInfo implements IClientOutgoingPacket
|
|||||||
packet.writeD(_flyRunSpd);
|
packet.writeD(_flyRunSpd);
|
||||||
packet.writeD(_flyWalkSpd);
|
packet.writeD(_flyWalkSpd);
|
||||||
packet.writeF(_moveMultiplier);
|
packet.writeF(_moveMultiplier);
|
||||||
packet.writeF(_player.getAttackSpeedMultiplier()); // 2.9);//
|
packet.writeF(_player.getAttackSpeedMultiplier()); // 2.9); //
|
||||||
packet.writeF(_player.getCollisionRadius()); // scale
|
packet.writeF(_player.getCollisionRadius()); // scale
|
||||||
packet.writeF(_player.getCollisionHeight()); // y offset ??!? fem dwarf 4033
|
packet.writeF(_player.getCollisionHeight()); // y offset ??!? fem dwarf 4033
|
||||||
packet.writeD(_player.getAppearance().getHairStyle());
|
packet.writeD(_player.getAppearance().getHairStyle());
|
||||||
|
@ -69,7 +69,7 @@ public class RecipeShopManageList implements IClientOutgoingPacket
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
packet.writeD(_recipes.size());// number of items in recipe book
|
packet.writeD(_recipes.size()); // number of items in recipe book
|
||||||
|
|
||||||
int i = 1;
|
int i = 1;
|
||||||
for (RecipeHolder recipe : _recipes)
|
for (RecipeHolder recipe : _recipes)
|
||||||
|
@ -79,11 +79,11 @@ public class AteliaManager extends AbstractNpcAI
|
|||||||
private static final int HAYUK = 34060; // Hayuk Aden Vanguard
|
private static final int HAYUK = 34060; // Hayuk Aden Vanguard
|
||||||
private static final int HURAK = 34064; // Hurak Blackbird Clan Member
|
private static final int HURAK = 34064; // Hurak Blackbird Clan Member
|
||||||
// Location Stronghold II
|
// Location Stronghold II
|
||||||
private static final Location HURAK_LOC = new Location(-41766, 50416, -2032, 54353);//
|
private static final Location HURAK_LOC = new Location(-41766, 50416, -2032, 54353); //
|
||||||
private static final Location HAYUK_LOC = new Location(-41879, 50389, -2032, 55286);//
|
private static final Location HAYUK_LOC = new Location(-41879, 50389, -2032, 55286); //
|
||||||
// Flag Stronghold II
|
// Flag Stronghold II
|
||||||
private static final Location FLAG_3_LOC = new Location(-41962, 50182, -1988, 36407);//
|
private static final Location FLAG_3_LOC = new Location(-41962, 50182, -1988, 36407); //
|
||||||
private static final Location FLAG_4_LOC = new Location(-41631, 50246, -2001, 54421);//
|
private static final Location FLAG_4_LOC = new Location(-41631, 50246, -2001, 54421); //
|
||||||
// Npcs Stronghold III
|
// Npcs Stronghold III
|
||||||
private static final int ELISE = 34061; // Elise Aden Vanguard
|
private static final int ELISE = 34061; // Elise Aden Vanguard
|
||||||
private static final int LAFFIAN = 34065; // Laffian Blackbird Clan Member
|
private static final int LAFFIAN = 34065; // Laffian Blackbird Clan Member
|
||||||
|
@ -53,7 +53,7 @@ public class Q00337_AudienceWithTheLandDragon extends Quest
|
|||||||
private static final int REMAINS_OF_SACRIFIED = 3857; // Remains of Sacrifice
|
private static final int REMAINS_OF_SACRIFIED = 3857; // Remains of Sacrifice
|
||||||
private static final int MARA_FANG = 3862; // Mara Fang
|
private static final int MARA_FANG = 3862; // Mara Fang
|
||||||
private static final int FIRST_FRAGMENT_OF_ABYSS_JEWEL = 3859; // 1st Fragment of Abyssal Jewel
|
private static final int FIRST_FRAGMENT_OF_ABYSS_JEWEL = 3859; // 1st Fragment of Abyssal Jewel
|
||||||
private static final int MARK_OF_WATCHMAN = 3864;// Mark of Watchman
|
private static final int MARK_OF_WATCHMAN = 3864; // Mark of Watchman
|
||||||
private static final int SECOND_FRAGMENT_OF_ABYSS_JEWEL = 3860; // 2nd Fragment of Abyssal Jewel
|
private static final int SECOND_FRAGMENT_OF_ABYSS_JEWEL = 3860; // 2nd Fragment of Abyssal Jewel
|
||||||
private static final int MUSFEL_FANG = 3863; // Musfel Fang
|
private static final int MUSFEL_FANG = 3863; // Musfel Fang
|
||||||
private static final int HERALD_OF_SLAYER = 3890; // Badge of slayer
|
private static final int HERALD_OF_SLAYER = 3890; // Badge of slayer
|
||||||
|
@ -107,11 +107,11 @@ public class Q00564_BasicMissionKartiasLabyrinthSolo extends Quest
|
|||||||
}
|
}
|
||||||
if (str.charAt(1) == '1')
|
if (str.charAt(1) == '1')
|
||||||
{
|
{
|
||||||
addFactionPoints(player, Faction.ADVENTURE_GUILD, 125);// add 125 points to ADVENTURE_GUILD Faction
|
addFactionPoints(player, Faction.ADVENTURE_GUILD, 125); // add 125 points to ADVENTURE_GUILD Faction
|
||||||
}
|
}
|
||||||
if (str.charAt(2) == '1')
|
if (str.charAt(2) == '1')
|
||||||
{
|
{
|
||||||
addFactionPoints(player, Faction.ADVENTURE_GUILD, 150);// add 150 points to ADVENTURE_GUILD Faction
|
addFactionPoints(player, Faction.ADVENTURE_GUILD, 150); // add 150 points to ADVENTURE_GUILD Faction
|
||||||
}
|
}
|
||||||
giveItems(player, SCROLL_OF_ESCAPE_KARTIAS_LABYRINTH, 1);
|
giveItems(player, SCROLL_OF_ESCAPE_KARTIAS_LABYRINTH, 1);
|
||||||
addExpAndSp(player, EXP, SP);
|
addExpAndSp(player, EXP, SP);
|
||||||
|
@ -129,7 +129,7 @@ public class GMViewCharacterInfo implements IClientOutgoingPacket
|
|||||||
packet.writeD(_flyRunSpd);
|
packet.writeD(_flyRunSpd);
|
||||||
packet.writeD(_flyWalkSpd);
|
packet.writeD(_flyWalkSpd);
|
||||||
packet.writeF(_moveMultiplier);
|
packet.writeF(_moveMultiplier);
|
||||||
packet.writeF(_player.getAttackSpeedMultiplier()); // 2.9);//
|
packet.writeF(_player.getAttackSpeedMultiplier()); // 2.9); //
|
||||||
packet.writeF(_player.getCollisionRadius()); // scale
|
packet.writeF(_player.getCollisionRadius()); // scale
|
||||||
packet.writeF(_player.getCollisionHeight()); // y offset ??!? fem dwarf 4033
|
packet.writeF(_player.getCollisionHeight()); // y offset ??!? fem dwarf 4033
|
||||||
packet.writeD(_player.getAppearance().getHairStyle());
|
packet.writeD(_player.getAppearance().getHairStyle());
|
||||||
|
@ -69,7 +69,7 @@ public class RecipeShopManageList implements IClientOutgoingPacket
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
packet.writeD(_recipes.size());// number of items in recipe book
|
packet.writeD(_recipes.size()); // number of items in recipe book
|
||||||
|
|
||||||
int i = 1;
|
int i = 1;
|
||||||
for (RecipeHolder recipe : _recipes)
|
for (RecipeHolder recipe : _recipes)
|
||||||
|
@ -40,7 +40,7 @@ public class Chests extends Quest
|
|||||||
18298,21671,21694,21717,21740,21763,21786,21801,21802,21803,21804,
|
18298,21671,21694,21717,21740,21763,21786,21801,21802,21803,21804,
|
||||||
21805,21806,21807,21808,21809,21810,21811,21812,21813,21814,21815,
|
21805,21806,21807,21808,21809,21810,21811,21812,21813,21814,21815,
|
||||||
21816,21817,21818,21819,21820,21821,21822
|
21816,21817,21818,21819,21820,21821,21822
|
||||||
};// @formatter:on
|
}; // @formatter:on
|
||||||
// Skill
|
// Skill
|
||||||
private static final int SKILL_DELUXE_KEY = 2229;
|
private static final int SKILL_DELUXE_KEY = 2229;
|
||||||
// Misc
|
// Misc
|
||||||
|
@ -94,7 +94,7 @@ public class Q334_TheWishingPotion extends Quest
|
|||||||
{3, 0, TYRANT_KINGPIN, 0, TYRANTS_CHITIN_ID, 1, 50, 1},
|
{3, 0, TYRANT_KINGPIN, 0, TYRANTS_CHITIN_ID, 1, 50, 1},
|
||||||
{3, 0, TURAK_BUGBEAR, 0, BUGBEAR_BLOOD_ID, 1, 15, 1},
|
{3, 0, TURAK_BUGBEAR, 0, BUGBEAR_BLOOD_ID, 1, 15, 1},
|
||||||
{3, 0, TURAK_BUGBEAR_WARRIOR, 0, BUGBEAR_BLOOD_ID, 1, 25, 1}
|
{3, 0, TURAK_BUGBEAR_WARRIOR, 0, BUGBEAR_BLOOD_ID, 1, 25, 1}
|
||||||
};// @formatter:on
|
}; // @formatter:on
|
||||||
|
|
||||||
public Q334_TheWishingPotion()
|
public Q334_TheWishingPotion()
|
||||||
{
|
{
|
||||||
|
@ -232,12 +232,12 @@ public class MapRegionTable
|
|||||||
|
|
||||||
public int getMapRegionX(int posX)
|
public int getMapRegionX(int posX)
|
||||||
{
|
{
|
||||||
return (posX >> 15) + 4;// + centerTileX;
|
return (posX >> 15) + 4; // + centerTileX;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getMapRegionY(int posY)
|
public int getMapRegionY(int posY)
|
||||||
{
|
{
|
||||||
return (posY >> 15) + 10;// + centerTileX;
|
return (posY >> 15) + 10; // + centerTileX;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getAreaCastle(Creature creature)
|
public int getAreaCastle(Creature creature)
|
||||||
@ -250,7 +250,7 @@ public class MapRegionTable
|
|||||||
case 0:
|
case 0:
|
||||||
{
|
{
|
||||||
castle = 1;
|
castle = 1;
|
||||||
break;// Talking Island Village
|
break; // Talking Island Village
|
||||||
}
|
}
|
||||||
case 1:
|
case 1:
|
||||||
{
|
{
|
||||||
@ -446,7 +446,7 @@ public class MapRegionTable
|
|||||||
case 16:
|
case 16:
|
||||||
{
|
{
|
||||||
nearestTown = "Town of Shuttgart";
|
nearestTown = "Town of Shuttgart";
|
||||||
break; // //TODO@ (Check mapregion table)[Luno]
|
break; // TODO: (Check mapregion table)[Luno]
|
||||||
}
|
}
|
||||||
case 18:
|
case 18:
|
||||||
{
|
{
|
||||||
|
@ -40,7 +40,7 @@ public class CustomWorldHandler
|
|||||||
// Rebirth's skills must be actived only on main class
|
// Rebirth's skills must be actived only on main class
|
||||||
if (!player.isSubClassActive())
|
if (!player.isSubClassActive())
|
||||||
{
|
{
|
||||||
Rebirth.getInstance().grantRebirthSkills(player);// Rebirth Caller - if player has any skills, they will be granted them.
|
Rebirth.getInstance().grantRebirthSkills(player); // Rebirth Caller - if player has any skills, they will be granted them.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1390,7 +1390,7 @@ public class Clan
|
|||||||
public class RankPrivs
|
public class RankPrivs
|
||||||
{
|
{
|
||||||
private final int _rankId;
|
private final int _rankId;
|
||||||
private final int _party;//
|
private final int _party; //
|
||||||
private int _rankPrivs;
|
private int _rankPrivs;
|
||||||
|
|
||||||
public RankPrivs(int rank, int party, int privs)
|
public RankPrivs(int rank, int party, int privs)
|
||||||
|
@ -93,7 +93,7 @@ public class Rebirth
|
|||||||
// Returns the skill based on next Birth and if isMage.
|
// Returns the skill based on next Birth and if isMage.
|
||||||
Skill skill = getRebirthSkill((currBirth + 1), isMage);
|
Skill skill = getRebirthSkill((currBirth + 1), isMage);
|
||||||
|
|
||||||
String icon = "" + skill.getId();// Returns the skill's id.
|
String icon = "" + skill.getId(); // Returns the skill's id.
|
||||||
|
|
||||||
// Incase the skill is only 3 digits.
|
// Incase the skill is only 3 digits.
|
||||||
if (icon.length() < 4)
|
if (icon.length() < 4)
|
||||||
|
@ -1182,14 +1182,14 @@ public class CTF implements EventTask
|
|||||||
finishEvent();
|
finishEvent();
|
||||||
|
|
||||||
LOGGER.info(_eventName + ": waiting... delay for final messages ");
|
LOGGER.info(_eventName + ": waiting... delay for final messages ");
|
||||||
waiter(60000);// just a give a delay delay for final messages
|
waiter(60000); // just a give a delay delay for final messages
|
||||||
sendFinalMessages();
|
sendFinalMessages();
|
||||||
|
|
||||||
if (!_started && !_aborted)
|
if (!_started && !_aborted)
|
||||||
{ // if is not already started and it's not aborted
|
{ // if is not already started and it's not aborted
|
||||||
|
|
||||||
LOGGER.info(_eventName + ": waiting.....delay for restart event " + _intervalBetweenMatches + " minutes.");
|
LOGGER.info(_eventName + ": waiting.....delay for restart event " + _intervalBetweenMatches + " minutes.");
|
||||||
waiter(60000);// just a give a delay to next restart
|
waiter(60000); // just a give a delay to next restart
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -2140,7 +2140,7 @@ public class CTF implements EventTask
|
|||||||
{
|
{
|
||||||
if (_teams.size() >= 2)
|
if (_teams.size() >= 2)
|
||||||
{
|
{
|
||||||
player.setTeam(0);// clear aura :P
|
player.setTeam(0); // clear aura :P
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
player.broadcastUserInfo();
|
player.broadcastUserInfo();
|
||||||
|
@ -2038,7 +2038,7 @@ public class TvT implements EventTask
|
|||||||
{
|
{
|
||||||
if (_teams.size() >= 2)
|
if (_teams.size() >= 2)
|
||||||
{
|
{
|
||||||
player.setTeam(0);// clear aura :P
|
player.setTeam(0); // clear aura :P
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
player.broadcastUserInfo();
|
player.broadcastUserInfo();
|
||||||
|
@ -551,7 +551,7 @@ public class BanditStrongholdSiege extends ClanHallSiege
|
|||||||
final Calendar siegeStart = Calendar.getInstance();
|
final Calendar siegeStart = Calendar.getInstance();
|
||||||
siegeStart.setTimeInMillis(getSiegeDate().getTimeInMillis());
|
siegeStart.setTimeInMillis(getSiegeDate().getTimeInMillis());
|
||||||
final long registerTimeRemaining = siegeStart.getTimeInMillis() - System.currentTimeMillis();
|
final long registerTimeRemaining = siegeStart.getTimeInMillis() - System.currentTimeMillis();
|
||||||
siegeStart.add(Calendar.MINUTE, 60);// ////////////////////HOUR
|
siegeStart.add(Calendar.MINUTE, 60); // ////////////////////HOUR
|
||||||
final long siegeTimeRemaining = siegeStart.getTimeInMillis() - System.currentTimeMillis();
|
final long siegeTimeRemaining = siegeStart.getTimeInMillis() - System.currentTimeMillis();
|
||||||
long remaining = registerTimeRemaining;
|
long remaining = registerTimeRemaining;
|
||||||
if (registerTimeRemaining <= 0)
|
if (registerTimeRemaining <= 0)
|
||||||
|
@ -578,7 +578,7 @@ public class GamePacketHandler implements IPacketHandler<GameClient>, IClientFac
|
|||||||
}
|
}
|
||||||
case 0x6b: // send when talking to trainer npc, to show list of available skills
|
case 0x6b: // send when talking to trainer npc, to show list of available skills
|
||||||
{
|
{
|
||||||
msg = new RequestAquireSkillInfo();// --> [s] 0xa4;
|
msg = new RequestAquireSkillInfo(); // --> [s] 0xa4;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 0x6c: // send when a skill to be learned is selected
|
case 0x6c: // send when a skill to be learned is selected
|
||||||
|
@ -120,10 +120,10 @@ public class CharacterCreate extends GameClientPacket
|
|||||||
final int objectId = IdFactory.getInstance().getNextId();
|
final int objectId = IdFactory.getInstance().getNextId();
|
||||||
newChar = PlayerInstance.create(objectId, template, getClient().getAccountName(), _name, _hairStyle, _hairColor, _face, _sex != 0);
|
newChar = PlayerInstance.create(objectId, template, getClient().getAccountName(), _name, _hairStyle, _hairColor, _face, _sex != 0);
|
||||||
|
|
||||||
newChar.setCurrentHp(newChar.getMaxHp());// L2Off like
|
newChar.setCurrentHp(newChar.getMaxHp()); // L2Off like
|
||||||
// newChar.setCurrentCp(template.baseCpMax);
|
// newChar.setCurrentCp(template.baseCpMax);
|
||||||
newChar.setCurrentCp(0); // L2Off like
|
newChar.setCurrentCp(0); // L2Off like
|
||||||
newChar.setCurrentMp(newChar.getMaxMp());// L2Off like
|
newChar.setCurrentMp(newChar.getMaxMp()); // L2Off like
|
||||||
// newChar.setMaxLoad(template.baseLoad);
|
// newChar.setMaxLoad(template.baseLoad);
|
||||||
|
|
||||||
// send acknowledgement
|
// send acknowledgement
|
||||||
|
@ -92,13 +92,13 @@ public class RequestBlock extends GameClientPacket
|
|||||||
}
|
}
|
||||||
case ALLBLOCK:
|
case ALLBLOCK:
|
||||||
{
|
{
|
||||||
player.sendPacket(SystemMessageId.MESSAGE_REFUSAL_MODE);// Update by rocknow
|
player.sendPacket(SystemMessageId.MESSAGE_REFUSAL_MODE); // Update by rocknow
|
||||||
BlockList.setBlockAll(player, true);
|
BlockList.setBlockAll(player, true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case ALLUNBLOCK:
|
case ALLUNBLOCK:
|
||||||
{
|
{
|
||||||
player.sendPacket(SystemMessageId.MESSAGE_ACCEPTANCE_MODE);// Update by rocknow
|
player.sendPacket(SystemMessageId.MESSAGE_ACCEPTANCE_MODE); // Update by rocknow
|
||||||
BlockList.setBlockAll(player, false);
|
BlockList.setBlockAll(player, false);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ public class RequestGetItemFromPet extends GameClientPacket
|
|||||||
{
|
{
|
||||||
_objectId = readD();
|
_objectId = readD();
|
||||||
_amount = readD();
|
_amount = readD();
|
||||||
_unknown = readD();// = 0 for most trades
|
_unknown = readD(); // = 0 for most trades
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -201,7 +201,7 @@ public class RequestRestartPoint extends GameClientPacket
|
|||||||
{
|
{
|
||||||
if ((player.getKarma() > 0) && Config.ALT_KARMA_TELEPORT_TO_FLORAN)
|
if ((player.getKarma() > 0) && Config.ALT_KARMA_TELEPORT_TO_FLORAN)
|
||||||
{
|
{
|
||||||
loc = new Location(17836, 170178, -3507);// Floran Village
|
loc = new Location(17836, 170178, -3507); // Floran Village
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
loc = MapRegionTable.getInstance().getTeleToLocation(player, MapRegionTable.TeleportWhereType.Town);
|
loc = MapRegionTable.getInstance().getTeleToLocation(player, MapRegionTable.TeleportWhereType.Town);
|
||||||
|
@ -48,8 +48,8 @@ public class SetPrivateStoreListBuy extends GameClientPacket
|
|||||||
final int itemId = readD();
|
final int itemId = readD();
|
||||||
_items[(x * 4) + 0] = itemId;
|
_items[(x * 4) + 0] = itemId;
|
||||||
_items[((x * 4) + 3)] = readH();
|
_items[((x * 4) + 3)] = readH();
|
||||||
// readH();//it's the enchant value, but the interlude client has a bug, so it dnt send back the correct enchant value
|
// readH(); // it's the enchant value, but the interlude client has a bug, so it dnt send back the correct enchant value
|
||||||
readH();// TODO analyse this
|
readH(); // TODO analyse this
|
||||||
final long cnt = readD();
|
final long cnt = readD();
|
||||||
|
|
||||||
if ((cnt > Integer.MAX_VALUE) || (cnt < 0))
|
if ((cnt > Integer.MAX_VALUE) || (cnt < 0))
|
||||||
|
@ -102,7 +102,7 @@ public class CustomNpcInfo extends GameServerPacket
|
|||||||
writeD((int) _activeChar.getStatus().getCurrentCp());
|
writeD((int) _activeChar.getStatus().getCurrentCp());
|
||||||
writeC(_activeChar.getCustomNpcInstance().getEnchantWeapon());
|
writeC(_activeChar.getCustomNpcInstance().getEnchantWeapon());
|
||||||
writeC(0x00);
|
writeC(0x00);
|
||||||
writeD(0);// clan crest
|
writeD(0); // clan crest
|
||||||
writeC(_activeChar.getCustomNpcInstance().isNoble() ? 1 : 0);
|
writeC(_activeChar.getCustomNpcInstance().isNoble() ? 1 : 0);
|
||||||
writeC(_activeChar.getCustomNpcInstance().isHero() ? 1 : 0);
|
writeC(_activeChar.getCustomNpcInstance().isHero() ? 1 : 0);
|
||||||
writeC(0);
|
writeC(0);
|
||||||
|
@ -176,7 +176,7 @@ public class GMViewCharacterInfo extends GameServerPacket
|
|||||||
writeD(_runSpd);
|
writeD(_runSpd);
|
||||||
writeD(_walkSpd);
|
writeD(_walkSpd);
|
||||||
writeF(moveMultiplier);
|
writeF(moveMultiplier);
|
||||||
writeF(_player.getAttackSpeedMultiplier()); // 2.9);//
|
writeF(_player.getAttackSpeedMultiplier()); // 2.9); //
|
||||||
writeF(_player.getTemplate().collisionRadius); // scale
|
writeF(_player.getTemplate().collisionRadius); // scale
|
||||||
writeF(_player.getTemplate().collisionHeight); // y offset ??!? fem dwarf 4033
|
writeF(_player.getTemplate().collisionHeight); // y offset ??!? fem dwarf 4033
|
||||||
writeD(_player.getAppearance().getHairStyle());
|
writeD(_player.getAppearance().getHairStyle());
|
||||||
|
@ -208,7 +208,7 @@ public class NpcInfo extends GameServerPacket
|
|||||||
|
|
||||||
if (_creature instanceof Summon)
|
if (_creature instanceof Summon)
|
||||||
{
|
{
|
||||||
writeD(0x01);// Title color 0=client default
|
writeD(0x01); // Title color 0=client default
|
||||||
writeD(((Summon) _creature).getPvpFlag());
|
writeD(((Summon) _creature).getPvpFlag());
|
||||||
writeD(((Summon) _creature).getKarma());
|
writeD(((Summon) _creature).getKarma());
|
||||||
}
|
}
|
||||||
|
@ -53,7 +53,7 @@ public class PartySmallWindowAdd extends GameServerPacket
|
|||||||
writeD(_member.getMaxMp());
|
writeD(_member.getMaxMp());
|
||||||
writeD(_member.getLevel());
|
writeD(_member.getLevel());
|
||||||
writeD(_member.getClassId().getId());
|
writeD(_member.getClassId().getId());
|
||||||
writeD(0);// writeD(0x01); ??
|
writeD(0); // writeD(0x01); ??
|
||||||
writeD(0);
|
writeD(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -62,7 +62,7 @@ public class PartySmallWindowAll extends GameServerPacket
|
|||||||
writeD(member.getMaxMp());
|
writeD(member.getMaxMp());
|
||||||
writeD(member.getLevel());
|
writeD(member.getLevel());
|
||||||
writeD(member.getClassId().getId());
|
writeD(member.getClassId().getId());
|
||||||
writeD(0);// writeD(0x01); ??
|
writeD(0); // writeD(0x01); ??
|
||||||
writeD(member.getRace().ordinal());
|
writeD(member.getRace().ordinal());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ public class PetDelete extends GameServerPacket
|
|||||||
protected final void writeImpl()
|
protected final void writeImpl()
|
||||||
{
|
{
|
||||||
writeC(0xb6);
|
writeC(0xb6);
|
||||||
writeD(_petId);// dont really know what these two are since i never needed them
|
writeD(_petId); // dont really know what these two are since i never needed them
|
||||||
writeD(_petObjId);// objectId
|
writeD(_petObjId); // objectId
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -124,34 +124,34 @@ public class PetInfo extends GameServerPacket
|
|||||||
writeD(_summon.getOwner() != null ? _summon.getOwner().getKarma() : 0); // karma
|
writeD(_summon.getOwner() != null ? _summon.getOwner().getKarma() : 0); // karma
|
||||||
writeD(_curFed); // how fed it is
|
writeD(_curFed); // how fed it is
|
||||||
writeD(_maxFed); // max fed it can be
|
writeD(_maxFed); // max fed it can be
|
||||||
writeD((int) _summon.getCurrentHp());// current hp
|
writeD((int) _summon.getCurrentHp()); // current hp
|
||||||
writeD(_maxHp);// max hp
|
writeD(_maxHp); // max hp
|
||||||
writeD((int) _summon.getCurrentMp());// current mp
|
writeD((int) _summon.getCurrentMp()); // current mp
|
||||||
writeD(_maxMp);// max mp
|
writeD(_maxMp); // max mp
|
||||||
writeD(_summon.getStat().getSp()); // sp
|
writeD(_summon.getStat().getSp()); // sp
|
||||||
writeD(_summon.getLevel());// lvl
|
writeD(_summon.getLevel()); // lvl
|
||||||
writeQ(_summon.getStat().getExp());
|
writeQ(_summon.getStat().getExp());
|
||||||
writeQ(_summon.getExpForThisLevel());// 0% absolute value
|
writeQ(_summon.getExpForThisLevel()); // 0% absolute value
|
||||||
writeQ(_summon.getExpForNextLevel());// 100% absoulte value
|
writeQ(_summon.getExpForNextLevel()); // 100% absoulte value
|
||||||
writeD(_summon instanceof PetInstance ? _summon.getInventory().getTotalWeight() : 0);// weight
|
writeD(_summon instanceof PetInstance ? _summon.getInventory().getTotalWeight() : 0); // weight
|
||||||
writeD(_summon.getMaxLoad());// max weight it can carry
|
writeD(_summon.getMaxLoad()); // max weight it can carry
|
||||||
writeD(_summon.getPAtk(null));// patk
|
writeD(_summon.getPAtk(null)); // patk
|
||||||
writeD(_summon.getPDef(null));// pdef
|
writeD(_summon.getPDef(null)); // pdef
|
||||||
writeD(_summon.getMAtk(null, null));// matk
|
writeD(_summon.getMAtk(null, null)); // matk
|
||||||
writeD(_summon.getMDef(null, null));// mdef
|
writeD(_summon.getMDef(null, null)); // mdef
|
||||||
writeD(_summon.getAccuracy());// accuracy
|
writeD(_summon.getAccuracy()); // accuracy
|
||||||
writeD(_summon.getEvasionRate(null));// evasion
|
writeD(_summon.getEvasionRate(null)); // evasion
|
||||||
writeD(_summon.getCriticalHit(null, null));// critical
|
writeD(_summon.getCriticalHit(null, null)); // critical
|
||||||
writeD(_runSpd);// speed
|
writeD(_runSpd); // speed
|
||||||
writeD(_summon.getPAtkSpd());// atkspeed
|
writeD(_summon.getPAtkSpd()); // atkspeed
|
||||||
writeD(_summon.getMAtkSpd());// casting speed
|
writeD(_summon.getMAtkSpd()); // casting speed
|
||||||
|
|
||||||
writeD(0);// c2 abnormal visual effect... bleed=1; poison=2; poison & bleed=3; flame=4;
|
writeD(0); // c2 abnormal visual effect... bleed=1; poison=2; poison & bleed=3; flame=4;
|
||||||
final int npcId = _summon.getTemplate().npcId;
|
final int npcId = _summon.getTemplate().npcId;
|
||||||
|
|
||||||
if ((npcId >= 12526) && (npcId <= 12528))
|
if ((npcId >= 12526) && (npcId <= 12528))
|
||||||
{
|
{
|
||||||
writeH(1);// c2 ride button
|
writeH(1); // c2 ride button
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -68,7 +68,7 @@ public class PetStatusUpdate extends GameServerPacket
|
|||||||
writeD(_maxMp);
|
writeD(_maxMp);
|
||||||
writeD(_summon.getLevel());
|
writeD(_summon.getLevel());
|
||||||
writeQ(_summon.getStat().getExp());
|
writeQ(_summon.getStat().getExp());
|
||||||
writeQ(_summon.getExpForThisLevel());// 0% absolute value
|
writeQ(_summon.getExpForThisLevel()); // 0% absolute value
|
||||||
writeQ(_summon.getExpForNextLevel());// 100% absolute value
|
writeQ(_summon.getExpForNextLevel()); // 100% absolute value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,7 @@ public class PrivateStoreListBuy extends GameServerPacket
|
|||||||
|
|
||||||
writeD(item.getItem().getBodyPart());
|
writeD(item.getItem().getBodyPart());
|
||||||
writeH(item.getItem().getType2());
|
writeH(item.getItem().getType2());
|
||||||
writeD(item.getPrice());// buyers price
|
writeD(item.getPrice()); // buyers price
|
||||||
|
|
||||||
writeD(item.getCount()); // maximum possible tradecount
|
writeD(item.getCount()); // maximum possible tradecount
|
||||||
}
|
}
|
||||||
|
@ -80,8 +80,8 @@ public class PrivateStoreManageListBuy extends GameServerPacket
|
|||||||
writeH(0x00);
|
writeH(0x00);
|
||||||
writeD(item.getItem().getBodyPart());
|
writeD(item.getItem().getBodyPart());
|
||||||
writeH(item.getItem().getType2());
|
writeH(item.getItem().getType2());
|
||||||
writeD(item.getPrice());// your price
|
writeD(item.getPrice()); // your price
|
||||||
writeD(item.getItem().getReferencePrice());// fixed store price
|
writeD(item.getItem().getReferencePrice()); // fixed store price
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -76,7 +76,7 @@ public class PrivateStoreManageListSell extends GameServerPacket
|
|||||||
writeD(item.getItem().getItemId());
|
writeD(item.getItem().getItemId());
|
||||||
writeD(item.getCount());
|
writeD(item.getCount());
|
||||||
writeH(0);
|
writeH(0);
|
||||||
writeH(item.getEnchant());// enchant lvl
|
writeH(item.getEnchant()); // enchant lvl
|
||||||
writeH(0);
|
writeH(0);
|
||||||
writeD(item.getItem().getBodyPart());
|
writeD(item.getItem().getBodyPart());
|
||||||
writeD(item.getPrice()); // store price
|
writeD(item.getPrice()); // store price
|
||||||
@ -91,10 +91,10 @@ public class PrivateStoreManageListSell extends GameServerPacket
|
|||||||
writeD(item.getItem().getItemId());
|
writeD(item.getItem().getItemId());
|
||||||
writeD(item.getCount());
|
writeD(item.getCount());
|
||||||
writeH(0);
|
writeH(0);
|
||||||
writeH(item.getEnchant());// enchant lvl
|
writeH(item.getEnchant()); // enchant lvl
|
||||||
writeH(0x00);
|
writeH(0x00);
|
||||||
writeD(item.getItem().getBodyPart());
|
writeD(item.getItem().getBodyPart());
|
||||||
writeD(item.getPrice());// your price
|
writeD(item.getPrice()); // your price
|
||||||
writeD(item.getItem().getReferencePrice()); // store price
|
writeD(item.getItem().getReferencePrice()); // store price
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -53,7 +53,7 @@ public class RecipeBookItemList extends GameServerPacket
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
writeD(_recipes.length);// number of items in recipe book
|
writeD(_recipes.length); // number of items in recipe book
|
||||||
|
|
||||||
for (int i = 0; i < _recipes.length; i++)
|
for (int i = 0; i < _recipes.length; i++)
|
||||||
{
|
{
|
||||||
|
@ -73,7 +73,7 @@ public class RecipeShopManageList extends GameServerPacket
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
writeD(_recipes.length);// number of items in recipe book
|
writeD(_recipes.length); // number of items in recipe book
|
||||||
|
|
||||||
for (int i = 0; i < _recipes.length; i++)
|
for (int i = 0; i < _recipes.length; i++)
|
||||||
{
|
{
|
||||||
|
@ -35,6 +35,6 @@ public class RecipeShopMsg extends GameServerPacket
|
|||||||
{
|
{
|
||||||
writeC(0xdb);
|
writeC(0xdb);
|
||||||
writeD(_player.getObjectId());
|
writeD(_player.getObjectId());
|
||||||
writeS(_player.getCreateList().getStoreName());// _activeChar.getTradeList().getSellStoreName());
|
writeS(_player.getCreateList().getStoreName()); // _activeChar.getTradeList().getSellStoreName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -44,9 +44,9 @@ public class RecipeShopSellList extends GameServerPacket
|
|||||||
// dddd d(ddd)
|
// dddd d(ddd)
|
||||||
writeC(0xd9);
|
writeC(0xd9);
|
||||||
writeD(_manufacturer.getObjectId());
|
writeD(_manufacturer.getObjectId());
|
||||||
writeD((int) _manufacturer.getCurrentMp());// Creator's MP
|
writeD((int) _manufacturer.getCurrentMp()); // Creator's MP
|
||||||
writeD(_manufacturer.getMaxMp());// Creator's MP
|
writeD(_manufacturer.getMaxMp()); // Creator's MP
|
||||||
writeD(_buyer.getAdena());// Buyer Adena
|
writeD(_buyer.getAdena()); // Buyer Adena
|
||||||
|
|
||||||
final int count = createList.size();
|
final int count = createList.size();
|
||||||
writeD(count);
|
writeD(count);
|
||||||
|
@ -31,7 +31,7 @@ public class SetupGauge extends GameServerPacket
|
|||||||
|
|
||||||
public SetupGauge(int dat1, int time)
|
public SetupGauge(int dat1, int time)
|
||||||
{
|
{
|
||||||
_dat1 = dat1;// color 0-blue 1-red 2-cyan 3-
|
_dat1 = dat1; // color 0-blue 1-red 2-cyan 3-
|
||||||
_time = time;
|
_time = time;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,6 +77,6 @@ public class ShortCutRegister extends GameServerPacket
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
writeD(1);// ??
|
writeD(1); // ??
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ public class VehicleDeparture extends GameServerPacket
|
|||||||
{
|
{
|
||||||
private final BoatInstance _boat;
|
private final BoatInstance _boat;
|
||||||
private final int _speed1;
|
private final int _speed1;
|
||||||
private final int _speed2;// rotation
|
private final int _speed2; // rotation
|
||||||
private final int _x;
|
private final int _x;
|
||||||
private final int _y;
|
private final int _y;
|
||||||
private final int _z;
|
private final int _z;
|
||||||
|
@ -303,7 +303,7 @@ public class GameStatusThread extends Thread
|
|||||||
final DecimalFormat df = new DecimalFormat(" (0.0000'%')");
|
final DecimalFormat df = new DecimalFormat(" (0.0000'%')");
|
||||||
final DecimalFormat df2 = new DecimalFormat(" # 'KB'");
|
final DecimalFormat df2 = new DecimalFormat(" # 'KB'");
|
||||||
|
|
||||||
_print.println("+----");// ...
|
_print.println("+----"); // ...
|
||||||
_print.println("| Allowed Memory:" + df2.format(max));
|
_print.println("| Allowed Memory:" + df2.format(max));
|
||||||
_print.println("| |= Allocated Memory:" + df2.format(allocated) + df.format((allocated / max) * 100));
|
_print.println("| |= Allocated Memory:" + df2.format(allocated) + df.format((allocated / max) * 100));
|
||||||
_print.println("| |= Non-Allocated Memory:" + df2.format(nonAllocated) + df.format((nonAllocated / max) * 100));
|
_print.println("| |= Non-Allocated Memory:" + df2.format(nonAllocated) + df.format((nonAllocated / max) * 100));
|
||||||
|
@ -133,7 +133,7 @@ public class AdminMonsterRace implements IAdminCommandHandler
|
|||||||
// MonsterRace.getInstance().newSpeeds();
|
// MonsterRace.getInstance().newSpeeds();
|
||||||
// int[][] speeds2 = MonsterRace.getInstance().getSpeeds();
|
// int[][] speeds2 = MonsterRace.getInstance().getSpeeds();
|
||||||
/*
|
/*
|
||||||
* int[] speed = new int[8]; for (int i=0; i<8; i++) { for (int j=0; j<20; j++) { //_log.info("Adding "+speeds1[i][j] +" and "+ speeds2[i][j]); speed[i] += (speeds1[i][j]*1);// + (speeds2[i][j]*1); } LOGGER.info("Total speed for "+(i+1)+" = "+speed[i]); }
|
* int[] speed = new int[8]; for (int i=0; i<8; i++) { for (int j=0; j<20; j++) { //_log.info("Adding "+speeds1[i][j] +" and "+ speeds2[i][j]); speed[i] += (speeds1[i][j]*1); // + (speeds2[i][j]*1); } LOGGER.info("Total speed for "+(i+1)+" = "+speed[i]); }
|
||||||
*/
|
*/
|
||||||
|
|
||||||
final MonRaceInfo spk = new MonRaceInfo(codes[2][0], codes[2][1], MonsterRace.getInstance().getMonsters(), MonsterRace.getInstance().getSpeeds());
|
final MonRaceInfo spk = new MonRaceInfo(codes[2][0], codes[2][1], MonsterRace.getInstance().getMonsters(), MonsterRace.getInstance().getSpeeds());
|
||||||
|
@ -874,7 +874,7 @@ public class CrystalCaverns extends AbstractInstance
|
|||||||
final CCWorld world = (CCWorld) tmpworld;
|
final CCWorld world = (CCWorld) tmpworld;
|
||||||
if ((world.getStatus() == 0) && world.oracle.contains(npc))
|
if ((world.getStatus() == 0) && world.oracle.contains(npc))
|
||||||
{
|
{
|
||||||
return "32281.htm";// TODO: Missing HTML.
|
return "32281.htm"; // TODO: Missing HTML.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
npc.showChatWindow(player);
|
npc.showChatWindow(player);
|
||||||
|
@ -382,7 +382,7 @@ public class Kamaloka extends AbstractInstance
|
|||||||
public int index; // 0-18 index of the kama type in arrays
|
public int index; // 0-18 index of the kama type in arrays
|
||||||
public int shaman = 0; // objectId of the shaman
|
public int shaman = 0; // objectId of the shaman
|
||||||
public List<Spawn> firstRoom; // list of the spawns in the first room (excluding shaman)
|
public List<Spawn> firstRoom; // list of the spawns in the first room (excluding shaman)
|
||||||
public List<Integer> secondRoom;// list of objectIds mobs in the second room
|
public List<Integer> secondRoom; // list of objectIds mobs in the second room
|
||||||
public int miniBoss = 0; // objectId of the miniboss
|
public int miniBoss = 0; // objectId of the miniboss
|
||||||
public Npc boss = null; // boss
|
public Npc boss = null; // boss
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,7 @@ public class Q00257_TheGuardIsBusy extends Quest
|
|||||||
MONSTERS.put(20006, Arrays.asList(new MobDrop(10, 2, ORC_AMULET, 2), new MobDrop(10, 10, ORC_AMULET, 1))); // Orc Archer
|
MONSTERS.put(20006, Arrays.asList(new MobDrop(10, 2, ORC_AMULET, 2), new MobDrop(10, 10, ORC_AMULET, 1))); // Orc Archer
|
||||||
MONSTERS.put(20093, Arrays.asList(new MobDrop(100, 85, ORC_NECKLACE, 1))); // Orc Fighter
|
MONSTERS.put(20093, Arrays.asList(new MobDrop(100, 85, ORC_NECKLACE, 1))); // Orc Fighter
|
||||||
MONSTERS.put(20096, Arrays.asList(new MobDrop(100, 95, ORC_NECKLACE, 1))); // Orc Fighter Sub Leader
|
MONSTERS.put(20096, Arrays.asList(new MobDrop(100, 95, ORC_NECKLACE, 1))); // Orc Fighter Sub Leader
|
||||||
MONSTERS.put(20098, Arrays.asList(new MobDrop(100, 100, ORC_NECKLACE, 1)));// Orc Fighter Leader
|
MONSTERS.put(20098, Arrays.asList(new MobDrop(100, 100, ORC_NECKLACE, 1))); // Orc Fighter Leader
|
||||||
MONSTERS.put(20130, Arrays.asList(new MobDrop(10, 7, ORC_AMULET, 1))); // Orc
|
MONSTERS.put(20130, Arrays.asList(new MobDrop(10, 7, ORC_AMULET, 1))); // Orc
|
||||||
MONSTERS.put(20131, Arrays.asList(new MobDrop(10, 9, ORC_AMULET, 1))); // Orc Grunt
|
MONSTERS.put(20131, Arrays.asList(new MobDrop(10, 9, ORC_AMULET, 1))); // Orc Grunt
|
||||||
MONSTERS.put(20132, Arrays.asList(new MobDrop(10, 7, WEREWOLF_FANG, 1))); // Werewolf
|
MONSTERS.put(20132, Arrays.asList(new MobDrop(10, 7, WEREWOLF_FANG, 1))); // Werewolf
|
||||||
|
@ -152,7 +152,7 @@ public class Q00296_TarantulasSpiderSilk extends Quest
|
|||||||
{
|
{
|
||||||
giveAdena(talker, (silk * 30) + (silk >= 10 ? 2000 : 0), true);
|
giveAdena(talker, (silk * 30) + (silk >= 10 ? 2000 : 0), true);
|
||||||
takeItems(talker, TARANTULA_SPIDER_SILK, -1);
|
takeItems(talker, TARANTULA_SPIDER_SILK, -1);
|
||||||
Q00281_HeadForTheHills.giveNewbieReward(talker);// TODO: It's using wrong bitmask, need to create a general bitmask for this using EnumIntBitmask class inside Quest class for handling Quest rewards.
|
Q00281_HeadForTheHills.giveNewbieReward(talker); // TODO: It's using wrong bitmask, need to create a general bitmask for this using EnumIntBitmask class inside Quest class for handling Quest rewards.
|
||||||
html = "30519-05.html";
|
html = "30519-05.html";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -1693,7 +1693,7 @@ public class ClanHallManagerInstance extends MerchantInstance
|
|||||||
filename = "data/html/clanHallManager/chamberlain-" + getId() + ".htm";
|
filename = "data/html/clanHallManager/chamberlain-" + getId() + ".htm";
|
||||||
if (!HtmCache.getInstance().isLoadable(filename))
|
if (!HtmCache.getInstance().isLoadable(filename))
|
||||||
{
|
{
|
||||||
filename = "data/html/clanHallManager/chamberlain.htm";// Owner message window
|
filename = "data/html/clanHallManager/chamberlain.htm"; // Owner message window
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (condition == COND_OWNER_FALSE)
|
else if (condition == COND_OWNER_FALSE)
|
||||||
|
@ -459,7 +459,7 @@ public class Siege implements Siegable
|
|||||||
getCastle().removeUpgrade(); // Remove all castle upgrade
|
getCastle().removeUpgrade(); // Remove all castle upgrade
|
||||||
getCastle().spawnDoor(true); // Respawn door to castle but make them weaker (50% hp)
|
getCastle().spawnDoor(true); // Respawn door to castle but make them weaker (50% hp)
|
||||||
removeTowers(); // Remove all towers from this castle
|
removeTowers(); // Remove all towers from this castle
|
||||||
_controlTowerCount = 0;// Each new siege midvictory CT are completely respawned.
|
_controlTowerCount = 0; // Each new siege midvictory CT are completely respawned.
|
||||||
spawnControlTower();
|
spawnControlTower();
|
||||||
spawnFlameTower();
|
spawnFlameTower();
|
||||||
updatePlayerSiegeStateFlags(false);
|
updatePlayerSiegeStateFlags(false);
|
||||||
|
@ -1368,7 +1368,7 @@ public class Formulas
|
|||||||
double val = 0;
|
double val = 0;
|
||||||
if (attacker.isChargedShot(ShotType.BLESSED_SPIRITSHOTS))
|
if (attacker.isChargedShot(ShotType.BLESSED_SPIRITSHOTS))
|
||||||
{
|
{
|
||||||
val = mAtk * 3.0;// 3.0 is the blessed spiritshot multiplier
|
val = mAtk * 3.0; // 3.0 is the blessed spiritshot multiplier
|
||||||
}
|
}
|
||||||
val += mAtk;
|
val += mAtk;
|
||||||
val = (Math.sqrt(val) / target.getMDef(null, null)) * 11.0;
|
val = (Math.sqrt(val) / target.getMDef(null, null)) * 11.0;
|
||||||
|
@ -39,7 +39,7 @@ public class RequestGetItemFromPet implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
_objectId = packet.readD();
|
_objectId = packet.readD();
|
||||||
_amount = packet.readQ();
|
_amount = packet.readQ();
|
||||||
_unknown = packet.readD();// = 0 for most trades
|
_unknown = packet.readD(); // = 0 for most trades
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -111,8 +111,8 @@ public abstract class AbstractNpcInfo implements IClientOutgoingPacket
|
|||||||
_rhand = cha.getRightHandItem(); // On every subclass
|
_rhand = cha.getRightHandItem(); // On every subclass
|
||||||
_lhand = cha.getLeftHandItem(); // On every subclass
|
_lhand = cha.getLeftHandItem(); // On every subclass
|
||||||
_enchantEffect = cha.getEnchantEffect();
|
_enchantEffect = cha.getEnchantEffect();
|
||||||
_collisionHeight = cha.getCollisionHeight();// On every subclass
|
_collisionHeight = cha.getCollisionHeight(); // On every subclass
|
||||||
_collisionRadius = cha.getCollisionRadius();// On every subclass
|
_collisionRadius = cha.getCollisionRadius(); // On every subclass
|
||||||
_isAttackable = cha.isAutoAttackable(attacker);
|
_isAttackable = cha.isAutoAttackable(attacker);
|
||||||
|
|
||||||
// npc crest of owning clan/ally of castle
|
// npc crest of owning clan/ally of castle
|
||||||
@ -309,7 +309,7 @@ public abstract class AbstractNpcInfo implements IClientOutgoingPacket
|
|||||||
packet.writeD(0x00); // C4
|
packet.writeD(0x00); // C4
|
||||||
packet.writeD(0x00); // C6
|
packet.writeD(0x00); // C6
|
||||||
packet.writeD(0x00);
|
packet.writeD(0x00);
|
||||||
packet.writeD(0);// CT1.5 Pet form and skills
|
packet.writeD(0); // CT1.5 Pet form and skills
|
||||||
packet.writeC(0x01);
|
packet.writeC(0x01);
|
||||||
packet.writeC(0x01);
|
packet.writeC(0x01);
|
||||||
packet.writeD(0x00);
|
packet.writeD(0x00);
|
||||||
@ -382,7 +382,7 @@ public abstract class AbstractNpcInfo implements IClientOutgoingPacket
|
|||||||
packet.writeC(_isSummoned ? 2 : _val); // invisible ?? 0=false 1=true 2=summoned (only works if model has a summon animation)
|
packet.writeC(_isSummoned ? 2 : _val); // invisible ?? 0=false 1=true 2=summoned (only works if model has a summon animation)
|
||||||
packet.writeS(_name);
|
packet.writeS(_name);
|
||||||
packet.writeS(_title);
|
packet.writeS(_title);
|
||||||
packet.writeD(0x01);// Title color 0=client default
|
packet.writeD(0x01); // Title color 0=client default
|
||||||
|
|
||||||
packet.writeD(_summon.getPvpFlag());
|
packet.writeD(_summon.getPvpFlag());
|
||||||
packet.writeD(_summon.getKarma());
|
packet.writeD(_summon.getKarma());
|
||||||
|
@ -116,7 +116,7 @@ public class GMViewCharacterInfo implements IClientOutgoingPacket
|
|||||||
packet.writeD(_flyRunSpd);
|
packet.writeD(_flyRunSpd);
|
||||||
packet.writeD(_flyWalkSpd);
|
packet.writeD(_flyWalkSpd);
|
||||||
packet.writeF(_moveMultiplier);
|
packet.writeF(_moveMultiplier);
|
||||||
packet.writeF(_player.getAttackSpeedMultiplier()); // 2.9);//
|
packet.writeF(_player.getAttackSpeedMultiplier()); // 2.9); //
|
||||||
packet.writeF(_player.getCollisionRadius()); // scale
|
packet.writeF(_player.getCollisionRadius()); // scale
|
||||||
packet.writeF(_player.getCollisionHeight()); // y offset ??!? fem dwarf 4033
|
packet.writeF(_player.getCollisionHeight()); // y offset ??!? fem dwarf 4033
|
||||||
packet.writeD(_player.getAppearance().getHairStyle());
|
packet.writeD(_player.getAppearance().getHairStyle());
|
||||||
|
@ -37,7 +37,7 @@ public class PartySmallWindowAdd implements IClientOutgoingPacket
|
|||||||
{
|
{
|
||||||
OutgoingPackets.PARTY_SMALL_WINDOW_ADD.writeId(packet);
|
OutgoingPackets.PARTY_SMALL_WINDOW_ADD.writeId(packet);
|
||||||
packet.writeD(_party.getLeaderObjectId()); // c3
|
packet.writeD(_party.getLeaderObjectId()); // c3
|
||||||
packet.writeD(_party.getDistributionType().getId());// packet.writeD(0x04); ?? //c3
|
packet.writeD(_party.getDistributionType().getId()); // packet.writeD(0x04); ?? //c3
|
||||||
packet.writeD(_member.getObjectId());
|
packet.writeD(_member.getObjectId());
|
||||||
packet.writeS(_member.getName());
|
packet.writeS(_member.getName());
|
||||||
packet.writeD((int) _member.getCurrentCp()); // c4
|
packet.writeD((int) _member.getCurrentCp()); // c4
|
||||||
|
@ -56,7 +56,7 @@ public class PartySmallWindowAll implements IClientOutgoingPacket
|
|||||||
packet.writeD(member.getMaxMp());
|
packet.writeD(member.getMaxMp());
|
||||||
packet.writeD(member.getLevel());
|
packet.writeD(member.getLevel());
|
||||||
packet.writeD(member.getClassId().getId());
|
packet.writeD(member.getClassId().getId());
|
||||||
packet.writeD(0x00);// packet.writeD(0x01); ??
|
packet.writeD(0x00); // packet.writeD(0x01); ??
|
||||||
packet.writeD(member.getRace().ordinal());
|
packet.writeD(member.getRace().ordinal());
|
||||||
packet.writeD(0x00); // T2.3
|
packet.writeD(0x00); // T2.3
|
||||||
packet.writeD(0x00); // T2.3
|
packet.writeD(0x00); // T2.3
|
||||||
|
@ -130,39 +130,39 @@ public class PetInfo implements IClientOutgoingPacket
|
|||||||
packet.writeD(_summon.getKarma()); // karma
|
packet.writeD(_summon.getKarma()); // karma
|
||||||
packet.writeD(_curFed); // how fed it is
|
packet.writeD(_curFed); // how fed it is
|
||||||
packet.writeD(_maxFed); // max fed it can be
|
packet.writeD(_maxFed); // max fed it can be
|
||||||
packet.writeD((int) _summon.getCurrentHp());// current hp
|
packet.writeD((int) _summon.getCurrentHp()); // current hp
|
||||||
packet.writeD(_maxHp);// max hp
|
packet.writeD(_maxHp); // max hp
|
||||||
packet.writeD((int) _summon.getCurrentMp());// current mp
|
packet.writeD((int) _summon.getCurrentMp()); // current mp
|
||||||
packet.writeD(_maxMp);// max mp
|
packet.writeD(_maxMp); // max mp
|
||||||
packet.writeD((int) _summon.getStat().getSp()); // sp
|
packet.writeD((int) _summon.getStat().getSp()); // sp
|
||||||
packet.writeD(_summon.getLevel());// lvl
|
packet.writeD(_summon.getLevel()); // lvl
|
||||||
packet.writeQ(_summon.getStat().getExp());
|
packet.writeQ(_summon.getStat().getExp());
|
||||||
|
|
||||||
if (_summon.getExpForThisLevel() > _summon.getStat().getExp())
|
if (_summon.getExpForThisLevel() > _summon.getStat().getExp())
|
||||||
{
|
{
|
||||||
packet.writeQ(_summon.getStat().getExp());// 0% absolute value
|
packet.writeQ(_summon.getStat().getExp()); // 0% absolute value
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
packet.writeQ(_summon.getExpForThisLevel());// 0% absolute value
|
packet.writeQ(_summon.getExpForThisLevel()); // 0% absolute value
|
||||||
}
|
}
|
||||||
|
|
||||||
packet.writeQ(_summon.getExpForNextLevel());// 100% absoulte value
|
packet.writeQ(_summon.getExpForNextLevel()); // 100% absoulte value
|
||||||
packet.writeD(_summon.isPet() ? _summon.getInventory().getTotalWeight() : 0);// weight
|
packet.writeD(_summon.isPet() ? _summon.getInventory().getTotalWeight() : 0); // weight
|
||||||
packet.writeD(_summon.getMaxLoad());// max weight it can carry
|
packet.writeD(_summon.getMaxLoad()); // max weight it can carry
|
||||||
packet.writeD((int) _summon.getPAtk(null));// patk
|
packet.writeD((int) _summon.getPAtk(null)); // patk
|
||||||
packet.writeD((int) _summon.getPDef(null));// pdef
|
packet.writeD((int) _summon.getPDef(null)); // pdef
|
||||||
packet.writeD((int) _summon.getMAtk(null, null));// matk
|
packet.writeD((int) _summon.getMAtk(null, null)); // matk
|
||||||
packet.writeD((int) _summon.getMDef(null, null));// mdef
|
packet.writeD((int) _summon.getMDef(null, null)); // mdef
|
||||||
packet.writeD(_summon.getAccuracy());// accuracy
|
packet.writeD(_summon.getAccuracy()); // accuracy
|
||||||
packet.writeD(_summon.getEvasionRate(null));// evasion
|
packet.writeD(_summon.getEvasionRate(null)); // evasion
|
||||||
packet.writeD(_summon.getCriticalHit(null, null));// critical
|
packet.writeD(_summon.getCriticalHit(null, null)); // critical
|
||||||
packet.writeD((int) _summon.getMoveSpeed());// speed
|
packet.writeD((int) _summon.getMoveSpeed()); // speed
|
||||||
packet.writeD((int) _summon.getPAtkSpd());// atkspeed
|
packet.writeD((int) _summon.getPAtkSpd()); // atkspeed
|
||||||
packet.writeD(_summon.getMAtkSpd());// casting speed
|
packet.writeD(_summon.getMAtkSpd()); // casting speed
|
||||||
|
|
||||||
packet.writeD(_summon.getAbnormalVisualEffects());// c2 abnormal visual effect... bleed=1; poison=2; poison & bleed=3; flame=4;
|
packet.writeD(_summon.getAbnormalVisualEffects()); // c2 abnormal visual effect... bleed=1; poison=2; poison & bleed=3; flame=4;
|
||||||
packet.writeH(_summon.isMountable() ? 1 : 0);// c2 ride button
|
packet.writeH(_summon.isMountable() ? 1 : 0); // c2 ride button
|
||||||
|
|
||||||
packet.writeC(_summon.isInsideZone(ZoneId.WATER) ? 1 : _summon.isFlying() ? 2 : 0); // c2
|
packet.writeC(_summon.isInsideZone(ZoneId.WATER) ? 1 : _summon.isFlying() ? 2 : 0); // c2
|
||||||
|
|
||||||
@ -171,7 +171,7 @@ public class PetInfo implements IClientOutgoingPacket
|
|||||||
packet.writeC(_summon.getTeam().getId());
|
packet.writeC(_summon.getTeam().getId());
|
||||||
packet.writeD(_summon.getSoulShotsPerHit()); // How many soulshots this servitor uses per hit
|
packet.writeD(_summon.getSoulShotsPerHit()); // How many soulshots this servitor uses per hit
|
||||||
packet.writeD(_summon.getSpiritShotsPerHit()); // How many spiritshots this servitor uses per hit
|
packet.writeD(_summon.getSpiritShotsPerHit()); // How many spiritshots this servitor uses per hit
|
||||||
packet.writeD(_summon.getFormId());// CT1.5 Pet form and skills
|
packet.writeD(_summon.getFormId()); // CT1.5 Pet form and skills
|
||||||
packet.writeD(_summon.getAbnormalVisualEffectSpecial());
|
packet.writeD(_summon.getAbnormalVisualEffectSpecial());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -86,7 +86,7 @@ public class PledgeShowMemberListAll implements IClientOutgoingPacket
|
|||||||
packet.writeD(_clan.getAllyId());
|
packet.writeD(_clan.getAllyId());
|
||||||
packet.writeS(_clan.getAllyName());
|
packet.writeS(_clan.getAllyName());
|
||||||
packet.writeD(_clan.getAllyCrestId());
|
packet.writeD(_clan.getAllyCrestId());
|
||||||
packet.writeD(_clan.isAtWar() ? 1 : 0);// new c3
|
packet.writeD(_clan.isAtWar() ? 1 : 0); // new c3
|
||||||
packet.writeD(0x00); // Territory castle ID
|
packet.writeD(0x00); // Territory castle ID
|
||||||
packet.writeD(_clan.getSubPledgeMembersCount(_pledgeType));
|
packet.writeD(_clan.getSubPledgeMembersCount(_pledgeType));
|
||||||
|
|
||||||
@ -103,7 +103,7 @@ public class PledgeShowMemberListAll implements IClientOutgoingPacket
|
|||||||
if (player != null)
|
if (player != null)
|
||||||
{
|
{
|
||||||
packet.writeD(player.getAppearance().isFemale() ? 1 : 0); // no visible effect
|
packet.writeD(player.getAppearance().isFemale() ? 1 : 0); // no visible effect
|
||||||
packet.writeD(player.getRace().ordinal());// packet.writeD(1);
|
packet.writeD(player.getRace().ordinal()); // packet.writeD(1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -82,8 +82,8 @@ public class PrivateStoreManageListBuy implements IClientOutgoingPacket
|
|||||||
packet.writeH(0x00);
|
packet.writeH(0x00);
|
||||||
packet.writeD(item.getItem().getBodyPart());
|
packet.writeD(item.getItem().getBodyPart());
|
||||||
packet.writeH(item.getItem().getType2());
|
packet.writeH(item.getItem().getType2());
|
||||||
packet.writeQ(item.getPrice());// your price
|
packet.writeQ(item.getPrice()); // your price
|
||||||
packet.writeQ(item.getItem().getReferencePrice());// fixed store price
|
packet.writeQ(item.getItem().getReferencePrice()); // fixed store price
|
||||||
|
|
||||||
// T1
|
// T1
|
||||||
packet.writeH(item.getAttackElementType());
|
packet.writeH(item.getAttackElementType());
|
||||||
|
@ -57,7 +57,7 @@ public class PrivateStoreManageListSell implements IClientOutgoingPacket
|
|||||||
packet.writeD(item.getItem().getId());
|
packet.writeD(item.getItem().getId());
|
||||||
packet.writeQ(item.getCount());
|
packet.writeQ(item.getCount());
|
||||||
packet.writeH(0);
|
packet.writeH(0);
|
||||||
packet.writeH(item.getEnchant());// enchant lvl
|
packet.writeH(item.getEnchant()); // enchant lvl
|
||||||
packet.writeH(item.getCustomType2());
|
packet.writeH(item.getCustomType2());
|
||||||
packet.writeD(item.getItem().getBodyPart());
|
packet.writeD(item.getItem().getBodyPart());
|
||||||
packet.writeQ(item.getPrice()); // store price
|
packet.writeQ(item.getPrice()); // store price
|
||||||
@ -84,10 +84,10 @@ public class PrivateStoreManageListSell implements IClientOutgoingPacket
|
|||||||
packet.writeD(item.getItem().getId());
|
packet.writeD(item.getItem().getId());
|
||||||
packet.writeQ(item.getCount());
|
packet.writeQ(item.getCount());
|
||||||
packet.writeH(0);
|
packet.writeH(0);
|
||||||
packet.writeH(item.getEnchant());// enchant lvl
|
packet.writeH(item.getEnchant()); // enchant lvl
|
||||||
packet.writeH(0x00);
|
packet.writeH(0x00);
|
||||||
packet.writeD(item.getItem().getBodyPart());
|
packet.writeD(item.getItem().getBodyPart());
|
||||||
packet.writeQ(item.getPrice());// your price
|
packet.writeQ(item.getPrice()); // your price
|
||||||
packet.writeQ(item.getItem().getReferencePrice()); // store price
|
packet.writeQ(item.getItem().getReferencePrice()); // store price
|
||||||
|
|
||||||
// T1
|
// T1
|
||||||
|
@ -73,7 +73,7 @@ public class RecipeShopManageList implements IClientOutgoingPacket
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
packet.writeD(_recipes.length);// number of items in recipe book
|
packet.writeD(_recipes.length); // number of items in recipe book
|
||||||
|
|
||||||
for (int i = 0; i < _recipes.length; i++)
|
for (int i = 0; i < _recipes.length; i++)
|
||||||
{
|
{
|
||||||
|
@ -37,9 +37,9 @@ public class RecipeShopSellList implements IClientOutgoingPacket
|
|||||||
{
|
{
|
||||||
OutgoingPackets.RECIPE_SHOP_SELL_LIST.writeId(packet);
|
OutgoingPackets.RECIPE_SHOP_SELL_LIST.writeId(packet);
|
||||||
packet.writeD(_manufacturer.getObjectId());
|
packet.writeD(_manufacturer.getObjectId());
|
||||||
packet.writeD((int) _manufacturer.getCurrentMp());// Creator's MP
|
packet.writeD((int) _manufacturer.getCurrentMp()); // Creator's MP
|
||||||
packet.writeD(_manufacturer.getMaxMp());// Creator's MP
|
packet.writeD(_manufacturer.getMaxMp()); // Creator's MP
|
||||||
packet.writeQ(_buyer.getAdena());// Buyer Adena
|
packet.writeQ(_buyer.getAdena()); // Buyer Adena
|
||||||
if (!_manufacturer.hasManufactureShop())
|
if (!_manufacturer.hasManufactureShop())
|
||||||
{
|
{
|
||||||
packet.writeD(0x00);
|
packet.writeD(0x00);
|
||||||
|
@ -45,7 +45,7 @@ public class SpecialString implements IClientOutgoingPacket
|
|||||||
{
|
{
|
||||||
OutgoingPackets.SERVER_CLOSE_SOCKET.writeId(packet);
|
OutgoingPackets.SERVER_CLOSE_SOCKET.writeId(packet);
|
||||||
packet.writeC(_strId); // string ID
|
packet.writeC(_strId); // string ID
|
||||||
packet.writeC(_isDraw ? 1 : 0);// 1 - draw / 0 - hide
|
packet.writeC(_isDraw ? 1 : 0); // 1 - draw / 0 - hide
|
||||||
packet.writeC(_fontSize); // -1 to 3 (font size)
|
packet.writeC(_fontSize); // -1 to 3 (font size)
|
||||||
packet.writeD(_x); // ClientRight - x
|
packet.writeD(_x); // ClientRight - x
|
||||||
packet.writeD(_y); // ClientTop + y
|
packet.writeD(_y); // ClientTop + y
|
||||||
|
@ -133,7 +133,7 @@ public class AdminMonsterRace implements IAdminCommandHandler
|
|||||||
// MonsterRace.getInstance().newSpeeds();
|
// MonsterRace.getInstance().newSpeeds();
|
||||||
// int[][] speeds2 = MonsterRace.getInstance().getSpeeds();
|
// int[][] speeds2 = MonsterRace.getInstance().getSpeeds();
|
||||||
/*
|
/*
|
||||||
* int[] speed = new int[8]; for (int i=0; i<8; i++) { for (int j=0; j<20; j++) { //_log.info("Adding "+speeds1[i][j] +" and "+ speeds2[i][j]); speed[i] += (speeds1[i][j]*1);// + (speeds2[i][j]*1); } LOGGER.info("Total speed for "+(i+1)+" = "+speed[i]); }
|
* int[] speed = new int[8]; for (int i=0; i<8; i++) { for (int j=0; j<20; j++) { //_log.info("Adding "+speeds1[i][j] +" and "+ speeds2[i][j]); speed[i] += (speeds1[i][j]*1); // + (speeds2[i][j]*1); } LOGGER.info("Total speed for "+(i+1)+" = "+speed[i]); }
|
||||||
*/
|
*/
|
||||||
|
|
||||||
final MonRaceInfo spk = new MonRaceInfo(codes[2][0], codes[2][1], MonsterRace.getInstance().getMonsters(), MonsterRace.getInstance().getSpeeds());
|
final MonRaceInfo spk = new MonRaceInfo(codes[2][0], codes[2][1], MonsterRace.getInstance().getMonsters(), MonsterRace.getInstance().getSpeeds());
|
||||||
|
@ -874,7 +874,7 @@ public class CrystalCaverns extends AbstractInstance
|
|||||||
final CCWorld world = (CCWorld) tmpworld;
|
final CCWorld world = (CCWorld) tmpworld;
|
||||||
if ((world.getStatus() == 0) && world.oracle.contains(npc))
|
if ((world.getStatus() == 0) && world.oracle.contains(npc))
|
||||||
{
|
{
|
||||||
return "32281.htm";// TODO: Missing HTML.
|
return "32281.htm"; // TODO: Missing HTML.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
npc.showChatWindow(player);
|
npc.showChatWindow(player);
|
||||||
|
@ -376,7 +376,7 @@ public class Kamaloka extends AbstractInstance
|
|||||||
public int index; // 0-18 index of the kama type in arrays
|
public int index; // 0-18 index of the kama type in arrays
|
||||||
public int shaman = 0; // objectId of the shaman
|
public int shaman = 0; // objectId of the shaman
|
||||||
public List<Spawn> firstRoom; // list of the spawns in the first room (excluding shaman)
|
public List<Spawn> firstRoom; // list of the spawns in the first room (excluding shaman)
|
||||||
public List<Integer> secondRoom;// list of objectIds mobs in the second room
|
public List<Integer> secondRoom; // list of objectIds mobs in the second room
|
||||||
public int miniBoss = 0; // objectId of the miniboss
|
public int miniBoss = 0; // objectId of the miniboss
|
||||||
public Npc boss = null; // boss
|
public Npc boss = null; // boss
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,7 @@ public class Q00257_TheGuardIsBusy extends Quest
|
|||||||
MONSTERS.put(20006, Arrays.asList(new MobDrop(10, 2, ORC_AMULET, 2), new MobDrop(10, 10, ORC_AMULET, 1))); // Orc Archer
|
MONSTERS.put(20006, Arrays.asList(new MobDrop(10, 2, ORC_AMULET, 2), new MobDrop(10, 10, ORC_AMULET, 1))); // Orc Archer
|
||||||
MONSTERS.put(20093, Arrays.asList(new MobDrop(100, 85, ORC_NECKLACE, 1))); // Orc Fighter
|
MONSTERS.put(20093, Arrays.asList(new MobDrop(100, 85, ORC_NECKLACE, 1))); // Orc Fighter
|
||||||
MONSTERS.put(20096, Arrays.asList(new MobDrop(100, 95, ORC_NECKLACE, 1))); // Orc Fighter Sub Leader
|
MONSTERS.put(20096, Arrays.asList(new MobDrop(100, 95, ORC_NECKLACE, 1))); // Orc Fighter Sub Leader
|
||||||
MONSTERS.put(20098, Arrays.asList(new MobDrop(100, 100, ORC_NECKLACE, 1)));// Orc Fighter Leader
|
MONSTERS.put(20098, Arrays.asList(new MobDrop(100, 100, ORC_NECKLACE, 1))); // Orc Fighter Leader
|
||||||
MONSTERS.put(20130, Arrays.asList(new MobDrop(10, 7, ORC_AMULET, 1))); // Orc
|
MONSTERS.put(20130, Arrays.asList(new MobDrop(10, 7, ORC_AMULET, 1))); // Orc
|
||||||
MONSTERS.put(20131, Arrays.asList(new MobDrop(10, 9, ORC_AMULET, 1))); // Orc Grunt
|
MONSTERS.put(20131, Arrays.asList(new MobDrop(10, 9, ORC_AMULET, 1))); // Orc Grunt
|
||||||
MONSTERS.put(20132, Arrays.asList(new MobDrop(10, 7, WEREWOLF_FANG, 1))); // Werewolf
|
MONSTERS.put(20132, Arrays.asList(new MobDrop(10, 7, WEREWOLF_FANG, 1))); // Werewolf
|
||||||
|
@ -152,7 +152,7 @@ public class Q00296_TarantulasSpiderSilk extends Quest
|
|||||||
{
|
{
|
||||||
giveAdena(talker, (silk * 30) + (silk >= 10 ? 2000 : 0), true);
|
giveAdena(talker, (silk * 30) + (silk >= 10 ? 2000 : 0), true);
|
||||||
takeItems(talker, TARANTULA_SPIDER_SILK, -1);
|
takeItems(talker, TARANTULA_SPIDER_SILK, -1);
|
||||||
Q00281_HeadForTheHills.giveNewbieReward(talker);// TODO: It's using wrong bitmask, need to create a general bitmask for this using EnumIntBitmask class inside Quest class for handling Quest rewards.
|
Q00281_HeadForTheHills.giveNewbieReward(talker); // TODO: It's using wrong bitmask, need to create a general bitmask for this using EnumIntBitmask class inside Quest class for handling Quest rewards.
|
||||||
html = "30519-05.html";
|
html = "30519-05.html";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -1693,7 +1693,7 @@ public class ClanHallManagerInstance extends MerchantInstance
|
|||||||
filename = "data/html/clanHallManager/chamberlain-" + getId() + ".htm";
|
filename = "data/html/clanHallManager/chamberlain-" + getId() + ".htm";
|
||||||
if (!HtmCache.getInstance().isLoadable(filename))
|
if (!HtmCache.getInstance().isLoadable(filename))
|
||||||
{
|
{
|
||||||
filename = "data/html/clanHallManager/chamberlain.htm";// Owner message window
|
filename = "data/html/clanHallManager/chamberlain.htm"; // Owner message window
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (condition == COND_OWNER_FALSE)
|
else if (condition == COND_OWNER_FALSE)
|
||||||
|
@ -459,7 +459,7 @@ public class Siege implements Siegable
|
|||||||
getCastle().removeUpgrade(); // Remove all castle upgrade
|
getCastle().removeUpgrade(); // Remove all castle upgrade
|
||||||
getCastle().spawnDoor(true); // Respawn door to castle but make them weaker (50% hp)
|
getCastle().spawnDoor(true); // Respawn door to castle but make them weaker (50% hp)
|
||||||
removeTowers(); // Remove all towers from this castle
|
removeTowers(); // Remove all towers from this castle
|
||||||
_controlTowerCount = 0;// Each new siege midvictory CT are completely respawned.
|
_controlTowerCount = 0; // Each new siege midvictory CT are completely respawned.
|
||||||
spawnControlTower();
|
spawnControlTower();
|
||||||
spawnFlameTower();
|
spawnFlameTower();
|
||||||
updatePlayerSiegeStateFlags(false);
|
updatePlayerSiegeStateFlags(false);
|
||||||
|
@ -1368,7 +1368,7 @@ public class Formulas
|
|||||||
double val = 0;
|
double val = 0;
|
||||||
if (attacker.isChargedShot(ShotType.BLESSED_SPIRITSHOTS))
|
if (attacker.isChargedShot(ShotType.BLESSED_SPIRITSHOTS))
|
||||||
{
|
{
|
||||||
val = mAtk * 3.0;// 3.0 is the blessed spiritshot multiplier
|
val = mAtk * 3.0; // 3.0 is the blessed spiritshot multiplier
|
||||||
}
|
}
|
||||||
val += mAtk;
|
val += mAtk;
|
||||||
val = (Math.sqrt(val) / target.getMDef(null, null)) * 11.0;
|
val = (Math.sqrt(val) / target.getMDef(null, null)) * 11.0;
|
||||||
|
@ -39,7 +39,7 @@ public class RequestGetItemFromPet implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
_objectId = packet.readD();
|
_objectId = packet.readD();
|
||||||
_amount = packet.readQ();
|
_amount = packet.readQ();
|
||||||
_unknown = packet.readD();// = 0 for most trades
|
_unknown = packet.readD(); // = 0 for most trades
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -111,8 +111,8 @@ public abstract class AbstractNpcInfo implements IClientOutgoingPacket
|
|||||||
_rhand = cha.getRightHandItem(); // On every subclass
|
_rhand = cha.getRightHandItem(); // On every subclass
|
||||||
_lhand = cha.getLeftHandItem(); // On every subclass
|
_lhand = cha.getLeftHandItem(); // On every subclass
|
||||||
_enchantEffect = cha.getEnchantEffect();
|
_enchantEffect = cha.getEnchantEffect();
|
||||||
_collisionHeight = cha.getCollisionHeight();// On every subclass
|
_collisionHeight = cha.getCollisionHeight(); // On every subclass
|
||||||
_collisionRadius = cha.getCollisionRadius();// On every subclass
|
_collisionRadius = cha.getCollisionRadius(); // On every subclass
|
||||||
_isAttackable = cha.isAutoAttackable(attacker);
|
_isAttackable = cha.isAutoAttackable(attacker);
|
||||||
|
|
||||||
// npc crest of owning clan/ally of castle
|
// npc crest of owning clan/ally of castle
|
||||||
@ -313,7 +313,7 @@ public abstract class AbstractNpcInfo implements IClientOutgoingPacket
|
|||||||
packet.writeD(0x00); // C4
|
packet.writeD(0x00); // C4
|
||||||
packet.writeD(0x00); // C6
|
packet.writeD(0x00); // C6
|
||||||
packet.writeD(0x00);
|
packet.writeD(0x00);
|
||||||
packet.writeD(0);// CT1.5 Pet form and skills
|
packet.writeD(0); // CT1.5 Pet form and skills
|
||||||
packet.writeC(0x01);
|
packet.writeC(0x01);
|
||||||
packet.writeC(0x01);
|
packet.writeC(0x01);
|
||||||
packet.writeD(0x00);
|
packet.writeD(0x00);
|
||||||
@ -388,7 +388,7 @@ public abstract class AbstractNpcInfo implements IClientOutgoingPacket
|
|||||||
packet.writeS(_name);
|
packet.writeS(_name);
|
||||||
packet.writeD(-1); // High Five NPCString ID
|
packet.writeD(-1); // High Five NPCString ID
|
||||||
packet.writeS(_title);
|
packet.writeS(_title);
|
||||||
packet.writeD(0x01);// Title color 0=client default
|
packet.writeD(0x01); // Title color 0=client default
|
||||||
|
|
||||||
packet.writeD(_summon.getPvpFlag());
|
packet.writeD(_summon.getPvpFlag());
|
||||||
packet.writeD(_summon.getKarma());
|
packet.writeD(_summon.getKarma());
|
||||||
|
@ -118,7 +118,7 @@ public class GMViewCharacterInfo implements IClientOutgoingPacket
|
|||||||
packet.writeD(_flyRunSpd);
|
packet.writeD(_flyRunSpd);
|
||||||
packet.writeD(_flyWalkSpd);
|
packet.writeD(_flyWalkSpd);
|
||||||
packet.writeF(_moveMultiplier);
|
packet.writeF(_moveMultiplier);
|
||||||
packet.writeF(_player.getAttackSpeedMultiplier()); // 2.9);//
|
packet.writeF(_player.getAttackSpeedMultiplier()); // 2.9); //
|
||||||
packet.writeF(_player.getCollisionRadius()); // scale
|
packet.writeF(_player.getCollisionRadius()); // scale
|
||||||
packet.writeF(_player.getCollisionHeight()); // y offset ??!? fem dwarf 4033
|
packet.writeF(_player.getCollisionHeight()); // y offset ??!? fem dwarf 4033
|
||||||
packet.writeD(_player.getAppearance().getHairStyle());
|
packet.writeD(_player.getAppearance().getHairStyle());
|
||||||
|
@ -37,7 +37,7 @@ public class PartySmallWindowAdd implements IClientOutgoingPacket
|
|||||||
{
|
{
|
||||||
OutgoingPackets.PARTY_SMALL_WINDOW_ADD.writeId(packet);
|
OutgoingPackets.PARTY_SMALL_WINDOW_ADD.writeId(packet);
|
||||||
packet.writeD(_party.getLeaderObjectId()); // c3
|
packet.writeD(_party.getLeaderObjectId()); // c3
|
||||||
packet.writeD(_party.getDistributionType().getId());// packet.writeD(0x04); ?? //c3
|
packet.writeD(_party.getDistributionType().getId()); // packet.writeD(0x04); ?? //c3
|
||||||
packet.writeD(_member.getObjectId());
|
packet.writeD(_member.getObjectId());
|
||||||
packet.writeS(_member.getName());
|
packet.writeS(_member.getName());
|
||||||
packet.writeD((int) _member.getCurrentCp()); // c4
|
packet.writeD((int) _member.getCurrentCp()); // c4
|
||||||
|
@ -56,7 +56,7 @@ public class PartySmallWindowAll implements IClientOutgoingPacket
|
|||||||
packet.writeD(member.getMaxMp());
|
packet.writeD(member.getMaxMp());
|
||||||
packet.writeD(member.getLevel());
|
packet.writeD(member.getLevel());
|
||||||
packet.writeD(member.getClassId().getId());
|
packet.writeD(member.getClassId().getId());
|
||||||
packet.writeD(0x00);// packet.writeD(0x01); ??
|
packet.writeD(0x00); // packet.writeD(0x01); ??
|
||||||
packet.writeD(member.getRace().ordinal());
|
packet.writeD(member.getRace().ordinal());
|
||||||
packet.writeD(0x00); // T2.3
|
packet.writeD(0x00); // T2.3
|
||||||
packet.writeD(0x00); // T2.3
|
packet.writeD(0x00); // T2.3
|
||||||
|
@ -132,39 +132,39 @@ public class PetInfo implements IClientOutgoingPacket
|
|||||||
packet.writeD(_summon.getKarma()); // karma
|
packet.writeD(_summon.getKarma()); // karma
|
||||||
packet.writeD(_curFed); // how fed it is
|
packet.writeD(_curFed); // how fed it is
|
||||||
packet.writeD(_maxFed); // max fed it can be
|
packet.writeD(_maxFed); // max fed it can be
|
||||||
packet.writeD((int) _summon.getCurrentHp());// current hp
|
packet.writeD((int) _summon.getCurrentHp()); // current hp
|
||||||
packet.writeD(_maxHp);// max hp
|
packet.writeD(_maxHp); // max hp
|
||||||
packet.writeD((int) _summon.getCurrentMp());// current mp
|
packet.writeD((int) _summon.getCurrentMp()); // current mp
|
||||||
packet.writeD(_maxMp);// max mp
|
packet.writeD(_maxMp); // max mp
|
||||||
packet.writeD((int) _summon.getStat().getSp()); // sp
|
packet.writeD((int) _summon.getStat().getSp()); // sp
|
||||||
packet.writeD(_summon.getLevel());// lvl
|
packet.writeD(_summon.getLevel()); // lvl
|
||||||
packet.writeQ(_summon.getStat().getExp());
|
packet.writeQ(_summon.getStat().getExp());
|
||||||
|
|
||||||
if (_summon.getExpForThisLevel() > _summon.getStat().getExp())
|
if (_summon.getExpForThisLevel() > _summon.getStat().getExp())
|
||||||
{
|
{
|
||||||
packet.writeQ(_summon.getStat().getExp());// 0% absolute value
|
packet.writeQ(_summon.getStat().getExp()); // 0% absolute value
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
packet.writeQ(_summon.getExpForThisLevel());// 0% absolute value
|
packet.writeQ(_summon.getExpForThisLevel()); // 0% absolute value
|
||||||
}
|
}
|
||||||
|
|
||||||
packet.writeQ(_summon.getExpForNextLevel());// 100% absoulte value
|
packet.writeQ(_summon.getExpForNextLevel()); // 100% absoulte value
|
||||||
packet.writeD(_summon.isPet() ? _summon.getInventory().getTotalWeight() : 0);// weight
|
packet.writeD(_summon.isPet() ? _summon.getInventory().getTotalWeight() : 0); // weight
|
||||||
packet.writeD(_summon.getMaxLoad());// max weight it can carry
|
packet.writeD(_summon.getMaxLoad()); // max weight it can carry
|
||||||
packet.writeD((int) _summon.getPAtk(null));// patk
|
packet.writeD((int) _summon.getPAtk(null)); // patk
|
||||||
packet.writeD((int) _summon.getPDef(null));// pdef
|
packet.writeD((int) _summon.getPDef(null)); // pdef
|
||||||
packet.writeD((int) _summon.getMAtk(null, null));// matk
|
packet.writeD((int) _summon.getMAtk(null, null)); // matk
|
||||||
packet.writeD((int) _summon.getMDef(null, null));// mdef
|
packet.writeD((int) _summon.getMDef(null, null)); // mdef
|
||||||
packet.writeD(_summon.getAccuracy());// accuracy
|
packet.writeD(_summon.getAccuracy()); // accuracy
|
||||||
packet.writeD(_summon.getEvasionRate(null));// evasion
|
packet.writeD(_summon.getEvasionRate(null)); // evasion
|
||||||
packet.writeD(_summon.getCriticalHit(null, null));// critical
|
packet.writeD(_summon.getCriticalHit(null, null)); // critical
|
||||||
packet.writeD((int) _summon.getMoveSpeed());// speed
|
packet.writeD((int) _summon.getMoveSpeed()); // speed
|
||||||
packet.writeD((int) _summon.getPAtkSpd());// atkspeed
|
packet.writeD((int) _summon.getPAtkSpd()); // atkspeed
|
||||||
packet.writeD(_summon.getMAtkSpd());// casting speed
|
packet.writeD(_summon.getMAtkSpd()); // casting speed
|
||||||
|
|
||||||
packet.writeD(_summon.getAbnormalVisualEffects());// c2 abnormal visual effect... bleed=1; poison=2; poison & bleed=3; flame=4;
|
packet.writeD(_summon.getAbnormalVisualEffects()); // c2 abnormal visual effect... bleed=1; poison=2; poison & bleed=3; flame=4;
|
||||||
packet.writeH(_summon.isMountable() ? 1 : 0);// c2 ride button
|
packet.writeH(_summon.isMountable() ? 1 : 0); // c2 ride button
|
||||||
|
|
||||||
packet.writeC(_summon.isInsideZone(ZoneId.WATER) ? 1 : _summon.isFlying() ? 2 : 0); // c2
|
packet.writeC(_summon.isInsideZone(ZoneId.WATER) ? 1 : _summon.isFlying() ? 2 : 0); // c2
|
||||||
|
|
||||||
@ -173,7 +173,7 @@ public class PetInfo implements IClientOutgoingPacket
|
|||||||
packet.writeC(_summon.getTeam().getId());
|
packet.writeC(_summon.getTeam().getId());
|
||||||
packet.writeD(_summon.getSoulShotsPerHit()); // How many soulshots this servitor uses per hit
|
packet.writeD(_summon.getSoulShotsPerHit()); // How many soulshots this servitor uses per hit
|
||||||
packet.writeD(_summon.getSpiritShotsPerHit()); // How many spiritshots this servitor uses per hit
|
packet.writeD(_summon.getSpiritShotsPerHit()); // How many spiritshots this servitor uses per hit
|
||||||
packet.writeD(_summon.getFormId());// CT1.5 Pet form and skills
|
packet.writeD(_summon.getFormId()); // CT1.5 Pet form and skills
|
||||||
packet.writeD(_summon.getAbnormalVisualEffectSpecial());
|
packet.writeD(_summon.getAbnormalVisualEffectSpecial());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user