Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Entire forum
➜ ROM
➜ Running the server
➜ Skill Damage
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Akira182
(7 posts) Bio
|
Date
| Sun 19 Sep 2004 03:10 AM (UTC) |
Message
| 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 | Top |
|
Posted by
| Marowi
(65 posts) Bio
|
Date
| Reply #1 on Sun 19 Sep 2004 08:26 AM (UTC) Amended on Sun 19 Sep 2004 08:27 AM (UTC) by Marowi
|
Message
| 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. | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
11,561 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top