Login
User Name:

Password:



Register

Forgot your password?
Hi - Clean SmaugFuss map/description issue..
Dec 15, 2024 7:29 pm
By Samson
AFKMud 2.2.4
Dec 10, 2024 4:09 pm
By Samson
I3 and IMC
Dec 8, 2024 6:35 pm
By Remcon
Ubuntu 22.04.5 LTS
Dec 5, 2024 5:10 pm
By Remcon
SmaugFUSS 1.8/1.9
Nov 29, 2024 11:46 am
By Remcon
SWFOTEFUSS 1.5.1
Author: Various
Submitted by: Samson
SWRFUSS 1.4.1
Author: Various
Submitted by: Samson
SmaugFUSS 1.9.5
Author: Various
Submitted by: Samson
AFKMud 2.2.4
Author: AFKMud Team
Submitted by: Samson
LOP 1.5
Author: Remcon
Submitted by: Remcon
Users Online
AhrefsBot, Bing

Members: 0
Guests: 26
Stats
Files
Topics
Posts
Members
Newest Member
494
3,808
19,707
588
Mortrex

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

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

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

GroupAdministrators
Posts1,946
JoinedJul 26, 2005

 
Glad you got it figured out :)

Pages:<< prev 1 next >>