Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Bing

Members: 0
Guests: 4
Stats
Files
Topics
Posts
Members
Newest Member
481
3,734
19,366
618
Micheal64X
Today's Birthdays
Vintar (28)
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » Possible BUG in do_mount
Forum Rules | Mark all | Recent Posts

Possible BUG in do_mount
< Newer Topic :: Older Topic > Hitting oneself....

Pages:<< prev 1 next >>
Post is unread #1 Jan 20, 2004, 7:45 pm
Go to the top of the page
Go to the bottom of the page

Xorith
The Null Value
GroupAFKMud Team
Posts254
JoinedFeb 23, 2003

In the following block..

from do_mount, skills.c
    check = mount_ego_check( ch, victim );    if( check > 5 )    {        act( AT_SKILL, "$N snarls and attacks!", ch, NULL, victim, TO_CHAR );        act( AT_SKILL, "As $n tries to mount $N, $N attacks $n!", ch, NULL, victim, TO_NOTVICT );        cmdf( ch, "kill %s", GET_NAME(ch) );        return;    }


note the cmdf line. shouldn't that be cmdf( victim, "kill %s", GET_NAME(ch) ); ?
Otherwise the player hits him/herself, rather than the NPC engaging in combat.

-- X
       
Post is unread #2 Jan 21, 2004, 10:20 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,643
JoinedJan 1, 2002

Yes, actually that should be a victim instead of a ch. Good catch
       
Post is unread #3 Jan 22, 2004, 9:40 am
Go to the top of the page
Go to the bottom of the page

Cam

GroupAFKMud Team
Posts61
JoinedJan 1, 2002

QUOTE (Xorith @ Jan 20 2004, 09:45 PM) note the cmdf line. shouldn't that be cmdf( victim, "kill %s", GET_NAME(ch) ); ?
Otherwise the player hits him/herself, rather than the NPC engaging in combat. [/quote]
Well.... DUH!!! Man... you keep plowing up the things we do to cheat the mortals! Doh! What next? You gonna tell them how we drain their bank accounts after they log off and how we steal all the rare items when we're bored!? Ack! See what you made me do!? *sighs*

So.... hi Xorith! Good to see you!

Disclaimer: We the previous statement is meant as a joke and should not be taken seriously by those of you who think immortals try to cheat you. Some may, but speaking for our staff I can say that we don't
       
Pages:<< prev 1 next >>