Author Topic: Modifying the number of items in a stack  (Read 592 times)

Legacy_Lazarus Magni

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Modifying the number of items in a stack
« on: October 14, 2011, 08:22:18 am »


               Anyone know if it Is possible to modify the number of items allowed in a stack via a script or 2da edit and how to do it? Like say allowing a stack of 999 arrows?
               
               

               
            

Legacy_Alex Warren

  • Sr. Member
  • ****
  • Posts: 326
  • Karma: +0/-0
Modifying the number of items in a stack
« Reply #1 on: October 14, 2011, 12:15:31 pm »


               Edit baseitems.2da and change the value of 'Stacking' column.
Be careful with modifying items that don't stack in OC - if you change them (ie. set rings to stackable) some scripts may destroy whole stacks instead of single items.
               
               

               
            

Legacy_Lazarus Magni

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Modifying the number of items in a stack
« Reply #2 on: October 15, 2011, 01:44:45 am »


               Thank you Alex, so a couple questions:
-Will this work for a PW as a 2da edit in the over-ride folder, or would it require players having it as well?
-Would it cause already dropping stacks of 99 arrows to then start dropping 999? I don't want the drops to change, I just want to allow archers to be able to equip a stack of 999.
-Doing this just for arrows, bolts, and bullets should not cause the potential problem you mentioned correct?
Thanks,
Laz
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Modifying the number of items in a stack
« Reply #3 on: October 15, 2011, 02:20:57 am »


               

Lazarus Magni wrote...

 -Will this work for a PW as a 2da edit in the over-ride folder, or would it require players having it as well?

It should work server side only.  However if you are using haks, Like CEP, that already have a baseitems.2da in them they will override anything you place in the override folder.

Lazarus Magni wrote...
-Would it cause already dropping stacks of 99 arrows to then start dropping 999? I don't want the drops to change, I just want to allow archers to be able to equip a stack of 999. 

unless you have scripted something to drop max stacks, everything should drop the same as they are now.

Lazarus Magni wrote...
-Doing this just for arrows, bolts, and bullets should not cause the potential problem you mentioned correct.

should not cause a problem.
               
               

               
            

Legacy_Lazarus Magni

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Modifying the number of items in a stack
« Reply #4 on: October 15, 2011, 02:56:39 am »


               ok ty light. We do use CEP, so I take it the baseitem2da I need to edit is the one contained within that hak.
               
               

               
            

Legacy_Lazarus Magni

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Modifying the number of items in a stack
« Reply #5 on: October 15, 2011, 03:00:17 am »


               Do you happen to know which CEP hak that is contained within?
               
               

               
            

Legacy_Lazarus Magni

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Modifying the number of items in a stack
« Reply #6 on: October 15, 2011, 03:56:23 am »


               NVM, I found it. Thanks guys this will help our archers out alot!
               
               

               
            

Legacy_Lazarus Magni

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Modifying the number of items in a stack
« Reply #7 on: October 15, 2011, 04:23:53 am »


               Hmm, well after testing this it didn't work. I replaced the baseitems.2da in the cep hak on the server with the modified one, and still only stacks of 99 are allowed. I also tried having it both server side and client side, and still didn't work.
               
               

               


                     Modifié par Lazarus Magni, 15 octobre 2011 - 03:24 .
                     
                  


            

Legacy_Alex Warren

  • Sr. Member
  • ****
  • Posts: 326
  • Karma: +0/-0
Modifying the number of items in a stack
« Reply #8 on: October 15, 2011, 11:10:19 am »


               Ã‚ 'Image
I only edited baseitems.2da
You probably have another baseitems.2da somewhere in your haks.
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Modifying the number of items in a stack
« Reply #9 on: October 15, 2011, 12:04:29 pm »


               

Lazarus Magni wrote...

Hmm, well after testing this it didn't work. I replaced the baseitems.2da in the cep hak on the server with the modified one, and still only stacks of 99 are allowed. I also tried having it both server side and client side, and still didn't work.

If you use CEP2 you should have as top hak in your module cep2custom.hak. So put the modified baseitems.2da into this hak and its done. This change is definitely server-side.
               
               

               
            

Legacy_Lazarus Magni

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Modifying the number of items in a stack
« Reply #10 on: October 15, 2011, 09:36:21 pm »


               I did put the modified baseitem.2da hal in the cep2_top_v23.hak, but I modified the ILRStackSize column not the Stacking column as instructed. I will try that again. Thanks guys!
Laz
               
               

               
            

Legacy_Lazarus Magni

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Modifying the number of items in a stack
« Reply #11 on: October 15, 2011, 11:07:05 pm »


               It works, thank you everyone!