Login
User Name:

Password:



Register

Forgot your password?
Changes list / Addchange
Author: Khonsu
Submitted by: Khonsu
6Dragons mp3 sound pack
Author: Vladaar
Submitted by: Vladaar
AFKMud 2.2.3
Author: AFKMud Team
Submitted by: Samson
SWFOTEFUSS 1.5
Author: Various
Submitted by: Samson
SWRFUSS 1.4
Author: Various
Submitted by: Samson
Users Online
Bing, AhrefsBot, Sogou

Members: 0
Guests: 20
Stats
Files
Topics
Posts
Members
Newest Member
488
3,788
19,631
595
Khonsu

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

 
Glad you got it figured out :)

Pages:<< prev 1 next >>