Thread: an error i got
View Single Post
Old 01-06-2005, 08:26 PM   #1
UnKnOwN1205
New Member
 
Join Date: Jan 2004
Posts: 15
UnKnOwN1205 is on a distinguished road
Send a message via AIM to UnKnOwN1205
im trying to create a new slab for my mud. its a godwars dystopia mud, and im editing kav_wiz.c

so far i am able to forge with it and see the item however after i forged the it says titanium because i copied the code from the titanium slab code. i tried changing the name but i keep getting an error. this is the error i got when i type make

[gawd@cs1 src]$ make
gcc -g -c -Wall kav_wiz.c
kav_wiz.c: In function `do_forge':
kav_wiz.c:249: `ITEM_' undeclared (first use in this function)
kav_wiz.c:249: (Each undeclared identifier is reported only once
kav_wiz.c:249: for each function it appears in.)
kav_wiz.c:258: `SITEM_' undeclared (first use in this function)
make: *** [kav_wiz.o] Error 1

and this is the code for the slab. the bold parts are the parts with the errors


if (obj2->item_type != ITEM_ADAMANTITE)
{send_to_char("That thing isn't elunium!\n\r",ch);return;}
else if (IS_SET(obj->spectype, SITEM_COPPER) ||
IS_SET(obj->spectype, SITEM_IRON) || IS_SET(obj->spectype, SITEM_STEEL) ||
IS_SET(obj->spectype, SITEM_ADAMANTITE) || IS_SET(obj->spectype, SITEM_TITANIUM))
{
send_to_char("That item is already forged.\n\r",ch);
return;
}
SET_BIT(obj->spectype, SITEM_ADAMANTITE);
ch->level=12;
ch->trust=12;
oset_affect(ch,obj,-20,APPLY_AC,FALSE);

ch->level=forgelevel;
ch->trust=forgetrust;
extract_obj( obj2 );
act("You forge elunium onto $p.\n\r",ch, obj,NULL,TO_CHAR);
act("$n forges elunium onto $p.\n\r",ch,obj,NULL,TO_ROOM);
obj->points -= 720;
// REMOVE_BIT(obj->quest, QUEST_HITROLL);
// REMOVE_BIT(obj->quest, QUEST_DAMROLL);
return;
}

when i go into the mud and oedit, thats what it says. something about the types.
UnKnOwN1205 is offline   Reply With Quote