Curse item

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: Curse item
Warrior
Member # 4492
Profile #0
I can't seem to curse my item. Even though I set it_cursed = 1, the item doesn't doesn't specify its cursed and can be unequipped.
Posts: 61 | Registered: Wednesday, June 9 2004 07:00
The Establishment
Member # 6
Profile #1
Could you please post the whole item definition in your script.

--------------------
Your flower power is no match for my glower power!
Posts: 3726 | Registered: Tuesday, September 18 2001 07:00
Warrior
Member # 4492
Profile #2
begindefineitem 456;
clear;
it_name = "Claw";
it_full_name = "Demon Claws";
it_variety = 2;
it_floor_which_sheet = 520;
it_floor_which_icon = 0;
it_inventory_icon = 0;
it_damage_per_level = 6;
it_protection = 6;
it_bonus = 6;
it_ability_1 = 50;
it_ability_str_1 = 2;
it_ability_2 = 54;
it_ability_str_2 = 2;
it_ability_3 = 64;
it_ability_str_3 = 1;
it_ability_4 = 70;
it_ability_str_4 = 30;
it_special_class = 6;
it_weight = 150;
it_magic = 1;
it_cursed = 1;
Posts: 61 | Registered: Wednesday, June 9 2004 07:00
The Establishment
Member # 6
Profile #3
I have a couple ideas to try:

1) Try removing one of the special abilities and see if the cursing works.
2) Try taking off the magic attribute.

If neither one of these work, definitely e-mail Jeff Vogel.

--------------------
Your flower power is no match for my glower power!
Posts: 3726 | Registered: Tuesday, September 18 2001 07:00
Warrior
Member # 4492
Profile #4
No, it doesn't work... I commented everything except it_name, it_variety and it_cursed and it still refuses to work... weird... looks like I am the one thats cursed.

[ Friday, December 31, 2004 21:23: Message edited by: Kiexcolo ]
Posts: 61 | Registered: Wednesday, June 9 2004 07:00
The Establishment
Member # 6
Profile #5
Does it work for a different number slot?

--------------------
Your flower power is no match for my glower power!
Posts: 3726 | Registered: Tuesday, September 18 2001 07:00
Warrior
Member # 4492
Profile #6
Nope, still doesn't work. I'm sure someone else must have done a cursed item before. Issit something I missed out?
Posts: 61 | Registered: Wednesday, June 9 2004 07:00
Warrior
Member # 4238
Profile #7
Why don't you compare yours to the default items? Commenting something out doesn't necessarily mean that variable is set to 0.

begindefineitem 49;
it_name = "Short Sword";
it_full_name = "Cursed Short Sword";
it_variety = 1;
it_damage_per_level = 4;
it_bonus = -3;
it_floor_which_sheet = 1004;
it_floor_which_icon = 9;
it_inventory_icon = 8;
it_value = 10;
it_weight = 80;
it_magic = 0;
it_cursed = 1;

Posts: 70 | Registered: Monday, April 12 2004 07:00
Warrior
Member # 4492
Profile #8
Ok, thats it, curse item is broken, for me anyway, even the default cursed items dun appear curse. Corrupted program?

[ Saturday, January 01, 2005 21:15: Message edited by: Kiexcolo ]
Posts: 61 | Registered: Wednesday, June 9 2004 07:00
...b10010b...
Member # 869
Profile Homepage #9
Actually, some (but not all) cursed items don't seem to be properly cursed for me either. I assumed this was just because they weren't defined as such. My suspicion is that curse working/not working has to do with the type of item it is.

Try Morog's Scepter in Za-Khazi Run; I know for a fact that was cursed for me.

--------------------
The Empire Always Loses: This Time For Sure!
Posts: 9973 | Registered: Saturday, March 30 2002 08:00
Warrior
Member # 4492
Profile #10
Alrite, I figured out the real deal here thanks to the hint by Thuryl. Although I never played Za-khazi, I have looked at its design and I figured the Morog scepter to be a reward item so on a hunch I rewarded my cursed item and guess what, its correctly cursed! Only when you place cursed items on the floor in the scene editor do they not get cursed correctly. Weird huh.

Edit: Anyway I went to make sure and it seems the scepter is a dropped item, not a reward item. But anyway the theory is the same, cursed item do not work if they are placed on floor in scene edit.

[ Sunday, January 02, 2005 01:37: Message edited by: Kiexcolo ]
Posts: 61 | Registered: Wednesday, June 9 2004 07:00