Skill Damage

Posted by Akira182 on Sun 19 Sep 2004 03:10 AM — 3 posts, 15,542 views.

#0
You know where it says Your _ injures the dragon. Where do you find this to add a new skill too? I added a new skill but when the skill is preformed it does

Your injures the dragon.

Can anyone help me on this please?

Thanks,
Akira
#1
In fight.c under 'void dam_message'

Quote:
sprintf( buf1, "$n's %s %s $N%c", attack, vp, punct ); sprintf( buf2, "Your %s %s $N%c", attack, vp, punct ); sprintf( buf3, "$n's %s %s you%c", attack, vp, punct );

It's then sent to the respective people using 'act'.

'attack' is gotten by 'attack = attack_table[#];', and my attack table (going from a modified SWR) shows:
Quote:
char *  const   attack_table    [14] =
{
    "hit",
    "slice",  "stab",  "slash", "whip", "claw",
    "blast",  "pound", "crush", "shot", "bite",
    "pierce", "blast", "stream of fire"
};

Change the number in the square brackets to one more than it currently is (in this case, '15') and changing the definition in mud.h (extern char * const attack_table [14];) to one more than it currently is (again, '15').

Then specify the 'TYPE_HIT' of the skill to the new number and it should work.

Please note: I've never actually done this myself, but from what I can see, this should work...

[Edit]
Arg, I didn't see that it was ROM. See if any of that aligns with what you have anyway.
Amended on Sun 19 Sep 2004 08:27 AM by Marowi
#2
Thanks!!


Luv,
Akira