Hlstats 1.20 Support Trigger Type

superelfsuperelf Join Date: 2003-05-05 Member: 16077Members
<div class="IPBDescription">I edited</div> sorry, I can't speak english well.


first, open hlstats.pl

search this line

$s_output =~ s/[\r\n\0]//g; # remove naughty characters
$s_output =~ s/\[No.C-D\]//g; # remove [No C-D] tag
$s_output =~ s/\[OLD.C-D\]//g; # remove [OLD C-D] tag
$s_output =~ s/\[NOCL\]//g; # remove [NOCL] tag
$s_output =~ s/\([12]\)//g; # strip (1) and (2) from player names

and add next line

$s_output =~ s/.\(type.\"//g; # remove (type "
$s_output =~ s/\"\)//g; # remove (type "


next, search this line


elsif (like($ev_verb, "triggered"))
{
my $playerinfo = &getPlayerInfo($ev_player);

$ev_type = 11;

if ($playerinfo)
{
$ev_status = &doEvent_PlayerAction(
$playerinfo->{"userid"},
$ev_obj_a
);
}
}


edit that

$playerinfo->{"userid"},
$ev_obj_a.$ev_properties
);
}
}


ok, save this file

now, action code paste of type

etc) gorge build offecivechamber
-> structure_builtoffecechamber


my rank site : <a href='http://namomo.nownuri.net/hlstats/hlstats.php' target='_blank'>http://namomo.nownuri.net/hlstats/hlstats.php</a>
Sign In or Register to comment.