Jump to content
  • 0

NPC to Increase Max Weight Permanently...


Elijah23

Question


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

Hi everyone..

I'm trying to make a npc which increases the max weight of a character +500 when he/she gave the special item to the npc..

I was able to manage to increase the max weight using this code:

set MaxWeight,MaxWeight + 500

But my problem is, when the character reset his stats, the additional maxweight will also be removed...

Any ideas how to this?... Thanks in advance.. :)

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

What about the "Gym Pass" system?

../trunk/npc/other/gympass.txt

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

yeah, i know the gympass system.. but what i want to do is not use the skill "ALL_INCCARRY"...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  97
  • Reputation:   20
  • Joined:  11/13/11
  • Last Seen:  

In your reset npc try adding this into the reset clause:

if (incweight > 0) {
for ( set .@i, 1; .@i <= incweight; set .@i, .@i + 1 ) {
set MaxWeight, MaxWeight + 500;
}
}

And for initial setting from however you wish to do it, npc, item, etc..

set incweight, incweight + 1;
set MaxWeight, MaxWeight + 500;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

In your reset npc try adding this into the reset clause:

if (incweight > 0) {
for ( set .@i, 1; .@i <= incweight; set .@i, .@i + 1 ) {
set MaxWeight, MaxWeight + 500;
}
}

And for initial setting from however you wish to do it, npc, item, etc..

set incweight, incweight + 1;
set MaxWeight, MaxWeight + 500;

Thanks to this.. :)

Anyways, already have added a new skill just like ALL_INCCARRY before i saw this.. :D

I did try this and its working.. :D

Just added the multiplier....

if (incweight > 0) {
for ( set .@i, 1; .@i <= incweight; set .@i, .@i + 1 ) {
set MaxWeight, MaxWeight + 500 * incweight;
}
}

Edited by wakoko321
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  97
  • Reputation:   20
  • Joined:  11/13/11
  • Last Seen:  

Glad to know you found a way and made a skill, I hate making them but I'm sure the effect in the end is easier xD;

Just added the multiplier....

if (incweight > 0) {
for ( set .@i, 1; .@i <= incweight; set .@i, .@i + 1 ) {
set MaxWeight, MaxWeight + 500 * incweight;
}
}

Wouldn't that way, say you have level2 increase weight, give 2000?

At level 2 incweight, the for loop would run twice, giving 500*2 the first time, then 1000*2=2k the second time..?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

Glad to know you found a way and made a skill, I hate making them but I'm sure the effect in the end is easier xD;

Just added the multiplier....

if (incweight > 0) {
for ( set .@i, 1; .@i <= incweight; set .@i, .@i + 1 ) {
set MaxWeight, MaxWeight + 500 * incweight;
}
}

Wouldn't that way, say you have level2 increase weight, give 2000?

At level 2 incweight, the for loop would run twice, giving 500*2 the first time, then 1000*2=2k the second time..?

I added it because without the multiplier, when i reset, it's just giving me +500 weight, but when i added the multiplier it added the original weight I have added in the NPC..

For example, the npc is like the gym pass thing, can add permanent weight gain 10x...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

dic_in01,43,259,4 script MG:Reset Manager 757,{
mes "Reset Cost = 10000 Zeny";
if( select("Reset Stats:Cancel") == 2 ) close;
if( Zeny < 10000 ){
   mes "Zeny Not Enough";
}else{
   ResetStatus;
   set Zeny,Zeny - 10000;
   mes "Done..";
}
close;
}

so many code no understand i just want the Stat resetter dun remove the Gym pass +weight on player can? my stat resetter just for stat, about skill i dun need in my server hehe.

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