|
@@ -17,7 +17,6 @@ package com.l2jserver.gameserver.model;
|
|
import com.l2jserver.gameserver.model.itemcontainer.Inventory;
|
|
import com.l2jserver.gameserver.model.itemcontainer.Inventory;
|
|
import com.l2jserver.gameserver.model.itemcontainer.PcInventory;
|
|
import com.l2jserver.gameserver.model.itemcontainer.PcInventory;
|
|
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* Used to Store data sent to Client for Character
|
|
* Used to Store data sent to Client for Character
|
|
* Selection screen.
|
|
* Selection screen.
|
|
@@ -29,34 +28,34 @@ public class CharSelectInfoPackage
|
|
private String _name;
|
|
private String _name;
|
|
private int _objectId = 0;
|
|
private int _objectId = 0;
|
|
private int _charId = 0x00030b7a;
|
|
private int _charId = 0x00030b7a;
|
|
- private long _exp =0;
|
|
|
|
- private int _sp =0;
|
|
|
|
- private int _clanId=0;
|
|
|
|
- private int _race=0;
|
|
|
|
- private int _classId=0;
|
|
|
|
- private int _baseClassId=0;
|
|
|
|
- private long _deleteTimer=0L;
|
|
|
|
- private long _lastAccess=0L;
|
|
|
|
- private int _face=0;
|
|
|
|
- private int _hairStyle=0;
|
|
|
|
- private int _hairColor=0;
|
|
|
|
- private int _sex=0;
|
|
|
|
|
|
+ private long _exp = 0;
|
|
|
|
+ private int _sp = 0;
|
|
|
|
+ private int _clanId = 0;
|
|
|
|
+ private int _race = 0;
|
|
|
|
+ private int _classId = 0;
|
|
|
|
+ private int _baseClassId = 0;
|
|
|
|
+ private long _deleteTimer = 0L;
|
|
|
|
+ private long _lastAccess = 0L;
|
|
|
|
+ private int _face = 0;
|
|
|
|
+ private int _hairStyle = 0;
|
|
|
|
+ private int _hairColor = 0;
|
|
|
|
+ private int _sex = 0;
|
|
private int _level = 1;
|
|
private int _level = 1;
|
|
- private int _maxHp=0;
|
|
|
|
- private double _currentHp=0;
|
|
|
|
- private int _maxMp=0;
|
|
|
|
- private double _currentMp=0;
|
|
|
|
|
|
+ private int _maxHp = 0;
|
|
|
|
+ private double _currentHp = 0;
|
|
|
|
+ private int _maxMp = 0;
|
|
|
|
+ private double _currentMp = 0;
|
|
private int[][] _paperdoll;
|
|
private int[][] _paperdoll;
|
|
- private int _karma=0;
|
|
|
|
- private int _pkKills=0;
|
|
|
|
- private int _pvpKills=0;
|
|
|
|
- private int _augmentationId=0;
|
|
|
|
|
|
+ private int _karma = 0;
|
|
|
|
+ private int _pkKills = 0;
|
|
|
|
+ private int _pvpKills = 0;
|
|
|
|
+ private int _augmentationId = 0;
|
|
private int _transformId = 0;
|
|
private int _transformId = 0;
|
|
private int _x = 0;
|
|
private int _x = 0;
|
|
private int _y = 0;
|
|
private int _y = 0;
|
|
private int _z = 0;
|
|
private int _z = 0;
|
|
private String _htmlPrefix = null;
|
|
private String _htmlPrefix = null;
|
|
-
|
|
|
|
|
|
+ private int _vitalityPoints = 0;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @param int1
|
|
* @param int1
|
|
@@ -82,238 +81,306 @@ public class CharSelectInfoPackage
|
|
{
|
|
{
|
|
return _charId;
|
|
return _charId;
|
|
}
|
|
}
|
|
|
|
+
|
|
public void setCharId(int charId)
|
|
public void setCharId(int charId)
|
|
{
|
|
{
|
|
_charId = charId;
|
|
_charId = charId;
|
|
}
|
|
}
|
|
|
|
+
|
|
public int getClanId()
|
|
public int getClanId()
|
|
{
|
|
{
|
|
return _clanId;
|
|
return _clanId;
|
|
}
|
|
}
|
|
|
|
+
|
|
public void setClanId(int clanId)
|
|
public void setClanId(int clanId)
|
|
{
|
|
{
|
|
_clanId = clanId;
|
|
_clanId = clanId;
|
|
}
|
|
}
|
|
|
|
+
|
|
public int getClassId()
|
|
public int getClassId()
|
|
{
|
|
{
|
|
return _classId;
|
|
return _classId;
|
|
}
|
|
}
|
|
|
|
+
|
|
public int getBaseClassId()
|
|
public int getBaseClassId()
|
|
{
|
|
{
|
|
return _baseClassId;
|
|
return _baseClassId;
|
|
}
|
|
}
|
|
|
|
+
|
|
public void setClassId(int classId)
|
|
public void setClassId(int classId)
|
|
{
|
|
{
|
|
_classId = classId;
|
|
_classId = classId;
|
|
}
|
|
}
|
|
|
|
+
|
|
public void setBaseClassId(int baseClassId)
|
|
public void setBaseClassId(int baseClassId)
|
|
{
|
|
{
|
|
_baseClassId = baseClassId;
|
|
_baseClassId = baseClassId;
|
|
}
|
|
}
|
|
|
|
+
|
|
public double getCurrentHp()
|
|
public double getCurrentHp()
|
|
{
|
|
{
|
|
return _currentHp;
|
|
return _currentHp;
|
|
}
|
|
}
|
|
|
|
+
|
|
public void setCurrentHp(double currentHp)
|
|
public void setCurrentHp(double currentHp)
|
|
{
|
|
{
|
|
_currentHp = currentHp;
|
|
_currentHp = currentHp;
|
|
}
|
|
}
|
|
|
|
+
|
|
public double getCurrentMp()
|
|
public double getCurrentMp()
|
|
{
|
|
{
|
|
return _currentMp;
|
|
return _currentMp;
|
|
}
|
|
}
|
|
|
|
+
|
|
public void setCurrentMp(double currentMp)
|
|
public void setCurrentMp(double currentMp)
|
|
{
|
|
{
|
|
_currentMp = currentMp;
|
|
_currentMp = currentMp;
|
|
}
|
|
}
|
|
|
|
+
|
|
public long getDeleteTimer()
|
|
public long getDeleteTimer()
|
|
{
|
|
{
|
|
return _deleteTimer;
|
|
return _deleteTimer;
|
|
}
|
|
}
|
|
|
|
+
|
|
public void setDeleteTimer(long deleteTimer)
|
|
public void setDeleteTimer(long deleteTimer)
|
|
{
|
|
{
|
|
_deleteTimer = deleteTimer;
|
|
_deleteTimer = deleteTimer;
|
|
}
|
|
}
|
|
|
|
+
|
|
public long getLastAccess()
|
|
public long getLastAccess()
|
|
{
|
|
{
|
|
return _lastAccess;
|
|
return _lastAccess;
|
|
}
|
|
}
|
|
|
|
+
|
|
public void setLastAccess(long lastAccess)
|
|
public void setLastAccess(long lastAccess)
|
|
{
|
|
{
|
|
_lastAccess = lastAccess;
|
|
_lastAccess = lastAccess;
|
|
}
|
|
}
|
|
|
|
+
|
|
public long getExp()
|
|
public long getExp()
|
|
{
|
|
{
|
|
return _exp;
|
|
return _exp;
|
|
}
|
|
}
|
|
|
|
+
|
|
public void setExp(long exp)
|
|
public void setExp(long exp)
|
|
{
|
|
{
|
|
_exp = exp;
|
|
_exp = exp;
|
|
}
|
|
}
|
|
|
|
+
|
|
public int getFace()
|
|
public int getFace()
|
|
{
|
|
{
|
|
return _face;
|
|
return _face;
|
|
}
|
|
}
|
|
|
|
+
|
|
public void setFace(int face)
|
|
public void setFace(int face)
|
|
{
|
|
{
|
|
_face = face;
|
|
_face = face;
|
|
}
|
|
}
|
|
|
|
+
|
|
public int getHairColor()
|
|
public int getHairColor()
|
|
{
|
|
{
|
|
return _hairColor;
|
|
return _hairColor;
|
|
}
|
|
}
|
|
|
|
+
|
|
public void setHairColor(int hairColor)
|
|
public void setHairColor(int hairColor)
|
|
{
|
|
{
|
|
_hairColor = hairColor;
|
|
_hairColor = hairColor;
|
|
}
|
|
}
|
|
|
|
+
|
|
public int getHairStyle()
|
|
public int getHairStyle()
|
|
{
|
|
{
|
|
return _hairStyle;
|
|
return _hairStyle;
|
|
}
|
|
}
|
|
|
|
+
|
|
public void setHairStyle(int hairStyle)
|
|
public void setHairStyle(int hairStyle)
|
|
{
|
|
{
|
|
_hairStyle = hairStyle;
|
|
_hairStyle = hairStyle;
|
|
}
|
|
}
|
|
|
|
+
|
|
public int getPaperdollObjectId(int slot)
|
|
public int getPaperdollObjectId(int slot)
|
|
{
|
|
{
|
|
return _paperdoll[slot][0];
|
|
return _paperdoll[slot][0];
|
|
}
|
|
}
|
|
|
|
+
|
|
public int getPaperdollItemId(int slot)
|
|
public int getPaperdollItemId(int slot)
|
|
{
|
|
{
|
|
return _paperdoll[slot][1];
|
|
return _paperdoll[slot][1];
|
|
}
|
|
}
|
|
|
|
+
|
|
public int getLevel()
|
|
public int getLevel()
|
|
{
|
|
{
|
|
return _level;
|
|
return _level;
|
|
}
|
|
}
|
|
|
|
+
|
|
public void setLevel(int level)
|
|
public void setLevel(int level)
|
|
{
|
|
{
|
|
_level = level;
|
|
_level = level;
|
|
}
|
|
}
|
|
|
|
+
|
|
public int getMaxHp()
|
|
public int getMaxHp()
|
|
{
|
|
{
|
|
return _maxHp;
|
|
return _maxHp;
|
|
}
|
|
}
|
|
|
|
+
|
|
public void setMaxHp(int maxHp)
|
|
public void setMaxHp(int maxHp)
|
|
{
|
|
{
|
|
_maxHp = maxHp;
|
|
_maxHp = maxHp;
|
|
}
|
|
}
|
|
|
|
+
|
|
public int getMaxMp()
|
|
public int getMaxMp()
|
|
{
|
|
{
|
|
return _maxMp;
|
|
return _maxMp;
|
|
}
|
|
}
|
|
|
|
+
|
|
public void setMaxMp(int maxMp)
|
|
public void setMaxMp(int maxMp)
|
|
{
|
|
{
|
|
_maxMp = maxMp;
|
|
_maxMp = maxMp;
|
|
}
|
|
}
|
|
|
|
+
|
|
public String getName()
|
|
public String getName()
|
|
{
|
|
{
|
|
return _name;
|
|
return _name;
|
|
}
|
|
}
|
|
|
|
+
|
|
public void setName(String name)
|
|
public void setName(String name)
|
|
{
|
|
{
|
|
_name = name;
|
|
_name = name;
|
|
}
|
|
}
|
|
|
|
+
|
|
public int getRace()
|
|
public int getRace()
|
|
{
|
|
{
|
|
return _race;
|
|
return _race;
|
|
}
|
|
}
|
|
|
|
+
|
|
public void setRace(int race)
|
|
public void setRace(int race)
|
|
{
|
|
{
|
|
_race = race;
|
|
_race = race;
|
|
}
|
|
}
|
|
|
|
+
|
|
public int getSex()
|
|
public int getSex()
|
|
{
|
|
{
|
|
return _sex;
|
|
return _sex;
|
|
}
|
|
}
|
|
|
|
+
|
|
public void setSex(int sex)
|
|
public void setSex(int sex)
|
|
{
|
|
{
|
|
_sex = sex;
|
|
_sex = sex;
|
|
}
|
|
}
|
|
|
|
+
|
|
public int getSp()
|
|
public int getSp()
|
|
{
|
|
{
|
|
return _sp;
|
|
return _sp;
|
|
}
|
|
}
|
|
|
|
+
|
|
public void setSp(int sp)
|
|
public void setSp(int sp)
|
|
{
|
|
{
|
|
_sp = sp;
|
|
_sp = sp;
|
|
}
|
|
}
|
|
|
|
+
|
|
public int getEnchantEffect()
|
|
public int getEnchantEffect()
|
|
{
|
|
{
|
|
if (_paperdoll[Inventory.PAPERDOLL_RHAND][2] > 0)
|
|
if (_paperdoll[Inventory.PAPERDOLL_RHAND][2] > 0)
|
|
return _paperdoll[Inventory.PAPERDOLL_RHAND][2];
|
|
return _paperdoll[Inventory.PAPERDOLL_RHAND][2];
|
|
return _paperdoll[Inventory.PAPERDOLL_RHAND][2];
|
|
return _paperdoll[Inventory.PAPERDOLL_RHAND][2];
|
|
}
|
|
}
|
|
|
|
+
|
|
public void setKarma(int k)
|
|
public void setKarma(int k)
|
|
{
|
|
{
|
|
_karma = k;
|
|
_karma = k;
|
|
}
|
|
}
|
|
|
|
+
|
|
public int getKarma()
|
|
public int getKarma()
|
|
{
|
|
{
|
|
return _karma;
|
|
return _karma;
|
|
}
|
|
}
|
|
|
|
+
|
|
public void setAugmentationId(int augmentationId)
|
|
public void setAugmentationId(int augmentationId)
|
|
{
|
|
{
|
|
_augmentationId = augmentationId;
|
|
_augmentationId = augmentationId;
|
|
}
|
|
}
|
|
|
|
+
|
|
public int getAugmentationId()
|
|
public int getAugmentationId()
|
|
{
|
|
{
|
|
return _augmentationId;
|
|
return _augmentationId;
|
|
}
|
|
}
|
|
|
|
+
|
|
public void setPkKills(int PkKills)
|
|
public void setPkKills(int PkKills)
|
|
{
|
|
{
|
|
_pkKills = PkKills;
|
|
_pkKills = PkKills;
|
|
}
|
|
}
|
|
|
|
+
|
|
public int getPkKills()
|
|
public int getPkKills()
|
|
{
|
|
{
|
|
return _pkKills;
|
|
return _pkKills;
|
|
}
|
|
}
|
|
|
|
+
|
|
public void setPvPKills(int PvPKills)
|
|
public void setPvPKills(int PvPKills)
|
|
{
|
|
{
|
|
_pvpKills = PvPKills;
|
|
_pvpKills = PvPKills;
|
|
}
|
|
}
|
|
|
|
+
|
|
public int getPvPKills()
|
|
public int getPvPKills()
|
|
{
|
|
{
|
|
return _pvpKills;
|
|
return _pvpKills;
|
|
}
|
|
}
|
|
|
|
+
|
|
public int getTransformId()
|
|
public int getTransformId()
|
|
{
|
|
{
|
|
return _transformId;
|
|
return _transformId;
|
|
}
|
|
}
|
|
|
|
+
|
|
public void setTransformId(int id)
|
|
public void setTransformId(int id)
|
|
{
|
|
{
|
|
_transformId = id;
|
|
_transformId = id;
|
|
}
|
|
}
|
|
|
|
+
|
|
public int getX()
|
|
public int getX()
|
|
{
|
|
{
|
|
return _x;
|
|
return _x;
|
|
}
|
|
}
|
|
|
|
+
|
|
public int getY()
|
|
public int getY()
|
|
{
|
|
{
|
|
return _y;
|
|
return _y;
|
|
}
|
|
}
|
|
|
|
+
|
|
public int getZ()
|
|
public int getZ()
|
|
{
|
|
{
|
|
return _z;
|
|
return _z;
|
|
}
|
|
}
|
|
|
|
+
|
|
public void setX(int x)
|
|
public void setX(int x)
|
|
{
|
|
{
|
|
_x = x;
|
|
_x = x;
|
|
}
|
|
}
|
|
|
|
+
|
|
public void setY(int y)
|
|
public void setY(int y)
|
|
{
|
|
{
|
|
_y = y;
|
|
_y = y;
|
|
}
|
|
}
|
|
|
|
+
|
|
public void setZ(int z)
|
|
public void setZ(int z)
|
|
{
|
|
{
|
|
_z = z;
|
|
_z = z;
|
|
}
|
|
}
|
|
|
|
+
|
|
public String getHtmlPrefix()
|
|
public String getHtmlPrefix()
|
|
{
|
|
{
|
|
return _htmlPrefix;
|
|
return _htmlPrefix;
|
|
}
|
|
}
|
|
|
|
+
|
|
public void setHtmlPrefix(String s)
|
|
public void setHtmlPrefix(String s)
|
|
{
|
|
{
|
|
_htmlPrefix = s;
|
|
_htmlPrefix = s;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public void setVitalityPoints(int points)
|
|
|
|
+ {
|
|
|
|
+ _vitalityPoints = points;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public int getVitalityPoints()
|
|
|
|
+ {
|
|
|
|
+ return _vitalityPoints;
|
|
|
|
+ }
|
|
}
|
|
}
|