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.


×
×
  • Create New...