Jump to content
  • 0

Sitting regeneration and weight limit.


Question

Posted

Hi,

1. Is there anyway to boost regeneration (for example three times faster) when a character sit without affecting any other regeneration? The regeneration rate will depend on natural regeneration of the character.

2. Is there anyway to permanently remove weight limit?

Thanks in advance.

12 answers to this question

Recommended Posts

Posted

1. Pretty sure requires source code modification, do you know how? Start looking in the status.c

2. Don't believe there is a way to remove weight limit. I know it can be increased, but you would need to change a few things from the source, but even then I think theres is a max int value to it

Posted (edited)

Couldn't compile with that code.

I thought it is suppose to be in status.c?

//Only players have skill/sitting skill regen for now.
sregen = regen->sregen;

val = 0;

Edited by Shade
Posted

status.c

if (regen->ssregen)
{
 if (regen->ssregen->hp)
  regen->flag|=RGN_SHP;
 if (regen->ssregen->sp)
  regen->flag|=RGN_SSP;
 regen->ssregen->rate.hp = regen->ssregen->rate.sp = 1;
}

I believe ssregen sitting status regen. Increase the value.

  • Upvote 1
Posted (edited)

I placed it in skill.c, there is only one section where code that looks that way. But it still failed for some reason. Error didn't come out, the compiler just crashed and map-server was not created.

Edited by Shade
Posted (edited)

Hi,

It can compile now but the regeneration affects all regeneration instead of just sit.

It heals normally before you sit, but once sit and stand again, it will boost all the time. Need something to make it stop boosting once the player stands.

Nevermind, I just have to change it back to 1 when the character stands.

Thank you so much every one.

Edited by Shade
Posted

sounds great...Its just a test if it will work..so here the complete one...^^,

       if( type ) {
               +sd->regen.rate.hp += 2; // boost 3 times
               clif_status_load(&sd->bl,SI_SIT,1);
       } else {
               +sd->regen.rate.hp = 1; // return to normal
               clif_status_load(&sd->bl,SI_SIT,0);
       }

  • Upvote 1

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...