[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Problem with Create Symbol

Problem with Create Symbol

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Toy   (206 posts)  [Biography] bio
Date Sat 25 May 2002 03:26 AM (UTC)
Message
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

It's always good to know how far you are willing to go to be the best...

Karl Mancine
aka
Toy the Dark Puppet
[Go to top] top

Posted by AlaricX   (23 posts)  [Biography] bio
Date Reply #1 on Sat 25 May 2002 04:38 AM (UTC)
Message
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
[Go to top] top

Posted by Toy   (206 posts)  [Biography] bio
Date Reply #2 on Sat 25 May 2002 11:01 AM (UTC)
Message
Cool!!!!

It worked like a charm. Thanks Alot AlaricX.

-Alexander the not so lost but getting there now.

It's always good to know how far you are willing to go to be the best...

Karl Mancine
aka
Toy the Dark Puppet
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


11,294 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]