Enchanting weapons

Forum name speaks for itself.

Moderator: Board moderators

Post Reply
User avatar
hoxu
Senior member
Posts: 330
Joined: Tue Apr 29, 2003 6:10 am

Enchanting weapons

Post by hoxu »

Could someone tell me what kind of weapons I can enchant? Can I use prepare weapon scroll several times and read more enchantment scrolls on the weapon or do I just have to do it once?

The CF handbook didn't help much (http://crossfire.real-time.com/guides/h ... html#6.4.2) ..

/* Debian GNU/Linux - rebooting is for adding hardware. */
Kahr
Newbie
Posts: 4
Joined: Sun Jun 22, 2003 10:09 am
Location: ON, Canada

Post by Kahr »

You can enchant any non magical item (it gives an error when you try to prepare a magical item. I think anything with no item power or maybe a low item power... (i prepared a +3 broadsword hovever long ago). You only prepare them once, after tha it will tell you it is already prepared when you try to again. Hewever if you sac x number of diamonds.. and it is prepaed for y enchantments... you can exceed this number though there is probably a penalty of somekind but i'm not sure what.
User avatar
hoxu
Senior member
Posts: 330
Joined: Tue Apr 29, 2003 6:10 am

Post by hoxu »

Ok.. I studied the sources a bit.

In server/apply.c:409 function int prepare_weapon(object *op, object *improver, object *weapon):

Code: Select all

    for (i=0; i<NROFATTACKS; i++)
        if (weapon->resist[i]) break; 
    
    /* If we break out, i will be less than nrofattacks, preventing
     * improvement of items that already have protections.
     */
    if (i<NROFATTACKS || 
        weapon->stats.hp ||     /* regeneration */
        (weapon->stats.sp && weapon->type == WEAPON) || /* sp regeneration */
        weapon->stats.exp ||    /* speed */
        weapon->stats.ac)       /* AC - only taifu's I think */
    {
      new_draw_info(NDI_UNIQUE,0,op,"Cannot prepare magic weapons.");
      return 0;
    }
If I got it right, one can't improve weapons that have resistances, hp/sp regeneration, speed or ac?

Also, pieces of armour can't be improved to be better than +5 and special armour with a title can't be enchanted at all.

Can someone confirm this? :)

/* Debian GNU/Linux - rebooting is for adding hardware. */
Post Reply