Bittiez
Sorceror
This item will track player kills(monsters and animals, not pvp kills), you can use the points for rewards if you'd like(I use the custom vendor package available in custom script release to make a vendor stone that users can purchase items with kill points)
It will display Points and Total Kills(Both are the same, except Points get taken away when purchasing things, Total Kills stays the same)
Check out Mortis's version, it has many new and great additions to this script, see it here. - updated version here.
Mortis + Bittiez Version here. - This version has a vast amount of improvements, and is worth checking out! (This post has most of the details of the improvements)
First you need to edit Mobiles/BaseCreature
Find the OnDamage method and add the following somewhere in there:
Code to count kills made by player and pets:
Code to only track player kills:
The custom vendor I use with this for players to spend points:
http://www.runuo.com/community/threads/runu-o-2-0-rc1-rc2-the-complete-customizable-vendor.91051/
Put killpoints.cs somewhere within your Scripts folder(Probably in your customs folder)
[add KillPointTracker to add the item
Every time you or your pet kills a monster/animal you get one point
If you have multiple balls in your pack, this only adds a point to the first one it finds
Enjoy
It will display Points and Total Kills(Both are the same, except Points get taken away when purchasing things, Total Kills stays the same)
Mortis + Bittiez Version here. - This version has a vast amount of improvements, and is worth checking out! (This post has most of the details of the improvements)
First you need to edit Mobiles/BaseCreature
Find the OnDamage method and add the following somewhere in there:
Code to count kills made by player and pets:
Code:
#region Tad's Kill Points
if (willKill && from is PlayerMobile || willKill && from is BaseCreature)
{
if (from is BaseCreature)
{
BaseCreature pet = from as BaseCreature;
if (pet.Controlled)
{
Mobile master1 = pet.ControlMaster as Mobile;
foreach (Item i in master1.Backpack.Items)
{
if (i is KillPointTracker)
{
KillPointTracker kpt = i as KillPointTracker;
kpt.Points++;
kpt.TotalPt++;
break;
}
}
}
}
else
{
foreach (Item i in from.Backpack.Items)
{
if (i is KillPointTracker)
{
KillPointTracker kpt = i as KillPointTracker;
kpt.Points++;
kpt.TotalPt++;
break;
}
}
}
}
#endregion
Code to only track player kills:
Code:
#region Tad's Kill Points
if (willKill && from is PlayerMobile)
{
foreach (Item i in from.Backpack.Items)
{
if (i is KillPointTracker)
{
KillPointTracker kpt = i as KillPointTracker;
kpt.Points++;
kpt.TotalPt++;
break;
}
}
}
#endregion
The custom vendor I use with this for players to spend points:
http://www.runuo.com/community/threads/runu-o-2-0-rc1-rc2-the-complete-customizable-vendor.91051/
Put killpoints.cs somewhere within your Scripts folder(Probably in your customs folder)
[add KillPointTracker to add the item
Every time you or your pet kills a monster/animal you get one point
If you have multiple balls in your pack, this only adds a point to the first one it finds
Enjoy