Top Mud Sites Forum

Top Mud Sites Forum (http://www.topmudsites.com/forums/index.php)
-   MUD Coding (http://www.topmudsites.com/forums/forumdisplay.php?f=9)
-   -   an error i got (http://www.topmudsites.com/forums/showthread.php?t=453)

UnKnOwN1205 01-06-2005 08:26 PM

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.

Iluvatar 01-09-2005 03:45 PM

Since you don't have a response yet, I suggest you use this forum and either email or message KaVir directly since he designed your Godwars code.


All times are GMT -4. The time now is 12:35 AM.

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright Top Mud Sites.com 2022