выдаёт ошибку :
Цитата:
C:\Server-Amadeus\INTERLUDE\L2J_IT\java\net\sf\l2j\gameserve r\model\actor\instance\L2PcInstance.java (5669:23) cannot find symbol
C:\Server-Amadeus\INTERLUDE\L2J_IT\java\net\sf\l2j\gameserve r\model\actor\instance\L2PcInstance.java:5669: cannot find symbol
symbol : method setSpiritId(int)
location: class net.sf.l2j.gameserver.model.actor.instance.L2PcIns tance
|
Сделал так :
Добавил в UPDATE_CHARACTER и RESTORE_CHARACTER SpiritId в такой же последовательности, как и в базе стоит.
Потом :
PHP код:
player.getStat().setExp(rset.getLong("exp"));
player.setExpBeforeDeath(rset.getLong("expBeforeDeath"));
// SPIRIT ID
player.setSpiritId(rset.getInt("SpiritID"));
player.getStat().setLevel(rset.getByte("level"));
player.getStat().setSp(rset.getInt("sp"));
Единственное, не особо понял, как это :
Цитата:
В класс L2player добавить переменную:
private int SpiritID;
|
Вроде добавил, но наверное не туда, поэтому не работает. Добавил в L2PcInstance :
PHP код:
/** The Experience of the L2PcInstance before the last Death Penalty */
private long _expBeforeDeath;
// Spirit
private int SpiritId;
/** The Karma of the L2PcInstance (if higher than 0, the name of the L2PcInstance appears in red) */
private int _karma;
/** The number of player killed during a PvP (the player killed was PvP Flagged) */
private int _pvpKills;
/** The PK counter of the L2PcInstance (= Number of non PvP Flagged player killed) */
private int _pkKills;
Спасибо за терпение и активную помощь.