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

Hey Apollo is this from your script? Never got this crash until I added your playmobile from the bounty system. If It is, know a way I can fix it?


Exception:
System.InvalidCastException: Specified cast is not valid.
at Server.Mobiles.PlayerMobile.OnLogin(LoginEventArgs e)
at Server.LoginEventHandler.Invoke(LoginEventArgs e)
at Server.Network.PacketHandlers.DoLogin(NetState state, Mobile m)
at Server.Network.PacketHandlers.PlayCharacter(NetState state, PacketReader pvSrc)
at Server.Network.MessagePump.HandleReceive(NetState ns)
at Server.Network.MessagePump.Slice()
at Server.Core.Main(String[] args)


Thx Guy,
Alex
 

apollo_in

Wanderer
Is your player class subclassed from PlayerMobile?

Alex AfterMath said:
Hey Apollo is this from your script? Never got this crash until I added your playmobile from the bounty system. If It is, know a way I can fix it?


Exception:
System.InvalidCastException: Specified cast is not valid.
at Server.Mobiles.PlayerMobile.OnLogin(LoginEventArgs e)
at Server.LoginEventHandler.Invoke(LoginEventArgs e)
at Server.Network.PacketHandlers.DoLogin(NetState state, Mobile m)
at Server.Network.PacketHandlers.PlayCharacter(NetState state, PacketReader pvSrc)
at Server.Network.MessagePump.HandleReceive(NetState ns)
at Server.Network.MessagePump.Slice()
at Server.Core.Main(String[] args)


Thx Guy,
Alex
 
Well Im not sure, Its RCO So if that tells you anything?

And to be totally honest Playmobiles are greek to me.

Took me 2 Weeks to figure out A PvP Point sytem with it. And No The Point system isnt in.

It was just the commom PM.cs You get with Ver. 1.0 Just Copied and put aside incase something like this happened and Then your PM.cs copied and paisted into the Mobiles section.

Im away on a Business trip and I cant get back to run a debug to make sure what script exactly is doing this. But Im just thinking it might be the PM.cs. I Will Know for sure Saturday evening sometime. But I posted here in Hopes that you might have ran into this problem with your PM.cs for the bounty system and could tell me what to do.


Thx,
Alex
 

Broadside

Wanderer
Ok i made a file titled Bountysystem in the data folder and put this file in there but keep gettin this error?

Could not open .\data\bounty system\BountySchema.xsd.
.\data\bounty system\BountySchema.xsd must be in .\Data\Bounty System
 
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (56 errors, 12 warnings)
- Warning: Scripts\Customs\New\Misc\LootNew.cs: CS0108: (line 19, column 30) Th
e keyword new is required on 'Server.LootNew.WandTypes' because it hides inherit
ed member 'Server.Loot.WandTypes'
- Warning: Scripts\Customs\New\Misc\LootNew.cs: CS0108: (line 41, column 30) Th
e keyword new is required on 'Server.LootNew.ClothingTypes' because it hides inh
erited member 'Server.Loot.ClothingTypes'
- Warning: Scripts\Customs\New\Misc\LootNew.cs: CS0108: (line 47, column 26) Th
e keyword new is required on 'Server.LootNew.RandomWand()' because it hides inhe
rited member 'Server.Loot.RandomWand()'
- Warning: Scripts\Customs\New\Misc\LootNew.cs: CS0108: (line 52, column 30) Th
e keyword new is required on 'Server.LootNew.RandomClothing()' because it hides
inherited member 'Server.Loot.RandomClothing()'
- Warning: Scripts\Customs\New\Misc\LootNew.cs: CS0108: (line 60, column 22) Th
e keyword new is required on 'Server.LootNew.Construct(System.Type)' because it
hides inherited member 'Server.Loot.Construct(System.Type)'
- Warning: Scripts\Customs\New\Misc\LootNew.cs: CS0108: (line 72, column 22) Th
e keyword new is required on 'Server.LootNew.Construct(System.Type[])' because i
t hides inherited member 'Server.Loot.Construct(System.Type[])'
- Warning: Scripts\Customs\New\Misc\LootNew.cs: CS0108: (line 80, column 22) Th
e keyword new is required on 'Server.LootNew.Construct(System.Type[], int)' beca
use it hides inherited member 'Server.Loot.Construct(System.Type[], int)'
- Warning: Scripts\Customs\New\Misc\LootNew.cs: CS0108: (line 88, column 22) Th
e keyword new is required on 'Server.LootNew.Construct(params System.Type[][])'
because it hides inherited member 'Server.Loot.Construct(params System.Type[][])
'
- Error: Scripts\Accounting\Account.cs: CS0117: (line 223, column 48) 'Server.M
obiles.PlayerMobile' does not contain a definition for 'SessionStart'
- Error: Scripts\Accounting\Account.cs: CS0117: (line 447, column 42) 'Server.M
obiles.PlayerMobile' does not contain a definition for 'SessionStart'
- Error: Scripts\Accounting\Account.cs: CS0117: (line 462, column 9) 'Server.Mo
biles.PlayerMobile' does not contain a definition for 'Young'
- Error: Scripts\Accounting\Account.cs: CS0117: (line 479, column 23) 'Server.M
obiles.PlayerMobile' does not contain a definition for 'Young'
- Error: Scripts\Accounting\Account.cs: CS0117: (line 481, column 6) 'Server.Mo
biles.PlayerMobile' does not contain a definition for 'Young'
- Error: Scripts\Engines\AI\Creature\BaseCreature.cs: CS0117: (line 3648, colum
n 36) 'Server.Mobiles.PlayerMobile' does not contain a definition for 'Young'
- Warning: Scripts\Customs\New\Master ofThe Arts.cs: CS0162: (line 96, column 4
8) Unreachable code detected
- Warning: Scripts\Customs\New\Master ofThe Arts.cs: CS0162: (line 97, column 4
7) Unreachable code detected
- Warning: Scripts\Customs\New\Master ofThe Arts.cs: CS0162: (line 98, column 4
7) Unreachable code detected
- Error: Scripts\Engines\AI\AI\BaseAI.cs: CS0117: (line 1312, column 45) 'Serve
r.Mobiles.PlayerMobile' does not contain a definition for 'Young'
- Error: Scripts\Engines\AI\AI\BaseAI.cs: CS0117: (line 1313, column 41) 'Serve
r.Mobiles.PlayerMobile' does not contain a definition for 'Young'
- Error: Scripts\Engines\AI\AI\BaseAI.cs: CS0117: (line 1709, column 45) 'Serve
r.Mobiles.PlayerMobile' does not contain a definition for 'Young'
- Error: Scripts\Engines\AI\AI\BaseAI.cs: CS0117: (line 1710, column 41) 'Serve
r.Mobiles.PlayerMobile' does not contain a definition for 'Young'
- Error: Scripts\Engines\AI\AI\BaseAI.cs: CS0117: (line 1614, column 45) 'Serve
r.Mobiles.PlayerMobile' does not contain a definition for 'Young'
- Error: Scripts\Engines\AI\AI\BaseAI.cs: CS0117: (line 1615, column 41) 'Serve
r.Mobiles.PlayerMobile' does not contain a definition for 'Young'
- Error: Scripts\Items\Skill Items\Magical\Misc\Moongate.cs: CS0117: (line 121,
column 65) 'Server.Mobiles.PlayerMobile' does not contain a definition for 'You
ng'
- Error: Scripts\Engines\Factions\Core\Faction.cs: CS0117: (line 231, column 9)
'Server.Mobiles.PlayerMobile' does not contain a definition for 'FactionPlayerS
tate'
- Error: Scripts\Engines\Factions\Core\Faction.cs: CS0117: (line 233, column 5)
'Server.Mobiles.PlayerMobile' does not contain a definition for 'FactionPlayerS
tate'
- Error: Scripts\Engines\Factions\Core\Faction.cs: CS0117: (line 266, column 5)
'Server.Mobiles.PlayerMobile' does not contain a definition for 'FactionPlayerS
tate'
- Error: Scripts\Engines\Factions\Core\Faction.cs: CS0117: (line 291, column 9)
'Server.Mobiles.PlayerMobile' does not contain a definition for 'Young'
- Error: Scripts\Engines\Factions\Core\Faction.cs: CS0117: (line 356, column 9)
'Server.Mobiles.PlayerMobile' does not contain a definition for 'Young'
- Error: Scripts\Engines\Factions\Core\PlayerState.cs: CS0117: (line 69, column
5) 'Server.Mobiles.PlayerMobile' does not contain a definition for 'FactionPlay
erState'
- Error: Scripts\Engines\Factions\Core\PlayerState.cs: CS0117: (line 124, colum
n 12) 'Server.Mobiles.PlayerMobile' does not contain a definition for 'FactionPl
ayerState'
- Error: Scripts\Engines\Harvest\Fishing.cs: CS0117: (line 222, column 34) 'Ser
ver.Mobiles.PlayerMobile' does not contain a definition for 'Young'
- Error: Scripts\Engines\Help\HelpGump.cs: CS0117: (line 77, column 12) 'Server
.Mobiles.PlayerMobile' does not contain a definition for 'Young'
- Error: Scripts\Engines\Help\PageQueue.cs: CS0117: (line 131, column 23) 'Serv
er.Mobiles.PlayerMobile' does not contain a definition for 'SpeechLog'
- Error: Scripts\Engines\Help\PageQueue.cs: CS0117: (line 132, column 34) 'Serv
er.Mobiles.PlayerMobile' does not contain a definition for 'SpeechLog'
- Error: Scripts\Engines\Help\SpeechLog.cs: CS0117: (line 55, column 15) 'Serve
r.Mobiles.PlayerMobile' does not contain a definition for 'SpeechLog'
- Error: Scripts\Engines\Help\SpeechLog.cs: CS0117: (line 63, column 41) 'Serve
r.Mobiles.PlayerMobile' does not contain a definition for 'SpeechLog'
- Error: Scripts\Engines\Quests\Dark Tides\Mobiles\Mardoth.cs: CS0117: (line 40
, column 12) 'Server.Mobiles.PlayerMobile' does not contain a definition for 'Yo
ung'
- Error: Scripts\Engines\Quests\Solen Matriarch\Objectives.cs: CS0117: (line 16
2, column 5) 'Server.Mobiles.PlayerMobile' does not contain a definition for 'So
lenFriendship'
- Error: Scripts\Engines\Quests\Solen Matriarch\Objectives.cs: CS0117: (line 16
4, column 5) 'Server.Mobiles.PlayerMobile' does not contain a definition for 'So
lenFriendship'
- Error: Scripts\Engines\Quests\Solen Matriarch\SolenMatriarchQuest.cs: CS0117:
(line 139, column 12) 'Server.Mobiles.PlayerMobile' does not contain a definiti
on for 'SolenFriendship'
- Error: Scripts\Engines\Quests\Solen Matriarch\SolenMatriarchQuest.cs: CS0117:
(line 141, column 12) 'Server.Mobiles.PlayerMobile' does not contain a definiti
on for 'SolenFriendship'
- Error: Scripts\Items\Misc\Corpses\Corpse.cs: CS1501: (line 354, column 24) No
overload for method 'GetLootingRights' takes '1' arguments
- Error: Scripts\Engines\Quests\Uzeraan Turmoil\Mobiles\Uzeraan.cs: CS0117: (li
ne 207, column 12) 'Server.Mobiles.PlayerMobile' does not contain a definition f
or 'Young'
- Error: Scripts\Engines\Quests\Uzeraan Turmoil\Mobiles\Uzeraan.cs: CS0117: (li
ne 237, column 40) 'Server.Mobiles.PlayerMobile' does not contain a definition f
or 'Young'
- Error: Scripts\Items\Maps\TreasureMap.cs: CS0117: (line 623, column 33) 'Serv
er.Mobiles.PlayerMobile' does not contain a definition for 'Young'
- Error: Scripts\Items\Misc\Moonstone.cs: CS0117: (line 78, column 38) 'Server.
Mobiles.PlayerMobile' does not contain a definition for 'Young'
- Error: Scripts\Items\Misc\PublicMoongate.cs: CS0117: (line 306, column 44) 'S
erver.Mobiles.PlayerMobile' does not contain a definition for 'Young'
- Error: Scripts\Items\Skill Items\Camping\Bedroll.cs: CS0117: (line 102, colum
n 6) 'Server.Mobiles.PlayerMobile' does not contain a definition for 'BedrollLog
out'
- Error: Scripts\Items\Special\Solen Items\BraceletOfBinding.cs: CS0117: (line
260, column 70) 'Server.Mobiles.PlayerMobile' does not contain a definition for
'Young'
- Error: Scripts\Misc\CharacterCreation.cs: CS0117: (line 627, column 14) 'Serv
er.Mobiles.PlayerMobile' does not contain a definition for 'Young'
- Error: Scripts\Misc\Keywords.cs: CS0117: (line 42, column 36) 'Server.Mobiles
.PlayerMobile' does not contain a definition for 'Young'
- Error: Scripts\Mobiles\Healers\BaseHealer.cs: CS0117: (line 104, column 9) 'S
erver.Mobiles.PlayerMobile' does not contain a definition for 'CheckYoungHealTim
e'
- Error: Scripts\Mobiles\Healers\BaseHealer.cs: CS0117: (line 136, column 84) '
Server.Mobiles.PlayerMobile' does not contain a definition for 'Young'
- Error: Scripts\Mobiles\Monsters\Ants\SolenHelper.cs: CS0117: (line 37, column
29) 'Server.Mobiles.PlayerMobile' does not contain a definition for 'SolenFrien
dship'
- Error: Scripts\Mobiles\Monsters\Ants\SolenHelper.cs: CS0117: (line 54, column
29) 'Server.Mobiles.PlayerMobile' does not contain a definition for 'SolenFrien
dship'
- Error: Scripts\Mobiles\Monsters\Ants\SolenHelper.cs: CS0117: (line 71, column
27) 'Server.Mobiles.PlayerMobile' does not contain a definition for 'SolenFrien
dship'
- Error: Scripts\Mobiles\Monsters\Ants\SolenHelper.cs: CS0117: (line 75, column
5) 'Server.Mobiles.PlayerMobile' does not contain a definition for 'SolenFriend
ship'
- Error: Scripts\Mobiles\Monsters\Ants\SolenHelper.cs: CS0117: (line 93, column
27) 'Server.Mobiles.PlayerMobile' does not contain a definition for 'SolenFrien
dship'
- Error: Scripts\Mobiles\Monsters\Ants\SolenHelper.cs: CS0117: (line 97, column
5) 'Server.Mobiles.PlayerMobile' does not contain a definition for 'SolenFriend
ship'
- Error: Scripts\Mobiles\Vendors\NPC\Guildmasters\ThiefGuildmaster.cs: CS0117:
(line 40, column 9) 'Server.Mobiles.PlayerMobile' does not contain a definition
for 'Young'
- Error: Scripts\Mobiles\PlayerMobile.cs: CS0029: (line 758, column 20) Cannot
implicitly convert type 'Server.Gumps.GumpCollection' to 'Server.Gumps.Gump[]'
- Error: Scripts\Regions\DungeonRegion.cs: CS0117: (line 21, column 30) 'Server
.Mobiles.PlayerMobile' does not contain a definition for 'Young'
- Warning: Scripts\Samurai Empire\Mobiles\SE Monsters\YomotsuElder.cs: CS0162:
(line 15, column 19) Unreachable code detected
- Error: Scripts\Spells\Chivalry\SacredJourney.cs: CS0117: (line 92, column 62)
'Server.Mobiles.PlayerMobile' does not contain a definition for 'Young'
- Error: Scripts\Spells\Fourth\Recall.cs: CS0117: (line 97, column 62) 'Server.
Mobiles.PlayerMobile' does not contain a definition for 'Young'
- Error: Scripts\Spells\Seventh\GateTravel.cs: CS0117: (line 80, column 62) 'Se
rver.Mobiles.PlayerMobile' does not contain a definition for 'Young'
- Error: Scripts\Spells\Third\Telekinesis.cs: CS0117: (line 60, column 34) 'Ser
ver.Items.Corpse' does not contain a definition for 'CheckLoot'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.


Whats wrong?
 

X-SirSly-X

Sorceror
its hasn't been updated to work in the new release of runuo. basically the palermobile included with the script doesn't have any of the new runuo release features.

-Sly
 

Darkness_PR

Wanderer
ShinjiKatsuro said:
AWW DARN....so when do you think the next release will be? That is, the next release with the updated files for 1.0.0?
you dont have to wait for it do it your self get winmerge and compare the files thats what i allways do and tehm repost them giving the fact thou that i only updated it for version 1.0.0 and did the proper testing =D
 

LNM_TNB

Wanderer
Has the playermobile been updated to work with the RunUO 1.0 playermobile?I keep getting errors but I don't know how to copy them from the server console to paste them here. Sorry, I've never done it before so if anyone can teach me, that'd be great.

I also wanted to ask if anyone has had a problem with players becoming perma gray after installing this script. And if yes, which line is causing it? Reading through all these scripts is giving me a headache lol

I would appreciate a little help, hopefully without being "flamed" like it seems how everyone else asking questions gets treated. I guess I know if it happens not to post any more =-/

If instant messenger is easier to discuss this, my yahoo ID is a23t3 or my aim is a24t4, feel free to message me, add me or whatever, thanks in advance =)
 

LNM_TNB

Wanderer
Nevermind, I got the script working. I just left a few of the things out and it's working just fine now.

Still wouldnt mind knowing how to copy errors from the server console to paste in here though if anyone still wants to help, Thanks =)
 

jaynigs

Wanderer
if you left click the top left corner of the server window you will see options such as mark and copy, use mark then highlight the text then choose copy, you can then use paste to paste it into a text file or here.
 

dancrazy

Wanderer
Hello, the system bounty I create to be installed correctly, in the console says:

Reports: Loading...done
Could not open .\data\bounty system\Bounties.xml.
.\data\bounty system\Bounties.xml must be in .\Data\Bounty System
This is okay if this is the first run after installation of the Bounty system.
Regions: Loading...done

When I add bountyboard player with gold in the bank, they open menu bountyboardgump perfectly. But they do not respond ningun button of this menu.
Somebody knows that it happens?.
Somebody to help me?.

Thanks
 

dancrazy

Wanderer
Hello somebody can help me?

Have installed and works correctly,

When a player cuts a head if beams a resumption:

World: Loading...An error was encountered while loading a saved object
- Type: Server.Items.Head
- Serial: 0x400250EC
Delete the object? (y/n)

That it can be happening?

Thank
 

dancrazy

Wanderer
This head:

Code:
[COLOR=Navy]using[/COLOR] System;
[COLOR=Navy]using[/COLOR] Server;
[COLOR=DarkGreen]// System Bounties[/COLOR]
[COLOR=Navy]using[/COLOR] Server.BountySystem;
[COLOR=DarkGreen]// end[/COLOR]
[COLOR=Navy]namespace[/COLOR] Server.Items
{
	[COLOR=Navy]public[/COLOR] [COLOR=DarkRed]class[/COLOR] Head : Item
	{
		
[COLOR=DarkGreen]//bount system [/COLOR] 
		[COLOR=Navy]private[/COLOR] DateTime m_CreationTime;
		[COLOR=Navy]private[/COLOR] Mobile m_Owner;
		[COLOR=Navy]private[/COLOR] Mobile m_Killer;
		[COLOR=Navy]private[/COLOR] [COLOR=DarkRed]bool[/COLOR] m_Player;

		[CommandProperty( AccessLevel.GameMaster )]
		[COLOR=Navy]public[/COLOR] DateTime CreationTime
		{
			get{ [COLOR=Navy]return[/COLOR] m_CreationTime; }
			set{ m_CreationTime = value; }
		}

		[CommandProperty( AccessLevel.GameMaster )]
		[COLOR=Navy]public[/COLOR] Mobile Owner
		{
			get{ [COLOR=Navy]return[/COLOR] m_Owner; }
			set{ m_Owner = value; }
		}

		[CommandProperty( AccessLevel.GameMaster )]
		[COLOR=Navy]public[/COLOR] Mobile Killer
		{
			get{ [COLOR=Navy]return[/COLOR] m_Killer; }
			set{ m_Killer = value; }
		}

		[CommandProperty( AccessLevel.GameMaster )]
		[COLOR=Navy]public[/COLOR] [COLOR=DarkRed]bool[/COLOR] IsPlayer
		{
			get{ [COLOR=Navy]return[/COLOR] m_Player; }
			set{ m_Player = value; }
		}
[COLOR=DarkGreen]//end bounty system[/COLOR]
		
		[Constructable]
		[COLOR=Navy]public[/COLOR] Head() : [COLOR=Navy]this[/COLOR]( [COLOR=Navy]null[/COLOR] )
		{
		}

		[Constructable]
		[COLOR=Navy]public[/COLOR] Head( [COLOR=DarkRed]string[/COLOR] name ) : [COLOR=Navy]base[/COLOR]( [COLOR=DarkRed]0x1DA0[/COLOR] )
		{
			Name = name;
			Weight = [COLOR=DarkRed]1[/COLOR].[COLOR=DarkRed]0[/COLOR];

[COLOR=DarkGreen]//bounty system[/COLOR]			m_Player = [COLOR=Navy]false[/COLOR];
			m_Owner = [COLOR=Navy]null[/COLOR];
			m_Killer = [COLOR=Navy]null[/COLOR];
			m_CreationTime = DateTime.Now;
[COLOR=DarkGreen]//end bounty system[/COLOR]		}

		[COLOR=Navy]public[/COLOR] Head( Serial serial ) : [COLOR=Navy]base[/COLOR]( serial )
		{
		}

		[COLOR=Navy]public override void[/COLOR] Serialize( GenericWriter writer )
		{
			[COLOR=Navy]base[/COLOR].Serialize( writer );
[COLOR=DarkGreen]//bounty system[/COLOR]
			writer.Write( ([COLOR=DarkRed]int[/COLOR]) [COLOR=DarkRed]1[/COLOR] ); [COLOR=DarkGreen]// version[/COLOR]

			writer.Write( m_Player );
			writer.Write( m_CreationTime );

			[COLOR=Navy]if[/COLOR]( m_Player )
			{
				writer.Write(  m_Owner );
				writer.Write(  m_Killer );
			}
[COLOR=DarkGreen]//end bounty system[/COLOR]
		}

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

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

					[COLOR=Navy]break[/COLOR];
				}
			}
[COLOR=DarkGreen]//end bounty system[/COLOR]
		}
	}
}
 

Phantom

Knight
dancrazy said:
Hello somebody can help me?

Have installed and works correctly,

When a player cuts a head if beams a resumption:



That it can be happening?

Thank

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.
 

scarface6666

Wanderer
Can you please post edited lines for the player mobile for some of us who have other customs on the player mobile cause i got about three other scripts on that player mobile and i dont feel like reading your script for three hours to find all the edited spots so can you show me what you put and were you put it.
Sorry bad grammer.
 

Phantom

Knight
scarface6666 said:
Can you please post edited lines for the player mobile for some of us who have other customs on the player mobile cause i got about three other scripts on that player mobile and i dont feel like reading your script for three hours to find all the edited spots so can you show me what you put and were you put it.
Sorry bad grammer.

The author has not been here for an entire year.

Your not going to get your answer, this script is in the archive forum, its here for a reason.
 
Top