Top Mud Sites Forum Return to
Go Back   Top Mud Sites Forum > Mud Development and Administration > MUD Coding
Click here to Register

Thread Tools
Old 03-24-2003, 05:11 PM   #1
Verboden Faction
Posts: n/a
When anyone dies, and their health drops to a negative, it never recovers. I want them to heal automatically when they die. I tried putting in a restore piece, but that kept healing the whole room. I run rom24b6
  Reply With Quote
Old 03-24-2003, 11:42 PM   #2
Join Date: Feb 2003
Posts: 46
Tezcatlipoca is an unknown quantity at this point
Well, i dont do ROM, but basically what your looking for is wherever the death is handled in the code. Make a char, get em killed, then copy a unique message it gives when you die. Do a grep command on the message until you find where it is. Somewhere in there it will "Extract" the character object from the room you died in, and transplant it in your "resurection room." Right after it does that, just manualy set their hitpoints to 1. Might be something like this to set the hp:
pc->hit = 1;

If you wanted to heal them to full then instead put in:
pc->hit = pc->hitmax;
(or the equvilent for your code). Personaly i wouldnt suggest doing this though, as you open yourself up real wide for players to just spam attack a mob until its dead (costing them many lives in the process, but who cares if theres no reprisals?) Better to just leave them at 1 hp to heal manually up. Then they have to either wait to heal fully, or use expensive/rare healing potions to get themself to full quickly.
Tezcatlipoca is offline   Reply With Quote
Old 03-25-2003, 11:59 PM   #3
Join Date: Apr 2002
Location: Stony Brook/Chestnut Ridge, NY
Posts: 68
Grey is on a distinguished road
Send a message via AIM to Grey Send a message via MSN to Grey
My two cents would be in agreement with the previous post. I would certainly suggest leaving the player's hit points at 1 and allowing them to heal. i use lpc code and i find that the use of bodis is a better idea. there are player bodies and ghost bodies and upon death, a player (and it's data) is put into the ghost body which has different commands.
Grey is offline   Reply With Quote

Thread Tools

Error when Dying - Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm Dying jtrpdx Advertising for Players 9 07-23-2006 03:17 PM
Ruby Error NotL337 MUD Coding 2 07-21-2006 11:14 PM
error when trying to compile UnKnOwN MUD Coding 0 04-07-2006 02:53 PM
an error i got UnKnOwN1205 MUD Coding 1 01-09-2005 03:45 PM
Compile error melker MUD Coding 37 07-22-2002 02:23 PM

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -4. The time now is 06:33 AM.

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Style based on a design by Essilor
Copyright Top Mud 2014