Code format for space before comments.
This commit is contained in:
@@ -232,12 +232,12 @@ public class MapRegionTable
|
||||
|
||||
public int getMapRegionX(int posX)
|
||||
{
|
||||
return (posX >> 15) + 4;// + centerTileX;
|
||||
return (posX >> 15) + 4; // + centerTileX;
|
||||
}
|
||||
|
||||
public int getMapRegionY(int posY)
|
||||
{
|
||||
return (posY >> 15) + 10;// + centerTileX;
|
||||
return (posY >> 15) + 10; // + centerTileX;
|
||||
}
|
||||
|
||||
public int getAreaCastle(Creature creature)
|
||||
@@ -250,7 +250,7 @@ public class MapRegionTable
|
||||
case 0:
|
||||
{
|
||||
castle = 1;
|
||||
break;// Talking Island Village
|
||||
break; // Talking Island Village
|
||||
}
|
||||
case 1:
|
||||
{
|
||||
@@ -446,7 +446,7 @@ public class MapRegionTable
|
||||
case 16:
|
||||
{
|
||||
nearestTown = "Town of Shuttgart";
|
||||
break; // //TODO@ (Check mapregion table)[Luno]
|
||||
break; // TODO: (Check mapregion table)[Luno]
|
||||
}
|
||||
case 18:
|
||||
{
|
||||
|
@@ -40,7 +40,7 @@ public class CustomWorldHandler
|
||||
// Rebirth's skills must be actived only on main class
|
||||
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
|
||||
{
|
||||
private final int _rankId;
|
||||
private final int _party;//
|
||||
private final int _party; //
|
||||
private int _rankPrivs;
|
||||
|
||||
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.
|
||||
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.
|
||||
if (icon.length() < 4)
|
||||
|
@@ -1182,14 +1182,14 @@ public class CTF implements EventTask
|
||||
finishEvent();
|
||||
|
||||
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();
|
||||
|
||||
if (!_started && !_aborted)
|
||||
{ // if is not already started and it's not aborted
|
||||
|
||||
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
|
||||
{
|
||||
@@ -2140,7 +2140,7 @@ public class CTF implements EventTask
|
||||
{
|
||||
if (_teams.size() >= 2)
|
||||
{
|
||||
player.setTeam(0);// clear aura :P
|
||||
player.setTeam(0); // clear aura :P
|
||||
}
|
||||
}
|
||||
player.broadcastUserInfo();
|
||||
|
@@ -2038,7 +2038,7 @@ public class TvT implements EventTask
|
||||
{
|
||||
if (_teams.size() >= 2)
|
||||
{
|
||||
player.setTeam(0);// clear aura :P
|
||||
player.setTeam(0); // clear aura :P
|
||||
}
|
||||
}
|
||||
player.broadcastUserInfo();
|
||||
|
@@ -551,7 +551,7 @@ public class BanditStrongholdSiege extends ClanHallSiege
|
||||
final Calendar siegeStart = Calendar.getInstance();
|
||||
siegeStart.setTimeInMillis(getSiegeDate().getTimeInMillis());
|
||||
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();
|
||||
long remaining = registerTimeRemaining;
|
||||
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
|
||||
{
|
||||
msg = new RequestAquireSkillInfo();// --> [s] 0xa4;
|
||||
msg = new RequestAquireSkillInfo(); // --> [s] 0xa4;
|
||||
break;
|
||||
}
|
||||
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();
|
||||
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(0); // L2Off like
|
||||
newChar.setCurrentMp(newChar.getMaxMp());// L2Off like
|
||||
newChar.setCurrentMp(newChar.getMaxMp()); // L2Off like
|
||||
// newChar.setMaxLoad(template.baseLoad);
|
||||
|
||||
// send acknowledgement
|
||||
|
@@ -92,13 +92,13 @@ public class RequestBlock extends GameClientPacket
|
||||
}
|
||||
case ALLBLOCK:
|
||||
{
|
||||
player.sendPacket(SystemMessageId.MESSAGE_REFUSAL_MODE);// Update by rocknow
|
||||
player.sendPacket(SystemMessageId.MESSAGE_REFUSAL_MODE); // Update by rocknow
|
||||
BlockList.setBlockAll(player, true);
|
||||
break;
|
||||
}
|
||||
case ALLUNBLOCK:
|
||||
{
|
||||
player.sendPacket(SystemMessageId.MESSAGE_ACCEPTANCE_MODE);// Update by rocknow
|
||||
player.sendPacket(SystemMessageId.MESSAGE_ACCEPTANCE_MODE); // Update by rocknow
|
||||
BlockList.setBlockAll(player, false);
|
||||
break;
|
||||
}
|
||||
|
@@ -41,7 +41,7 @@ public class RequestGetItemFromPet extends GameClientPacket
|
||||
{
|
||||
_objectId = readD();
|
||||
_amount = readD();
|
||||
_unknown = readD();// = 0 for most trades
|
||||
_unknown = readD(); // = 0 for most trades
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -201,7 +201,7 @@ public class RequestRestartPoint extends GameClientPacket
|
||||
{
|
||||
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;
|
||||
}
|
||||
loc = MapRegionTable.getInstance().getTeleToLocation(player, MapRegionTable.TeleportWhereType.Town);
|
||||
|
@@ -48,8 +48,8 @@ public class SetPrivateStoreListBuy extends GameClientPacket
|
||||
final int itemId = readD();
|
||||
_items[(x * 4) + 0] = itemId;
|
||||
_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();// TODO analyse this
|
||||
// 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
|
||||
final long cnt = readD();
|
||||
|
||||
if ((cnt > Integer.MAX_VALUE) || (cnt < 0))
|
||||
|
@@ -102,7 +102,7 @@ public class CustomNpcInfo extends GameServerPacket
|
||||
writeD((int) _activeChar.getStatus().getCurrentCp());
|
||||
writeC(_activeChar.getCustomNpcInstance().getEnchantWeapon());
|
||||
writeC(0x00);
|
||||
writeD(0);// clan crest
|
||||
writeD(0); // clan crest
|
||||
writeC(_activeChar.getCustomNpcInstance().isNoble() ? 1 : 0);
|
||||
writeC(_activeChar.getCustomNpcInstance().isHero() ? 1 : 0);
|
||||
writeC(0);
|
||||
|
@@ -176,7 +176,7 @@ public class GMViewCharacterInfo extends GameServerPacket
|
||||
writeD(_runSpd);
|
||||
writeD(_walkSpd);
|
||||
writeF(moveMultiplier);
|
||||
writeF(_player.getAttackSpeedMultiplier()); // 2.9);//
|
||||
writeF(_player.getAttackSpeedMultiplier()); // 2.9); //
|
||||
writeF(_player.getTemplate().collisionRadius); // scale
|
||||
writeF(_player.getTemplate().collisionHeight); // y offset ??!? fem dwarf 4033
|
||||
writeD(_player.getAppearance().getHairStyle());
|
||||
|
@@ -208,7 +208,7 @@ public class NpcInfo extends GameServerPacket
|
||||
|
||||
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).getKarma());
|
||||
}
|
||||
|
@@ -53,7 +53,7 @@ public class PartySmallWindowAdd extends GameServerPacket
|
||||
writeD(_member.getMaxMp());
|
||||
writeD(_member.getLevel());
|
||||
writeD(_member.getClassId().getId());
|
||||
writeD(0);// writeD(0x01); ??
|
||||
writeD(0); // writeD(0x01); ??
|
||||
writeD(0);
|
||||
}
|
||||
}
|
||||
|
@@ -62,7 +62,7 @@ public class PartySmallWindowAll extends GameServerPacket
|
||||
writeD(member.getMaxMp());
|
||||
writeD(member.getLevel());
|
||||
writeD(member.getClassId().getId());
|
||||
writeD(0);// writeD(0x01); ??
|
||||
writeD(0); // writeD(0x01); ??
|
||||
writeD(member.getRace().ordinal());
|
||||
}
|
||||
}
|
||||
|
@@ -31,7 +31,7 @@ public class PetDelete extends GameServerPacket
|
||||
protected final void writeImpl()
|
||||
{
|
||||
writeC(0xb6);
|
||||
writeD(_petId);// dont really know what these two are since i never needed them
|
||||
writeD(_petObjId);// objectId
|
||||
writeD(_petId); // dont really know what these two are since i never needed them
|
||||
writeD(_petObjId); // objectId
|
||||
}
|
||||
}
|
||||
|
@@ -124,34 +124,34 @@ public class PetInfo extends GameServerPacket
|
||||
writeD(_summon.getOwner() != null ? _summon.getOwner().getKarma() : 0); // karma
|
||||
writeD(_curFed); // how fed it is
|
||||
writeD(_maxFed); // max fed it can be
|
||||
writeD((int) _summon.getCurrentHp());// current hp
|
||||
writeD(_maxHp);// max hp
|
||||
writeD((int) _summon.getCurrentMp());// current mp
|
||||
writeD(_maxMp);// max mp
|
||||
writeD((int) _summon.getCurrentHp()); // current hp
|
||||
writeD(_maxHp); // max hp
|
||||
writeD((int) _summon.getCurrentMp()); // current mp
|
||||
writeD(_maxMp); // max mp
|
||||
writeD(_summon.getStat().getSp()); // sp
|
||||
writeD(_summon.getLevel());// lvl
|
||||
writeD(_summon.getLevel()); // lvl
|
||||
writeQ(_summon.getStat().getExp());
|
||||
writeQ(_summon.getExpForThisLevel());// 0% absolute value
|
||||
writeQ(_summon.getExpForNextLevel());// 100% absoulte value
|
||||
writeD(_summon instanceof PetInstance ? _summon.getInventory().getTotalWeight() : 0);// weight
|
||||
writeD(_summon.getMaxLoad());// max weight it can carry
|
||||
writeD(_summon.getPAtk(null));// patk
|
||||
writeD(_summon.getPDef(null));// pdef
|
||||
writeD(_summon.getMAtk(null, null));// matk
|
||||
writeD(_summon.getMDef(null, null));// mdef
|
||||
writeD(_summon.getAccuracy());// accuracy
|
||||
writeD(_summon.getEvasionRate(null));// evasion
|
||||
writeD(_summon.getCriticalHit(null, null));// critical
|
||||
writeD(_runSpd);// speed
|
||||
writeD(_summon.getPAtkSpd());// atkspeed
|
||||
writeD(_summon.getMAtkSpd());// casting speed
|
||||
writeQ(_summon.getExpForThisLevel()); // 0% absolute value
|
||||
writeQ(_summon.getExpForNextLevel()); // 100% absoulte value
|
||||
writeD(_summon instanceof PetInstance ? _summon.getInventory().getTotalWeight() : 0); // weight
|
||||
writeD(_summon.getMaxLoad()); // max weight it can carry
|
||||
writeD(_summon.getPAtk(null)); // patk
|
||||
writeD(_summon.getPDef(null)); // pdef
|
||||
writeD(_summon.getMAtk(null, null)); // matk
|
||||
writeD(_summon.getMDef(null, null)); // mdef
|
||||
writeD(_summon.getAccuracy()); // accuracy
|
||||
writeD(_summon.getEvasionRate(null)); // evasion
|
||||
writeD(_summon.getCriticalHit(null, null)); // critical
|
||||
writeD(_runSpd); // speed
|
||||
writeD(_summon.getPAtkSpd()); // atkspeed
|
||||
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;
|
||||
|
||||
if ((npcId >= 12526) && (npcId <= 12528))
|
||||
{
|
||||
writeH(1);// c2 ride button
|
||||
writeH(1); // c2 ride button
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -68,7 +68,7 @@ public class PetStatusUpdate extends GameServerPacket
|
||||
writeD(_maxMp);
|
||||
writeD(_summon.getLevel());
|
||||
writeQ(_summon.getStat().getExp());
|
||||
writeQ(_summon.getExpForThisLevel());// 0% absolute value
|
||||
writeQ(_summon.getExpForNextLevel());// 100% absolute value
|
||||
writeQ(_summon.getExpForThisLevel()); // 0% absolute value
|
||||
writeQ(_summon.getExpForNextLevel()); // 100% absolute value
|
||||
}
|
||||
}
|
||||
|
@@ -73,7 +73,7 @@ public class PrivateStoreListBuy extends GameServerPacket
|
||||
|
||||
writeD(item.getItem().getBodyPart());
|
||||
writeH(item.getItem().getType2());
|
||||
writeD(item.getPrice());// buyers price
|
||||
writeD(item.getPrice()); // buyers price
|
||||
|
||||
writeD(item.getCount()); // maximum possible tradecount
|
||||
}
|
||||
|
@@ -80,8 +80,8 @@ public class PrivateStoreManageListBuy extends GameServerPacket
|
||||
writeH(0x00);
|
||||
writeD(item.getItem().getBodyPart());
|
||||
writeH(item.getItem().getType2());
|
||||
writeD(item.getPrice());// your price
|
||||
writeD(item.getItem().getReferencePrice());// fixed store price
|
||||
writeD(item.getPrice()); // your price
|
||||
writeD(item.getItem().getReferencePrice()); // fixed store price
|
||||
}
|
||||
}
|
||||
}
|
@@ -76,7 +76,7 @@ public class PrivateStoreManageListSell extends GameServerPacket
|
||||
writeD(item.getItem().getItemId());
|
||||
writeD(item.getCount());
|
||||
writeH(0);
|
||||
writeH(item.getEnchant());// enchant lvl
|
||||
writeH(item.getEnchant()); // enchant lvl
|
||||
writeH(0);
|
||||
writeD(item.getItem().getBodyPart());
|
||||
writeD(item.getPrice()); // store price
|
||||
@@ -91,10 +91,10 @@ public class PrivateStoreManageListSell extends GameServerPacket
|
||||
writeD(item.getItem().getItemId());
|
||||
writeD(item.getCount());
|
||||
writeH(0);
|
||||
writeH(item.getEnchant());// enchant lvl
|
||||
writeH(item.getEnchant()); // enchant lvl
|
||||
writeH(0x00);
|
||||
writeD(item.getItem().getBodyPart());
|
||||
writeD(item.getPrice());// your price
|
||||
writeD(item.getPrice()); // your price
|
||||
writeD(item.getItem().getReferencePrice()); // store price
|
||||
}
|
||||
}
|
||||
|
@@ -53,7 +53,7 @@ public class RecipeBookItemList extends GameServerPacket
|
||||
}
|
||||
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++)
|
||||
{
|
||||
|
@@ -73,7 +73,7 @@ public class RecipeShopManageList extends GameServerPacket
|
||||
}
|
||||
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++)
|
||||
{
|
||||
|
@@ -35,6 +35,6 @@ public class RecipeShopMsg extends GameServerPacket
|
||||
{
|
||||
writeC(0xdb);
|
||||
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)
|
||||
writeC(0xd9);
|
||||
writeD(_manufacturer.getObjectId());
|
||||
writeD((int) _manufacturer.getCurrentMp());// Creator's MP
|
||||
writeD(_manufacturer.getMaxMp());// Creator's MP
|
||||
writeD(_buyer.getAdena());// Buyer Adena
|
||||
writeD((int) _manufacturer.getCurrentMp()); // Creator's MP
|
||||
writeD(_manufacturer.getMaxMp()); // Creator's MP
|
||||
writeD(_buyer.getAdena()); // Buyer Adena
|
||||
|
||||
final int count = createList.size();
|
||||
writeD(count);
|
||||
|
@@ -31,7 +31,7 @@ public class SetupGauge extends GameServerPacket
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
@@ -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 int _speed1;
|
||||
private final int _speed2;// rotation
|
||||
private final int _speed2; // rotation
|
||||
private final int _x;
|
||||
private final int _y;
|
||||
private final int _z;
|
||||
|
@@ -303,7 +303,7 @@ public class GameStatusThread extends Thread
|
||||
final DecimalFormat df = new DecimalFormat(" (0.0000'%')");
|
||||
final DecimalFormat df2 = new DecimalFormat(" # 'KB'");
|
||||
|
||||
_print.println("+----");// ...
|
||||
_print.println("+----"); // ...
|
||||
_print.println("| Allowed Memory:" + df2.format(max));
|
||||
_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));
|
||||
|
Reference in New Issue
Block a user