Jump to content
  • 0

max weight reduction


Question

Posted

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;
			}

 

3 answers to this question

Recommended Posts

  • 0
Posted (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 by AnnieRuru
  • 0
Posted (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 by Almond Snicker
  • 0
Posted (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 script
https://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 by AnnieRuru
  • 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...