Elijah23 Posted January 20, 2012 Group: Members Topic Count: 46 Topics Per Day: 0.01 Content Count: 292 Reputation: 17 Joined: 12/12/11 Last Seen: Thursday at 02:33 PM Share Posted January 20, 2012 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.. Quote Link to comment Share on other sites More sharing options...
Brian Posted January 20, 2012 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share Posted January 20, 2012 What about the "Gym Pass" system? ../trunk/npc/other/gympass.txt Quote Link to comment Share on other sites More sharing options...
Elijah23 Posted January 20, 2012 Group: Members Topic Count: 46 Topics Per Day: 0.01 Content Count: 292 Reputation: 17 Joined: 12/12/11 Last Seen: Thursday at 02:33 PM Author Share Posted January 20, 2012 yeah, i know the gympass system.. but what i want to do is not use the skill "ALL_INCCARRY"... Quote Link to comment Share on other sites More sharing options...
Angst Posted January 20, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 97 Reputation: 20 Joined: 11/13/11 Last Seen: February 14, 2023 Share Posted January 20, 2012 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; Quote Link to comment Share on other sites More sharing options...
Elijah23 Posted January 20, 2012 Group: Members Topic Count: 46 Topics Per Day: 0.01 Content Count: 292 Reputation: 17 Joined: 12/12/11 Last Seen: Thursday at 02:33 PM Author Share Posted January 20, 2012 (edited) 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.. I did try this and its working.. Just added the multiplier.... if (incweight > 0) { for ( set .@i, 1; .@i <= incweight; set .@i, .@i + 1 ) { set MaxWeight, MaxWeight + 500 * incweight; } } Edited January 20, 2012 by wakoko321 Quote Link to comment Share on other sites More sharing options...
Angst Posted January 20, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 97 Reputation: 20 Joined: 11/13/11 Last Seen: February 14, 2023 Share Posted January 20, 2012 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..? Quote Link to comment Share on other sites More sharing options...
Elijah23 Posted January 21, 2012 Group: Members Topic Count: 46 Topics Per Day: 0.01 Content Count: 292 Reputation: 17 Joined: 12/12/11 Last Seen: Thursday at 02:33 PM Author Share Posted January 21, 2012 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... Quote Link to comment Share on other sites More sharing options...
manabeast Posted February 18, 2012 Group: Members Topic Count: 138 Topics Per Day: 0.03 Content Count: 835 Reputation: 25 Joined: 11/22/11 Last Seen: December 4, 2012 Share Posted February 18, 2012 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. Quote Link to comment Share on other sites More sharing options...
Question
Elijah23
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:
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.