Jump to content
  • 0

Increase max. weight


Namaste

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   1
  • Joined:  04/28/13
  • Last Seen:  

How to increase max weight in item script?

Link to comment
Share on other sites

12 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

5010,Indian_Hair_Piece,Indian Fillet,5,20,,100,,5,,0,0xFFFFFFFF,7,2,256,,0,1,96,{ set MaxWeight, MaxWeight + 5000; },{},{}

=> weight + 500

 

Be aware that you'll be able to go past 100% weight capacity when removing the item.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

db/item_db.txt

// Items Database
//
// Structure of Database:
// ID,AegisName,Name,Type,Price,Sell,Weight,ATK,DEF,Range,Slot,Job,Upper,Gender,Loc,wLV,eLV,Refineable,View,{ Script },{ OnEquip_Script },{ OnUnequip_Script }

For example; Apple has 20 weights.

512,Apple,Apple,0,15,,20,,,,,0xFFFFFFFF,7,2,,,2,,,{ itemheal rand(16,22),0; },{},{}

 

If I want to change the weight to 99; it will become.

512,Apple,Apple,0,15,,99,,,,,0xFFFFFFFF,7,2,,,2,,,{ itemheal rand(16,22),0; },{},{}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   1
  • Joined:  04/28/13
  • Last Seen:  

db/item_db.txt

// Items Database
//
// Structure of Database:
// ID,AegisName,Name,Type,Price,Sell,Weight,ATK,DEF,Range,Slot,Job,Upper,Gender,Loc,wLV,eLV,Refineable,View,{ Script },{ OnEquip_Script },{ OnUnequip_Script }

For example; Apple has 20 weights.

512,Apple,Apple,0,15,,20,,,,,0xFFFFFFFF,7,2,,,2,,,{ itemheal rand(16,22),0; },{},{}

 

If I want to change the weight to 99; it will become.

512,Apple,Apple,0,15,,99,,,,,0xFFFFFFFF,7,2,,,2,,,{ itemheal rand(16,22),0; },{},{}

Sorry for my bad English. I want to change not Item weight but char's max weight using equipping some item

Edited by Namaste
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  354
  • Reputation:   3
  • Joined:  02/17/13
  • Last Seen:  

Edit the Weight value inside the file

trunk/db/re/job_db1.txt

Edited by SpongeBOB
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

How about adding 'Enlarge Weight Limit' skill in the item script?

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   1
  • Joined:  04/28/13
  • Last Seen:  

How about adding 'Enlarge Weight Limit' skill in the item script?

Hmm, let's try to, but can it be more than 10 lvl ? For example, i need add weight to creator, he already learned this skill lvl 10. What i need use in item script to do this? If i wand to stay job weight with default values....

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

Is there any way that instead of using script, possible via source?

i want to increase Via Source.

 

Anyone?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

@Capuche

i think should be

.....{ },{ MaxWeight,MaxWeight + 5000; },{ MaxWeight,MaxWeight - 5000; }

otherwise i think the script will provide users with "unlimit" maxweight ...

 

anyway i think maxweight limit should be done using the enlarge weight limit or src mod to ensure it work perfectly.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

The bonus on Script type disappear when you unequip an equippable item (an example, you loose the skill you get with Skill command when you unequip the item).

otherwise i think the script will provide users with "unlimit" maxweight ...

So it doesn't

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

I knew about this trick since long time ago

http://www.eathena.ws/board/index.php?s=&showtopic=165856&view=findpost&p=915097

but only today I knew about this bug

http://rathena.org/board/tracker/issue-8541-set-maxweight-item-script-error/

he said the method above has bugs after soul linked

so I tried create a patch

[paste=5dtzwyegzv5b]

.....,{ bonus baddmaxweight, 10000; },{},{}
somehow its fixed ...
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

Added 'bonus bAddMaxWeight,n;' in 0b6c542. Thanks, Annie!

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  62
  • Reputation:   0
  • Joined:  03/18/12
  • Last Seen:  

I knew about this trick since long time ago

http://www.eathena.ws/board/index.php?s=&showtopic=165856&view=findpost&p=915097

but only today I knew about this bug

http://rathena.org/board/tracker/issue-8541-set-maxweight-item-script-error/

he said the method above has bugs after soul linked

so I tried create a patch

[paste=5dtzwyegzv5b]

.....,{ bonus baddmaxweight, 10000; },{},{}
somehow its fixed ...

 

Thank You Annie  /thx

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