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!

Bounty System 1.3

earth1352

Wanderer
Bounty System Updated for RunUO 1.0.0

Hello all,

I was trying to get this dang system to work and read that it was not supported under 1.0.0. Well of course I wanted it anyway and since a few others were asking for it I have taken the liberty of updating the scripts to be compatible with the latest version of RunUO. I am not the author but I like the script and since he is apparently no longer around I decided to update it. So here it is for RunUO 1.0.0. Enjoy.

ftp://68.184.113.113/Bounty.zip
 

Quantos

Lord
earth1352 said:
Hello all,

I was trying to get this dang system to work and read that it was not supported under 1.0.0. Well of course I wanted it anyway and since a few others were asking for it I have taken the liberty of updating the scripts to be compatible with the latest version of RunUO. I am not the author but I like the script and since he is apparently no longer around I decided to update it. So here it is for RunUO 1.0.0. Enjoy.

ftp://68.184.113.113/Bounty.zip

You may wish to actually repost this, in the correct forum, of course giving proper credit to the original author.
 

Admin God

Wanderer
I noticed that the link for the download that earth1352 posted was a dead link and that he hadn't posted it on its own forum yet so I went ahead and downloaded the old Bounty system and updated it into the newest release of RunUO and i'll post that on a script submission.

Posted here: Bounty System Updated For RunUO 1.0
 

LNM_TNB

Wanderer
This message is to dancrazy-

Try making this:

Code:
public override void Deserialize( GenericReader reader )
		{
			int version = reader.ReadInt();
//bounty system
			switch( version )
			{
				case 1:
				{
					m_Player = reader.ReadBool();
					m_CreationTime = reader.ReadDateTime();
					if( m_Player )
					{
						m_Owner = reader.ReadMobile();
						m_Killer = reader.ReadMobile();
					}

					goto case 0;
				}
				case 0:
				{
					if( version == 0 )
					{
						m_Owner = null;
						m_Killer = null;
						m_Player = false;
						m_CreationTime = DateTime.Now - BountyBoardEntry.DefaultDecayRate;
					}

					break;
				}
			}
//end bounty system

Look like this:

Code:
public override void Deserialize( GenericReader reader )
		{
			int version = reader.ReadInt();
//bounty system
			switch( version )
			{
				case 2:
				{
					m_Player = reader.ReadBool();
					m_CreationTime = reader.ReadDateTime();
					if( m_Player )
					{
						m_Owner = reader.ReadMobile();
						m_Killer = reader.ReadMobile();
					}

					goto case 1;
				}
				case 1:
				{
					if( version == 0 )
					{
						m_Owner = null;
						m_Killer = null;
						m_Player = false;
						m_CreationTime = DateTime.Now - BountyBoardEntry.DefaultDecayRate;
			                }
                                           case 0:
                                                                {
					break;
				}
			}
//end bounty system

Or maybe this part belongs under serialize instead?

Code:
                                                          if( version == 0 )
					     {
						m_Owner = null;
						m_Killer = null;
						m_Player = false;
						m_CreationTime = DateTime.Now - BountyBoardEntry.DefaultDecayRate;

If so then leave your serialize at 1 and change deserialize to look like this:

Code:
        public override void Deserialize( GenericReader reader )
		{
			int version = reader.ReadInt();
//bounty system
			switch( version )
			{
				case 1:
				{
					m_Player = reader.ReadBool();
					m_CreationTime = reader.ReadDateTime();
					if( m_Player )
					{
						m_Owner = reader.ReadMobile();
						m_Killer = reader.ReadMobile();
					}
					goto case 0;
				     }
			              case 0:
                                                {
					break;
				}
			}
//end bounty system

If that "if" part belongs there, then change this:

Code:
base.Serialize( writer );
//bounty system
			writer.Write( (int) 1 ); // version

To look like this:

Code:
base.Serialize( writer );
//bounty system
			writer.Write( (int) 2 ); // version

I may be wrong but see if that works. If you've figured it out already, good job :)

Phantom said:
This system isn't supported, the "author" isn't even around.

Please don't ask support for it, its in the archive forum for a reason.

If anything in the archive forum isnt meant to be replied to then why doesnt anyone just automatically lock anything that goes there so that nobody can reply? I suppose that even if they DID lock the posts, you'd find several different threads looking for support on these "archive" scripts anyway, maybe it's just easier to help if you're able, pass on by if you're not?
 
Top