Dealing with the dead
< Newer Topic
:: Older Topic >
Pages:<< prev 1 next >>
#1 Oct 19, 2011 12:13 pm
Last edited Oct 19, 2011 12:17 pm by 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.
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.
#2 Oct 19, 2011 12:57 pm
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.
#3 Oct 19, 2011 5:21 pm
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.
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.
#4 Oct 19, 2011 8:47 pm
Last edited Oct 19, 2011 8:55 pm by 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
**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
#5 Oct 19, 2011 9:51 pm
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...
Changing the code comes later, I d have some ideas actually...
Pages:<< prev 1 next >>