Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
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
Users Online
CommonCrawl, Yandex, Yahoo!, Majestic-12

Members: 0
Guests: 6
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
612
Jacki72H
Today's Birthdays
Evoru (32)
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » ch_ret damage
Forum Rules | Mark all | Recent Posts

ch_ret damage
< Newer Topic :: Older Topic > Minor error

Pages:<< prev 1 next >>
Post is unread #1 May 25, 2005, 12:02 pm   Last edited May 25, 2005, 1:25 pm by Txzeenath
Go to the top of the page
Go to the bottom of the page

Txzeenath
Apprentice
GroupMembers
Posts86
JoinedJul 24, 2004

In ch_ret damage, in fight.c it has a piece of code to stop newbies from dying... well this also affects mobs... not usually something you want mobs to have.. immortality.

In fuction ch_ret damage, in fight.c

   /*
    * Make sure newbies dont die
    */
   if( victim->level == 1 && victim->hit < 1 )
      victim->hit = 1;

should be:

   /*
    * Make sure newbies dont die
    */
   if( !IS_NPC(victim) && victim->level == 1 && victim->hit < 1 )
      victim->hit = 1;


This is only a problem if you have any level one mobs, if you are certain that you won't have any level one mobs than perhaps you might not need this.

----------EDIT------

Forgot to say this :-p

Any mobs over LEVEL_AVATAR will still be immortal and will not drop below 1 hp, if you want to change this the fix is the same as above, you can find the section controlling this a few lines above the code I posted.
       
Post is unread #2 May 25, 2005, 4:47 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

AFKMud already has a check against NPCs and has for as long as I can find. It also has the NPC check against imms as well.

In looking, so does Smaug FUSS, the original 1.4a, and even the original 1.02a.

Are you sure this isn't something you removed at some point only to discover you needed it back?
       
Post is unread #3 May 25, 2005, 7:53 pm   Last edited May 25, 2005, 8:01 pm by Txzeenath
Go to the top of the page
Go to the bottom of the page

Txzeenath
Apprentice
GroupMembers
Posts86
JoinedJul 24, 2004

I never modified the ch_ret damage code, only thing i've changed in it was for a new dodge type skill, which didn't have anything to do with that part. It might have somehow gotten removed by accident in a quick passthrough.


----------EDIT------------

Yup.. mistake on my half :blush:(by the way, clicking the smilies isn't inserting them, i'm using mozilla firefox). I must have accidently removed it when I was either finishing up my bleeding code or Shadow Copy(Illusion) mob code. Which both required changing some IS_NPC stuff around.
       
Post is unread #4 May 25, 2005, 8:09 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Using FF 1.0.4 myself, clicking the smilies works just fine. Does in IE and Opera too. Maybe you disabled javascript? :P
       
Post is unread #5 May 26, 2005, 3:44 am
Go to the top of the page
Go to the bottom of the page

Txzeenath
Apprentice
GroupMembers
Posts86
JoinedJul 24, 2004

Hmm or perhaps it hates me >_< lol, just did a upgrade so maybe it disabled somethin on me.


----------EDIT----------
Nope javascript is enabled... and now all of the sudden they work o.0

:stare:
       
Pages:<< prev 1 next >>