item stacking

Error message

Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /var/www/pied-piper.ermarian.net/includes/common.inc).
AuthorTopic: item stacking
Apprentice
Member # 4786
Profile #0
This has probably already been discussed but I couldn't find the answer in a quick search.

begindefineitem 450;
clear;
it_name = "Tradable Metal";
it_full_name = "Tradable Metal";
it_variety = 21;
it_floor_which_sheet = 1017;
it_floor_which_icon = 5;
it_inventory_icon = 6;
it_value = 0;
it_weight = 0;
it_identified = 1;
it_icon_adjust = 16;
why doesn't this stack? The documentation states that it_variety 21 "combines with like items in inventory".

I tried giving 20 of these with reward_give and it makes a awful mess. How do i make a item with no special abilities that stacks?
Posts: 3 | Registered: Tuesday, July 27 2004 07:00
Shock Trooper
Member # 932
Profile #1
You will need to add the line: it_charges = 1; if you want items to stack.

--------------------
Microsoft Patents Ones, Zeroes (March 25, 1998)
"Asians are good at Starcraft because they're always squinting, thus they can see things sharply. Remember to always squint in war." ~ Sun-Tzu
Posts: 215 | Registered: Sunday, April 7 2002 08:00