Jump to content
  • 0

Exolympiaduserinfo


Gam3Master

Question

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);
}
}
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Sorry, but ExOlympiadUserInfo hasn't changed since it's original inception in C4 - same old in IL, HF, etc.

 

<packet id="SM_EX_OLYMPIAD_USER_INFO">
	<byte alias="Side" type="OlympiadSide" />
	<dword alias="Player OID" type="ObjectID" />
	<string alias="Name" />
	<dword alias="Class" type="CharacterClass" />
	<dword alias="Current HP" /> <!-- real -->
	<dword alias="Maximum HP" /> <!-- real -->
	<dword alias="Current CP" />
	<dword alias="Maximum CP" />
</packet>
FE:29:00 is the correct opcode for IL.

 

So writeImpl() is correct and there's really not much else to be said about the code you pasted.

I'd suggest checking if these packets are actually sent (and if so, with what data).

Link to comment
Share on other sites

  • 0

L2JPes is like 2 if not 3 years old. What you described is a bug I fixed since a while. L2JPes was based on aCis rev 290.

 

From this post : http://acis.i-live.eu/index.php?topic=30.msg18013#msg18013 you read the 4 next pages and it's all issues you will have using it.

 

The issue you are speaking about is fixed on 301 : http://acis.i-live.eu/index.php?topic=30.msg20572#msg20572

Edited by Tryskell
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • New locations pool! Try it and make your effency greater with Asocks.com!
    • Greetings, Adventurers! 🎉 Announcement: L2 Noxis OBT Server Launch! 🎉 Adventurers of Aden, the moment you’ve been waiting for is here! We are thrilled to announce the official launch of the L2 Noxis Open Beta Test (OBT) Server! Gear up and get ready to embark on an epic journey in the world of Lineage 2 with a plethora of new and exciting features: 🔥 Features of L2 Noxis: Path of Rogue server: Modern Auto-Hunting System: Enjoy a seamless and modern auto-hunting experience, just like in the Essence chronicle. Free To Play Structure: Earn Einhasad's Golden Coins and Tarot cards through various in-game activities, making your adventure rewarding and enjoyable. Long-Term Project: Join us in a long-term commitment to provide a stable, exciting, and evolving gaming environment. Robust Anti-Cheat System: Play with confidence knowing that we have implemented a top-notch anti-cheat system to ensure a fair and balanced gaming experience. Newest Chronicle - Lineage 2: Path of Rogue: Experience the latest chronicle with new content, challenges, and adventures. New Classes: Unleash the power of the Death Knight and the mystical abilities of the Shinemaker. Discover new skills, abilities, and strategies with these exciting classes. Enhanced Rates: Enjoy 2x experience points and 2x adena drop rate, making your progression faster and more rewarding. Join us on this incredible journey and be among the first to experience the wonders of the L2 Noxis server. Gather your friends, form alliances, and conquer the lands of Aden!   📅 Launch Date: [July 10, 2024]   Stay tuned for more updates and get ready to explore, battle, and thrive in the world of L2 Noxis! For more information and instructions how to join the OBT, visit our official website: L2Noxis.com See you in Aden, warriors! 🌟     L2 Noxis Team  
  • Topics

×
×
  • Create New...