|
|||||||
This is a discussion on "an error i got" in the Top Mud Sites MUD Coding forum : 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:... |
|
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our MUD community today! If you have any problems with the registration process or your account login, please contact us. If you are a registered member of the old TMS forums, please click here
|
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
|
New Member
|
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. |
|
|
|
|
|
#2 |
|
Member
Join Date: May 2002
Location: Mississippi USA
Posts: 142
![]() |
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.
|
|
|
|
![]() |
| Thread Tools | |
an error i got - Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ruby Error | NotL337 | MUD Coding | 2 | 07-21-2006 11:14 PM |
| error when trying to compile | UnKnOwN | MUD Coding | 0 | 04-07-2006 02:53 PM |
| Rankem has javascript error? | gth | MUD and RPG Webmasters | 1 | 03-08-2004 11:39 PM |
| Error when Dying | Verboden Faction | MUD Coding | 2 | 03-25-2003 11:59 PM |
| Compile error | melker | MUD Coding | 37 | 07-22-2002 02:23 PM |
|
|