Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Couple bugs
Dec 12, 2017, 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, Yandex

Members: 0
Guests: 6
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 » General Discussions » Dealing with the dead
Forum Rules | Mark all | Recent Posts

Dealing with the dead
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Oct 19, 2011, 10:13 am   Last edited Oct 19, 2011, 10:17 am by drmike
Go to the top of the page
Go to the bottom of the page

drmike
Fledgling
GroupMembers
Posts16
JoinedOct 9, 2011

Greets:

I'm sure this is an easy set of questions but I can't figure them out.

How do you raise a dead character and restore to them their inventory? I thought it was the restore command but the character is naked and with no equipment or inventory. Also when I examine the character, they show to me as a corpse and their inventory is shown to be within a container as their corpse.

Also how do you move a character? Not a clue on that one. I found a smaug faq here:

http://www.gammon.com.au/scripts/showfaq.php?faqid=64&productid=6

Which mentions movement right as the top but I've skimmed it twice now without seeing any hint of the answer.

thanks

edit: I figured out the second question. The command is tran, short for transport.
       
Post is unread #2 Oct 19, 2011, 10:57 am
Go to the top of the page
Go to the bottom of the page

Aurin
Magician
GroupMembers
Posts189
JoinedSep 5, 2010

Unless you're going to change the code so that the player's inventory stays with the player upon death, all you can do is simply get their corpse and drop it off where the player is (or get the items, and give it all to the player). And a dead character auto-raises in a new 'body' after death, far as I'm aware, unless you've changed this process.
       
Post is unread #3 Oct 19, 2011, 3:21 pm
Go to the top of the page
Go to the bottom of the page

drmike
Fledgling
GroupMembers
Posts16
JoinedOct 9, 2011

Thanks for the response.

Is this with stock afkmud? I know when the character died, he went to that vnum 11407 "Recall and Death Room - Primary Continent" room in the void and got stuck there. I let him sit for a bit and nothing happened. Another character made it down to skeleton with no auto raise.

As an aside, if I have to change that room number, I see that it's set in /src/mudcfg.h. I;m assuming that I have to recompile afterwards since it's a source file. Right?

thanks again.
       
Post is unread #4 Oct 19, 2011, 6:47 pm   Last edited Oct 19, 2011, 6:55 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'm not to sure about what you want to do, but what SWFOTEFUSS does, is when writing their pfile out to the backup directory, it would copy their current pfile exactly. I think the function your going to want to look for is something along the lines of save_char_obj if you want to go about changing your code.


**EDIT I should note that the above is assuming that death is perm, and the player died unjustly.


And yes, if you change that room number in the headerfile you'll need to recompile and hotboot in order for it to take effect.

Hope this helps,
ayuri
       
Post is unread #5 Oct 19, 2011, 7:51 pm
Go to the top of the page
Go to the bottom of the page

drmike
Fledgling
GroupMembers
Posts16
JoinedOct 9, 2011

I'm not trying to change the code actually. I'm just trying to raise the character. I thought it was with the restore command but when I examine the character, the game still says he's a corpse but with full hitpoint, mana and the like.

Changing the code comes later, I d have some ideas actually...
       
Pages:<< prev 1 next >>