Jump to content
  • 0

Sitting regeneration and weight limit.


Shade

Question


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  123
  • Reputation:   29
  • Joined:  04/09/12
  • Last Seen:  

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.

Link to comment
Share on other sites

12 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   3
  • Joined:  07/12/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  554
  • Reputation:   70
  • Joined:  04/04/12
  • Last Seen:  

1. @skill.c

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

try it if it works.. ;D

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  123
  • Reputation:   29
  • Joined:  04/09/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  123
  • Reputation:   29
  • Joined:  04/09/12
  • Last Seen:  

Tried that no changes. I tried val 10-10000 and compile same regeneration rate.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  554
  • Reputation:   70
  • Joined:  04/04/12
  • Last Seen:  

Couldn't compile with that code.

why does it not compile?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  123
  • Reputation:   29
  • Joined:  04/09/12
  • Last Seen:  

Couldn't compile with that code.

why does it not compile?

Actually I am not sure, the compile crashed once it get to status.c

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  554
  • Reputation:   70
  • Joined:  04/04/12
  • Last Seen:  

aw...I didn't say that put it on status.c..make sure you put it in the proper place...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  123
  • Reputation:   29
  • Joined:  04/09/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  554
  • Reputation:   70
  • Joined:  04/04/12
  • Last Seen:  

can I see the error or the compilation log?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  123
  • Reputation:   29
  • Joined:  04/09/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  554
  • Reputation:   70
  • Joined:  04/04/12
  • Last Seen:  

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
Link to comment
Share on other sites

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...