Problem with Create Symbol

Posted by Toy on Sat 25 May 2002 03:26 AM — 3 posts, 15,911 views.

#0
I just fixed the create spells so they are working right by adding the proper function code in magic.c and tossed them in tables.c and mud.h. I make cleaned it, and then maked it. this is what I got:

Magic.c : In function 'spell_create_symbol' :
magic.c:2399: 'OBJ_VNUM_SYMBOL' undeclared (first use in this function.)

ch_ret spell_create_symbol( int sn, int level, CHAR_DATA *ch, void *vo )
{
OBJ_DATA *symbol;

symbol = create_object( get_obj_index( OBJ_VNUM_SYMBOL ), 0 );
symbol->value[0] = 5 + level;
act( AT_MAGIC, "$p suddenly appears.", ch, symbol, NULL, TO_ROOM );
act( AT_MAGIC, "$p suddenly appears.", ch, symbol, NULL, TO_CHAR );
symbol = obj_to_room( symbol, ch->in_room );
return rNONE;
}

That's my Create Symbol code. Anyone know what I'm doing wrong?
-Alexander the Lost
#1
Ok... OBJ_VNUM_SYMBOL is not existant, if you have limbo.are item 43 is a holy symbol, maybe you could define in mud.h

#define OBJ_VNUM_SYMBOL 43

thats all i can say.. dont know.. i dont know how you're mutilating your codebase.. heh heh heh
#2
Cool!!!!

It worked like a charm. Thanks Alot AlaricX.

-Alexander the not so lost but getting there now.