11 Jan, 2008, Xalin wrote in the 21st comment:
Votes: 0
Ah I see…… well really don't know what to tell you about AFK Mud. All I know about it is that it's jam packed with code and it's just a huge mess over all.
11 Jan, 2008, Guest wrote in the 22nd comment:
Votes: 0
A huge mess over all? I suppose any feedback is better than no feedback, but I'd like to know what it means to be a huge mess over all so that whatever the problem is can be addressed and corrected.

There was already at least one attempt to use AFKMud as a base for a DBZ theme but I don't know what eventually became of it.
11 Jan, 2008, Kayle wrote in the 23rd comment:
Votes: 0
It is a huge mess all over, You innovate too much too fast. :P That's why I spend days listening to you bitch about shit not working! :D but they wouldn't be the same conversations if one of us wasn't bitching about something.

{Edit because I can't seem to spell innovate even with Firefox's Spell-checker.}
11 Jan, 2008, Guest wrote in the 24th comment:
Votes: 0
Hey now. The string conversion isn't in the public view yet so that doesn't count :)
11 Jan, 2008, Kayle wrote in the 25th comment:
Votes: 0
Meh. :P
12 Jan, 2008, Tailsthefox wrote in the 26th comment:
Votes: 0
void do_kill( CHAR_DATA * ch, char *argument )
{
char buf[MAX_STRING_LENGTH];
char arg[MAX_INPUT_LENGTH];
CHAR_DATA *victim;
CHAR_DATA *rch;

argument = one_argument( argument, arg );
// one_argument( argument, arg );

if( arg[0] == '\0' )
{
send_to_char( "Kill whom?\n\r", ch );
WAIT_STATE( ch, 1 * PULSE_VIOLENCE / 2 );
return;
}

if( ( victim = get_char_room( ch, arg ) ) == NULL )
{
send_to_char( "They aren't here.\n\r", ch );
WAIT_STATE( ch, 1 * PULSE_VIOLENCE / 2 );
return;
}

if( !IS_NPC( victim ) && !victim->desc )
{
send_to_char( "They are link dead, it wouldn't be right.", ch );
WAIT_STATE( ch, 1 * PULSE_VIOLENCE / 2 );
return;
}

if( IS_NPC( victim ) && victim->morph )
{
send_to_char( "This creature appears strange to you. Look upon it more closely before attempting to kill it.", ch );
WAIT_STATE( ch, 1 * PULSE_VIOLENCE / 2 );
return;
}

if( IS_NPC( victim ) && is_splitformed( victim ) && victim->master && victim->master == ch )
{
send_to_char( "You can't kill your own Split Form.\n\r", ch );
WAIT_STATE( ch, 1 * PULSE_VIOLENCE / 2 );
return;
}

if( IS_NPC( ch ) && is_splitformed( ch ) )
{
send_to_char( "You can't do that.", ch );
WAIT_STATE( ch, 1 * PULSE_VIOLENCE / 2 );
return;
}

if( !IS_NPC( ch ) && IS_NPC( victim ) && is_splitformed( victim ) )
{
pager_printf_color( ch, "Why don't you try attacking the real %s.", victim->short_descr );
WAIT_STATE( ch, 1 * PULSE_VIOLENCE / 2 );
return;
}

if( IS_NPC( victim ) && victim->master != NULL && IS_IMMORTAL( victim->master ) && !IS_IMMORTAL( ch ) )
{
send_to_char( "Cheatz.\n\r", ch );
return;
}

/*
*
else
{
if ( IS_AFFECTED(victim, AFF_CHARM) && victim->master != NULL )
{
send_to_char( "You must MURDER a charmed creature.\n\r", ch );
return;
}
}
*
*/

if( victim == ch )
{
send_to_char( "You hit yourself. Ouch!\n\r", ch );
/* Removed to avoid abuse and "self-inflicted SSJ*/
/* multi_hit( ch, ch, TYPE_UNDEFINED );*/
WAIT_STATE( ch, 1 * PULSE_VIOLENCE / 2 );
return;
}


/* Karn - 05.17..06
if( is_safe( ch, victim, TRUE ) )
{
WAIT_STATE( ch, 1 * PULSE_VIOLENCE / 2 );
return;
}
*/
if( !IS_IMMORTAL( ch ) && !IS_NPC( ch ) && !IS_NPC( victim ) )
{
if( !xIS_SET( ch->act, PLR_QUESTING ) && xIS_SET( victim->act, PLR_QUESTING ) )
{
send_to_char( "You can't attack a player involved in a role playing event.\n\r", ch );
return;
}
if( xIS_SET( ch->act, PLR_QUESTING ) && !xIS_SET( victim->act, PLR_QUESTING ) )
{
send_to_char( "You can't attack a player not involved in a role playing event.\n\r", ch );
return;
}
}

if( xIS_SET( ch->in_room->room_flags, ROOM_ARENA ) )
{
send_to_char( "You can only spar while in an arena.\n\r", ch );
WAIT_STATE( ch, 1 * PULSE_VIOLENCE / 2 );
return;
}

if( xIS_SET( ch->act, PLR_SPAR ) )
{
xREMOVE_BIT( ch->act, PLR_SPAR );
}
if( xIS_SET( victim->act, PLR_SPAR ) )
{
xREMOVE_BIT( victim->act, PLR_SPAR );
}


if( IS_AFFECTED( ch, AFF_CHARM ) && ch->master == victim )
{
act( AT_PLAIN, "$N is your beloved master.", ch, NULL, victim, TO_CHAR );
WAIT_STATE( ch, 1 * PULSE_VIOLENCE / 2 );
return;
}

if( ch->position == POS_RESTING || ch->position == POS_SLEEPING )
{
send_to_char( "How do you propose to do that in your current state?\n\r", ch );
return;
}

if( ch->position == POS_FIGHTING
|| ch->position == POS_EVASIVE
|| ch->position == POS_DEFENSIVE || ch->position == POS_AGGRESSIVE || ch->position == POS_BERSERK )
{
send_to_char( "You do the best you can!\n\r", ch );
return;
}

if( who_fighting( victim ) != NULL )
{
send_to_char( "It would not be honorable to interfere with some one else's battle.\n\r", ch );
return;
}

if( !IS_NPC( ch ) && !IS_NPC( victim ) && strcmp( argument, "now" ) )
{
send_to_char( "You must type 'kill <person> now' if you want to kill a player.\n\r", ch );
return;
}

if( !IS_NPC( ch ) && !IS_NPC( victim ) )
if( !pkill_ok( ch, victim ) )
return;

if( !IS_NPC( victim ) )
// {
// send_to_char("PKing is currently disabled.\n\r",ch);
// return;
// }

{
sprintf( log_buf, "PLAYER COMBAT: %s[%s] vs. %s[%s].",
ch->name, !xIS_SET( ch->act, PLR_SPAR ) ? "DEADLY" : "SPARING",
victim->name, !xIS_SET( victim->act, PLR_SPAR ) ? "DEADLY" : "SPARING" );
log_string_plus( log_buf, LOG_NORMAL, ch->level );
WAIT_STATE( ch, 1 * PULSE_VIOLENCE );
if( !xIS_SET( ch->act, PLR_SPAR ) )
{
sprintf( buf, "Help! I am being attacked by %s!", IS_NPC( ch ) ? ch->short_descr : ch->name );
if( IS_PKILL( victim ) )
{
do_wartalk( victim, buf );
}
else
{
do_yell( victim, buf );
}
ch->focus = 0;
victim->focus = 0;
}
check_illegal_pk( ch, victim );
}

else
WAIT_STATE( ch, 1 * PULSE_VIOLENCE );

if( !IS_NPC( ch ) && ch->race == 6 )
{
find_absorb_data( ch, victim );
ch->pcdata->absorb_pl = 0;
}
if( !IS_NPC( victim ) && victim->race == 6 )
{
find_absorb_data( victim, ch );
victim->pcdata->absorb_pl = 0;
}

if( IS_DEMON( ch ) && IS_DEMON( victim ) && ( ch->rank > 1 || victim->rank > 1 ) )
{
for( rch = ch->in_room->first_person; rch; rch = rch->next_in_room )
{
if( !IS_NPC( rch ) )
continue;
if( rch->master )
{
if( rch->master == ch )
{
ch_printf( ch, "Your minion returns to the void, leaving you to duel alone.\n\r" );
act( AT_DGREY, "$n's minion returns to the void.", ch, NULL, victim, TO_ROOM );
extract_char( rch, TRUE );
if( xIS_SET( ch->affected_by, AFF_TRI_FORM ) )
xREMOVE_BIT( ch->affected_by, AFF_TRI_FORM );
continue;
}
else if( rch->master == victim )
{
ch_printf( victim, "Your minion returns to the void, leaving you to duel alone.\n\r" );
act( AT_DGREY, "$n's minion returns to the void.", victim, NULL, ch, TO_ROOM );
extract_char( rch, TRUE );
if( xIS_SET( victim->affected_by, AFF_TRI_FORM ) )
xREMOVE_BIT( victim->affected_by, AFF_TRI_FORM );
continue;
}
}
}
}

ch->delay = 0;
check_attacker( ch, victim );
multi_hit( ch, victim, TYPE_UNDEFINED );
return;


}


This is the do_kill
12 Jan, 2008, Tailsthefox wrote in the 27th comment:
Votes: 0
Fixed it.
13 Jan, 2008, David Haley wrote in the 28th comment:
Votes: 0
Nice job! It might be nice to post the fix here for posterity's sake, e.g. in case somebody has the same problem.
14 Jan, 2008, Guest wrote in the 29th comment:
Votes: 0
And so those of us following don't die from the curiosity too :)
14 Jan, 2008, Xalin wrote in the 30th comment:
Votes: 0
Yea…. I agree with Samson on that one lol
14 Jan, 2008, Tailsthefox wrote in the 31st comment:
Votes: 0
Sorry I was in a hurry when I posted that. Thank you all very much for your time and for your suggestions. There was an ifcheck that was being read wrong I guess by the server because it worked right on cygwin (home computer) but when I moved on the server it started fucking up. So I just ended up removing the ifcheck.
14 Jan, 2008, kiasyn wrote in the 32nd comment:
Votes: 0
which ifcheck
14 Jan, 2008, Conner wrote in the 33rd comment:
Votes: 0
*Gasp!* Too late! :tongue:
*and another MudBytes lurker has died from unsated curiosity…* :wink:
15 Jan, 2008, Tailsthefox wrote in the 34th comment:
Votes: 0
Conner said:
*Gasp!* Too late! :tongue:
*and another MudBytes lurker has died from unsated curiosity…* :wink:


I thought you said you loved me :(


The ifcheck is unknown I kinda deleted it sorry.
15 Jan, 2008, Kjwah wrote in the 35th comment:
Votes: 0
Tailsthefox said:
The ifcheck is unknown I kinda deleted it sorry.


Hope it wasn't important and that it was in fact a compiler problem instead of user error.. o.O Could be bad in the future if you realize that you needed the if check and cygwin just wasn't catching the error like your server was.

EDIT: On a side note, it's a lot safer to comment code out and see how things go before completely removing code when dealing with a problem such as this. :D
16 Jan, 2008, Conner wrote in the 36th comment:
Votes: 0
Tailsthefox said:
Conner said:
*Gasp!* Too late! :tongue:
*and another MudBytes lurker has died from unsated curiosity…* :wink:


I thought you said you loved me :(

Um, I did? Do I even know you? *puzzled* :redface:
16 Jan, 2008, Tailsthefox wrote in the 37th comment:
Votes: 0
Thanks for the advice,

Conner: Everyone loves me >.> me and sonic goes way back.
16 Jan, 2008, Zeno wrote in the 38th comment:
Votes: 0
Tailsthefox said:
The ifcheck is unknown I kinda deleted it sorry.

Can't you just compare the current code to what you posted here before?
16 Jan, 2008, Tailsthefox wrote in the 39th comment:
Votes: 0
It wasn't in the do_kill function.

edit: I can try to look over the old code to see if I can find it.
17 Jan, 2008, Zeno wrote in the 40th comment:
Votes: 0
What function was it in? one_hit? That's where I assumed it was back before you fixed it.
20.0/41