Top Mud Sites Forum Return to TopMudSites.com
Go Back   Top Mud Sites Forum > Mud Development and Administration > MUD Coding
Click here to Register

Reply
 
Thread Tools
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
Old 01-09-2005, 03:45 PM   #2
Iluvatar
Member
 
Join Date: May 2002
Location: Mississippi USA
Posts: 142
Iluvatar is on a distinguished road
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.
Iluvatar is offline   Reply With Quote
Reply


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -4. The time now is 09:05 AM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Style based on a design by Essilor
Copyright Top Mud Sites.com 2022