Deaths and pdeaths/pkills

Posted by Rob Harper on Tue 01 Jul 2003 07:07 PM — 8 posts, 25,360 views.

#0
I'v noticed in my version of smaug apperently the only time pdeaths/pkills get added is when you are in the arena how can I go about chaning this, thus far I found this in the code.
/*
* Any character in the arena is ok to kill.
* Added pdeath and pkills here
*/
if ( in_arena( ch ) )
{
if ( !IS_NPC(ch) && !IS_NPC(victim) )
{
ch->pcdata->pkills++;
victim->pcdata->pdeaths++;
}
return;
}

thats just not cool what alterations do I have to make to make pkills/pdeaths, count everywhere that isnt safe.


Thanks
USA #1
Actually, if the code is properly written with checks for pkill attempts, the only place pkill should be possible in the first place is the arena. Mind you, Im not gonna go thru the SMAUG combat system to check it but you might want to before you start mucking with where pkill counters are added.
#2
Ahh...so its sususposed to be like that, I was intent on making it where ever you can..Ie clan halls/a designated dualing area.
#3
Anyone have any ideas to make them count everywhere?
Australia Forum Administrator #4
Have you tried taking out the test:

if ( in_arena( ch ) )

USA #5
Taking out the if check will accomplish either of two things:

a) pkill will count everywhere
b) pkill will never count anywhere

The ultimate result here depends on what safety checks are built into the combat code to prevent "accidental" pkilling outside the arena. The amount of code in need of changing will also depend on those same safety checks in the combat system.
#6
It made them not count anywhere....
#7
It works it works!, thanks guys.