Full Version : Treasure chests levels 1-4
xmlspawner >>Troubleshooting >>Treasure chests levels 1-4
<< Prev | Next >>
Gembone- 09-29-2006
ok not sure what is causeing this but I cannot lift anything out of the treasure chests. have to steal it. oh also this is for runuo2.0 rc1.
any help would be appreciated
ArteGordon- 09-29-2006
containers in 2.0 dont allow things to be simply lifted out of them by default.
You can change this for all basecontainers (that includes treasure chests and most other containers ) by making this change to the basecontainer constructor in container.cs

CODE
public BaseContainer( int itemID ) : base( itemID ) { // allow items to be lifted instead of stolen from containers by default LiftOverride = true; }

If you just wanted to change the behavior for treasure chests, go into the scripts for them and add the same line to their constructors instead.
Gembone- 09-29-2006
thanks. ran across this and thought it was odd that with treasure map chests you could lift out but not regular treasure chests.
thanks its working great now.