Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Development
Nov 28, 2018, 10:10 am
By Keirath
First Immortal
Oct 12, 2018, 12:02 pm
By GatewaySysop
Bug in do_climb( )
Jun 5, 2018, 5:31 pm
By joeyfogas
question on overland code
May 31, 2018, 10:03 am
By joeyfogas
KaVir's Protocol Snip
May 15, 2018, 7:57 pm
By joeyfogas
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Bing, DotBot

Members: 0
Guests: 11
Stats
Files
Topics
Posts
Members
Newest Member
481
3,740
19,397
635
JenniRosen
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SWFOTE FUSS » Clan and characters not saved...
Forum Rules | Mark all | Recent Posts

Clan and characters not saved in space.c and ships.c
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Oct 28, 2009, 1:39 pm   Last edited Oct 28, 2009, 1:54 pm by ayuri
Go to the top of the page
Go to the bottom of the page

ayuri
Magician
GroupMembers
Posts239
JoinedJun 13, 2008

I was just digging about in the code today and noticed that these functions don't save clan/char data.
do_orderclanship (ships.c)
do_ordership (ships.c)
do_salvage (space.c)
do_clansalvage (space.c)


Also, since sellship and buyship in-game commands call do_salvage and do_ordership, it would be a safe bet to remove the unused do_sellship and do_buyship code. The same goes with do_clanbuyship.

**Edit: Guess I should say why saving clan/char data is needed - Since we are dealing with a lot of situations where gold is getting used up, I think its best to save the character/clan in case there is a crash.

ayuri
       
Post is unread #2 Oct 29, 2009, 9:07 am
Go to the top of the page
Go to the bottom of the page

Keirath
Magician
GroupMembers
Posts145
JoinedJan 24, 2008

I wouldn't dump sellship and buyship. I know several FotE admin that still use those commands. What I did on my MUD was this:
I took the ship prices and made them a lot higher. Then added sellship and buyship in. Then I set a limit to how many ships a player could own. So instead of salvaging the ship, they could sell it. And then another player could come along and pick it up at a discounted price.

Sellship and buyship still have their functions. But thats just me.
       
Post is unread #3 Oct 29, 2009, 2:36 pm   Last edited Oct 29, 2009, 2:43 pm by ayuri
Go to the top of the page
Go to the bottom of the page

ayuri
Magician
GroupMembers
Posts239
JoinedJun 13, 2008

Fair enough. I was just pointing out that for the most part its dead code that sitting there not being used from a FUSS point of view. Just taking up extra space.

**Edit Keirath, good to see you around again? Whats new? Have to hit you up some time and catch up.

ayuri
       
Pages:<< prev 1 next >>