Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!

Members: 0
Guests: 9
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
612
Jacki72H
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SWFOTE FUSS » Disarm for mobs:
Forum Rules | Mark all | Recent Posts

Disarm for mobs:
< Newer Topic :: Older Topic > Why not? Its fun!

Pages:<< prev 1 next >>
Post is unread #1 Apr 6, 2009, 4:59 pm   Last edited Apr 6, 2009, 5:00 pm by ayuri
Go to the top of the page
Go to the bottom of the page

ayuri
Magician
GroupMembers
Posts239
JoinedJun 13, 2008

Ok, so I wanted to get disarm working for some mobs. Great for body guards and the likes. Makes it really unfair.
So, for fote in fight.c find the comment "Check for disarm, trip, parry, and dodge."

Below that there should be:
if (dt>= TYPE-HIT)
{
and right below that will be the old function for disarm. Just nuke it and put this in its place:

if( IS_NPC( ch ) && IS_SET( ch->defenses, DFND_DISARM ) && number_percent(  ) < UMIN( 60, 2 *
                        victim->top_level ) )
            {
            //  log_string("trying to disarm";);
                disarm( ch, victim );
            }


I should say it works for me.
Big thanks to Keb for giving me a hand on this.
**EDIT It looks like this could actually be a bug. The orginal code is it set to ch->attacks. Just tossing it out there.
ayuri
       
Pages:<< prev 1 next >>