This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
Gam3Master
Hello. I use interlude project based on aCis and when i tested Olympiad i had some problems.
1.There was no countdown before game started. fixed
2.You have to push ctrl+attack to attack player. fixed
3.Windows which shows your opponents cp/hp don't work
I can't fix third one and can anyone help me with that?
I think it is problem of ExOlympiadUserInfo.
public class ExOlympiadUserInfo extends L2GameServerPacket { private final L2PlayerInstance _player; private Participant _par = null; private int _curHp; private int _maxHp; private int _curCp; private int _maxCp; public ExOlympiadUserInfo(L2PlayerInstance player) { _player = player; if (_player != null) { _curHp = (int)_player.getCurrentHp(); _maxHp = _player.getMaxHp(); _curCp = (int)_player.getCurrentCp(); _maxCp = _player.getMaxCp(); } else { _curHp = 0; _maxHp = 100; _curCp = 0; _maxCp = 100; } } public ExOlympiadUserInfo(Participant par) { _par = par; _player = par.player; if (_player != null) { _curHp = (int)_player.getCurrentHp(); _maxHp = _player.getMaxHp(); _curCp = (int)_player.getCurrentCp(); _maxCp = _player.getMaxCp(); } else { _curHp = 0; _maxHp = 100; _curCp = 0; _maxCp = 100; } } @Override protected final void writeImpl() { writeC(0xfe); writeH(0x29); if (_player != null) { writeC(_player.getOlympiadSide()); writeD(_player.getObjectId()); writeS(_player.getName()); writeD(_player.getClassId().getId()); } else { writeC(_par.side); writeD(_par.objectId); writeS(_par.name); writeD(_par.baseClass); } writeD(_curHp); writeD(_maxHp); writeD(_curCp); writeD(_maxCp); } }5 answers to this question
Recommended Posts