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.
HP/MP Regen Question
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- L2j Veteran
- Posts: 1554
- Joined: Mon Oct 10, 2005 6:49 pm
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.
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!

I'm also a High(tech) Elf, (computer) wiz!