Login
User Name:

Password:



Register

Forgot your password?
Space.c Commented out section
Oct 28, 2024 4:48 am
By Remcon
Any Smaug muds running?
Oct 5, 2024 4:34 pm
By Zedethar
SmaugFUSS 1.8/1.9
Sep 21, 2024 5:04 am
By Elwood
Bug: char_check( )
Aug 31, 2024 12:27 am
By GatewaySysop
Bug: move_char( )
Aug 30, 2024 3:52 am
By GatewaySysop
Discord Websocket Server
Author: Khonsu
Submitted by: Khonsu
Mapout Fix
Author: Khonsu
Submitted by: Khonsu
Progfind command
Author: Khonsu
Submitted by: Khonsu
do_owhere recursive
Author: Khonsu
Submitted by: Khonsu
Changes list / Addchange
Author: Khonsu
Submitted by: Khonsu
Users Online
CommonCrawl, Bing, AhrefsBot

Members: 0
Guests: 16
Stats
Files
Topics
Posts
Members
Newest Member
492
3,804
19,672
599
EmeliaPlun

Today's Birthdays
There are no member birthdays today.
» SmaugMuds » Codebases » SmaugFUSS » Need help with a snippet conv...
Forum Rules | Mark all | Recent Posts

Need help with a snippet conversion
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Mar 13, 2023 12:10 pm   
Go to the top of the page
Go to the bottom of the page

Hokai
Fledgling
GroupMembers
Posts3
JoinedMar 13, 2023

 
Hey guys, I dont remember where the snippet is found.

Its the idstrings for items, it works with the extradesc system.

Anyways I got everything installed right and got it saving on the Key'd Areas. But I have no idea how to get it to load it.

This used to go into the load_objs before Key'd areas.

	    else if( letter == 'E' )
	    {
		EXTRA_DESCR_DATA *ed;
                char *ed_key = fread_string( fp );
                id_string *ids;

                if( !str_cmp( ed_key, "idstring" ) )
                {
                  STRFREE( ed_key );
                  CREATE( ids, id_string, 1 );
                  ids->txt = fread_string( fp );
                  LINK( ids, pObjIndex->first_id_string, pObjIndex->last_id_string, next, prev );
                }   
                else
                {
		  CREATE( ed, EXTRA_DESCR_DATA, 1 );
		  ed->keyword		= ed_key;
		  ed->description		= fread_string( fp );
		  LINK( ed, pObjIndex->first_extradesc, pObjIndex->last_extradesc,
			  next, prev );
		  top_ed++;
                }
	    }



Post is unread #2 Mar 13, 2023 5:38 pm   
Go to the top of the page
Go to the bottom of the page

Hokai
Fledgling
GroupMembers
Posts3
JoinedMar 13, 2023

 
Figured it out

Post is unread #3 Mar 18, 2023 9:58 am   
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,923
JoinedJul 26, 2005

 
Glad you got it figured out :)

Pages:<< prev 1 next >>