Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, 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.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Sixth Attack How do i make one.

Sixth Attack How do i make one.

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Robert Powell   Australia  (367 posts)  Bio
Date Thu 19 Feb 2004 11:44 AM (UTC)

Amended on Thu 19 Feb 2004 11:45 AM (UTC) by Robert Powell

Message
I was thinking i would like to give my remorted classes and extra atack, so i went for a walk throught the code to see what information i could glean about how this works and came up with the following. If im am doing anything wrong here could someone let me know.

1. SSet the skill pointing to spell_null
2. Declare the gsn_skill and then do the assign gsn thing as well in db.c
3. Duplicate this piece of code in the multi_hit function in fight.c making it 6th attact and upping the bonus a little


chance = IS_NPC(ch) ? ch->level
	   : (int) ((LEARNED(ch, gsn_fifth_attack)+(dual_bonus*3))/4);
    if ( number_percent( ) < chance )
    {
	learn_from_success( ch, gsn_fifth_attack );
	retcode = one_hit( ch, victim, dt );
	if ( retcode != rNONE || who_fighting( ch ) != victim )
	    return retcode;
    }
    else
	learn_from_failure( ch, gsn_fifth_attack ); 

Is there anything more i would need to do? Thanks for you help in advance.

Just a guy having a bit of fun. Nothing more, nothing less, I do not need I WIN to feel validated.
Top

Posted by Rash   United Kingdom  (56 posts)  Bio
Date Reply #1 on Thu 19 Feb 2004 04:49 PM (UTC)
Message
try 'greping' fifth_attack to see where else it pops up.
and copy it for 6th, just remember to add the skill in the .class file.

I think thats all you need....???

I cant remember how i added 6th n 7th in my mud... ill look thru and let u know if u dont have it solved by then.
Top

Posted by Robert Powell   Australia  (367 posts)  Bio
Date Reply #2 on Fri 20 Feb 2004 12:49 AM (UTC)
Message
I found what i was missing the extern in mud.h Thanks.

Just a guy having a bit of fun. Nothing more, nothing less, I do not need I WIN to feel validated.
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.


13,380 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.