Pages:<< prev 1 next >>
#1 Jul 23, 2011 12:40 pm
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
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
#2 Jul 23, 2011 1:55 pm
Black Hand
GroupAdministrators
Posts3,697
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.
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.
#3 Jul 24, 2011 3:43 am
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,
Many Thanks,
#4 Jul 24, 2011 9:04 pm
Black Hand
GroupAdministrators
Posts3,697
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.
#5 Jul 30, 2011 5:42 pm
Black Hand
GroupAdministrators
Posts3,697
JoinedJan 1, 2002
The collection is uploaded now. Have fun
#6 Jul 31, 2011 11:39 am
Off the Edge of the Map
GroupAdministrators
Posts1,200
JoinedMar 21, 2006
Great, now I'm never catching you in downloads.
#7 Jul 31, 2011 12:15 pm
Last edited Jul 31, 2011 12:26 pm by Aurin
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_ functions to stop that bug.
Add the following in each of the do_ functions, before any other check:
You can add a send_to_char in there for information to the char if you desire. I didn't care. :P
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_
Add the following in each of the do_
/* * 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
#8 Jul 31, 2011 2:27 pm
Black Hand
GroupAdministrators
Posts3,697
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?
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?
#9 Jul 31, 2011 3:08 pm
Last edited Jul 31, 2011 3:10 pm by Aurin
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 ." ...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_ at the top of the function before the checks start, to work properly.
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_
#10 Jul 31, 2011 4:11 pm
Last edited Jul 31, 2011 4:11 pm by Samson
Black Hand
GroupAdministrators
Posts3,697
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);
do_stand(ch, (char *)"\0");
Usually when you send a command an empty argument, you'd do this:
do_stand(ch, NULL);
#11 Jul 31, 2011 6:31 pm
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*
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 >>