Code format for space before comments.
This commit is contained in:
@@ -133,7 +133,7 @@ public class AdminMonsterRace implements IAdminCommandHandler
|
||||
// MonsterRace.getInstance().newSpeeds();
|
||||
// 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());
|
||||
|
@@ -874,7 +874,7 @@ public class CrystalCaverns extends AbstractInstance
|
||||
final CCWorld world = (CCWorld) tmpworld;
|
||||
if ((world.getStatus() == 0) && world.oracle.contains(npc))
|
||||
{
|
||||
return "32281.htm";// TODO: Missing HTML.
|
||||
return "32281.htm"; // TODO: Missing HTML.
|
||||
}
|
||||
}
|
||||
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 shaman = 0; // objectId of the 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 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(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(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(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
|
||||
|
@@ -152,7 +152,7 @@ public class Q00296_TarantulasSpiderSilk extends Quest
|
||||
{
|
||||
giveAdena(talker, (silk * 30) + (silk >= 10 ? 2000 : 0), true);
|
||||
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";
|
||||
}
|
||||
else
|
||||
|
@@ -1693,7 +1693,7 @@ public class ClanHallManagerInstance extends MerchantInstance
|
||||
filename = "data/html/clanHallManager/chamberlain-" + getId() + ".htm";
|
||||
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)
|
||||
|
@@ -459,7 +459,7 @@ public class Siege implements Siegable
|
||||
getCastle().removeUpgrade(); // Remove all castle upgrade
|
||||
getCastle().spawnDoor(true); // Respawn door to castle but make them weaker (50% hp)
|
||||
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();
|
||||
spawnFlameTower();
|
||||
updatePlayerSiegeStateFlags(false);
|
||||
|
@@ -1368,7 +1368,7 @@ public class Formulas
|
||||
double val = 0;
|
||||
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 = (Math.sqrt(val) / target.getMDef(null, null)) * 11.0;
|
||||
|
@@ -39,7 +39,7 @@ public class RequestGetItemFromPet implements IClientIncomingPacket
|
||||
{
|
||||
_objectId = packet.readD();
|
||||
_amount = packet.readQ();
|
||||
_unknown = packet.readD();// = 0 for most trades
|
||||
_unknown = packet.readD(); // = 0 for most trades
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@@ -111,8 +111,8 @@ public abstract class AbstractNpcInfo implements IClientOutgoingPacket
|
||||
_rhand = cha.getRightHandItem(); // On every subclass
|
||||
_lhand = cha.getLeftHandItem(); // On every subclass
|
||||
_enchantEffect = cha.getEnchantEffect();
|
||||
_collisionHeight = cha.getCollisionHeight();// On every subclass
|
||||
_collisionRadius = cha.getCollisionRadius();// On every subclass
|
||||
_collisionHeight = cha.getCollisionHeight(); // On every subclass
|
||||
_collisionRadius = cha.getCollisionRadius(); // On every subclass
|
||||
_isAttackable = cha.isAutoAttackable(attacker);
|
||||
|
||||
// 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); // C6
|
||||
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.writeD(0x00);
|
||||
@@ -388,7 +388,7 @@ public abstract class AbstractNpcInfo implements IClientOutgoingPacket
|
||||
packet.writeS(_name);
|
||||
packet.writeD(-1); // High Five NPCString ID
|
||||
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.getKarma());
|
||||
|
@@ -118,7 +118,7 @@ public class GMViewCharacterInfo implements IClientOutgoingPacket
|
||||
packet.writeD(_flyRunSpd);
|
||||
packet.writeD(_flyWalkSpd);
|
||||
packet.writeF(_moveMultiplier);
|
||||
packet.writeF(_player.getAttackSpeedMultiplier()); // 2.9);//
|
||||
packet.writeF(_player.getAttackSpeedMultiplier()); // 2.9); //
|
||||
packet.writeF(_player.getCollisionRadius()); // scale
|
||||
packet.writeF(_player.getCollisionHeight()); // y offset ??!? fem dwarf 4033
|
||||
packet.writeD(_player.getAppearance().getHairStyle());
|
||||
|
@@ -37,7 +37,7 @@ public class PartySmallWindowAdd implements IClientOutgoingPacket
|
||||
{
|
||||
OutgoingPackets.PARTY_SMALL_WINDOW_ADD.writeId(packet);
|
||||
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.writeS(_member.getName());
|
||||
packet.writeD((int) _member.getCurrentCp()); // c4
|
||||
|
@@ -56,7 +56,7 @@ public class PartySmallWindowAll implements IClientOutgoingPacket
|
||||
packet.writeD(member.getMaxMp());
|
||||
packet.writeD(member.getLevel());
|
||||
packet.writeD(member.getClassId().getId());
|
||||
packet.writeD(0x00);// packet.writeD(0x01); ??
|
||||
packet.writeD(0x00); // packet.writeD(0x01); ??
|
||||
packet.writeD(member.getRace().ordinal());
|
||||
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(_curFed); // how fed it is
|
||||
packet.writeD(_maxFed); // max fed it can be
|
||||
packet.writeD((int) _summon.getCurrentHp());// current hp
|
||||
packet.writeD(_maxHp);// max hp
|
||||
packet.writeD((int) _summon.getCurrentMp());// current mp
|
||||
packet.writeD(_maxMp);// max mp
|
||||
packet.writeD((int) _summon.getCurrentHp()); // current hp
|
||||
packet.writeD(_maxHp); // max hp
|
||||
packet.writeD((int) _summon.getCurrentMp()); // current mp
|
||||
packet.writeD(_maxMp); // max mp
|
||||
packet.writeD((int) _summon.getStat().getSp()); // sp
|
||||
packet.writeD(_summon.getLevel());// lvl
|
||||
packet.writeD(_summon.getLevel()); // lvl
|
||||
packet.writeQ(_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
|
||||
{
|
||||
packet.writeQ(_summon.getExpForThisLevel());// 0% absolute value
|
||||
packet.writeQ(_summon.getExpForThisLevel()); // 0% absolute value
|
||||
}
|
||||
|
||||
packet.writeQ(_summon.getExpForNextLevel());// 100% absoulte value
|
||||
packet.writeD(_summon.isPet() ? _summon.getInventory().getTotalWeight() : 0);// weight
|
||||
packet.writeD(_summon.getMaxLoad());// max weight it can carry
|
||||
packet.writeD((int) _summon.getPAtk(null));// patk
|
||||
packet.writeD((int) _summon.getPDef(null));// pdef
|
||||
packet.writeD((int) _summon.getMAtk(null, null));// matk
|
||||
packet.writeD((int) _summon.getMDef(null, null));// mdef
|
||||
packet.writeD(_summon.getAccuracy());// accuracy
|
||||
packet.writeD(_summon.getEvasionRate(null));// evasion
|
||||
packet.writeD(_summon.getCriticalHit(null, null));// critical
|
||||
packet.writeD((int) _summon.getMoveSpeed());// speed
|
||||
packet.writeD((int) _summon.getPAtkSpd());// atkspeed
|
||||
packet.writeD(_summon.getMAtkSpd());// casting speed
|
||||
packet.writeQ(_summon.getExpForNextLevel()); // 100% absoulte value
|
||||
packet.writeD(_summon.isPet() ? _summon.getInventory().getTotalWeight() : 0); // weight
|
||||
packet.writeD(_summon.getMaxLoad()); // max weight it can carry
|
||||
packet.writeD((int) _summon.getPAtk(null)); // patk
|
||||
packet.writeD((int) _summon.getPDef(null)); // pdef
|
||||
packet.writeD((int) _summon.getMAtk(null, null)); // matk
|
||||
packet.writeD((int) _summon.getMDef(null, null)); // mdef
|
||||
packet.writeD(_summon.getAccuracy()); // accuracy
|
||||
packet.writeD(_summon.getEvasionRate(null)); // evasion
|
||||
packet.writeD(_summon.getCriticalHit(null, null)); // critical
|
||||
packet.writeD((int) _summon.getMoveSpeed()); // speed
|
||||
packet.writeD((int) _summon.getPAtkSpd()); // atkspeed
|
||||
packet.writeD(_summon.getMAtkSpd()); // casting speed
|
||||
|
||||
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.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.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.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.getFormId());// CT1.5 Pet form and skills
|
||||
packet.writeD(_summon.getFormId()); // CT1.5 Pet form and skills
|
||||
packet.writeD(_summon.getAbnormalVisualEffectSpecial());
|
||||
return true;
|
||||
}
|
||||
|
@@ -86,7 +86,7 @@ public class PledgeShowMemberListAll implements IClientOutgoingPacket
|
||||
packet.writeD(_clan.getAllyId());
|
||||
packet.writeS(_clan.getAllyName());
|
||||
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(_clan.getSubPledgeMembersCount(_pledgeType));
|
||||
|
||||
@@ -103,7 +103,7 @@ public class PledgeShowMemberListAll implements IClientOutgoingPacket
|
||||
if (player != null)
|
||||
{
|
||||
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
|
||||
{
|
||||
|
@@ -73,7 +73,7 @@ public class RecipeShopManageList implements IClientOutgoingPacket
|
||||
}
|
||||
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++)
|
||||
{
|
||||
|
@@ -37,9 +37,9 @@ public class RecipeShopSellList implements IClientOutgoingPacket
|
||||
{
|
||||
OutgoingPackets.RECIPE_SHOP_SELL_LIST.writeId(packet);
|
||||
packet.writeD(_manufacturer.getObjectId());
|
||||
packet.writeD((int) _manufacturer.getCurrentMp());// Creator's MP
|
||||
packet.writeD(_manufacturer.getMaxMp());// Creator's MP
|
||||
packet.writeQ(_buyer.getAdena());// Buyer Adena
|
||||
packet.writeD((int) _manufacturer.getCurrentMp()); // Creator's MP
|
||||
packet.writeD(_manufacturer.getMaxMp()); // Creator's MP
|
||||
packet.writeQ(_buyer.getAdena()); // Buyer Adena
|
||||
if (!_manufacturer.hasManufactureShop())
|
||||
{
|
||||
packet.writeD(0x00);
|
||||
|
@@ -45,7 +45,7 @@ public class SpecialString implements IClientOutgoingPacket
|
||||
{
|
||||
OutgoingPackets.SERVER_CLOSE_SOCKET.writeId(packet);
|
||||
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.writeD(_x); // ClientRight - x
|
||||
packet.writeD(_y); // ClientTop + y
|
||||
|
Reference in New Issue
Block a user