HP/MP Regen Question

If something doesn't fit in any other forum then post it here.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
Kalico
Posts: 41
Joined: Tue Mar 27, 2007 3:45 am

HP/MP Regen Question

Post by Kalico »

I wasn't really sure where this would go, so Off-Topic!

I was wondering how, if possible, one would go about granting users a HP/MP regeneration bonus when sitting, with say a < 40 level requirement.
Fulminus
L2j Veteran
L2j Veteran
Posts: 1554
Joined: Mon Oct 10, 2005 6:49 pm

Post by Fulminus »

Under the current condition of L2J, you'd have to modify the core to support this. Alternatively, you can have a jython script running on a timer and looping through all players ingame, then check if they are sitting and what level they are, and reward some extra HP/MP.
However, such a loop will be EXTREMELY heavy on your server, especially in jython where few to no loop optimizations occur. If you have a server of near 100 players, or a small server but on a weak machine, you definitely should NOT use the timer + loop method.
It should not be too hard to do in the core, though...assuming you know Java.
I'm a joyful, merriful, playful, curious, young, little elf!!! :-)
I'm also a High(tech) Elf, (computer) wiz!
User avatar
Kalico
Posts: 41
Joined: Tue Mar 27, 2007 3:45 am

Post by Kalico »

Ah. I don't know a lick of Java, but I may look into it.
My server is only a test server that a few friends and myself play on.

Thanks
Post Reply