Go Back   RunUO - Ultima Online Emulation > RunUO > RunUO Post Archive

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 05-28-2004, 10:49 PM   #1 (permalink)
 
Join Date: Jun 2003
Posts: 43
Send a message via ICQ to volnuss
Default 0 Murder Count Stone

Summary:
A stone that you double click and it sets murder counts to Zero .

Description:
Second script i made from scratch . PLEASE give me input . Works for all Runuo Beta's
Have fun with it ~Admin TwiZ GaN

Abmans AOS/PvP - Abandon OsI

Installation:
Drop into scripts/custom . Have fun
Attached Files
File Type: cs MurderStone.cs (757 Bytes, 451 views)
volnuss is offline   Reply With Quote
Old 09-19-2004, 03:29 PM   #2 (permalink)
Forum Novice
 
Join Date: Aug 2004
Age: 19
Posts: 149
Default

Be cool if it could charge you gold.
Bobert is offline   Reply With Quote
Old 09-19-2004, 04:58 PM   #3 (permalink)
Konoko <3 t3h catgirls!
 
Dark_Konoko's Avatar
 
Join Date: Sep 2004
Location: South England
Age: 21
Posts: 116
Send a message via AIM to Dark_Konoko Send a message via MSN to Dark_Konoko Send a message via Yahoo to Dark_Konoko
Default

Quote:
Originally Posted by Bobert
Be cool if it could charge you gold.
Edited it a bit, hope you dont mind volnuss ^_^

It now checks to see if the player has kills, and also demands payment of 1000gp

Code:
using System;
using Server.Network;

namespace Server.Items
{
	public class MurderStone : Item
	{
		[Constructable]
		public MurderStone() : base( 0xED4 )
		{
			Movable = false;
			Hue = 0x489;
			Name = "a Murder stone";
		}

		public MurderStone( Serial serial ) : base( serial )
		{
		}

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 ); // version
		}

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();
		}

		public override void OnDoubleClick( Mobile from )
		{
			Container pack = from.Backpack;
			
			if ( from.Kills == 0 )
			{
				from.SendMessage ( 0x35, "You do not have any kills to remove!" );
			}
			else
			{
		
				if ( pack != null && pack.ConsumeTotal( typeof( Gold ), 1000 ) )
				{
					from.SendMessage( 0x35, "You now have no kills!" );
					from.Kills = 0;
				}
				else
				{
					from.SendMessage( 0x35, "You need at least 1000gp in your backpack to use this." );
				}
				
			}

			}						
		}
	}
Enjoy!
__________________
DarkKonoko
visit my website | runuo irc channel | uogateway

"One of the universal rules of happiness is: always be wary of any helpful item that weighs less than its operating manual."
- Jingo, Terry Pratchett.
Dark_Konoko is offline   Reply With Quote
Old 10-05-2004, 07:14 PM   #4 (permalink)
Forum Novice
 
Join Date: Aug 2004
Age: 19
Posts: 149
Default Nice :}

Thanks A lot \;]
Bobert is offline   Reply With Quote
Old 10-08-2004, 10:14 PM   #5 (permalink)
Newbie
 
Join Date: Apr 2004
Location: Washington
Age: 19
Posts: 68
Default

could some one help me modify it so it charges a certain amount of gold to remove 1 kill
Frostpine is offline   Reply With Quote
Old 10-08-2004, 10:25 PM   #6 (permalink)
baby jesus is crying
 
Join Date: May 2004
Age: 27
Posts: 439
Default

Code:
from.SendMessage( 0x35, "You now have no kills!" );
		from.Kills = 0;
editing these two lines will get you what you are wanting, the first just needs a text adjustment, the second needs an equation to subtract 1 from 'from.Kills". Also to change the amount of gold

Code:
if ( pack != null && pack.ConsumeTotal( typeof( Gold ), 1000 ) )
change this line
__________________
Silver Mist
A more mature Shard for people who hate neon BS and 12 year old admins.
Swear: “Jesus Christ! That guy is fat!”
Prayer: “Jesus Christ! That guy is fat! Please help him find an stationary bike he can fit on. Amen.”
mr_wuss is offline   Reply With Quote
Old 10-08-2004, 10:28 PM   #7 (permalink)
Newbie
 
Join Date: Apr 2004
Location: Washington
Age: 19
Posts: 68
Default

Great, thanks, just seemed to nice to allow players to remove all kills for only 1k gold or whatever this seems as more of a punisment for pking,
Frostpine is offline   Reply With Quote
Old 10-21-2004, 03:35 AM   #8 (permalink)
 
Join Date: Oct 2004
Age: 20
Posts: 4
Default I like the idea

I like your idea a lot but dont you think it would be a lot better with a price to take 1 count away instead of rite to 0 for free
Koritatsu is offline   Reply With Quote
Old 10-21-2004, 04:16 AM   #9 (permalink)
P3'c Orion Aviator
 
Join Date: Sep 2004
Age: 30
Posts: 1,272
Default

Change this line
Code:
from.SendMessage( 0x35, "You now have no kills!" );
		from.Kills = 0;
to this...
Code:
from.SendMessage( 0x35, "You now have no kills!" );
		from.Kills -= 1;
this will subtract one kill for gold.
you can change how much gold it takes per kill like posted above

-jamie

good script tho, good idea
sirens song is offline   Reply With Quote
Old 11-15-2004, 10:29 PM   #10 (permalink)
Forum Novice
 
Join Date: Nov 2002
Posts: 131
Default

or you could always make it into a sellable deed...but that script was already written about 2 years ago, here is the post
billy6guns is offline   Reply With Quote
Old 11-16-2004, 01:46 AM   #11 (permalink)
baby jesus is crying
 
Join Date: May 2004
Age: 27
Posts: 439
Default

ya I didnt see one piece of working code in that entire thread

so no, it might have been written two years ago, but RunUO has done much in two years.
__________________
Silver Mist
A more mature Shard for people who hate neon BS and 12 year old admins.
Swear: “Jesus Christ! That guy is fat!”
Prayer: “Jesus Christ! That guy is fat! Please help him find an stationary bike he can fit on. Amen.”
mr_wuss is offline   Reply With Quote
Old 11-16-2004, 12:55 PM   #12 (permalink)
Forum Novice
 
Join Date: Nov 2002
Posts: 131
Default

you mean this?
Code:
somemobile = the reference to the mobile affected
[code:1]using System;
using Server.Items;

namespace Server.Items
{
public class Killdeed : Item
{
[Constructable]
public Killdeed() : base( 0x14F0 )
{
base.Weight = 1.0;
base.Name = &quot;a kill deed&quot;;
base.Newbied = true;
}

public Killdeed( Serial serial ) : base( serial )
{
}

public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );

writer.Write( (int) 0 ); // version
}

public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );

int version = reader.ReadInt();
}

public override void OnDoubleClick( Mobile from )
{
if ( from.Kills == 0 )
{
from.SendMessage( &quot;Thou hast no need for this&quot; );
}
else
{
from.Kills = 0;
this.Delete();
}

}

}
}
funny, that thread is where i got it
billy6guns is offline   Reply With Quote
Old 11-16-2004, 11:55 PM   #13 (permalink)
 
Join Date: Nov 2004
Age: 24
Posts: 1
Default

Quote:
Originally Posted by mr_wuss
ya I didnt see one piece of working code in that entire thread

so no, it might have been written two years ago, but RunUO has done much in two years.
Just to clairify your 'confused' saying.......



You know the little saying goes "It's the last place you would think to look'
Not 'The last place you look'.. Changing the meaning entirely....
Jennifer_uo is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5