Jump to content
  • 0

[HELP]Full HP,MP,HP when logging in


Question

Posted

Hello,i would like to ask for a code that will allow players to have full HP,CP and MP when they login.Im asking for this because i have a high stats server and at the login player logs with like 20k hp instead of 500k that's his full hp.Thanks you in advance.

Recommended Posts

  • 0
Posted

enterworld.java

 

activeChar.getStatus().setCurrentHp(activeChar.getMaxHp());
activeChar.getStatus().setCurrentMp(activeChar.getMaxMp());
activeChar.getStatus().setCurrentCp(activeChar.getMaxCp());

  • 0
Posted

Hello,i would like to ask for a code that will allow players to have full HP,CP and MP when they login.Im asking for this because i have a high stats server and at the login player logs with like 20k hp instead of 500k that's his full hp.Thanks you in advance.

500k hp?LOL....can you sent me the patch to log in your server...:D
  • 0
Posted

Hello,i would like to ask for a code that will allow players to have full HP,CP and MP when they login.Im asking for this because i have a high stats server and at the login player logs with like 20k hp instead of 500k that's his full hp.Thanks you in advance.

500k hp?LOL....can you sent me the patch to log in your server...:D
  • 0
Posted

enterworld.java

 

activeChar.getStatus().setCurrentHp(activeChar.getMaxHp());
activeChar.getStatus().setCurrentMp(activeChar.getMaxMp());
activeChar.getStatus().setCurrentCp(activeChar.getMaxCp());

Fanky should i add this in enterworld or replace it?I cant find any code like this into enterworld.I would appreciate it if you could explain me.Thanks in advance tho!

500k hp?LOL....can you sent me the patch to log in your server...:D

Was that a flame or..?
  • 0
Posted

enterworld.java

 

activeChar.getStatus().setCurrentHp(activeChar.getMaxHp());
activeChar.getStatus().setCurrentMp(activeChar.getMaxMp());
activeChar.getStatus().setCurrentCp(activeChar.getMaxCp());

Fanky should i add this in enterworld or replace it?I cant find any code like this into enterworld.I would appreciate it if you could explain me.Thanks in advance tho!

500k hp?LOL....can you sent me the patch to log in your server...:D

Was that a flame or..?
  • 0
Posted

Add it, but do you realize how dumb it its? What if they almost died during PvP than relogged than their HP will just be full o_o

Ermmm that's true.May i ask if there is any code so full hp will work only when a character logs in town?Or when a character had full hp before restart,he logs with his hp.Or something to keep the hp a player had before restart.Thanks in advance
  • 0
Posted

Add it, but do you realize how dumb it its? What if they almost died during PvP than relogged than their HP will just be full o_o

Ermmm that's true.May i ask if there is any code so full hp will work only when a character logs in town?Or when a character had full hp before restart,he logs with his hp.Or something to keep the hp a player had before restart.Thanks in advance
  • 0
Posted

Add a check for if player is in town/peace zone or something D:

if (active Char.isInsideZone(L2Character.ZONE_TOWN))
{
activeChar.getStatus().setCurrentHp(activeChar.getMaxHp());
activeChar.getStatus().setCurrentMp(activeChar.getMaxMp());
activeChar.getStatus().setCurrentCp(activeChar.getMaxCp());
}

something like that i think

  • 0
Posted

Add a check for if player is in town/peace zone or something D:

if (active Char.isInsideZone(L2Character.ZONE_TOWN))
{
activeChar.getStatus().setCurrentHp(activeChar.getMaxHp());
activeChar.getStatus().setCurrentMp(activeChar.getMaxMp());
activeChar.getStatus().setCurrentCp(activeChar.getMaxCp());
}

something like that i think

  • 0
Posted

Add a check for if player is in town/peace zone or something D:

if (active Char.isInsideZone(L2Character.ZONE_TOWN))
{
activeChar.getStatus().setCurrentHp(activeChar.getMaxHp());
activeChar.getStatus().setCurrentMp(activeChar.getMaxMp());
activeChar.getStatus().setCurrentCp(activeChar.getMaxCp());
}

something like that i think

That's in enterworld.java?By the way thanks a lot for helping me :)
  • 0
Posted

Add a check for if player is in town/peace zone or something D:

if (active Char.isInsideZone(L2Character.ZONE_TOWN))
{
activeChar.getStatus().setCurrentHp(activeChar.getMaxHp());
activeChar.getStatus().setCurrentMp(activeChar.getMaxMp());
activeChar.getStatus().setCurrentCp(activeChar.getMaxCp());
}

something like that i think

That's in enterworld.java?By the way thanks a lot for helping me :)
  • 0
Posted

Yaw it belongs there if you want it to restore once they log in (doesn't exist so you actually need to copy and paste super hard stuff)

------

Put it somewhere 'logical' like under or above messages or something but I guess it doesn't matter THAT much

  • 0
Posted

Yaw it belongs there if you want it to restore once they log in (doesn't exist so you actually need to copy and paste super hard stuff)

------

Put it somewhere 'logical' like under or above messages or something but I guess it doesn't matter THAT much

Guest
This topic is now closed to further replies.


  • Posts

    • Inventory restock: Premium business accounts are now available.   ✔ Wallester Business EU 🇪🇺|💳 Unlimited virtual cards, physical cards, 🏦 multi-currency IBAN, ₿ crypto & stablecoin deposits. ✔ Stripe Business UK 🇬🇧|💳 Instant virtual cards (Visa/Mastercard), high-conversion checkout, multi-currency payouts, ₿ crypto payments, no-code payment links. ✔ Mercury Business US 🇺🇸|🏦 US checking & savings, 💳 unlimited virtual cards, domestic & International wires, native stablecoin settlement. ✔ Payset Business EU 🇪🇺|🏦 Multiple IBANs, UK sort code, SEPA Instant, 💳 unlimited virtual cards, multi-currency accounts. ✔ Novo Business US 🇺🇸|🏦 Business checking account, ACH payments & invoicing, 💳 virtual & physical cards, novo boost.
    • Let me see if I understand correctly, older gentlemen, when a newcomer shows up to create modern things with the help of AI, doing what you charge them to do, you point the finger and laugh. I believe that's why everything is stagnant. The product isn't for programming experts, it's for newcomers. Don't buy from you if they can do it themselves using this base. You're going to deliver a similar product, maybe even worse than this one, so why are you complaining? PowerShell, as you well know, started with it, then came new platforms and new apps, new creation models, all with different languages; I chose the simplest one for my taste. This is about being organized and knowing how to choose the right words for each situation. It's not 100%, but it already gives a good impression. Nothing is 100%, so a topic written by AI, and all the code that you charge an absurd amount for to prohibit and sell hacks, could be open source so that everyone can create new practices, new models, new information for passing packets, prohibiting the use of cheats that cause server owners to break so much. Let's remember that the Admin doesn't always shut down the server; it's the players who find problems and take advantage by buying and reselling items, and they say that the GM shuts down the server every week, but that's a lie. What they do is duplicate items with packages and sell them, but perhaps this could give some future developers a starting point to create their own protection following the model in the initial documentation. Because none of you answer a question from a newbie, you think you're superior because you have knowledge, but with AI, people like that can have the same knowledge as you, but with less practice. And if they practice a lot, 10,000 hours, they can be as good as all of you older developers in the L2J field.
    • ✨ Exclusive Offer for Marketplace Growth 🔥 Elevate your performance with a premium bonus. 💲 Top up your balance with $100 or more and receive an additional $5 credit — seamlessly added to your account. ⭐️ Designed for those who value efficiency, scale, and results. ⚡️ Effortless. Refined. Effective. 💥 Enhance your strategy today 💥
  • Topics

×
×
  • Create New...

Important Information

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..