Minor comment changes.
This commit is contained in:
@ -59,7 +59,7 @@ final class GiantServant extends AbstractNpcAI
|
|||||||
SERVANT_TELEPORTS.put("GardenOfGenesis", new Location(207129, 111132, -2040)); // 1010725 Garden of Genesis (Lv. 90)
|
SERVANT_TELEPORTS.put("GardenOfGenesis", new Location(207129, 111132, -2040)); // 1010725 Garden of Genesis (Lv. 90)
|
||||||
SERVANT_TELEPORTS.put("FairySettlement", new Location(214432, 79587, 824)); // 1010726 Fairy Settlement (Lv. 90)
|
SERVANT_TELEPORTS.put("FairySettlement", new Location(214432, 79587, 824)); // 1010726 Fairy Settlement (Lv. 90)
|
||||||
SERVANT_TELEPORTS.put("SealOfShilen", new Location(187383, 20498, -3584)); // 1010727 Seal of Shilen (Lv. 95)
|
SERVANT_TELEPORTS.put("SealOfShilen", new Location(187383, 20498, -3584)); // 1010727 Seal of Shilen (Lv. 95)
|
||||||
SERVANT_TELEPORTS.put("OrbisTempleEntrance", new Location(198703, 86034, -192));// 1010728 Orbis Temple Entrance (Lv. 95)
|
SERVANT_TELEPORTS.put("OrbisTempleEntrance", new Location(198703, 86034, -192)); // 1010728 Orbis Temple Entrance (Lv. 95)
|
||||||
SERVANT_TELEPORTS.put("Parnassus", new Location(149358, 172479, -952)); // 1010729 Parnassus (Lv. 97)
|
SERVANT_TELEPORTS.put("Parnassus", new Location(149358, 172479, -952)); // 1010729 Parnassus (Lv. 97)
|
||||||
SERVANT_TELEPORTS.put("GuilloutineFortress", new Location(44725, 146026, -3512)); // 1010114 Guilloutine Fortress (Lv. 95)
|
SERVANT_TELEPORTS.put("GuilloutineFortress", new Location(44725, 146026, -3512)); // 1010114 Guilloutine Fortress (Lv. 95)
|
||||||
}
|
}
|
||||||
|
@ -130,7 +130,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); } _log.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); } _log.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());
|
||||||
|
@ -86,7 +86,7 @@ public class StatusHandler implements ITelnetHandler
|
|||||||
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));
|
||||||
|
@ -868,9 +868,9 @@ public final class CrystalCaverns extends AbstractInstance
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* private void runBaylorRoom(CCWorld world) { world.status = 30; addSpawn(29101,152758,143479,-12706,52961,false,0,false,world.getInstanceId(),0);//up power addSpawn(29101,151951,142078,-12706,65203,false,0,false,world.getInstanceId(),0);//up power
|
* private void runBaylorRoom(CCWorld world) { world.status = 30; addSpawn(29101,152758,143479,-12706,52961,false,0,false,world.getInstanceId(),0); // up power addSpawn(29101,151951,142078,-12706,65203,false,0,false,world.getInstanceId(),0); // up power
|
||||||
* addSpawn(29101,154396,140667,-12706,22197,false,0,false,world.getInstanceId(),0);//up power addSpawn(29102,152162,141249,-12706,5511,false,0,false,world.getInstanceId(),0);//down power addSpawn(29102,153571,140458,-12706,16699,false,0,false,world.getInstanceId(),0);//down power
|
* addSpawn(29101,154396,140667,-12706,22197,false,0,false,world.getInstanceId(),0); // up power addSpawn(29102,152162,141249,-12706,5511,false,0,false,world.getInstanceId(),0); // down power addSpawn(29102,153571,140458,-12706,16699,false,0,false,world.getInstanceId(),0); // down power
|
||||||
* addSpawn(29102,154976,141265,-12706,26908,false,0,false,world.getInstanceId(),0);//down power addSpawn(29102,155203,142071,-12706,31560,false,0,false,world.getInstanceId(),0);//down power addSpawn(29102,154380,143468,-12708,43943,false,0,false,world.getInstanceId(),0);//down power
|
* addSpawn(29102,154976,141265,-12706,26908,false,0,false,world.getInstanceId(),0); // down power addSpawn(29102,155203,142071,-12706,31560,false,0,false,world.getInstanceId(),0); // down power addSpawn(29102,154380,143468,-12708,43943,false,0,false,world.getInstanceId(),0); // down power
|
||||||
* addSpawn(32271,153573,142069,-9722,11175,false,0,false,world.getInstanceId()); world.Baylor = addSpawn(BAYLOR,153557,142089,-12735,11175,false,0,false,world.getInstanceId(),0); }
|
* addSpawn(32271,153573,142069,-9722,11175,false,0,false,world.getInstanceId()); world.Baylor = addSpawn(BAYLOR,153557,142089,-12735,11175,false,0,false,world.getInstanceId(),0); }
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -885,7 +885,7 @@ public final 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);
|
||||||
|
@ -1169,7 +1169,7 @@ public final class Kamaloka extends AbstractInstance
|
|||||||
int index; // 0-18 index of the kama type in arrays
|
int index; // 0-18 index of the kama type in arrays
|
||||||
int shaman = 0; // objectId of the shaman
|
int shaman = 0; // objectId of the shaman
|
||||||
List<L2Spawn> firstRoom; // list of the spawns in the first room (excluding shaman)
|
List<L2Spawn> firstRoom; // list of the spawns in the first room (excluding shaman)
|
||||||
List<Integer> secondRoom;// list of objectIds mobs in the second room
|
List<Integer> secondRoom; // list of objectIds mobs in the second room
|
||||||
int miniBoss = 0; // objectId of the miniboss
|
int miniBoss = 0; // objectId of the miniboss
|
||||||
L2Npc boss = null; // boss
|
L2Npc boss = null; // boss
|
||||||
}
|
}
|
||||||
|
@ -47,7 +47,7 @@ public class Q00140_ShadowFoxPart2 extends Quest
|
|||||||
{
|
{
|
||||||
MOBS.put(20789, 45); // Crokian
|
MOBS.put(20789, 45); // Crokian
|
||||||
MOBS.put(20790, 58); // Dailaon
|
MOBS.put(20790, 58); // Dailaon
|
||||||
MOBS.put(20791, 100);// Crokian Warrior
|
MOBS.put(20791, 100); // Crokian Warrior
|
||||||
MOBS.put(20792, 92); // Farhite
|
MOBS.put(20792, 92); // Farhite
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ public class Q00142_FallenAngelRequestOfDawn extends Quest
|
|||||||
MOBS.put(20084, 421); // Ant Patrol
|
MOBS.put(20084, 421); // Ant Patrol
|
||||||
MOBS.put(20086, 371); // Ant Guard
|
MOBS.put(20086, 371); // Ant Guard
|
||||||
MOBS.put(20087, 900); // Ant Soldier
|
MOBS.put(20087, 900); // Ant Soldier
|
||||||
MOBS.put(20088, 1000);// Ant Warrior Captain
|
MOBS.put(20088, 1000); // Ant Warrior Captain
|
||||||
MOBS.put(20089, 431); // Noble Ant
|
MOBS.put(20089, 431); // Noble Ant
|
||||||
MOBS.put(20090, 917); // Noble Ant Leader
|
MOBS.put(20090, 917); // Noble Ant Leader
|
||||||
}
|
}
|
||||||
|
@ -257,7 +257,7 @@ public final class Q00625_TheFinestIngredientsPart2 extends Quest
|
|||||||
public String onSpawn(L2Npc npc)
|
public String onSpawn(L2Npc npc)
|
||||||
{
|
{
|
||||||
startQuestTimer("NPC_TALK", 1000 * 1200, npc, null);
|
startQuestTimer("NPC_TALK", 1000 * 1200, npc, null);
|
||||||
// npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getTemplate().getDisplayId(), NpcStringId.I_SMELL_SOMETHING_DELICIOUS)); //TODO: St3eT: Find proper NpcStringId
|
// npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getTemplate().getDisplayId(), NpcStringId.I_SMELL_SOMETHING_DELICIOUS)); // TODO: St3eT: Find proper NpcStringId
|
||||||
return super.onSpawn(npc);
|
return super.onSpawn(npc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -203,20 +203,20 @@ public class NpcData implements IXmlReader
|
|||||||
set.set("baseMAtk", parseDouble(attrs, "magical"));
|
set.set("baseMAtk", parseDouble(attrs, "magical"));
|
||||||
set.set("baseRndDam", parseInteger(attrs, "random"));
|
set.set("baseRndDam", parseInteger(attrs, "random"));
|
||||||
set.set("baseCritRate", parseInteger(attrs, "critical"));
|
set.set("baseCritRate", parseInteger(attrs, "critical"));
|
||||||
set.set("accuracy", parseDouble(attrs, "accuracy"));// TODO: Implement me
|
set.set("accuracy", parseDouble(attrs, "accuracy")); // TODO: Implement me
|
||||||
set.set("basePAtkSpd", parseInteger(attrs, "attackSpeed"));
|
set.set("basePAtkSpd", parseInteger(attrs, "attackSpeed"));
|
||||||
set.set("reuseDelay", parseInteger(attrs, "reuseDelay"));// TODO: Implement me
|
set.set("reuseDelay", parseInteger(attrs, "reuseDelay")); // TODO: Implement me
|
||||||
set.set("baseAtkType", parseString(attrs, "type"));
|
set.set("baseAtkType", parseString(attrs, "type"));
|
||||||
set.set("baseAtkRange", parseInteger(attrs, "range"));
|
set.set("baseAtkRange", parseInteger(attrs, "range"));
|
||||||
set.set("distance", parseInteger(attrs, "distance"));// TODO: Implement me
|
set.set("distance", parseInteger(attrs, "distance")); // TODO: Implement me
|
||||||
set.set("width", parseInteger(attrs, "width"));// TODO: Implement me
|
set.set("width", parseInteger(attrs, "width")); // TODO: Implement me
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "defence":
|
case "defence":
|
||||||
{
|
{
|
||||||
set.set("basePDef", parseDouble(attrs, "physical"));
|
set.set("basePDef", parseDouble(attrs, "physical"));
|
||||||
set.set("baseMDef", parseDouble(attrs, "magical"));
|
set.set("baseMDef", parseDouble(attrs, "magical"));
|
||||||
set.set("evasion", parseInteger(attrs, "evasion"));// TODO: Implement me
|
set.set("evasion", parseInteger(attrs, "evasion")); // TODO: Implement me
|
||||||
set.set("baseShldDef", parseInteger(attrs, "shield"));
|
set.set("baseShldDef", parseInteger(attrs, "shield"));
|
||||||
set.set("baseShldRate", parseInteger(attrs, "shieldRate"));
|
set.set("baseShldRate", parseInteger(attrs, "shieldRate"));
|
||||||
break;
|
break;
|
||||||
@ -310,7 +310,7 @@ public class NpcData implements IXmlReader
|
|||||||
}
|
}
|
||||||
case "hitTime":
|
case "hitTime":
|
||||||
{
|
{
|
||||||
set.set("hitTime", npcNode.getTextContent());// TODO: Implement me default 600 (value in ms)
|
set.set("hitTime", npcNode.getTextContent()); // TODO: Implement me default 600 (value in ms)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -191,7 +191,7 @@ public final class MapRegionManager implements IXmlReader
|
|||||||
*/
|
*/
|
||||||
public final int getMapRegionX(int posX)
|
public final int getMapRegionX(int posX)
|
||||||
{
|
{
|
||||||
return (posX >> 15) + 9 + 11;// + centerTileX;
|
return (posX >> 15) + 9 + 11; // + centerTileX;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -200,7 +200,7 @@ public final class MapRegionManager implements IXmlReader
|
|||||||
*/
|
*/
|
||||||
public final int getMapRegionY(int posY)
|
public final int getMapRegionY(int posY)
|
||||||
{
|
{
|
||||||
return (posY >> 15) + 10 + 8;// + centerTileX;
|
return (posY >> 15) + 10 + 8; // + centerTileX;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1724,7 +1724,7 @@ public class L2ClanHallManagerInstance extends L2MerchantInstance
|
|||||||
filename = "html/clanHallManager/chamberlain-" + getId() + ".htm";
|
filename = "html/clanHallManager/chamberlain-" + getId() + ".htm";
|
||||||
if (!HtmCache.getInstance().isLoadable(filename))
|
if (!HtmCache.getInstance().isLoadable(filename))
|
||||||
{
|
{
|
||||||
filename = "html/clanHallManager/chamberlain.htm";// Owner message window
|
filename = "html/clanHallManager/chamberlain.htm"; // Owner message window
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (condition == COND_OWNER_FALSE)
|
else if (condition == COND_OWNER_FALSE)
|
||||||
|
@ -12202,7 +12202,7 @@ public final class L2PcInstance extends L2Playable
|
|||||||
{
|
{
|
||||||
_fish.setFishGroup(-1);
|
_fish.setFishGroup(-1);
|
||||||
}
|
}
|
||||||
// sendMessage("Hook x,y: " + _x + "," + _y + " - Water Z, Player Z:" + _z + ", " + getZ()); //debug line, uncoment to show coordinates used in fishing.
|
// sendMessage("Hook x,y: " + _x + "," + _y + " - Water Z, Player Z:" + _z + ", " + getZ()); // debug line, uncoment to show coordinates used in fishing.
|
||||||
broadcastPacket(new ExFishingStart(this, _fish.getFishGroup(), _x, _y, _z, _lure.isNightLure()));
|
broadcastPacket(new ExFishingStart(this, _fish.getFishGroup(), _x, _y, _z, _lure.isNightLure()));
|
||||||
// sendPacket(new PlaySound(1, "SF_P_01", 0, 0, 0, 0, 0));
|
// sendPacket(new PlaySound(1, "SF_P_01", 0, 0, 0, 0, 0));
|
||||||
startLookingForFishTask();
|
startLookingForFishTask();
|
||||||
|
@ -436,7 +436,7 @@ public class L2SepulcherNpcInstance extends L2Npc
|
|||||||
{
|
{
|
||||||
if (msg == null)
|
if (msg == null)
|
||||||
{
|
{
|
||||||
return;// wrong usage
|
return; // wrong usage
|
||||||
}
|
}
|
||||||
|
|
||||||
final CreatureSay creatureSay = new CreatureSay(0, ChatType.NPC_SHOUT, getName(), msg);
|
final CreatureSay creatureSay = new CreatureSay(0, ChatType.NPC_SHOUT, getName(), msg);
|
||||||
|
@ -251,7 +251,7 @@ public final class Fort extends AbstractResidence
|
|||||||
initResidenceZone();
|
initResidenceZone();
|
||||||
initNpcs(); // load and spawn npcs (Always spawned)
|
initNpcs(); // load and spawn npcs (Always spawned)
|
||||||
initSiegeNpcs(); // load suspicious merchants (Despawned 10mins before siege)
|
initSiegeNpcs(); // load suspicious merchants (Despawned 10mins before siege)
|
||||||
// spawnSuspiciousMerchant();// spawn suspicious merchants
|
// spawnSuspiciousMerchant(); // spawn suspicious merchants
|
||||||
initNpcCommanders(); // npc Commanders (not monsters) (Spawned during siege)
|
initNpcCommanders(); // npc Commanders (not monsters) (Spawned during siege)
|
||||||
spawnNpcCommanders(); // spawn npc Commanders
|
spawnNpcCommanders(); // spawn npc Commanders
|
||||||
initSpecialEnvoys(); // envoys from castles (Spawned after fort taken)
|
initSpecialEnvoys(); // envoys from castles (Spawned after fort taken)
|
||||||
|
@ -465,7 +465,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);
|
||||||
|
@ -1442,7 +1442,7 @@ public final 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;
|
||||||
|
@ -1267,27 +1267,27 @@ public final class L2GamePacketHandler implements IPacketHandler<L2GameClient>,
|
|||||||
// @TODO: : RequestExSetPledgeCrestLarge is now chunked, each case is a different chunk
|
// @TODO: : RequestExSetPledgeCrestLarge is now chunked, each case is a different chunk
|
||||||
case 0x00:
|
case 0x00:
|
||||||
{
|
{
|
||||||
msg = new RequestExSetPledgeCrestLarge();// 0
|
msg = new RequestExSetPledgeCrestLarge(); // 0
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 0x01:
|
case 0x01:
|
||||||
{
|
{
|
||||||
msg = new RequestExSetPledgeCrestLarge();// 1
|
msg = new RequestExSetPledgeCrestLarge(); // 1
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 0x02:
|
case 0x02:
|
||||||
{
|
{
|
||||||
msg = new RequestExSetPledgeCrestLarge();// 2
|
msg = new RequestExSetPledgeCrestLarge(); // 2
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 0x03:
|
case 0x03:
|
||||||
{
|
{
|
||||||
msg = new RequestExSetPledgeCrestLarge();// 3
|
msg = new RequestExSetPledgeCrestLarge(); // 3
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 0x04:
|
case 0x04:
|
||||||
{
|
{
|
||||||
msg = new RequestExSetPledgeCrestLarge();// 4
|
msg = new RequestExSetPledgeCrestLarge(); // 4
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
@ -2261,42 +2261,42 @@ public final class L2GamePacketHandler implements IPacketHandler<L2GameClient>,
|
|||||||
}
|
}
|
||||||
case 0xBB:
|
case 0xBB:
|
||||||
{
|
{
|
||||||
// msg = new RequestJoinCuriousHouse();// (ch)
|
// msg = new RequestJoinCuriousHouse(); // (ch)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 0xBC:
|
case 0xBC:
|
||||||
{
|
{
|
||||||
// msg = new RequestCancelCuriousHouse();// (ch)
|
// msg = new RequestCancelCuriousHouse(); // (ch)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 0xBD:
|
case 0xBD:
|
||||||
{
|
{
|
||||||
// msg = new RequestLeaveCuriousHouse();// (ch)
|
// msg = new RequestLeaveCuriousHouse(); // (ch)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 0xBE:
|
case 0xBE:
|
||||||
{
|
{
|
||||||
// msg = new RequestObservingListCuriousHouse();// (ch)
|
// msg = new RequestObservingListCuriousHouse(); // (ch)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 0xBF:
|
case 0xBF:
|
||||||
{
|
{
|
||||||
// msg = new RequestObservingCuriousHouse();// (chd)
|
// msg = new RequestObservingCuriousHouse(); // (chd)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 0xC0:
|
case 0xC0:
|
||||||
{
|
{
|
||||||
// msg = new RequestLeaveObservingCuriousHouse();// (ch)
|
// msg = new RequestLeaveObservingCuriousHouse(); // (ch)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 0xC1:
|
case 0xC1:
|
||||||
{
|
{
|
||||||
// msg = new RequestCuriousHouseHtml();// (ch)
|
// msg = new RequestCuriousHouseHtml(); // (ch)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 0xC2:
|
case 0xC2:
|
||||||
{
|
{
|
||||||
// msg = new RequestCuriousHouseRecord();// (ch)
|
// msg = new RequestCuriousHouseRecord(); // (ch)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 0xC3:
|
case 0xC3:
|
||||||
|
@ -46,7 +46,7 @@ public class RequestExAutoFish extends L2GameClientPacket
|
|||||||
}
|
}
|
||||||
if (activeChar.isFishing())
|
if (activeChar.isFishing())
|
||||||
{
|
{
|
||||||
activeChar.endFishing(true, false);// TODO: Correct Animation
|
activeChar.endFishing(true, false); // TODO: Correct Animation
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -40,7 +40,7 @@ public final class RequestGetItemFromPet extends L2GameClientPacket
|
|||||||
{
|
{
|
||||||
_objectId = readD();
|
_objectId = readD();
|
||||||
_amount = readQ();
|
_amount = readQ();
|
||||||
_unknown = readD();// = 0 for most trades
|
_unknown = readD(); // = 0 for most trades
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -132,7 +132,7 @@ public abstract class AbstractNpcInfo extends L2GameServerPacket
|
|||||||
writeD(0x00); // C4
|
writeD(0x00); // C4
|
||||||
writeD(0x00); // C6
|
writeD(0x00); // C6
|
||||||
writeD(0x00);
|
writeD(0x00);
|
||||||
writeD(0);// CT1.5 Pet form and skills
|
writeD(0); // CT1.5 Pet form and skills
|
||||||
writeC(0x01);
|
writeC(0x01);
|
||||||
writeC(0x01);
|
writeC(0x01);
|
||||||
writeD(0x00);
|
writeD(0x00);
|
||||||
|
@ -86,8 +86,8 @@ public class ExSendUIEvent extends L2GameServerPacket
|
|||||||
writeH(0x8F);
|
writeH(0x8F);
|
||||||
writeD(_objectId);
|
writeD(_objectId);
|
||||||
writeD(_type ? 1 : 0); // 0 = show, 1 = hide (there is 2 = pause and 3 = resume also but they don't work well you can only pause count down and you cannot resume it because resume hides the counter).
|
writeD(_type ? 1 : 0); // 0 = show, 1 = hide (there is 2 = pause and 3 = resume also but they don't work well you can only pause count down and you cannot resume it because resume hides the counter).
|
||||||
writeD(0);// unknown
|
writeD(0); // unknown
|
||||||
writeD(0);// unknown
|
writeD(0); // unknown
|
||||||
writeS(_countUp ? "1" : "0"); // 0 = count down, 1 = count up
|
writeS(_countUp ? "1" : "0"); // 0 = count down, 1 = count up
|
||||||
// timer always disappears 10 seconds before end
|
// timer always disappears 10 seconds before end
|
||||||
writeS(String.valueOf(_startTime / 60));
|
writeS(String.valueOf(_startTime / 60));
|
||||||
|
@ -116,7 +116,7 @@ public class GMViewCharacterInfo extends L2GameServerPacket
|
|||||||
writeD(_flyRunSpd);
|
writeD(_flyRunSpd);
|
||||||
writeD(_flyWalkSpd);
|
writeD(_flyWalkSpd);
|
||||||
writeF(_moveMultiplier);
|
writeF(_moveMultiplier);
|
||||||
writeF(_activeChar.getAttackSpeedMultiplier()); // 2.9);//
|
writeF(_activeChar.getAttackSpeedMultiplier()); // 2.9
|
||||||
writeF(_activeChar.getCollisionRadius()); // scale
|
writeF(_activeChar.getCollisionRadius()); // scale
|
||||||
writeF(_activeChar.getCollisionHeight()); // y offset ??!? fem dwarf 4033
|
writeF(_activeChar.getCollisionHeight()); // y offset ??!? fem dwarf 4033
|
||||||
writeD(_activeChar.getAppearance().getHairStyle());
|
writeD(_activeChar.getAppearance().getHairStyle());
|
||||||
|
@ -35,7 +35,7 @@ public final class PartySmallWindowAdd extends L2GameServerPacket
|
|||||||
{
|
{
|
||||||
writeC(0x4F);
|
writeC(0x4F);
|
||||||
writeD(_party.getLeaderObjectId()); // c3
|
writeD(_party.getLeaderObjectId()); // c3
|
||||||
writeD(_party.getDistributionType().getId());// writeD(0x04); ?? //c3
|
writeD(_party.getDistributionType().getId()); // writeD(0x04); ?? //c3
|
||||||
writeD(_member.getObjectId());
|
writeD(_member.getObjectId());
|
||||||
writeS(_member.getName());
|
writeS(_member.getName());
|
||||||
|
|
||||||
|
@ -114,41 +114,41 @@ public class PetInfo extends L2GameServerPacket
|
|||||||
|
|
||||||
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(_summon.getMaxHp());// max hp
|
writeD(_summon.getMaxHp()); // max hp
|
||||||
writeD((int) _summon.getCurrentMp());// current mp
|
writeD((int) _summon.getCurrentMp()); // current mp
|
||||||
writeD(_summon.getMaxMp());// max mp
|
writeD(_summon.getMaxMp()); // max mp
|
||||||
|
|
||||||
writeQ(_summon.getStat().getSp()); // sp
|
writeQ(_summon.getStat().getSp()); // sp
|
||||||
writeC(_summon.getLevel());// lvl
|
writeC(_summon.getLevel()); // lvl
|
||||||
writeQ(_summon.getStat().getExp());
|
writeQ(_summon.getStat().getExp());
|
||||||
|
|
||||||
if (_summon.getExpForThisLevel() > _summon.getStat().getExp())
|
if (_summon.getExpForThisLevel() > _summon.getStat().getExp())
|
||||||
{
|
{
|
||||||
writeQ(_summon.getStat().getExp());// 0% absolute value
|
writeQ(_summon.getStat().getExp()); // 0% absolute value
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
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.isPet() ? _summon.getInventory().getTotalWeight() : 0);// weight
|
writeD(_summon.isPet() ? _summon.getInventory().getTotalWeight() : 0); // weight
|
||||||
writeD(_summon.getMaxLoad());// max weight it can carry
|
writeD(_summon.getMaxLoad()); // max weight it can carry
|
||||||
writeD((int) _summon.getPAtk(null));// patk
|
writeD((int) _summon.getPAtk(null)); // patk
|
||||||
writeD((int) _summon.getPDef(null));// pdef
|
writeD((int) _summon.getPDef(null)); // pdef
|
||||||
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((int) _summon.getMAtk(null, null));// matk
|
writeD((int) _summon.getMAtk(null, null)); // matk
|
||||||
writeD((int) _summon.getMDef(null, null));// mdef
|
writeD((int) _summon.getMDef(null, null)); // mdef
|
||||||
writeD(_summon.getMagicAccuracy()); // magic accuracy
|
writeD(_summon.getMagicAccuracy()); // magic accuracy
|
||||||
writeD(_summon.getMagicEvasionRate(null)); // magic evasion
|
writeD(_summon.getMagicEvasionRate(null)); // magic evasion
|
||||||
writeD(_summon.getMCriticalHit(null, null)); // mcritical
|
writeD(_summon.getMCriticalHit(null, null)); // mcritical
|
||||||
writeD((int) _summon.getStat().getMoveSpeed());// speed
|
writeD((int) _summon.getStat().getMoveSpeed()); // speed
|
||||||
writeD((int) _summon.getPAtkSpd());// atkspeed
|
writeD((int) _summon.getPAtkSpd()); // atkspeed
|
||||||
writeD(_summon.getMAtkSpd());// casting speed
|
writeD(_summon.getMAtkSpd()); // casting speed
|
||||||
|
|
||||||
writeC(0); // TODO: Check me, might be ride status
|
writeC(0); // TODO: Check me, might be ride status
|
||||||
writeC(_summon.getTeam().getId()); // Confirmed
|
writeC(_summon.getTeam().getId()); // Confirmed
|
||||||
|
@ -101,7 +101,7 @@ public class PledgeShowMemberListAll extends L2GameServerPacket
|
|||||||
writeD(_clan.getAllyId());
|
writeD(_clan.getAllyId());
|
||||||
writeS(_clan.getAllyName());
|
writeS(_clan.getAllyName());
|
||||||
writeD(_clan.getAllyCrestId());
|
writeD(_clan.getAllyCrestId());
|
||||||
writeD(_clan.isAtWar() ? 1 : 0);// new c3
|
writeD(_clan.isAtWar() ? 1 : 0); // new c3
|
||||||
writeD(0x00); // Territory castle ID
|
writeD(0x00); // Territory castle ID
|
||||||
writeD(_clan.getSubPledgeMembersCount(_pledgeType));
|
writeD(_clan.getSubPledgeMembersCount(_pledgeType));
|
||||||
|
|
||||||
@ -118,7 +118,7 @@ public class PledgeShowMemberListAll extends L2GameServerPacket
|
|||||||
if (player != null)
|
if (player != null)
|
||||||
{
|
{
|
||||||
writeD(player.getAppearance().getSex() ? 1 : 0); // no visible effect
|
writeD(player.getAppearance().getSex() ? 1 : 0); // no visible effect
|
||||||
writeD(player.getRace().ordinal());// writeD(1);
|
writeD(player.getRace().ordinal()); // writeD(1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -71,7 +71,7 @@ public class RecipeShopManageList extends L2GameServerPacket
|
|||||||
}
|
}
|
||||||
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++)
|
||||||
{
|
{
|
||||||
|
@ -34,9 +34,9 @@ public class RecipeShopSellList extends L2GameServerPacket
|
|||||||
{
|
{
|
||||||
writeC(0xDF);
|
writeC(0xDF);
|
||||||
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
|
||||||
writeQ(_buyer.getAdena());// Buyer Adena
|
writeQ(_buyer.getAdena()); // Buyer Adena
|
||||||
if (!_manufacturer.hasManufactureShop())
|
if (!_manufacturer.hasManufactureShop())
|
||||||
{
|
{
|
||||||
writeD(0x00);
|
writeD(0x00);
|
||||||
|
@ -29,14 +29,14 @@ public final class SetupGauge extends L2GameServerPacket
|
|||||||
|
|
||||||
public SetupGauge(int dat1, int time)
|
public SetupGauge(int dat1, int time)
|
||||||
{
|
{
|
||||||
_dat1 = dat1;// color 0-blue 1-red 2-cyan 3-green
|
_dat1 = dat1; // color 0-blue 1-red 2-cyan 3-green
|
||||||
_time = time;
|
_time = time;
|
||||||
_time2 = time;
|
_time2 = time;
|
||||||
}
|
}
|
||||||
|
|
||||||
public SetupGauge(int color, int currentTime, int maxTime)
|
public SetupGauge(int color, int currentTime, int maxTime)
|
||||||
{
|
{
|
||||||
_dat1 = color;// color 0-blue 1-red 2-cyan 3-green
|
_dat1 = color; // color 0-blue 1-red 2-cyan 3-green
|
||||||
_time = currentTime;
|
_time = currentTime;
|
||||||
_time2 = maxTime;
|
_time2 = maxTime;
|
||||||
}
|
}
|
||||||
|
@ -104,7 +104,7 @@ public abstract class PathFinding
|
|||||||
int end_x = end.getLoc().getX();
|
int end_x = end.getLoc().getX();
|
||||||
int end_y = end.getLoc().getY();
|
int end_y = end.getLoc().getY();
|
||||||
//List of Visited Nodes
|
//List of Visited Nodes
|
||||||
FastNodeList visited = new FastNodeList(800);//TODO! Add limit to cfg
|
FastNodeList visited = new FastNodeList(800); // TODO! Add limit to cfg
|
||||||
|
|
||||||
// List of Nodes to Visit
|
// List of Nodes to Visit
|
||||||
BinaryNodeHeap to_visit = new BinaryNodeHeap(800);
|
BinaryNodeHeap to_visit = new BinaryNodeHeap(800);
|
||||||
|
@ -349,7 +349,7 @@ public class GeoPathFinding extends PathFinding
|
|||||||
final ByteBuffer pn = _pathNodes.get(regoffset);
|
final ByteBuffer pn = _pathNodes.get(regoffset);
|
||||||
// reading
|
// reading
|
||||||
final byte nodes = pn.get(idx);
|
final byte nodes = pn.get(idx);
|
||||||
idx += (layer * 10) + 1;// byte + layer*10byte
|
idx += (layer * 10) + 1; // byte + layer*10byte
|
||||||
if (nodes < layer)
|
if (nodes < layer)
|
||||||
{
|
{
|
||||||
_log.warning("SmthWrong!");
|
_log.warning("SmthWrong!");
|
||||||
|
@ -187,30 +187,30 @@ public final class GeoUtils
|
|||||||
{
|
{
|
||||||
if (y > lastY)
|
if (y > lastY)
|
||||||
{
|
{
|
||||||
return Cell.NSWE_SOUTH_EAST;// Direction.SOUTH_EAST;
|
return Cell.NSWE_SOUTH_EAST; // Direction.SOUTH_EAST;
|
||||||
}
|
}
|
||||||
else if (y < lastY)
|
else if (y < lastY)
|
||||||
{
|
{
|
||||||
return Cell.NSWE_NORTH_EAST;// Direction.NORTH_EAST;
|
return Cell.NSWE_NORTH_EAST; // Direction.NORTH_EAST;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return Cell.NSWE_EAST;// Direction.EAST;
|
return Cell.NSWE_EAST; // Direction.EAST;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (x < lastX) // west
|
else if (x < lastX) // west
|
||||||
{
|
{
|
||||||
if (y > lastY)
|
if (y > lastY)
|
||||||
{
|
{
|
||||||
return Cell.NSWE_SOUTH_WEST;// Direction.SOUTH_WEST;
|
return Cell.NSWE_SOUTH_WEST; // Direction.SOUTH_WEST;
|
||||||
}
|
}
|
||||||
else if (y < lastY)
|
else if (y < lastY)
|
||||||
{
|
{
|
||||||
return Cell.NSWE_NORTH_WEST;// Direction.NORTH_WEST;
|
return Cell.NSWE_NORTH_WEST; // Direction.NORTH_WEST;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return Cell.NSWE_WEST;// Direction.WEST;
|
return Cell.NSWE_WEST; // Direction.WEST;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -218,11 +218,11 @@ public final class GeoUtils
|
|||||||
{
|
{
|
||||||
if (y > lastY)
|
if (y > lastY)
|
||||||
{
|
{
|
||||||
return Cell.NSWE_SOUTH;// Direction.SOUTH;
|
return Cell.NSWE_SOUTH; // Direction.SOUTH;
|
||||||
}
|
}
|
||||||
else if (y < lastY)
|
else if (y < lastY)
|
||||||
{
|
{
|
||||||
return Cell.NSWE_NORTH;// Direction.NORTH;
|
return Cell.NSWE_NORTH; // Direction.NORTH;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -26,7 +26,7 @@ public class ChangePasswordResponse extends BaseSendablePacket
|
|||||||
public ChangePasswordResponse(byte successful, String characterName, String msgToSend)
|
public ChangePasswordResponse(byte successful, String characterName, String msgToSend)
|
||||||
{
|
{
|
||||||
writeC(0x06);
|
writeC(0x06);
|
||||||
// writeC(successful); //0 false, 1 true
|
// writeC(successful); // 0 false, 1 true
|
||||||
writeS(characterName);
|
writeS(characterName);
|
||||||
writeS(msgToSend);
|
writeS(msgToSend);
|
||||||
}
|
}
|
||||||
|
@ -117,7 +117,7 @@ public abstract class BaseSendablePacket
|
|||||||
public byte[] getBytes()
|
public byte[] getBytes()
|
||||||
{
|
{
|
||||||
// if (this instanceof Init)
|
// if (this instanceof Init)
|
||||||
// writeD(0x00); //reserve for XOR initial key
|
// writeD(0x00); // reserve for XOR initial key
|
||||||
|
|
||||||
writeD(0x00); // reserve for checksum
|
writeD(0x00); // reserve for checksum
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user