Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
 Couple bugs
Today, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Google, DotBot, Yandex, Yahoo!, Sogou

Members: 0
Guests: 11
Stats
Files
Topics
Posts
Members
Newest Member
477
3,705
19,232
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Smaug Snippets » Furniture Snippet?
Forum Rules | Mark all | Recent Posts

Furniture Snippet?
< Newer Topic :: Older Topic > Furniture Snippet Untraceable?

Pages:<< prev 1 next >>
Post is unread #1 Jul 23, 2011, 10:40 am
Go to the top of the page
Go to the bottom of the page

Findecano
Fledgling
GroupMembers
Posts9
JoinedOct 22, 2007

Hi Guys,
I was wondering if anyone had the furniture snippet? It appears to have disappeared from all snippet sites.
If someone has it, could they possibly upload it to this site?

Thanks Guys,

- Findecano
       
Post is unread #2 Jul 23, 2011, 11:55 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

I have what should be the entire Rafermand collection tucked away in an archive folder. Xerves probably wouldn't mind if we added a category section and put that stuff in there. Yes, the furniture code is in there.

It appears as though the Rafermand domain has been allowed to expire and later be deleted, and as far as I'm aware that's the only place his stuff was ever offered.
       
Post is unread #3 Jul 24, 2011, 1:43 am
Go to the top of the page
Go to the bottom of the page

Findecano
Fledgling
GroupMembers
Posts9
JoinedOct 22, 2007

Cool, would you be willing to make a section and upload them to it? I cant remember what other snippets they had.

Many Thanks,
       
Post is unread #4 Jul 24, 2011, 7:04 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Sure, give it some time though. Also, if Xerves shows up some day asking for it to get taken down, it will be.
       
Post is unread #5 Jul 30, 2011, 3:42 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

The collection is uploaded now. Have fun :)
       
Post is unread #6 Jul 31, 2011, 9:39 am
Go to the top of the page
Go to the bottom of the page

Kayle
Off the Edge of the Map
GroupAdministrators
Posts1,195
JoinedMar 21, 2006

Great, now I'm never catching you in downloads.
       
Post is unread #7 Jul 31, 2011, 10:15 am   Last edited Jul 31, 2011, 10:26 am by Aurin
Go to the top of the page
Go to the bottom of the page

Aurin
Magician
GroupMembers
Posts189
JoinedSep 5, 2010

So THAT'S what the furniture snippet everyone was talking about is. *LOL* Wish I knew about that almost a year ago, wouldn'ta had to work through it myself and do the fixes on my own.

Still, it doesn't allow for players that "bump" a wall while standing. That should also drop you off the furniture. Nor do I see it dropping you off the furniture if you leave the room, which means the pfile will still think the player is standing on that furniture when they go into another room, so will not be able to perform any actions other than move until they get off the furniture. Additions would need to be mead in each of the do_<cardinal direction> functions to stop that bug.

Add the following in each of the do_<direction> functions, before any other check:
/* 
 * Fix to get people off of objects if they're standing on one, while trying to move. - Aurin
 */

  if(ch->on != NULL)
	do_stand(ch, (char *)"\0");

You can add a send_to_char in there for information to the char if you desire. I didn't care. :P
       
Post is unread #8 Jul 31, 2011, 12:27 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Yep. It's old, but so far as I know it was also the latest one available at the time I downloaded this stuff going on 8 years ago now and never got updated past that.

People should also be aware that the collection will not be aware of all the stuff with const correctness or even with the \r\n fix for newlines.

As for that fix, shouldn't you be sending that as do_stand( ch, NULL ) instead?
       
Post is unread #9 Jul 31, 2011, 1:08 pm   Last edited Jul 31, 2011, 1:10 pm by Aurin
Go to the top of the page
Go to the bottom of the page

Aurin
Magician
GroupMembers
Posts189
JoinedSep 5, 2010

If I'm a noob, why would I stand again while on furniture? It's assumed that you do when you move. So, if you add the fix to do_stand, it wouldn't do anything, as you're already taking the action to stand from the furniture. You'd still have the bug when you moved in one of the directions, preventing any combat or any other action that is above (numerically) POS_STANDING. What this fix does is forces the player to do_stand BEFORE they move in a direction, indicating that they have, indeed, moved off the furniture. I used a silent check, but you can add a comment to the player saying "You have hopped off of &p and headed <direction>." ...Or some such, within that ifcheck. When you move in a direction, it doesn't already assume you are off of furniture, it simply moves you, as that is how it was coded (for smaugfuss, at any rate).

If you want to test this, simply stand or sit on an object, then move in a direction (even to "bump" a wall). You will remain on that object you last stood on. What I posted fixes that, but it must be added to do_<direction> at the top of the function before the checks start, to work properly.
       
Post is unread #10 Jul 31, 2011, 2:11 pm   Last edited Jul 31, 2011, 2:11 pm by Samson
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Yes, but you have the change listed as this:

do_stand(ch, (char *)"\0";);

Usually when you send a command an empty argument, you'd do this:

do_stand(ch, NULL);
       
Post is unread #11 Jul 31, 2011, 4:31 pm
Go to the top of the page
Go to the bottom of the page

Aurin
Magician
GroupMembers
Posts189
JoinedSep 5, 2010

do_stand(ch, NULL); would work too, I was simply using an example that i found for do_stand already within the code, to do what I want.

Sorry, haven't slept in a couple days and thought you said that I was to throw the fix into do_stand function for some reason *LOL*
       
Pages:<< prev 1 next >>