Script problem with Itmelimit

Mithran

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
404
Reaction score
216
First Language
English
Primarily Uses
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
 

Sortis

Villager
Member
Joined
May 9, 2014
Messages
6
Reaction score
0
First Language
german
Primarily Uses
Sorry :D im new here and my english is bad :)
 
Heres the Script:

#_______________________________________________________________________________
# MOG Item Limit V1.7            
#_______________________________________________________________________________
# By Moghunter            
# http://www.atelier-rgss.com
#_______________________________________________________________________________
# Permite definir o limite maximo para cada item, armas
# ou armaduras.
#_______________________________________________________________________________
module MOG
#-------------------------------------------------------------------------------  
# Definição do limite padrão.
#-------------------------------------------------------------------------------
DEFAULT_LIMIT = 15
#-------------------------------------------------------------------------------
# A => B
#
# A = ID do item, armadura ou arma
# B = Quantidade de itens maximo.
#
#-------------------------------------------------------------------------------
#Definição do limite maximo de Itens.  
#-------------------------------------------------------------------------------
ITEM_LIMIT = {
1=>1,
2=>50,
3=>25,
4=>15,
5=>35,
6=>20,
7=>10,
8=>30,
9=>20,
10=>15,
11=>10,
12=>30,
13=>20,
14=>10,
15=>15,
16=>10,
17=>5,
18=>5,
19=>3,
20=>5,
21=>3,
22=>2,
23=>24,
24=>6,
25=>3,
26=>50,
27=>5,
28=>5,
29=>5,
30=>5,
31=>5,
32=>5,
33=>5,
34=>5,
35=>5,
36=>5,
37=>5,
38=>5,
39=>5,
40=>5,
41=>5,
42=>5,
43=>5,
44=>5,
45=>5,
46=>5,
47=>5,
48=>5,
49=>5,
50=>5,
51=>5,
52=>5,
53=>5,
54=>5,
55=>5,
56=>15,
57=>15,
58=>15,
59=>15,
60=>15,
61=>15,
62=>15,
63=>15,
64=>15,
65=>15,
66=>15,
67=>15,
68=>15,
69=>15,
70=>15,
71=>15,
72=>4,
73=>15,
74=>15,
75=>15,
76=>15,
77=>15,
78=>15,
79=>15,
80=>15,
81=>15,
82=>15,
83=>16,
84=>8,
85=>8,
86=>8,
87=>8,
88=>8,
89=>8,
90=>8,
91=>8,
92=>8,
93=>8,
94=>8,
95=>8,
96=>8,
97=>8,
98=>8,
99=>8,
100=>8,
101=>8,
102=>8,
103=>8,
104=>8,
105=>8,
106=>8,
107=>8,
108=>8,
109=>8,
110=>8,
111=>8,
112=>8,
113=>8,
114=>8,
115=>8,
116=>8,
117=>8,
118=>8,
119=>8,
120=>8,
121=>8,
122=>8,
123=>8,
124=>8,
125=>8,
126=>8,
127=>8,
128=>8,
129=>8,
130=>8,
131=>8,
132=>8,
133=>8,
134=>8,
135=>8,
136=>8,
137=>8,
138=>8,
139=>8,
140=>8,
141=>8,
142=>8,
143=>8,
144=>8,
145=>8,
146=>8,
147=>8,
148=>8,
149=>8,
150=>8,
151=>8,
152=>8,
153=>8,
154=>8,
155=>8,
156=>8,
157=>8,
158=>8,
159=>8,
160=>8,
161=>8,
162=>8,
163=>8,
164=>8,
165=>8,
166=>8,
167=>8,
168=>8,
169=>8,
170=>8,
171=>8,
172=>8,
173=>8,
174=>8,
175=>8,
176=>8,
177=>8,
178=>8,
179=>8,
180=>8,
181=>8,
182=>8,
183=>12,
184=>8,
185=>4,
186=>8,
187=>12,
188=>8,
189=>15,
190=>15,
191=>15,
192=>15,
193=>15,
194=>15,
195=>15,
196=>15,
197=>15,
198=>15,
199=>15,
200=>15,
201=>15,
202=>15,
203=>15,
204=>15,
205=>15,
206=>15,
207=>15,
208=>15,
209=>15,
210=>15,
211=>15,
212=>15,
213=>15,
214=>15,
215=>15,
216=>15,
217=>15,
218=>15,
219=>15,
220=>15,
221=>15,
222=>15,
223=>15,
224=>15,
225=>15,
226=>15,
227=>15,
228=>15,
229=>15,
230=>15,
231=>15,
232=>15,
233=>15,
234=>15,
235=>15,
236=>15,
237=>15,
238=>15,
239=>15,
240=>15,
241=>15,
242=>15,
243=>15,
244=>15,
245=>15,
246=>15,
247=>15,
248=>15,
249=>15,
250=>15,
251=>15,
252=>15,
253=>15,
254=>15,
255=>15,
256=>15,
257=>15,
258=>15,
259=>15,
260=>15,
261=>15,
262=>15,
263=>15,
264=>15,
265=>15,
266=>15,
267=>15,
268=>15,
269=>15,
270=>15,
271=>15,
272=>15,
273=>15,
274=>15,
275=>15,
276=>15,
277=>15,
278=>15,
279=>15,
280=>15,
281=>15,
282=>15,
283=>15,
284=>15,
285=>15,
286=>15,
287=>15,
288=>1,
289=>1,
290=>1,
291=>1,
292=>1,
293=>1,
294=>15,
295=>1,
296=>1,
297=>1,
298=>1,
299=>1,
300=>1,
301=>1,
302=>1,
303=>1,
304=>1,
305=>1,
306=>1,
307=>1,
308=>1,
309=>1,
310=>1,
311=>1,
312=>1,
313=>1,
314=>1,
315=>1,
316=>1,
317=>1,
318=>1,
319=>1,
320=>1,
321=>1,
322=>1,
323=>1,
324=>1,
325=>1,
326=>1,
327=>1,
328=>1,
329=>1,
330=>1,
331=>1,
332=>1,
333=>1,
334=>15,
335=>15,
336=>15,
337=>15,
338=>15,
339=>15,
340=>15,
341=>15,
342=>15,
343=>15,
344=>12,
345=>15,
346=>15,
347=>15,
348=>15,
349=>15,
350=>15,
351=>15,
352=>15,
353=>15,
354=>15,
355=>15,
356=>15,
357=>15,
358=>15,
359=>15,
360=>15,
361=>15,
362=>15,
363=>15,
364=>15,
365=>15,
366=>15,
367=>15,
368=>15,
369=>15,
370=>15,
371=>15,
372=>15,
373=>15,
374=>15,
375=>15,
376=>15,
377=>15,
378=>15,
379=>15,
380=>15,
381=>15,
382=>15,
383=>15,
384=>15,
385=>15,
386=>1,
387=>1,
388=>1,
389=>1,
390=>1,
391=>1,
392=>1,
393=>1,
394=>1,
395=>1,
396=>1,
397=>1,
398=>1,
399=>1,
400=>1,
401=>1,
402=>1,
403=>1,
404=>1,
405=>1,
406=>1,
407=>1,
408=>1,
409=>1,
410=>1,
411=>1,
412=>1,
413=>1,
414=>1,
415=>1,
416=>1,
417=>1,
418=>1,
419=>1,
420=>1,
421=>1,
422=>1,
423=>1,
424=>1,
425=>1,
426=>1,
427=>1,
428=>1,
429=>1,
430=>1,
431=>1,
432=>1,
433=>1,
434=>1,
435=>1,
436=>1,
437=>1,
438=>1,
439=>1,
440=>1,
441=>1,
442=>1,
443=>1,
444=>1,
445=>1,
446=>1,
447=>1,
448=>1,
449=>1,
450=>1,
451=>10,
452=>10,
453=>10,
454=>10,
455=>10,
456=>10,
457=>10,
458=>10,
459=>10,
460=>10,
461=>10,
462=>10,
463=>10,
464=>10,
465=>10,
466=>10,
467=>10,
468=>10,
469=>10,
470=>10,
471=>10,
472=>10,
473=>10,
474=>10,
475=>1,
476=>15,
477=>15,
478=>15,
479=>15,
480=>15,
481=>1,
482=>1,
483=>15,
484=>15,
485=>15,
486=>15,
487=>15,
488=>1,
489=>15,
490=>15,
491=>15,
492=>15,
493=>15,
494=>15,
495=>15,
496=>15,
497=>15,
498=>15,
499=>1,
500=>1,
501=>1,
502=>1,
503=>1,
504=>1,
505=>1,
506=>1,
507=>1,
508=>1,
509=>1,
510=>15,
511=>15,
512=>15,
513=>15,
514=>15,
515=>15,
516=>15,
517=>15,
518=>15,
519=>15,
520=>15,
521=>15,
522=>15,
523=>15,
524=>15,
525=>15,
526=>15,
527=>15,
528=>8,
529=>8,
530=>15



             }  
#-------------------------------------------------------------------------------
#Definição do limite maximo de armas.    
#-------------------------------------------------------------------------------
WEAPON_LIMIT = {
1=>5,
2=>5,
3=>5,
4=>5,
5=>5,
6=>5,
7=>5,
8=>5,
9=>5,
10=>5,
11=>5,
12=>5,
13=>5,
14=>5,
15=>5,
16=>5,
17=>5,
18=>5,
19=>5,
20=>5,
21=>5,
22=>5,
23=>5,
24=>5,
25=>5,
26=>5,
27=>5,
28=>5,
29=>5,
30=>5,
31=>5,
32=>5,
33=>5,
34=>5,
35=>5,
36=>5,
37=>5,
38=>5,
39=>5,
40=>5,
41=>5,
42=>5,
43=>5,
44=>5,
45=>5,
46=>5,
47=>5,
48=>5,
49=>5,
50=>5,
51=>5,
52=>5,
53=>5,
54=>5,
55=>5,
56=>5,
57=>5,
58=>5,
59=>5,
60=>5,
61=>5,
62=>5,
63=>5,
64=>5,
65=>5,
66=>5,
67=>5,
68=>5,
69=>5,
70=>5,
71=>5,
72=>5,
73=>5,
74=>5,
75=>5,
76=>5,
77=>5,
78=>5,
79=>5,
80=>5,
81=>5,
82=>5,
83=>5,
84=>5,
85=>5,
86=>5,
87=>5,
88=>5,
89=>5,
90=>5,
91=>5,
92=>5,
93=>5,
94=>5,
95=>5,
96=>5,
97=>5,
98=>5,
99=>5,
100=>5,
101=>5,
102=>5,
103=>5,
104=>5,
105=>5,
106=>5,
107=>5,
108=>5,
109=>5,
110=>5,
111=>5,
112=>5,
113=>5,
114=>5,
115=>5,
116=>5,
117=>5,
118=>5,
119=>5,
120=>5,
121=>5,
122=>5,
123=>5,
124=>5,
125=>5,
126=>5,
127=>5,
128=>5,
129=>5,
130=>5,
131=>5,
132=>5,
133=>5,
134=>5,
135=>5,
136=>5,
137=>5,
138=>5,
139=>5,
140=>5,
141=>5,
142=>5,
143=>5,
144=>5,
145=>5,
146=>5,
147=>5,
148=>5,
149=>5,
150=>5,
151=>5,
152=>5,
153=>5,
154=>5,
155=>5,
156=>5,
157=>5,
158=>5,
159=>5,
160=>5,
161=>5,
162=>5,
163=>5,
164=>5,
165=>5,
166=>5,
167=>5,
168=>5,
169=>5,
170=>5,
171=>5,
172=>5,
173=>5,
174=>5,
175=>5,
176=>5,
177=>5,
178=>5,
179=>5,
180=>5,
181=>5,
182=>5,
183=>5,
184=>5,
185=>5,
186=>5,
187=>5,
188=>5,
189=>5,
190=>5,
191=>5,
192=>5,
193=>5,
194=>5,
195=>5,
196=>5,
197=>5,
198=>5,
199=>5,
200=>5,
201=>5,
202=>5,
203=>5,
204=>5,
205=>5,
206=>5,
207=>5,
208=>5,
209=>5,
210=>5,
211=>5,
212=>5,
213=>5,
214=>5,
215=>5,
216=>5,
217=>5,
218=>5,
219=>5,
220=>5,
221=>5,
222=>5,
223=>5,
224=>5,
225=>5,
226=>5,
227=>5,
228=>5,
229=>5,
230=>5,
231=>5,
232=>5,
233=>5,
234=>5,
235=>5,
236=>5,
237=>5,
238=>5,
239=>5,
240=>5,
241=>5,
242=>5,
243=>5,
244=>5,
245=>5,
246=>5,
247=>5,
248=>5,
249=>5,
250=>5,
251=>5,
252=>5,
253=>5,
254=>5,
255=>5,
256=>5,
257=>5,
258=>5,
259=>5,
260=>5,
261=>5,
262=>5,
263=>5,
264=>5,
265=>5,
266=>5,
267=>5,
268=>5,
269=>5,
270=>5,
271=>5,
272=>5,
273=>5,
274=>5,
275=>5,
276=>5,
277=>5,
278=>5,
279=>5,
280=>5,
281=>5,
282=>5,
283=>5,
284=>5,
285=>5,
286=>5,
287=>5,
288=>5,
289=>5,
290=>5,
291=>5,
292=>5,
293=>5,
294=>5,
295=>5,
296=>5,
297=>5,
298=>5,
299=>5,
300=>5,
301=>5,
302=>5,
303=>5,
304=>5,
305=>5,
306=>5,
307=>5,
308=>5,
309=>5,
310=>5,
311=>5,
312=>5,
313=>5,
314=>5,
315=>5,
316=>5,
317=>5,
318=>5,
319=>5,
320=>5,
321=>5,
322=>5,
323=>5,
324=>5,
325=>5,
326=>5,
327=>5,
328=>5,
329=>5,
330=>5,
331=>5,
332=>5,
333=>5,
334=>5,
335=>5,
336=>5,
337=>5,
338=>5,
339=>5,
340=>5,
341=>5,
342=>5,
343=>5,
344=>5,
345=>5,
346=>5,
347=>5,
348=>5,
349=>5,
350=>5,
351=>5,
352=>5,
353=>5,
354=>5,
355=>5,
356=>5,
357=>5,
358=>5,
359=>5,
360=>5,
361=>5,
362=>5,
363=>5,
364=>5,
365=>5,
366=>5,
367=>5,
368=>5,
369=>5,
370=>5,
371=>5,
372=>5,
373=>5,
374=>5,
375=>5,
376=>5,
377=>5,
378=>5,
379=>5,
380=>5,
381=>5,
382=>5,
383=>5,
384=>5,
385=>5,
386=>5,
387=>5,
388=>5,
389=>5,
390=>5,
391=>5,
392=>5,
393=>5,
394=>5,
395=>5,
396=>5,
397=>5,
398=>5,
399=>5,
400=>5,
401=>5,
402=>5,
403=>5,
404=>5,
405=>5,
406=>5,
407=>5,
408=>5,
409=>5,
410=>5,
411=>5,
412=>5,
413=>5,
414=>5,
415=>5,
416=>5,
417=>5,
418=>5,
419=>5,
420=>5,
421=>5,
422=>5,
423=>5,
424=>5,
425=>5,
426=>5,
427=>5,
428=>5,
429=>5,
430=>5,
431=>5,
432=>5,
433=>5,
434=>5,
435=>5,
436=>5,
437=>5,
438=>5,
439=>5,
440=>5,
441=>5,
442=>5,
443=>5,
444=>5,
445=>5,
446=>5,
447=>5,
448=>5,
449=>5,
450=>5,
451=>5,
452=>5,
453=>5,
454=>5,
455=>5,
456=>5,
457=>5,
458=>5,
459=>5,
460=>5,
461=>5,
462=>5,
463=>5,
464=>5,
465=>5,
466=>5,
467=>5,
468=>5,
469=>5,
470=>5,
471=>5,
472=>5,
473=>5,
474=>5,
475=>5,
476=>5,
477=>5,
478=>5,
479=>5,
480=>5,
481=>5,
482=>5,
483=>5,
484=>5,
485=>5,
486=>5,
487=>5,
488=>5,
489=>5,
490=>5,
491=>5,
492=>5,
493=>5,
494=>5,
495=>5,
496=>5,
497=>5,
498=>5,
499=>5,
500=>5,
501=>5,
502=>5,
503=>5,
504=>5,
505=>5,
506=>5,
507=>5,
508=>5,
509=>5,
510=>5,
511=>5,
512=>5,
513=>5,
514=>5,
515=>5,
516=>5,
517=>5,
518=>5,
519=>5,
520=>5,
521=>5,
522=>5,
523=>5,
524=>5,
525=>5,
526=>5,
527=>5,
528=>5,
529=>5,
530=>5,
531=>5,
532=>5,
533=>5,
534=>5,
535=>5,
536=>5,
537=>5,
538=>5,
539=>5,
540=>5,
541=>5,
542=>5,
543=>5,
544=>5,
545=>5,
546=>5,
547=>5,
548=>5,
549=>5,
550=>5,
551=>5,
552=>5,
553=>5,
554=>5,
555=>5,
556=>5,
557=>5,
558=>5,
559=>5,
560=>5,
561=>5,
562=>5,
563=>5,
564=>5,
565=>5,
566=>5,
567=>5,
568=>5,
569=>5,
570=>5,
571=>5,
572=>5,
573=>5,
574=>5,
575=>5,
576=>5,
577=>5,
578=>5,
579=>5,
580=>5,
581=>5,
582=>5,
583=>5,
584=>5,
585=>5,
586=>5,
587=>5,
588=>5,
589=>5,
590=>5,
591=>5,
592=>5,
593=>5,
594=>5,
595=>5,
596=>5,
597=>5,
598=>5,
599=>5,
600=>5,
601=>5,
602=>5,
603=>5,
604=>5,
605=>5,
606=>5,
607=>5,
608=>5,
609=>5,
610=>5,
611=>5,
612=>5,
613=>5,
614=>5,
615=>5,
616=>5,
617=>5,
618=>5,
619=>5,
620=>5,
621=>5,
622=>5,
623=>5,
624=>5,
625=>5,
626=>5,
627=>5,
628=>5,
629=>5,
630=>5,
631=>5,
632=>5,
633=>5,
634=>5,
635=>5,
636=>5,
637=>5,
638=>5,
639=>5,
640=>5,
641=>5,
642=>5,
643=>5,
644=>5,
645=>5,
646=>5,
647=>5,
648=>5,
649=>5,
650=>5
               }     
#-------------------------------------------------------------------------------
#Definição do limite maximo de armaduras.
#-------------------------------------------------------------------------------
ARMOR_LIMIT = {
1=>5,
2=>5,
3=>5,
4=>5,
5=>5,
6=>5,
7=>5,
8=>5,
9=>5,
10=>5,
11=>5,
12=>5,
13=>5,
14=>5,
15=>5,
16=>5,
17=>5,
18=>5,
19=>5,
20=>5,
21=>5,
22=>5,
23=>5,
24=>5,
25=>5,
26=>5,
27=>5,
28=>5,
29=>5,
30=>5,
31=>5,
32=>5,
33=>5,
34=>5,
35=>5,
36=>5,
37=>5,
38=>5,
39=>5,
40=>5,
41=>5,
42=>5,
43=>5,
44=>5,
45=>5,
46=>5,
47=>5,
48=>5,
49=>5,
50=>5,
51=>5,
52=>5,
53=>5,
54=>5,
55=>5,
56=>5,
57=>5,
58=>5,
59=>5,
60=>5,
61=>5,
62=>5,
63=>5,
64=>5,
65=>5,
66=>5,
67=>5,
68=>5,
69=>5,
70=>5,
71=>5,
72=>5,
73=>5,
74=>5,
75=>5,
76=>5,
77=>5,
78=>5,
79=>5,
80=>5,
81=>5,
82=>5,
83=>5,
84=>5,
85=>5,
86=>5,
87=>5,
88=>5,
89=>5,
90=>5,
91=>5,
92=>5,
93=>5,
94=>5,
95=>5,
96=>5,
97=>5,
98=>5,
99=>5,
100=>5,
101=>5,
102=>5,
103=>5,
104=>5,
105=>5,
106=>5,
107=>5,
108=>5,
109=>5,
110=>5,
111=>5,
112=>5,
113=>5,
114=>5,
115=>5,
116=>5,
117=>5,
118=>5,
119=>5,
120=>5,
121=>5,
122=>5,
123=>5,
124=>5,
125=>5,
126=>5,
127=>5,
128=>5,
129=>5,
130=>5,
131=>5,
132=>5,
133=>5,
134=>5,
135=>5,
136=>5,
137=>5,
138=>5,
139=>5,
140=>5,
141=>5,
142=>5,
143=>5,
144=>5,
145=>5,
146=>5,
147=>5,
148=>5,
149=>5,
150=>5,
151=>5,
152=>5,
153=>5,
154=>5,
155=>5,
156=>5,
157=>5,
158=>5,
159=>5,
160=>5,
161=>5,
162=>5,
163=>5,
164=>5,
165=>5,
166=>5,
167=>5,
168=>5,
169=>5,
170=>5,
171=>5,
172=>5,
173=>5,
174=>5,
175=>5,
176=>5,
177=>5,
178=>5,
179=>5,
180=>5,
181=>5,
182=>5,
183=>5,
184=>5,
185=>5,
186=>5,
187=>5,
188=>5,
189=>5,
190=>5,
191=>5,
192=>5,
193=>5,
194=>5,
195=>5,
196=>5,
197=>5,
198=>5,
199=>5,
200=>5,
201=>5,
202=>5,
203=>5,
204=>5,
205=>5,
206=>5,
207=>5,
208=>5,
209=>5,
210=>5,
211=>5,
212=>5,
213=>5,
214=>5,
215=>5,
216=>5,
217=>5,
218=>5,
219=>5,
220=>5,
221=>5,
222=>5,
223=>5,
224=>5,
225=>5,
226=>5,
227=>5,
228=>5,
229=>5,
230=>5,
231=>5,
232=>5,
233=>5,
234=>5,
235=>5,
236=>5,
237=>5,
238=>5,
239=>5,
240=>5,
241=>5,
242=>5,
243=>5,
244=>5,
245=>5,
246=>5,
247=>5,
248=>5,
249=>5,
250=>5,
251=>5,
252=>5,
253=>5,
254=>5,
255=>5,
256=>5,
257=>5,
258=>5,
259=>5,
260=>5,
261=>5,
262=>5,
263=>5,
264=>5,
265=>5,
266=>5,
267=>5,
268=>5,
269=>5,
270=>5,
271=>5,
272=>5,
273=>5,
274=>5,
275=>5,
276=>5,
277=>5,
278=>5,
279=>5,
280=>5,
281=>5,
282=>5,
283=>5,
284=>5,
285=>5,
286=>5,
287=>5,
288=>5,
289=>5,
290=>5,
291=>5,
292=>5,
293=>5,
294=>5,
295=>5,
296=>5,
297=>5,
298=>5,
299=>5,
300=>5,
301=>5,
302=>5,
303=>5,
304=>5,
305=>5,
306=>5,
307=>5,
308=>5,
309=>5,
310=>5,
311=>5,
312=>5,
313=>5,
314=>5,
315=>5,
316=>5,
317=>5,
318=>5,
319=>5,
320=>5,
321=>5,
322=>5,
323=>5,
324=>5,
325=>5,
326=>5,
327=>5,
328=>5,
329=>5,
330=>5,
331=>5,
332=>5,
333=>5,
334=>5,
335=>5,
336=>5,
337=>5,
338=>5,
339=>5,
340=>5,
341=>5,
342=>5,
343=>5,
344=>5,
345=>5,
346=>5,
347=>5,
348=>5,
349=>5,
350=>5,
351=>5,
352=>5,
353=>5,
354=>5,
355=>5,
356=>5,
357=>5,
358=>5,
359=>5,
360=>5,
361=>5,
362=>5,
363=>5,
364=>5,
365=>5,
366=>5,
367=>5,
368=>5,
369=>5,
370=>5,
371=>5,
372=>5,
373=>5,
374=>5,
375=>5,
376=>5,
377=>5,
378=>5,
379=>5,
380=>5,
381=>5,
382=>5,
383=>5,
384=>5,
385=>5,
386=>5,
387=>5,
388=>5,
389=>5,
390=>5,
391=>5,
392=>5,
393=>5,
394=>5,
395=>5,
396=>5,
397=>5,
398=>5,
399=>5,
400=>5,
401=>5,
402=>5,
403=>5,
404=>5,
405=>5,
406=>5,
407=>5,
408=>5,
409=>5,
410=>5,
411=>5,
412=>5,
413=>5,
414=>5,
415=>5,
416=>5,
417=>5,
418=>5,
419=>5,
420=>5,
421=>5,
422=>5,
423=>5,
424=>5,
425=>5,
426=>5,
427=>5,
428=>5,
429=>5,
430=>5,
431=>5,
432=>5,
433=>5,
434=>5,
435=>5,
436=>5,
437=>5,
438=>5,
439=>5,
440=>5,
441=>5,
442=>5,
443=>5,
444=>5,
445=>5,
446=>5,
447=>5,
448=>5,
449=>5,
450=>5,
451=>5,
452=>5,
453=>5,
454=>5,
455=>5,
456=>5,
457=>5,
458=>5,
459=>5,
460=>5,
461=>5,
462=>5,
463=>5,
464=>5,
465=>5,
466=>5,
467=>5,
468=>5,
469=>5,
470=>5,
471=>5,
472=>5,
473=>5,
474=>5,
475=>5,
476=>5,
477=>5,
478=>5,
479=>5,
480=>5,
481=>5,
482=>5,
483=>5,
484=>5,
485=>5,
486=>5,
487=>5,
488=>5,
489=>5,
490=>5,
491=>5,
492=>5,
493=>5,
494=>5,
495=>5,
496=>5,
497=>5,
498=>5,
499=>5,
500=>5,
501=>5,
502=>5,
503=>5,
504=>5,
505=>5,
506=>5,
507=>5,
508=>5,
509=>5,
510=>5,
511=>5,
512=>5,
513=>5,
514=>5,
515=>5,
516=>5,
517=>5,
518=>5,
519=>5,
520=>5,
521=>5,
522=>5,
523=>5,
524=>5,
525=>5,
526=>5,
527=>5,
528=>5,
529=>5,
530=>5,
531=>5,
532=>5,
533=>5,
534=>5,
535=>5,
536=>5,
537=>5,
538=>5,
539=>5,
540=>5,
541=>5,
542=>5,
543=>5,
544=>5,
545=>5,
546=>5,
547=>5,
548=>5,
549=>5,
550=>5,
551=>5,
552=>5,
553=>5,
554=>5,
555=>5,
556=>5,
557=>5,
558=>5,
559=>5,
560=>5,
561=>5,
562=>5,
563=>5,
564=>5,
565=>5,
566=>5,
567=>5,
568=>5,
569=>5,
570=>5,
571=>5,
572=>5,
573=>5,
574=>5,
575=>5,
576=>5,
577=>5,
578=>5,
579=>5,
580=>5,
581=>5,
582=>5,
583=>5,
584=>5,
585=>5,
586=>5,
587=>5,
588=>5,
589=>5,
590=>5,
591=>5,
592=>5,
593=>5,
594=>5,
595=>5,
596=>5,
597=>5,
598=>5,
599=>5,
600=>5,
601=>5,
602=>5,
603=>5,
604=>5,
605=>5,
606=>5,
607=>5,
608=>5,
609=>5,
610=>5,
611=>5,
612=>5,
613=>5,
614=>5,
615=>5,
616=>5,
617=>5,
618=>5,
619=>5,
620=>5,
621=>5,
622=>5,
623=>5,
624=>5,
625=>5,
626=>5,
627=>5,
628=>5,
629=>5,
630=>5,
631=>5,
632=>5,
633=>5,
634=>5,
635=>5,
636=>5,
637=>5,
638=>5,
639=>5,
640=>5,
641=>5,
642=>5,
643=>5,
644=>5,
645=>5,
646=>5,
647=>5,
648=>5,
649=>5,
650=>5
               }   
#-------------------------------------------------------------------------------
#Definição do limite maximo de dinheiro
#-------------------------------------------------------------------------------
GOLD_LIMIT = 1000000000000000000000
#-------------------------------------------------------------------------------
end
$mogscript = {} if $mogscript == nil
$mogscript["Item_Limit"] = true
##############
# Game_Party #
##############
class Game_Party
alias mog45_gain_item gain_item
def gain_item(item_id, n)
if item_id > 0
item_limit = MOG::ITEM_LIMIT[item_id]
if item_limit != nil  
@items[item_id] = [[item_number(item_id) + n, 0].max, item_limit].min
else  
@items[item_id] = [[item_number(item_id) + n, 0].max, MOG::DEFAULT_LIMIT].min
end
end
return
mog45_gain_item(item_id, n)
end
alias mog45_gain_weapon gain_weapon
def gain_weapon(weapon_id, n)
if weapon_id > 0
weapon_limit = MOG::WEAPON_LIMIT[weapon_id]    
if weapon_limit !=nil  
@weapons[weapon_id] = [[weapon_number(weapon_id) + n, 0].max, weapon_limit].min
else
@weapons[weapon_id] = [[weapon_number(weapon_id) + n, 0].max, MOG::DEFAULT_LIMIT].min
end
end
return
mog45_gain_weapon(weapon_id, n)
end
alias mog45_gain_armor gain_armor
def gain_armor(armor_id, n)
if armor_id > 0
armor_limit = MOG::ARMOR_LIMIT[armor_id]
if armor_limit != nil
@armors[armor_id] = [[armor_number(armor_id) + n, 0].max, armor_limit].min
else  
@armors[armor_id] = [[armor_number(armor_id) + n, 0].max, MOG::DEFAULT_LIMIT].min
end
end
return
mog45_gain_armor    
end
def gain_gold(n)
@gold = [[@gold + n, 0].max, MOG::GOLD_LIMIT].min
end  
end
##############
# Scene_Shop #
##############
class Scene_Shop
alias mog45_update update  
def update
if @sell_window.active == true
$sell = true  
else  
$sell = false  
end  
mog45_update
end  
alias mog45_update_buy update_buy
def update_buy
if Input.trigger?(Input::C)  
@item = @buy_window.item
case @item
when RPG::Item
number = $game_party.item_number(@item.id)
item_limit = MOG::ITEM_LIMIT[@item.id]
if item_limit != nil
if number >= item_limit
$game_system.se_play($data_system.buzzer_se)
return
end
else
if number == MOG::DEFAULT_LIMIT
$game_system.se_play($data_system.buzzer_se)
return
end  
end
when RPG::Weapon
number = $game_party.weapon_number(@item.id)
weapon_limit = MOG::WEAPON_LIMIT[@item.id]
if weapon_limit != nil
if number >= weapon_limit
$game_system.se_play($data_system.buzzer_se)
return
end
else
if number == MOG::DEFAULT_LIMIT
$game_system.se_play($data_system.buzzer_se)
return
end
end
when RPG::Armor
number = $game_party.armor_number(@item.id)
armor_limit = MOG::ARMOR_LIMIT[@item.id]
if armor_limit != nil
if number >= armor_limit
$game_system.se_play($data_system.buzzer_se)
return
end
else
if number == MOG::DEFAULT_LIMIT
$game_system.se_play($data_system.buzzer_se)
return
end
end
end  
end
mog45_update_buy
end
end
#####################
# Window_ShopNumber #
#####################
class Window_ShopNumber < Window_Base
alias mog45_set set
def set(item, max, price)
@item = item
case @item
when RPG::Item
number = $game_party.item_number(@item.id)
item_limit = MOG::ITEM_LIMIT[@item.id]
if item_limit!= nil
if $sell == true
valor = item_limit - number
@max = item_limit - valor
else
@max = item_limit - number
end
else
if $sell == true
valor = MOG::DEFAULT_LIMIT - number  
@max = MOG::DEFAULT_LIMIT - valor
else
@max = MOG::DEFAULT_LIMIT - number
end
end
when RPG::Weapon
number = $game_party.weapon_number(@item.id)
weapon_limit = MOG::WEAPON_LIMIT[@item.id]
if weapon_limit!= nil
if $sell == true
valor = weapon_limit - number
@max = weapon_limit - valor
else
@max = weapon_limit - number
end
else
if $sell == true  
valor = MOG::DEFAULT_LIMIT - number    
@max = MOG::DEFAULT_LIMIT - valor
else
@max = MOG::DEFAULT_LIMIT - number
end
end    
when RPG::Armor
number = $game_party.armor_number(@item.id)
armor_limit = MOG::ARMOR_LIMIT[@item.id]
if armor_limit!= nil
if $sell == true
valor = armor_limit - number
@max = armor_limit - valor
else
@max = armor_limit - number
end
else
if $sell == true
valor = MOG::DEFAULT_LIMIT - number    
@max = MOG::DEFAULT_LIMIT - valor  
else
@max = MOG::DEFAULT_LIMIT - number
end
end
end
@price = price
@number = 1
refresh
return
mog45_set set(item, max, price)
end  
end  
###############
# Window_Item #
###############
class Window_Item < Window_Selectable
def draw_item(index)
item = @data[index]
case item
when RPG::Item
number = $game_party.item_number(item.id)
item_number = MOG::ITEM_LIMIT[item.id]
when RPG::Weapon
number = $game_party.weapon_number(item.id)
item_number = MOG::WEAPON_LIMIT[item.id]  
when RPG::Armor
number = $game_party.armor_number(item.id)
item_number = MOG::ARMOR_LIMIT[item.id]
end
if item.is_a?(RPG::Item) and
$game_party.item_can_use?(item.id)
self.contents.font.color = normal_color
else
self.contents.font.color = disabled_color
end
x = 4 + index % 2 * (288 + 32)
y = index / 2 * 32
rect = Rect.new(x, y, self.width / @column_max - 32, 32)
self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
bitmap = RPG::Cache.icon(item.icon_name)
opacity = self.contents.font.color == normal_color ? 255 : 128
self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 24, 24), opacity)
self.contents.draw_text(x + 28, y, 212, 32, item.name, 0)
if item_number != nil
self.contents.draw_text(x + 220, y, 60, 32, number.to_s + " / " + item_number.to_s, 2)
else
max_limit = MOG::DEFAULT_LIMIT
self.contents.draw_text(x + 220, y, 60, 32, number.to_s + " / " + max_limit.to_s, 2)
end
end
end
##################
# Window_Item_Ex #
##################
class Window_Item_Ex < Window_Selectable
def draw_item(index)
item = @data[index]
case item
when RPG::Item
number = $game_party.item_number(item.id)
item_number = MOG::ITEM_LIMIT[item.id]
end
if item.is_a?(RPG::Item) and
$game_party.item_can_use?(item.id)
self.contents.font.color = normal_color
else
self.contents.font.color = disabled_color
end
x = 4 + index % 1 * (288 + 32)
y = index / 1 * 32
rect = Rect.new(x, y, self.width / @column_max - 32, 32)
self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
self.contents.font.name = "Georgia"    
bitmap = RPG::Cache.icon(item.icon_name)
opacity = self.contents.font.color == normal_color ? 255 : 128    
self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 24, 24), opacity)
self.contents.draw_text(x + 28, y, 190, 32, item.name, 0)
if item_number != nil
self.contents.draw_text(x + 195, y, 60, 32, number.to_s + " / " + item_number.to_s, 2)
else
max_limit = MOG::DEFAULT_LIMIT
self.contents.draw_text(x + 195, y, 60, 32, number.to_s + " / " + max_limit.to_s, 2)
end
end  
end
###################
# Window_ShopSell #
###################
class Window_ShopSell < Window_Selectable
def initialize
if $mogscript["menu_shop"] == true
super(-10, 180, 305, 225)
self.opacity = 0
@column_max = 1
refresh
self.index = 0
else    
super(0, 128, 640, 352)  
@column_max = 2
refresh
self.index = 0   
end
end
def draw_item(index)  
item = @data[index]
case item
when RPG::Item
number = $game_party.item_number(item.id)
item_number = MOG::ITEM_LIMIT[item.id]
when RPG::Weapon
number = $game_party.weapon_number(item.id)
item_number = MOG::WEAPON_LIMIT[item.id]  
when RPG::Armor
number = $game_party.armor_number(item.id)
item_number = MOG::ARMOR_LIMIT[item.id]
end
if item.price > 0
self.contents.font.color = normal_color
else
self.contents.font.color = disabled_color
end
if $mogscript["menu_shop"] == nil
x = 4 + index % 2 * (288 + 32)
y = index / 2 * 32
rect = Rect.new(x, y, self.width / @column_max - 32, 32)
self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
bitmap = RPG::Cache.icon(item.icon_name)
opacity = self.contents.font.color == normal_color ? 255 : 128
self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 24, 24), opacity)
self.contents.draw_text(x + 28, y, 212, 32, item.name, 0)
if item_number != nil
self.contents.draw_text(x + 220, y, 60, 32, number.to_s + " / " + item_number.to_s, 2)
else
max_limit = MOG::DEFAULT_LIMIT
self.contents.draw_text(x + 220, y, 60, 32, number.to_s + " / " + max_limit.to_s, 2)
end
else
self.contents.font.name = "Georgia"  
x = 4 + index % 1 * (288 + 32)
y = index / 1 * 32
rect = Rect.new(x, y, self.width / @column_max - 32, 32)
self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
bitmap = RPG::Cache.icon(item.icon_name)
opacity = self.contents.font.color == normal_color ? 255 : 128
self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 24, 24), opacity)
self.contents.draw_text(x + 28, y, 150, 32, item.name, 0)
self.contents.font.color = Color.new(50,250,150,255)
prc = item.price / 2
self.contents.draw_text(x + 180, y, 80, 32, "+G " + prc.to_s, 2)
end
end
end
(I hope the spoilercode works^^ )
 

Evgenij

Veteran
Veteran
Joined
Aug 28, 2013
Messages
349
Reaction score
100
First Language
German
Primarily Uses
N/A
Can you explain the problem in words?

Do you use any other scripts? If yes which one?

mfg.
 

Sortis

Villager
Member
Joined
May 9, 2014
Messages
6
Reaction score
0
First Language
german
Primarily Uses
Okay ;)

If I have 20 gold and the item costs 15 gold
I now choose the maximum number of that Item (example 55)
he pulls the money from - but fills the 55 Slots

So I pay 20 gold and get 55 items worth 825

Whe i use the Itemlimit System on a new project the bug is there too :(

I need a Edit like:
if you do not wear enough money with him u cant max the slots

I hope u can understand me because my english is bad :)
 

Evgenij

Veteran
Veteran
Joined
Aug 28, 2013
Messages
349
Reaction score
100
First Language
German
Primarily Uses
N/A
For which RPG Maker is this Script?
 

Sortis

Villager
Member
Joined
May 9, 2014
Messages
6
Reaction score
0
First Language
german
Primarily Uses
Rpg Maker XP
 

Sortis

Villager
Member
Joined
May 9, 2014
Messages
6
Reaction score
0
First Language
german
Primarily Uses
I have the error now understood!

The item limit allows you a choice! even if you have no money

explanation:

I have 100 Gold ans i need parfum (1 parfum cost: 30 Gold)

normally I can now select a number = 3 so 90 Gold

BUT!

With the Item Limit i can select amounts to as much as even the limit (bad english?)

explanation:

the Limit from poison is 40 so i can select 40 of them... when i don´t have the money the script takes my money and this:

I have 100 Gold ans i need parfum (1 parfum cost: 30 Gold) THE LIMIT IS 40

I can now select a THE ITEMLIMIT number = 40 so 12000 Gold but i have only 100!

now my money is set to 0 BUT I HAVE 40 parfumes

The Item Limit cheks not my money before i can select a number.....

I Hope u can understand me :D :D :D
 

Sortis

Villager
Member
Joined
May 9, 2014
Messages
6
Reaction score
0
First Language
german
Primarily Uses
OKAY! Hi @all i have fix the problem :D

take the Item Limit Script OVER the Shop Menu and it works because the variable is overwrite from the shop system ;)

Yehaaa ciao and thx
 

Ronivan

Ser Roni
Veteran
Joined
Aug 1, 2013
Messages
41
Reaction score
35
First Language
English
Primarily Uses
Nope, it didn't worked for me. If I put the Limit Script over the shop menu, it gives an error message: "Undefined method 'update' for class 'scene_shop'. 
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts


Although limited to only this shop for room decorations, I like this aspect for previewing items.
So yesterday I got a follower (follow my NSFW art account) who dmed me and said to me :
if you continue to be friends with [name of the artists] which make me uncomfortable I will have to unfollow and I am like :
... do it?
Did I add too many?? Is there such a thing?

Rabbit's Shop I've been reworking. Still some dated graphics but 99% satisfied I think.:kaophew:
Traps, detecting traps, and disarming traps including treasure traps have now been implemented into my Might and Magic-inspired project. If you don't want to get hurt, you better have a character who focuses on the perception skill, and you better have a character who focuses on the disarm skill!

Forum statistics

Threads
100,834
Messages
980,072
Members
132,481
Latest member
loehz
Top