Help with this custom 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: Help with this custom item
Warrior
Member # 2838
Profile #0
I designed the foloowing item:

begindefineitem 445;
clear;
it_name = "Sword";
it_full_name = "Sword of Courage";
it_variety = 1; // 1-handed weapon.
it_damage_per_level = 12;
it_bonus = 5;
it_encumbrance = 1;
it_floor_which_sheet = 1037;
it_floor_which_icon = 2;
it_inventory_icon = 3;
it_ability_1 = 58; // Mental resistance, +5% / str
it_ability_str_1 = 3;
it_value = 2000;
it_weight = 100;
it_magic = 1;
I wanted to make it like a longsword with 5 bonus damage (like the magic longsword), but it ends up doing 6-72 damage.

May somebody tell me what I did wrong?

Thanks

--------------------
…../|,-‘`¯¯`\(o)_\,----,,,_………
…( `\(o),,_/` ¯ : o : :: o`-, … I'm under your bed.
Posts: 118 | Registered: Wednesday, April 2 2003 08:00
Agent
Member # 2820
Profile #1
Weapons do not have finite bonuses after their dice damage.

Each level of bonus makes the weapon act as if the player had that many extra levels of the appropriate skill. Basically, it adds a die of damage and +5% chance to hit for every level.

--------------------
Thuryl: I mean, most of us don't go around consuming our own bodily fluids, no matter how delicious they are.
====
Alorael: War and violence would end if we all had each other's babies!
====
Drakefyre: Those are hideous mangos.
Posts: 1415 | Registered: Thursday, March 27 2003 08:00
Agent
Member # 2210
Profile #2
Look at the code for icy longsword, or burning longsword. I think you can add special types of damage with a sword. Icy sword does +8 cold damage, and burning does +8 fire damage. You might have to come up with a special type of damage though.

--------------------
Wasting your time and mine looking for a good laugh.

Star Bright, Star Light, Oh I Wish I May, I Wish Might, Wish For One Star Tonight.
Posts: 1084 | Registered: Thursday, November 7 2002 08:00