if ( item is BaseWeapon )
{
BaseWeapon weapon = ( BaseWeapon )item;
weapon.Quality = (WeaponQuality)quality;
endquality = quality;
else if ( item is BaseArmor )
{
BaseArmor armor = ( BaseArmor )item;
armor.Quality = (ArmorQuality)quality;
endquality = quality;
XxSP1DERxX said:I think it should be recoded to make the items identified in the constructor, then you can unidentify it in your loot script... You will have more control that way, and since you are only making loot unidentified, it should be good. Then if staff want to add an unidentified, they can do
[add weaponhere set identified false
This system is still pretty incomplete. I am debating whether to release my version of the system or not
if ( item != null )
{
if( item is ICraftable )
endquality = ((ICraftable)item).OnCraft( quality, makersMark, from, craftSystem, typeRes, tool, this, resHue );
if ( item.Hue == 0 )
item.Hue = resHue;
if ( maxAmount > 0 )
item.Amount = maxAmount;
if ( item != null )
{
if( item is ICraftable )
endquality = ((ICraftable)item).OnCraft( quality, makersMark, from, craftSystem, typeRes, tool, this, resHue );
if ( item.Hue == 0 )
item.Hue = resHue;
if ( maxAmount > 0 )
item.Amount = maxAmount;
if ( item is BaseWeapon )
{
BaseWeapon bw = (BaseWeapon)item;
bw.Identified = true;
}
if ( item is BaseArmor )
{
BaseArmor ba = (BaseArmor)item;
ba.Identified = true;
}
if ( item is BaseJewel )
{
BaseJewel bj = (BaseJewel)item;
bj.Identified = true;
}
from.AddToBackpack( item );
//from.PlaySound( 0x57 );
}
XxSP1DERxX said:If you insist LordHogFred, then I will release it. I am not home, although when I am, I will put it all together and submit it.
Funnyhehe said:do u think this would work on no aos?
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (9 errors, 0 warnings)
- Error: c:\Documents and Settings\Jára\Plocha\j\Scripts\Engines\Factions\Items
\Traps\BaseFactionTrapDeed.cs: CS0246: (line 10, column 52) The type or namespac
e name 'ICraftable' could not be found (are you missing a using directive or an
assembly reference?)
- Error: c:\Documents and Settings\Jára\Plocha\j\Scripts\Items\Containers\Locka
bleContainer.cs: CS0246: (line 8, column 89) The type or namespace name 'ICrafta
ble' could not be found (are you missing a using directive or an assembly refere
nce?)
- Error: c:\Documents and Settings\Jára\Plocha\j\Scripts\Items\Armor\BaseArmor.
cs: CS0246: (line 11, column 42) The type or namespace name 'IArmor' could not b
e found (are you missing a using directive or an assembly reference?)
- Error: c:\Documents and Settings\Jára\Plocha\j\Scripts\Items\Clothing\BaseClo
thing.cs: CS0246: (line 24, column 82) The type or namespace name 'ICraftable' c
ould not be found (are you missing a using directive or an assembly reference?)
- Error: c:\Documents and Settings\Jára\Plocha\j\Scripts\Items\Deeds\DragonBard
ingDeed.cs: CS0246: (line 9, column 41) The type or namespace name 'ICraftable'
could not be found (are you missing a using directive or an assembly reference?)
- Error: c:\Documents and Settings\Jára\Plocha\j\Scripts\Items\Maps\MapItem.cs:
CS0246: (line 11, column 31) The type or namespace name 'ICraftable' could not
be found (are you missing a using directive or an assembly reference?)
- Error: c:\Documents and Settings\Jára\Plocha\j\Scripts\Items\Skill Items\Musi
cal Instruments\BaseInstrument.cs: CS0246: (line 20, column 47) The type or name
space name 'ICraftable' could not be found (are you missing a using directive or
an assembly reference?)
- Error: c:\Documents and Settings\Jára\Plocha\j\Scripts\Items\Skill Items\Magi
cal\Potions\BasePotion.cs: CS0246: (line 31, column 43) The type or namespace na
me 'ICraftable' could not be found (are you missing a using directive or an asse
mbly reference?)
- Error: c:\Documents and Settings\Jára\Plocha\j\Scripts\Items\Skill Items\Magi
cal\Runebook.cs: CS0246: (line 11, column 44) The type or namespace name 'ICraft
able' could not be found (are you missing a using directive or an assembly refer
ence?)
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
can you help me figure this out thankyouRunUO - [www.runuo.com] Version 2.0, Build 3567.2838
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...ScriptCompiler: CS1519: Invalid token '100.00' i
n class, struct, or interface member declaration
ScriptCompiler: CS1520: Class, struct, or interface method must have a return ty
pe
ScriptCompiler: CS1031: Type expected
ScriptCompiler: CS1519: Invalid token ',' in class, struct, or interface member
declaration
ScriptCompiler: CS1520: Class, struct, or interface method must have a return ty
pe
ScriptCompiler: CS1031: Type expected
ScriptCompiler: CS1519: Invalid token ',' in class, struct, or interface member
declaration
ScriptCompiler: CS1520: Class, struct, or interface method must have a return ty
pe
ScriptCompiler: CS1031: Type expected
ScriptCompiler: CS1519: Invalid token ',' in class, struct, or interface member
declaration
ScriptCompiler: CS1520: Class, struct, or interface method must have a return ty
pe
ScriptCompiler: CS1031: Type expected
ScriptCompiler: CS1519: Invalid token ',' in class, struct, or interface member
declaration
ScriptCompiler: CS0116: A namespace does not directly contain members such as fi
elds or methods
ScriptCompiler: CS1518: Expected class, delegate, enum, interface, or struct
ScriptCompiler: CS1518: Expected class, delegate, enum, interface, or struct
ScriptCompiler: CS1518: Expected class, delegate, enum, interface, or struct
ScriptCompiler: CS1001: Identifier expected
ScriptCompiler: CS1518: Expected class, delegate, enum, interface, or struct
ScriptCompiler: CS1518: Expected class, delegate, enum, interface, or struct
ScriptCompiler: CS1518: Expected class, delegate, enum, interface, or struct
ScriptCompiler: CS0116: A namespace does not directly contain members such as fi
elds or methods
ScriptCompiler: CS1518: Expected class, delegate, enum, interface, or struct
ScriptCompiler: CS1518: Expected class, delegate, enum, interface, or struct
ScriptCompiler: CS1518: Expected class, delegate, enum, interface, or struct
ScriptCompiler: CS1001: Identifier expected
ScriptCompiler: CS1518: Expected class, delegate, enum, interface, or struct
ScriptCompiler: CS1518: Expected class, delegate, enum, interface, or struct
ScriptCompiler: CS1518: Expected class, delegate, enum, interface, or struct
ScriptCompiler: CS1518: Expected class, delegate, enum, interface, or struct
ScriptCompiler: CS1518: Expected class, delegate, enum, interface, or struct
ScriptCompiler: CS1022: Type or namespace definition, or end-of-file expected
ScriptCompiler: CS0101: The namespace 'Server' already contains a definition for
'LootPack'
ScriptCompiler: CS0101: The namespace 'Server.Items' already contains a definiti
on for 'ItemIdentification'
ScriptCompiler: CS0102: The type 'Server.Items.ItemIdentification' already conta
ins a definition for 'InternalTarget'
done (0 errors, 0 warnings)
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.