|
||
|
|||||||
| Script Support Get support for modifying RunUO Scripts, or writing your own! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Novice
Join Date: Aug 2003
Location: Malas
Age: 41
Posts: 242
|
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;
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 |
|
|
|
|
|
#4 (permalink) |
|
Forum Novice
Join Date: Jul 2003
Location: NY
Age: 38
Posts: 963
|
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..... |
|
|
|
|
|
#8 (permalink) |
|
Forum Novice
Join Date: Jul 2003
Location: NY
Age: 38
Posts: 963
|
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; } }
Code:
Name = "Paragon Chest"; Code:
m_Name = name;
__________________
![]() Your fate is sealed in the end of Time..... Last edited by Karmageddon; 10-13-2008 at 07:14 AM. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|