Sixth Attack How do i make one.

Posted by Robert Powell on Thu 19 Feb 2004 11:44 AM — 3 posts, 17,058 views.

Australia #0
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.
Amended on Thu 19 Feb 2004 11:45 AM by Robert Powell
United Kingdom #1
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.
Australia #2
I found what i was missing the extern in mud.h Thanks.