RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Resource icon

Bittiez Kill Point Tracker [2.3] Revision 2.3

No permission to download
Bittiez Kill Point Tracker.

Update:

Changes:
Added an KPTEventsink.cs ( An eventsink created outside of the core )
Edited KillPointTracker.cs to use the new KPTEventsink.cs file.
Added a BaseCreature.cs edit.

I kept trying to fix this as Bittiez stated he had wrote it for ForkUO.
Now it works for RunUO.
It took me a while to figure out how to make an EventSink out side of the core.
Now that I have it could have unlimited possibilities.
I am working on another tracker that gives you points for resurrecting other players.
Using yet another EventSink with OnResurrectedByPlayer and Resurrected with no core edits.


BaseCreature.cs edit.
Code:
#region Bittiez Kill Point Tracker
KPTEventSink.InvokeOnKilledBy(new OnKilledByEventArgs(this, mob));
 
#endregion
Place it like this.
Code:
public virtual void OnKilledBy( Mobile mob )
{
 
#region Bittiez Kill Point Tracker
KPTEventSink.InvokeOnKilledBy(new OnKilledByEventArgs(this, mob));
 
#endregion
 
#region Mondain's Legacy
if ( GivesMLMinorArtifact )
{
if ( MondainsLegacy.CheckArtifactChance( mob, this ) )
MondainsLegacy.GiveArtifactTo( mob );
}
#endregion
else if ( m_Paragon )
{
if ( Paragon.CheckArtifactChance( mob, this ) )
Paragon.GiveArtifactTo( mob );
}
}
Description Originally posted by Bittiez

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)

UPDATED - 3/14/13
-Fixed Total Points Count
-Removed all entries to basecreature, it no longer needs them!

Updated Version, Everything appears to be working!

In your BaseCreature.cs you need to find your OnDamage() method(Do a search for "void OnDamage(int amount, Mobile from, bool willKill)" and it should bring you to the correct method)

Step 1:

Next extract the attached zip file to your customs folder(Custom(s)/KillPT/Files here..)

Open Settings.cs and edit the settings as necessary.


Step 2:
Now adding items to the Stone

First find line number 362

You should see something along the lines of this:
Code (text):
//100$ items
item_list.Add(@"Bone Couch Deed");
item_list.Add(@"Your item here");
item_list.Add(@"Your item here");
item_list.Add(@"Your item here");
item_list.Add(@"Your item here");
item_list.Add(@"Your item here");
item_list.Add(@"Your item here");
item_list.Add(@"Your item here");
item_list.Add(@"Your item here");
item_list.Add(@"Your item here");
And it continues to //9000$

Basically all this part is is the item name shown in the Gump, so for example the first one(Bone Couch Deed) is item number 1 and listed in the 100$ items, you can edit all of these as necessary.


Now the second part to this is setting up the actual items/prices..

Now find line number 1314 and you should see this:
Code (text):
items[1] = new BoneCouchDeed();
price[1] = 100;
name[1] = "bone couch";
This should be fairly explanatory, you will need to set the number(in this above case it is 1) to the correct slot:
First item in 100$ = 1
Last item in 100$ = 10

First item in 500$ = 61
Last item in 500$ = 70

First item in 1000$ = 101
Last item in 1000$ = 110

First item in 5000$ = 161
Last item in 5000$ = 170

All my thanks to Bittiez for originally coming up with this idea and making extensive edits to upgrade it.

Link to original post.
http://www.runuo.com/community/threads/2-2-kill-tracker-ball.529440/
  • Like
Reactions: Bittiez
Author
Mortis
Downloads
22
Views
548
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Mortis

Top