Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
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
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Yandex, Yahoo!, Google, Bing

Members: 0
Guests: 13
Stats
Files
Topics
Posts
Members
Newest Member
477
3,705
19,232
608
LAntorcha
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 >>