Go Back   RunUO - Ultima Online Emulation > RunUO > Script Support

Script Support Get support for modifying RunUO Scripts, or writing your own!

Reply
 
Thread Tools Display Modes
Old 09-22-2008, 08:53 PM   #1 (permalink)
Forum Novice
 
Cyndrz's Avatar
 
Join Date: Aug 2003
Location: Malas
Age: 41
Posts: 242
Default Paragon Chests RC2

I found this error on the paragon chests
Error (TID) : Provided token out of range : 3000541 : 1053099

I am sure its this first line and want to know if i replace the 3000541 with the name Paragon Chest?
Well in case i am wrong here is the script

Code:
using Server.Gumps;
using Server.Multis;
using Server.Network;
using Server.ContextMenus;
using Server.Engines.PartySystem;

namespace Server.Items
{
	public class ParagonChest : LockableContainer
	{
		public override int LabelNumber{ get{ return 3000541; } }

		private static int[] m_ItemIDs = new int[]
		{
			0x9AB, 0xE40, 0xE41, 0xE7C
		};

		private static int[] m_Hues = new int[]
		{
			0x0, 0x455, 0x47E, 0x89F, 0x8A5, 0x8AB, 
			0x966, 0x96D, 0x972, 0x973, 0x979,   
		};

		private string m_Name;

		[Constructable]
		public ParagonChest( string name, int level ) : base( Utility.RandomList( m_ItemIDs ) )
		{
			m_Name = name;
			Hue = Utility.RandomList( m_Hues );
			Fill( level );
		}

		public override void OnSingleClick( Mobile from )
		{
			LabelTo( from, 1063449, m_Name );
		}

		public override void GetProperties( ObjectPropertyList list )
		{
			base.GetProperties( list );

			list.Add( 1063449, m_Name );
		}

		private static void GetRandomAOSStats( out int attributeCount, out int min, out int max )
		{
			int rnd = Utility.Random( 15 );

			if ( rnd < 1 )
			{
				attributeCount = Utility.RandomMinMax( 2, 6 );
				min = 20; max = 70;
			}
			else if ( rnd < 3 )
			{
				attributeCount = Utility.RandomMinMax( 2, 4 );
				min = 20; max = 50;
			}
			else if ( rnd < 6 )
			{
				attributeCount = Utility.RandomMinMax( 2, 3 );
				min = 20; max = 40;
			}
			else if ( rnd < 10 )
			{
				attributeCount = Utility.RandomMinMax( 1, 2 );
				min = 10; max = 30;
			}
			else
			{
				attributeCount = 1;
				min = 10; max = 20;
			}
		}

		private void Fill( int level )
		{
			TrapType = TrapType.ExplosionTrap;
			TrapPower = level * 25;
			TrapLevel = level;
			Locked = true;
Should i be reporting this as a RunUO error someplace special?

Thank you for your time.
__________________
Save the flames for your own personal life

Last edited by Cyndrz; 09-28-2008 at 10:03 PM. Reason: added
Cyndrz is offline   Reply With Quote
Old 09-29-2008, 02:27 PM   #2 (permalink)
Newbie
 
StarrBlackthorn's Avatar
 
Join Date: Nov 2004
Location: California
Age: 24
Posts: 11
Send a message via AIM to StarrBlackthorn Send a message via Yahoo to StarrBlackthorn
Default

I get the same thing. Does anyone know the fix to this?
StarrBlackthorn is offline   Reply With Quote
Old 09-29-2008, 03:07 PM   #3 (permalink)
Forum Novice
 
Soteric's Avatar
 
Join Date: Aug 2006
Location: Russia, Rostov-on-Don
Posts: 772
Send a message via ICQ to Soteric
Default

Do you have this number in your Cliloc file?
Soteric is offline   Reply With Quote
Old 09-29-2008, 06:58 PM   #4 (permalink)
Forum Novice
 
Karmageddon's Avatar
 
Join Date: Jul 2003
Location: NY
Age: 38
Posts: 963
Default

I checked this out because I was having same issue. Checked Cliloc and all and the number matches what it should be in the Cliloc since I have not modified my Cliloc. I have not gotten a chance to look into it deeper atm though.
__________________

Your fate is sealed in the end of Time.....
Karmageddon is offline   Reply With Quote
Old 09-29-2008, 09:10 PM   #5 (permalink)
Forum Novice
 
Join Date: Jun 2008
Age: 27
Posts: 162
Default

i would check serial
oldschool-3038 is offline   Reply With Quote
Old 09-30-2008, 09:28 AM   #6 (permalink)
Forum Novice
 
Cyndrz's Avatar
 
Join Date: Aug 2003
Location: Malas
Age: 41
Posts: 242
Default

Thank you all for replying and I will take it that this isn't the easy fix I was hoping for.
__________________
Save the flames for your own personal life
Cyndrz is offline   Reply With Quote
Old 10-06-2008, 01:08 AM   #7 (permalink)
Newbie
 
StarrBlackthorn's Avatar
 
Join Date: Nov 2004
Location: California
Age: 24
Posts: 11
Send a message via AIM to StarrBlackthorn Send a message via Yahoo to StarrBlackthorn
Default

Any word on the chests yet? I have been going crazy trying to figure out how to fix them.
StarrBlackthorn is offline   Reply With Quote
Old 10-06-2008, 01:37 PM   #8 (permalink)
Forum Novice
 
Karmageddon's Avatar
 
Join Date: Jul 2003
Location: NY
Age: 38
Posts: 963
Default

Here is a temp fix for paragon chests not showing the name right.
Either comment this line or remove it completely:
Code:
public override int LabelNumber{ get{ return 3000541; } }
Then in the constructor around line 32 add this:
Code:
Name = "Paragon Chest";
Do not remove or paste over this line:
Code:
m_Name = name;
Because this is where the chest gets the name of the creature it was recovered from.
__________________

Your fate is sealed in the end of Time.....

Last edited by Karmageddon; 10-13-2008 at 07:14 AM.
Karmageddon is offline   Reply With Quote
Old 10-13-2008, 01:58 AM   #9 (permalink)
Newbie
 
StarrBlackthorn's Avatar
 
Join Date: Nov 2004
Location: California
Age: 24
Posts: 11
Send a message via AIM to StarrBlackthorn Send a message via Yahoo to StarrBlackthorn
Thumbs up

Thank you very much
StarrBlackthorn 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