Re: OFF TOPIC: sorry

From: Daniel W. Burke (
Date: 06/20/96

On Thu, 20 Jun 1996, Brian Williams - Nashak wrote:

> another question: has anyone successfully added spell effects to items? 
> how you can like make it so if an item is flagg "ITEM_SPELL_EFFECT" or 
> something, it has a menu in OLC for spell effects.. but only imps or 
> something can edit that.. I tried making just a haste flag for items to 
> see if it'd work.. but it didn't, of course.. :P well, later.. and thanks 
> fer any info...

Adding perm spell affects to items is pretty simple, but you can only use 
the AFF_'s... just add this to parse_object next to where apply's are loaded:

       case 'A':
        blahblahblah code for loading item apply's is here

       case 'B':
         get_line(obj_f, line);
         sscanf(line, " %s ", f1);
         obj_proto[i].bitvector = asciiflag_conv(f1);

then the rest of the code is already there :)

as far as adding it to your olc, it depends what olc you're running...

(I use samedi olc, and added an extra imp only command to set perm affects)

This archive was generated by hypermail 2b30 : 12/18/00 PST