Hi there ! First time in the source code, it will be fun.
I'd like to boost the regeneration rate for players on certain maps. (let's say when you're in Prontera, your character HP/SP regen 10 times faster than normal)
I'm currently doing that with a OnPCLoadMapEvent script that give a bonus to the character but I don't really like using LoadMapEvents as they can put a lot of load on the server.
Also I never edited the sources so it could be an easy first project to start with. (hopefully)
Thanks to the Wiki I was able to add my own mapflag to the server. Now I don't know how to change the regen rate base on the mapflag. I found a line about sitting regen bonus in status.c so that's probably somewhere in there, but I wasn't able to write anything that works. How do you check if a mapflag is set ?I tried to look into source_doc.txt but it's a bit of a big chunk of non-helpful text for me at the moment.
Can you give me some advice / link me good resources on source editing ?
Question
Nyax
Hi there ! First time in the source code, it will be fun.
I'd like to boost the regeneration rate for players on certain maps. (let's say when you're in Prontera, your character HP/SP regen 10 times faster than normal)
I'm currently doing that with a OnPCLoadMapEvent script that give a bonus to the character but I don't really like using LoadMapEvents as they can put a lot of load on the server.
Also I never edited the sources so it could be an easy first project to start with. (hopefully)
Thanks to the Wiki I was able to add my own mapflag to the server. Now I don't know how to change the regen rate base on the mapflag. I found a line about sitting regen bonus in status.c so that's probably somewhere in there, but I wasn't able to write anything that works. How do you check if a mapflag is set ? I tried to look into source_doc.txt but it's a bit of a big chunk of non-helpful text for me at the moment.
Can you give me some advice / link me good resources on source editing ?
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.