In combat regen rates[Solved]

For any problems with Dawn of Light website or game server, please direct questions and problems here.

Moderator: Support Team

In combat regen rates[Solved]

Postby bsnow16 » Fri May 12, 2017 1:23 pm

So i looked around the forums and tried afew things that must be out dated because ive had no luck stopping regen when in combat....can someone please point me to where i can change this to where when in combat regen rates stop and then outta combat it resumes to normal regen rates?
Last edited by bsnow16 on Sat May 13, 2017 7:50 pm, edited 1 time in total.
User avatar
bsnow16
DOL Initiate
 
Posts: 23
Joined: Wed Mar 28, 2007 12:10 am
Location: Canada

Re: In combat regen rates

Postby ontheDOL » Fri May 12, 2017 2:02 pm

gameserver/propertycalc/healthregenerationratecalculator.cs
add:

if (living.InCombat)
regen = 0;

or if you want half regen for example

if (living.InCombat)
regen /= 2.0;

add it below these lines of code
Code: Select all
if (living.Level < 26) { regen = 10 + (living.Level * 0.2); } else { regen = living.Level * 0.6; }
- Unty -
Model Showroom and DOL guides
http://losojos-001-site1.btempurl.com
User avatar
ontheDOL
Developer
 
Posts: 311
Joined: Fri May 20, 2016 4:21 am
Location: Australian abroad

Re: In combat regen rates

Postby Dinberg » Sat May 13, 2017 6:03 pm

I'm assuming you mean health regen rates only? Not eg, stamina or power?
The Marvelous Contraption begins to stir...
User avatar
Dinberg
Inactive Staff Member
 
Posts: 4695
Joined: Sat Mar 10, 2007 9:47 am
Yahoo Messenger: dinberg_darktouch
Location: Jordheim

Re: In combat regen rates

Postby bsnow16 » Sat May 13, 2017 6:30 pm

I did that but my toon still regenerates in combat
User avatar
bsnow16
DOL Initiate
 
Posts: 23
Joined: Wed Mar 28, 2007 12:10 am
Location: Canada

Re: In combat regen rates

Postby ontheDOL » Sat May 13, 2017 7:39 pm

yes, I missed the part at bottom of script.
if (regen < 1)
regen = 1;

return (int)regen;
so regen = 0 will always get changed to 1
added the InCombat code between here should give you absolute zero
- Unty -
Model Showroom and DOL guides
http://losojos-001-site1.btempurl.com
User avatar
ontheDOL
Developer
 
Posts: 311
Joined: Fri May 20, 2016 4:21 am
Location: Australian abroad


Return to “%s” Support

Who is online

Users browsing this forum: No registered users and 1 guest