Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Sogou

Members: 0
Guests: 10
Stats
Files
Topics
Posts
Members
Newest Member
481
3,734
19,366
618
Micheal64X
Today's Birthdays
Vintar (28)
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,643
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,643
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 >>