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

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 06-09-2004, 05:42 PM   #1 (permalink)
 
Join Date: Feb 2004
Posts: 61
Default A death shroud - litterally :P

Summary:
You double click it and you enter the land of the dead for 60 seconds. When you wear it you get the name mod "A ghost of the night". i did use sections from the hooded shroud script(made by Biscuit). however i added and came up with this new concept. Hope you enjoy it. comes with a female and male version to make sure there are no sex changes. Hope you enjoy it:P

Description:


Installation:
shove it in ur custom scripts folder
Attached Files
File Type: cs DeathShroudFemale.cs (3.6 KB, 382 views)
File Type: cs DeathShroudMale.cs (3.6 KB, 530 views)
NoobAttack is offline   Reply With Quote
Old 06-09-2004, 08:11 PM   #2 (permalink)
 
Join Date: May 2004
Age: 33
Posts: 39
Thumbs up

Quote:
Originally Posted by NoobAttack
Summary:
You double click it and you enter the land of the dead for 60 seconds. When you wear it you get the name mod "A ghost of the night". i did use sections from the hooded shroud script(made by Biscuit). however i added and came up with this new concept. Hope you enjoy it. comes with a female and male version to make sure there are no sex changes. Hope you enjoy it:P

Description:


Installation:
shove it in ur custom scripts folder

Nice job thanks
Zorce is offline   Reply With Quote
Old 06-09-2004, 11:21 PM   #3 (permalink)
 
Join Date: May 2004
Age: 33
Posts: 39
Default

Also a question since im alone testing my shard =) Are you seen in this state by the living or is it the same properties as the dead (i.e. you can be seen if your in war mode) ?? Let me know. Again awsome job.
Zorce is offline   Reply With Quote
Old 06-10-2004, 12:57 AM   #4 (permalink)
 
Join Date: Jun 2004
Location: California
Age: 18
Posts: 84
Send a message via AIM to Gyran Send a message via MSN to Gyran
Default

yeah thanks for making a script i asked for help with and posting it on the forums with all credit towards you not even mentioning my name. way to bring a friend down =/ i started the script and asked for some help, so you take it and post it on here? thanks.
Gyran is offline   Reply With Quote
Old 06-10-2004, 01:10 AM   #5 (permalink)
Forum Novice
 
Join Date: Aug 2003
Age: 23
Posts: 768
Default

Quote:
Originally Posted by NoobAttack
Summary:
i did use sections from the hooded shroud script(made by Biscuit)
Funny, I don't recall Biscuit being the original coder of the hooded shroud...
FLuXx() is offline   Reply With Quote
Old 06-10-2004, 01:19 AM   #6 (permalink)
Tru
Forum Expert
 
Tru's Avatar
 
Join Date: Jan 2003
Location: California
Age: 39
Posts: 3,260
Default

Quote:
Originally Posted by FLuXx()
Funny, I don't recall Biscuit being the original coder of the hooded shroud...
He didn't *flexes*
Tru is offline   Reply With Quote
Old 06-10-2004, 08:26 AM   #7 (permalink)
Forum Novice
 
Join Date: Aug 2003
Age: 23
Posts: 768
Default

Quote:
Originally Posted by Tru
He didn't *flexes*
Credit should go you us, but there was one other who helped...
FLuXx() is offline   Reply With Quote
Old 06-10-2004, 09:48 AM   #8 (permalink)
 
hudel's Avatar
 
Join Date: Oct 2003
Location: Germany
Age: 38
Posts: 508
Send a message via ICQ to hudel
Default

nice idea. Thanks for sharing it.
hudel is offline   Reply With Quote
Old 06-10-2004, 11:04 AM   #9 (permalink)
Tru
Forum Expert
 
Tru's Avatar
 
Join Date: Jan 2003
Location: California
Age: 39
Posts: 3,260
Default

Quote:
Originally Posted by FLuXx()
Credit should go to us, but there was one other who helped...
*nods*
Tru is offline   Reply With Quote
Old 06-10-2004, 01:10 PM   #10 (permalink)
 
Join Date: Feb 2004
Posts: 61
Default

sorry but the script i used said "Created by biscuit" dont wanner take away from the original scripter of it but he was the author that i knew
NoobAttack is offline   Reply With Quote
Old 06-10-2004, 01:12 PM   #11 (permalink)
 
Join Date: Feb 2004
Posts: 61
Default

Quote:
Originally Posted by Gyran
yeah thanks for making a script i asked for help with and posting it on the forums with all credit towards you not even mentioning my name. way to bring a friend down =/ i started the script and asked for some help, so you take it and post it on here? thanks.
okay i admit you asked me for help. but i made all the basis of the script myself and had to work hard to put a timer in.
NoobAttack is offline   Reply With Quote
Old 06-10-2004, 08:42 PM   #12 (permalink)
 
Join Date: Jun 2004
Location: California
Age: 18
Posts: 84
Send a message via AIM to Gyran Send a message via MSN to Gyran
Default

k.. np, i did have the idea and i did work all day on mine =P but you shoulda at least put my name in..
Gyran is offline   Reply With Quote
Old 06-11-2004, 02:56 AM   #13 (permalink)
Forum Expert
 
Join Date: Jun 2003
Location: around
Posts: 1,376
Send a message via ICQ to bean56 Send a message via AIM to bean56
Default

Quote:
Originally Posted by NoobAttack
had to work hard to put a timer in.
Is it hard work getting help from the script support forum? Also why do you guys beat around the bush so much, just say who the credit should go to if it is that important.
bean56 is offline   Reply With Quote
Old 06-11-2004, 08:29 AM   #14 (permalink)
 
Join Date: Feb 2004
Posts: 61
Default

bean it took me like a day to get it working. Just because you may be better at scripting doesnt mean you can take credit away from me.
NoobAttack is offline   Reply With Quote
Old 06-11-2004, 09:49 PM   #15 (permalink)
Forum Expert
 
Join Date: Jun 2003
Location: around
Posts: 1,376
Send a message via ICQ to bean56 Send a message via AIM to bean56
Default

Quote:
Originally Posted by NoobAttack
bean it took me like a day to get it working. Just because you may be better at scripting doesnt mean you can take credit away from me.
I couldn't care less about credit. You made it and it works. Sounds good to me. I don't understand the point of this script, but oh well.
bean56 is offline   Reply With Quote
Old 06-12-2004, 08:32 AM   #16 (permalink)
 
Join Date: Feb 2004
Posts: 61
Default

its just somthing for players. alot of things in uo have no point but they are just fun to have on the shard and a good gift for players.
NoobAttack is offline   Reply With Quote
Old 07-14-2004, 10:42 AM   #17 (permalink)
 
Join Date: Feb 2004
Posts: 61
Default

if anyone has ideas for new scripts i could make pm me. dont make em 2 advance please :P
NoobAttack is offline   Reply With Quote
Old 01-04-2005, 08:36 AM   #18 (permalink)
I am God
 
Join Date: Feb 2004
Age: 22
Posts: 119
Send a message via AIM to biscuit Send a message via MSN to biscuit
Default

i do not take credit i did not put my name in that script
__________________
Regards
Biscuit

A drunken man's words are a sober man's thoughts
biscuit is offline   Reply With Quote
Old 01-04-2005, 09:24 AM   #19 (permalink)
Forum Expert
 
Join Date: Oct 2002
Location: Germany (american though)
Age: 33
Posts: 957
Default

try this:

(i labeled the file Shroud_of_the_Dead.cs)
Code:
using System;
using Server;
using Server.Items;

namespace Server.Items
{
	[FlipableAttribute( 0x2683, 0x2684 )]
	public class Shroud_of_the_Dead : BaseOuterTorso	
	{
		private Mobile mob;
		private Timer MyTimer;
		private int m_Gender;
		
		[Constructable]
		public Shroud_of_the_Dead() : base( 0x2683 )
		{
			Weight = 5.0;
			Name = "Shroud of the Dead";
			Layer = Layer.OuterTorso;
		}
		
		public override void OnDoubleClick( Mobile m )
		{		
			if( Parent != m ) { m.SendMessage( "You must be wearing the robe to use it!" ); }
			else
			{
				m_Gender = m.Body;
				MyTimer = new CountdownTimer(m, this);
				MyTimer.Start();
				m.SendMessage( "You are now dead." );
				m.PlaySound( 0x57 );
				m.Body = 402;
				m.NameMod = null;
				m.RemoveItem(this);
				m.EquipItem(this);
				if( m.Kills >= 5) { m.Criminal = true; }
				if( m.GuildTitle != null) { m.DisplayGuildTitle = true; }
			}
		}

		public override void OnDoubleClickDead( Mobile m )
		{
			if( Parent != m ) { m.SendMessage( "You must be wearing the robe to use it!" ); }
			else
			{
				if ( m.Body == 403 || m.Body == 402 )
				{
					m.SendMessage( "You return to the real world." ); 
					m.NameMod = "a ghost of the night";
					m.Body = m_Gender;
					m.RemoveItem(this);
					m.EquipItem(this);
				}
			}
		}
	
		public override bool OnEquip( Mobile from )
		{
			if ( ItemID == 0x2683 )
			{
				from.NameMod = "a ghost of the night";
				from.DisplayGuildTitle = false;
				from.Criminal = false;
			}
			return base.OnEquip(from);
		}

		public override void OnRemoved( Object o )
		{
			if( o is Mobile ) { ((Mobile)o).NameMod = null; }
			if( o is Mobile && ((Mobile)o).Kills >= 5) { ((Mobile)o).Criminal = true; }
			if( o is Mobile && ((Mobile)o).GuildTitle != null ) { ((Mobile)o).DisplayGuildTitle = true; }
			base.OnRemoved( o );
		}
	
		public Shroud_of_the_Dead( Serial serial ) : base( serial )
		{	
		}
	
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.Write( (int) 0 ); // version
			writer.Write( (int) m_Gender);
		}
	
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();
			m_Gender = reader.ReadInt();
		}
		
		public class CountdownTimer: Timer 
		{ 
			private int m_Ticker; 
			private Mobile m_Mobile;
			private Shroud_of_the_Dead robe;
			
			public CountdownTimer( Mobile mobile, Shroud_of_the_Dead U_Robe ): base( TimeSpan.FromSeconds( 1.0 ), TimeSpan.FromSeconds( 1.0 ) ) 
			{ 
				m_Mobile = mobile;
				robe = U_Robe;
				Priority = TimerPriority.TwoFiftyMS; 
				m_Ticker = 60; 
			} 
	
	
			protected override void OnTick() 
			{ 
				try
				{
					switch (m_Ticker) 
					{ 
						case 60: m_Mobile.SendMessage("60 seconds..."); break; 
						case 50: m_Mobile.SendMessage("50 seconds..."); break; 
						case 40: m_Mobile.SendMessage("40 seconds..."); break; 
						case 30: m_Mobile.SendMessage("30 seconds..."); break; 
						case 20: m_Mobile.SendMessage("20 seconds..."); break; 
						case 10: m_Mobile.SendMessage("10 seconds..."); break; 
						case 8: m_Mobile.SendMessage("7 seconds..."); break;
						case 7: m_Mobile.SendMessage("6 seconds..."); break;
						case 6: m_Mobile.SendMessage("5 seconds..."); break;
						case 5: m_Mobile.SendMessage("4 seconds..."); break;
						case 4: m_Mobile.SendMessage("3 seconds..."); break;
						case 3: m_Mobile.SendMessage("2 seconds..."); break;
						case 2: m_Mobile.SendMessage("1 second..." ); break;
						case 1: m_Mobile.SendMessage("You return to living!!", m_Ticker.ToString() ); break;
						case 0:  m_Mobile.Body = 400; this.Stop(); break; 
						// default: break;
					}
				}
				catch
				{
				}
				m_Ticker--; 
			}
		}
	}
}
that should work for both male and female in 1 item by storing the body value in the item itself.

**edit**
i only used a different name and label for a few reasons:

1. personal taste: death shroud and hooded shroud already exist. as this is an item that allows a non dead person to enter the realm of the dead, "shroud of the dead" seemed appropriate, and you cant confuse it with the other two existing shrouds.

2. your convenience - you wont have to overwrite your version to test this one.
Jarrod is offline   Reply With Quote
Old 01-04-2005, 10:45 AM   #20 (permalink)
Forum Novice
 
Join Date: Mar 2003
Posts: 246
Send a message via ICQ to Nagash
Default

Becareful!! Wouldn't players be able to transpass doors with that?
Nagash is offline   Reply With Quote
Old 01-04-2005, 12:36 PM   #21 (permalink)
Forum Expert
 
Join Date: Oct 2002
Location: Germany (american though)
Age: 33
Posts: 957
Default

if the house is public, yes. i think that includes locked doors in public houses.
Jarrod is offline   Reply With Quote
Old 01-04-2005, 02:00 PM   #22 (permalink)
P3'c Orion Aviator
 
Join Date: Sep 2004
Age: 30
Posts: 1,272
Default

I kinda like this idea, i havnt looked at the code, but i imagine it changes your bodyvalue to that of the deads to everything is black and white? You should put a cariable serialized in its properties that marks the sex of the player.

So when you double click it saves their sex, then changes body depending on sex, then once 60 seconds is up, it checks the variable and sets them back accordingly.
-Jamie
sirens song is offline   Reply With Quote
Old 01-04-2005, 03:08 PM   #23 (permalink)
Forum Novice
 
Join Date: Mar 2003
Posts: 246
Send a message via ICQ to Nagash
Default

And should also make a player able to cross any locked door made by GMs for a quest. I also thinkg that they will go over traps withotu activating it(although I might be wrong). If you are 0 lagged, you can cross a largecorridor full of traps and locked/trapped doors with that. I really liked this addition, just want to call attention to this fact.
Nagash is offline   Reply With Quote
Old 01-04-2005, 03:08 PM   #24 (permalink)
Forum Expert
 
Lucid Nagual's Avatar
 
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
Question Duh

Now my account name is "a ghost of the night". Lol. How can I correct this problem?
Lucid Nagual is offline   Reply With Quote
Old 01-04-2005, 04:44 PM   #25 (permalink)
Forum Expert
 
Join Date: Oct 2002
Location: Germany (american though)
Age: 33
Posts: 957
Default

hmm it changed your name and didnt save your original name?
or its like incognito, if i log off with incognito then log in, it shows the incog name. after it wears off and i log out and back in again, the name is right again.
Jarrod 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