Item limit remover script

Started by Seox, March 12, 2009, 08:12:49 pm

Previous topic - Next topic

Seox

I've been looking all over for a script that allows you to carry more than 99 of an item, but I can't find it.

Anyone have one?
... (<<<<<<<<<<<<<<< TEH DOTS OF DOOM. Hey, kinda catchy. :naughty:)

Aqua

March 12, 2009, 08:18:00 pm #1 Last Edit: March 12, 2009, 08:19:12 pm by Aqua
I'll tell you what to do.

Game_Party - Line 179
@items[item_id] = [[item_number(item_id) + n, 0].max, 99].min

Change it to this:
@items[item_id] = [[item_number(item_id) + n, 0].max, Aqua.max_item(item_id)].min


Then add this in a new script slot above Main.


module Aqua
 
  def self.max_item(item_id) # Changes max number of items
   
    case item_id
# Syntax:
#    when (item_id) then return (max)

      when 34 then return 2000  # Arrows
       
      end
    return 99
  end
 
end



Or if you want everything to have the same limit... just do
@items[item_id] = [[item_number(item_id) + n, 0].max, NEW_LIMIT_NUMBER_HERE].min

Starrodkirby86


What's osu!? It's a rhythm game. Thought I should have a signature with a working rank. ;P It's now clickable!
Still Aqua's biggest fan (Or am I?).