Full Version : XML stealables with RunUO 2.0 RC2
xmlspawner >>Q&A >>XML stealables with RunUO 2.0 RC2
<< Prev | Next >>
VindiKat- 04-23-2008
I have had some difficulty with the stealing.cs changes needed when using RC2, in that it won't compile properly. Is there an updated stealing.cs for RC2 available?
ArteGordon- 04-23-2008
take a look here
http://xmlspawner.15.forumer.com/index.php?showtopic=1351
I will be putting up a new updated RC2 version of stealing.cs at some point with some new support for a stealing attachment and a new OnStolen hook.
VindiKat- 04-23-2008
Thank you kindly, that compiles fine now!
I have another question if you don't mind, concerning lockable containers. I saw a tutorial about how to set up things to spawn in containers, but I would like to know how to set up the spawned containers lock level and trap level vs the lockpicking and disarm skills of the rogue? For example what lock level that would require a minimum 25 skill, what level for 90 skill?
ArteGordon- 04-23-2008
the check is made in lockpick.cs

CODE
if ( m_From.CheckTargetSkill( SkillName.Lockpicking, m_Item, m_Item.LockLevel, m_Item.MaxLockLevel ) )

so the minimum lockpicking skill required is determined by the LockLevel of the container and the maximum skill is determined by the MaxLockLevel.
For disarming, that is handled in RemoveTrap.cs

CODE
if ( from.CheckTargetSkill( SkillName.RemoveTrap, targ, targ.TrapPower, targ.TrapPower + 30 ) )

so the min RemoveTrap skill required is determined by TrapPower and the max skill is TrapPower + 30.