Login
User Name:

Password:



Register

Forgot your password?
void nanny_get_new_race -- comm.c
Mar 13, 2025 7:08 am
By Elwood
IPv6
Jan 25, 2025 10:45 pm
By Samson
mudstrlcpy and mudstrlcat
Jan 18, 2025 5:23 pm
By Samson
I3 and IMC
Jan 17, 2025 9:35 pm
By Samson
AFKMud 2.5.1
Jan 17, 2025 2:22 pm
By Samson
SWFotEFUSS 1.5.3
Author: Various
Submitted by: Samson
SWRFUSS 1.4.3
Author: Various
Submitted by: Samson
SmaugFUSS 1.9.8
Author: Various
Submitted by: Samson
AFKMud 2.5.2
Author: AFKMud Team
Submitted by: Samson
SmaugFUSS 1.9.7
Author: Various
Submitted by: Samson
Users Online
Anthropic, AhrefsBot, Bing, Amazonbot

Members: 0
Guests: 24
Stats
Files
Topics
Posts
Members
Newest Member
507
3,812
19,722
591
TracySpencer

» 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,992
JoinedJul 26, 2005

 
Glad you got it figured out :)

Pages:<< prev 1 next >>