Item problems

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 problems
Agent
Member # 27
Profile #0
I created a few custom items. They worked fine, except that the third and fourth ability of one item, attached itself to the other items, with less abilities.

What could I be doing wrong?
Posts: 1233 | Registered: Wednesday, October 3 2001 07:00
Infiltrator
Member # 169
Profile #1
Did you remember to put a clear statement at the start of the second item?
Posts: 422 | Registered: Tuesday, October 16 2001 07:00
Shock Trooper
Member # 3276
Profile #2
Can we see your script of the items?
Posts: 249 | Registered: Saturday, July 26 2003 07:00
Agent
Member # 27
Profile #3
Yeah sure, I was fooling around when I found this problem.

beginscendatascript;
begindefineitem 448;
it_variety = 17;
it_protection = 1;
it_bonus = 8;
it_encumbrance = 0;
it_floor_which_sheet = 1002;
it_floor_which_icon = 7;
it_inventory_icon = 8;
it_icon_adjust = 11;
it_value = 2000;
it_weight = 10;
it_ability_1 = 3;
it_ability_str_1 = 1;
it_ability_2 = 56;
it_ability_str_2 = 3;
it_name = "Cloak";
it_full_name = "Robe of the Rain";
begindefineitem 449;
it_variety = 2;
it_damage_per_level = 3;
it_bonus = 5;
it_weapon_skill_used = 25;
it_protection = 4;
it_floor_which_sheet = 1036;
it_floor_which_icon = 0;
it_inventory_icon = 1;
it_icon_adjust = 75;
it_ability_1 = 3;
it_ability_str_1 = 3;
it_ability_2 = 12;
it_ability_str_2 = 1;
it_ability_3 = 57;
it_ability_str_3 = 3;
it_value = 6000;
it_weight = 50;
it_magic = 1;
it_name = "Staff";
it_full_name = "Rod of Magery";
begindefineitem 450;
it_variety = 13;
it_protection = 24;
it_bonus = 18;
it_encumbrance = 2;
it_floor_which_sheet = 1037;
it_floor_which_icon = 8;
it_inventory_icon = 9;
it_icon_adjust = 72;
it_value = 7000;
it_weight = 150;
it_ability_1 = 65;
it_ability_str_1 = 5;
it_ability_2 = 54;
it_ability_str_2 = 4;
it_ability_3 = 82;
it_ability_str_3 = 1;
it_ability_4 = 13;
it_ability_str_4 = 2;
it_name = "Ring Mail";
it_full_name = "Archangel's Mantel";
Posts: 1233 | Registered: Wednesday, October 3 2001 07:00
Warrior
Member # 4492
Profile #4
I think you have to do a clear command so that item propeties are not passed on.

beginscendatascript;
begindefineitem 448;
it_variety = 17;
it_protection = 1;
it_bonus = 8;
it_encumbrance = 0;
it_floor_which_sheet = 1002;
it_floor_which_icon = 7;
it_inventory_icon = 8;
it_icon_adjust = 11;
it_value = 2000;
it_weight = 10;
it_ability_1 = 3;
it_ability_str_1 = 1;
it_ability_2 = 56;
it_ability_str_2 = 3;
it_name = "Cloak";
it_full_name = "Robe of the Rain";
begindefineitem 449;
CLEAR;
it_variety = 2;
it_damage_per_level = 3;
....
Posts: 61 | Registered: Wednesday, June 9 2004 07:00
Triad Mage
Member # 7
Profile Homepage #5
Namothil and Kiexcolo are absolutely right. Items that aren't cleared inherit all properties from the previously defined item.

--------------------
"At times discretion should be thrown aside, and with the foolish we should play the fool." - Menander
====
Drakefyre's Demesne - Happy Happy Joy Joy
Encyclopedia Ermariana - Trapped in the Closet
====
You can take my Mac when you pry my cold, dead fingers off the mouse!
Posts: 9436 | Registered: Wednesday, September 19 2001 07:00