Jump to content
  • 0

L2 J Mobius H5 Help


andy1984

Question

Hello guys!

Im trying to add on L2 j Mobius H5 free revision a system for parties. This system is adding blue cycles on party members and red on party leader and players can also deactivate it from menu panel. i have it working 100% on acis but here im stucked. See my code bellow from acis.

 

        final Player tmp = getClient().getPlayer();

        final Party party = tmp.getParty();
        final boolean sameparty = tmp != null && party != null && party.equals(_player.getParty());
        if (tmp.getActionStatus(BlockAction.PARTY_CYCLES) != null && !tmp.getActionStatus(BlockAction.PARTY_CYCLES) && Config.ALLOW_PARTY_CYCLES && sameparty && !party.isLeader(_player) || _player.getServerWarTeam().equals("blue"))
            writeC(0x01); // team circle around feet 1= Blue, 2 = red
        else if (tmp.getActionStatus(BlockAction.PARTY_CYCLES) != null && !tmp.getActionStatus(BlockAction.PARTY_CYCLES) && Config.ALLOW_PARTY_CYCLES && sameparty && party.isLeader(_player) || _player.getServerWarTeam().equals("red"))
            writeC(0x02); // team circle around feet 1= Blue, 2 = red    
        else
            writeC(_player.getTeam().getId());

 

the problem is that i cant found how to fix the first line.  final Player tmp = getClient().getPlayer();

If i found how to correct this line then i will find all the rest. i know is it something stupid that i dont know because im not familiar with the pack but any help will be welcomed.

 

Thanks in advance

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
On 3/10/2023 at 11:47 AM, andy1984 said:

Hello guys!

Im trying to add on L2 j Mobius H5 free revision a system for parties. This system is adding blue cycles on party members and red on party leader and players can also deactivate it from menu panel. i have it working 100% on acis but here im stucked. See my code bellow from acis.

 

        final Player tmp = getClient().getPlayer();

        we
        final boolean sameparty = tmp != null && party != null && party.equals(_player.getParty());
        if (tmp.getActionStatus(BlockAction.PARTY_CYCLES) != null && !tmp.getActionStatus(BlockAction.PARTY_CYCLES) && Config.ALLOW_PARTY_CYCLES && sameparty && !party.isLeader(_player) || _player.getServerWarTeam().equals("blue"))
            writeC(0x01); // team circle around feet 1= Blue, 2 = red
        else if (tmp.getActionStatus(BlockAction.PARTY_CYCLES) != null && !tmp.getActionStatus(BlockAction.PARTY_CYCLES) && Config.ALLOW_PARTY_CYCLES && sameparty && party.isLeader(_player) || _player.getServerWarTeam().equals("red"))
            writeC(0x02); // team circle around feet 1= Blue, 2 = red    
        else
            writeC(_player.getTeam().getId());

 

the problem is that i cant found how to fix the first line.  final Player tmp = getClient().getPlayer();

If i found how to correct this line then i will find all the rest. i know is it something stupid that i dont know because im not familiar with the pack but any help will be welcomed.

 

Thanks in advance

 

 

You don't need:
 

final Player tmp = getClient().getPlayer();

 

Change:

 

final Party party = tmp.getParty();

 

To:
 

final Party party = _player.getParty();
Link to comment
Share on other sites

  • 0
1 hour ago, andy1984 said:

if i do like this then the party members will not see my mark. I need to block marks for my self. That line is necessary

 

I didn't read the whole code:

 

final Player tmp = _player.getClient().getPlayer();
final Party party = tmp.getParty();


 

Link to comment
Share on other sites

  • 0

again i have an error... image.png.f0f3540a3d594fd773ac64a2544e7773.png

2 hours ago, andy1984 said:

again i have an error... image.png.f0f3540a3d594fd773ac64a2544e7773.png

i fixed the error but again it blocks the visual for the party members not for me. Its very weird. Seems im not able to broadcast charInfo of the party members when i use the blockAction because im using _player.getClient().getPlayer(); and _player is the user it self, not the party members. Its completely different than aCis.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • Instead of using encedc on it, try renaming it to "Icon.u" instead of "Icon.utx", and put it in your System folder. If it still crashes, the problem might be with your unrealed.
    • How's the project doing? Is there any news? It really interesting 🤔
    • thx for answer, i tried and woks encrypting, but i still having crashes 😞 i changed the icon in skillgrp.dat from "icon.skill0003" to "Myicons.misil" as i saved the file before endec and nothing. this is the report i got
    • New Season coming May 2024! First post updated      Website: L2Kain.net  Discord: https://discord.gg/l2kain  Wiki: https://info.kain.ws/   Important Dates   Server Start: TBD  Open Beta Test: 10th of May 2024!   Basic Information     Briefly about the concept of the server! We decided to move away from the standard Mid-Rate server concept and keep the mechanics of our beloved Lineage 2 that everyone loves! Massive battles for epic bosses, battles for profitable farming locations, resource spoilage and equipment crafting, daily instances, a balanced economy and much more. This server is build as a Craft-PvP concept. The goal is to gather players with a variety of preferences in the game and make a high-quality and interesting server with alternative character development options. We are well aware that "grinding" is an integral part of the game, but we diluted the boring and the same type of farming with interesting solutions and non-standard mechanics!   We have prepared a new High Five x25 on Modern Client for you. This server will be another step in the development of the platform and the project as a whole! Your appeals to those. support was not ignored, which means the new server will be even better than the previous one!      ⭐ Promotions and Bonuses for new players!     ⭐ Events and Giveaways daily!   ⭐ Rewards for Voting!   ℹ️ Server Rates Learn more about server rates! Server rates are configured in such a way that farming is best rewarded. Adena, drops, quests, various rewards and prices in the game store are well balanced among themselves!   Basic Server Rates:  ⭐ Experience & Skill Points - x25  ⭐ Adena Drop - x15 & Fixed Chance 66%  ⭐ Drop Rates - x10  ⭐ Spoil Rates - x10   Crafting keys, recipes drop & spoil with fixed amount from 2 to 3 and increased chances on all locations and quests  related to farm them.  ⭐ Quest Rates - x5  ⭐ Fortresses & Sieges - x5  ⭐ Raid Bosses & Epic Bosses - x1  ⭐ Weight Limit - x10      Connect with Us:  Discord: https://discord.gg/l2kain  Facebook: https://www.facebook.com/KainLineage2  TikTok: https://www.tiktok.com/@l2kain.net  YouTube: https://www.youtube.com/@Lineage2Kain
  • Topics

×
×
  • Create New...