Gouki Posted September 27, 2020 Group: Members Topic Count: 88 Topics Per Day: 0.05 Content Count: 261 Reputation: 13 Joined: 08/12/20 Last Seen: November 21, 2024 Share Posted September 27, 2020 Hi all, Just want to rollback the GYMPASS effect. Would this work? any side effects? set MaxWeight, MaxWeight - 1000; and to be coded like this? if (gympassmemory = 10) { set gympassmemory,0; set MaxWeight, MaxWeight - 1000; } Quote Link to comment Share on other sites More sharing options...
0 AnnieRuru Posted September 27, 2020 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted September 27, 2020 (edited) answer all your question set MaxWeight, MaxWeight - 1000; yes, I remember there was a bug report that merchant's increase weight limit doesn't work properly after using MaxWeight constant however after me suggesting adding `bAddMaxWeight` the problem is gone there shouldn't be any problem as the weight formula is calculate properly if using bAddMaxWeight -> eg: if they equip this item they immediately overweight if low strength bonus bAddMaxWeight, -1000; Edited September 27, 2020 by AnnieRuru Quote Link to comment Share on other sites More sharing options...
0 Gouki Posted September 27, 2020 Group: Members Topic Count: 88 Topics Per Day: 0.05 Content Count: 261 Reputation: 13 Joined: 08/12/20 Last Seen: November 21, 2024 Author Share Posted September 27, 2020 (edited) 11 hours ago, AnnieRuru said: answer all your question set MaxWeight, MaxWeight - 1000; yes, I remember there was a bug report that merchant's increase weight limit doesn't work properly after using MaxWeight constant however after me suggesting adding `bAddMaxWeight` the problem is gone there shouldn't be any problem as the weight formula is calculate properly if using bAddMaxWeight -> eg: if they equip this item they immediately overweight if low strength bonus bAddMaxWeight, -1000; Hi Annie! I think the bonus bAddMaxWeight, -1000; is for item script only? Or it does work also on txt scripts? if (gympassmemory = 10) { set gympassmemory,0; bonus bAddMaxWeight, -1000; } Edited September 27, 2020 by Almond Snicker Quote Link to comment Share on other sites More sharing options...
0 AnnieRuru Posted September 27, 2020 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted September 27, 2020 (edited) Spoiler if want to use on npc script has to use OnPCStatCalcEvent // this is tested working on hercules prontera,155,185,5 script jkfhsdf 1_F_MARIA,{ gympassmemory = 10; recalculatestat; end; OnPCStatCalcEvent: if (gympassmemory == 10) bonus bAddMaxWeight, -1000; end; } if I still remember correctly, rathena's *recalculatestat is bug ... let me test a bit ... OH rathena finally remove this label, so long the legacy of this script event so nope, apparently I couldn't think of a way to reduce player's weight in npc scripts, other than write this directly in the source code --off topic-- by the way what's your username on discord ? BIG EDIT: after discuss this issue in discord, finally I understand the gympassmemory come from official scripthttps://github.com/rathena/rathena/blob/master/npc/other/gympass.txt to remove the weight learn from ALL_INCCARRY, the answer is just to remove this skill learn from your players .... what a bummer, totally different direction that's why I prefer to support over in discord, there are a lot of times members never explain properly on the forum solved in discord Quote AlmondToday at 7:09 AM Awesome this worked, skill "ALL_INCCARRY",0,SKILL_PERM_GRANT; stupid mee.. [7:09 AM] yup thats the one! Edited September 27, 2020 by AnnieRuru 1 Quote Link to comment Share on other sites More sharing options...
Question
Gouki
Hi all,
Just want to rollback the GYMPASS effect.
Would this work? any side effects?
set MaxWeight, MaxWeight - 1000;
and to be coded like this?
if (gympassmemory = 10) { set gympassmemory,0; set MaxWeight, MaxWeight - 1000; }
Link to comment
Share on other sites
3 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.