Jump to content
  • 0

mapflag to boost regen rate


Nyax

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  08/12/12
  • Last Seen:  

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

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...