Lichtblitz
Sorceror
[SVN] Dupe command 3.0
After all the leeching and advices I gave I kind of feel the urge now to give something back to the community. Since I'm using a modified RunUO 1.0 server compiled under .NET 2.0 there is little to no chance at all that my scripts can be used on other shards. So this time I took the effort in converting one of my scripts to RunUO 2.0 SVN.
This command may or may not run with other releases but it is very simple to port it. I have just ported it from RunUO 1.0 and it wasn't too hard.
What does this script do?
This script adds a new improved [dupe command that utilizes the Serialize() and Deserialize() methods to create a perfect duplicate of any item and mobile. This will be done recursively so that duplicated mobiles will come along with their duplicated backpacks and their duplicated loot.
How do I install this script?
Help, I'm getting an error message ingame!
The text of the error message should speak for itself. If you wish to increase the maximum number of recursions or the maximum item count, change the constants around line 50 in the script (beginning of class DupeCommand)
Questions and suggestions are more than welcome. This script is in use on my shard for over one year and has caused no errors. However I may have introduced errors in porting it from RunUO 1.0. Please report them.
After all the leeching and advices I gave I kind of feel the urge now to give something back to the community. Since I'm using a modified RunUO 1.0 server compiled under .NET 2.0 there is little to no chance at all that my scripts can be used on other shards. So this time I took the effort in converting one of my scripts to RunUO 2.0 SVN.
This command may or may not run with other releases but it is very simple to port it. I have just ported it from RunUO 1.0 and it wasn't too hard.
What does this script do?
This script adds a new improved [dupe command that utilizes the Serialize() and Deserialize() methods to create a perfect duplicate of any item and mobile. This will be done recursively so that duplicated mobiles will come along with their duplicated backpacks and their duplicated loot.
How do I install this script?
- Remove the distribution dupe command (e.g. rename "Scripts\Commands\Dupe.cs" to "Scripts\Commands\Dupe.old"
- place this script anywhere inside your Scripts folder (e.g. "Scripts\Custom\Commands\SerializeDuper.cs")
- done
Help, I'm getting an error message ingame!
The text of the error message should speak for itself. If you wish to increase the maximum number of recursions or the maximum item count, change the constants around line 50 in the script (beginning of class DupeCommand)
Questions and suggestions are more than welcome. This script is in use on my shard for over one year and has caused no errors. However I may have introduced errors in porting it from RunUO 1.0. Please report them.