|
||
|
|||||||
| Custom Script Releases This forum is where you can release your custom scripts for other users to use. Please note: By releasing your scripts here you are submitting them to the public and as such agree to make them public domain. The RunUO Team has made its software GPL for you to use and enjoy you should do the same for anything based off of RunUO. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Master
|
Ok - is is a more improved tool, but i use both of them - the dragon one is easier for them to make and get
![]() to use the Wyrm Axe you have to have a custom logging system in place these tools should work with any OWL sysem that i have seen and should work on 1.0 as well (with or with out minor mods) These tools will harvest the vein of the resourse that the tool is made from - or the cap that you set - which ever is more appropreate it does check for resourses out of range and sets to lowest or highest then based on direction - so no errors in case a gm tries to make a barbed leather pick axe - it will not try to bring out barbed leather or crash the shard - it will be called barbed leather, but will do ore still ![]() this will not make all the ore/logs coming out of that type - it will make the vein that type - so the fall back to iron still remains in effect, but the vein itself will be of the type of resource used and they can be for normal iron or normal logs Thjis System is NOT pure drag and drop and simple mod - you do have to edit 2 distro files - mining.cs and lumberjacking.cs and place in the correct numbers to match your OWL system The 2 files are drag and drop into the customs directory now for the distro edits and where to find the numbers you need also for mining - the part in red is added in - the blue is what was added if you also have the dragon pick axe installed (if not ingor the blue) Code:
public override HarvestVein MutateVein( Mobile from, Item tool, HarvestDefinition def, HarvestBank bank, object toHarvest, HarvestVein vein )
{
if ( tool is GargoylesPickaxe && def == m_OreAndStone )
{
int veinIndex = Array.IndexOf( def.Veins, vein );
if ( veinIndex >= 0 && veinIndex < (def.Veins.Length - 1) )
return def.Veins[veinIndex + 1];
}
else if ( tool is DragonPickaxe )
{
int veinIndex = Array.IndexOf( def.Veins, vein );
return def.Veins[0];
}
else if ( tool is WyrmPickaxe )
{
WyrmPickaxe wyrmtool = tool as WyrmPickaxe;
int veinIndex = Array.IndexOf( def.Veins, vein );
int veincolor = (int)((wyrmtool.Resource) -1);
if (veincolor <= 0) veincolor = 0;
if (veincolor >= 19) veincolor = 19; // set these 2 numbers to the highest vein you want used --- see below
return def.Veins[veincolor];
}
return base.MutateVein( from, tool, def, bank, toHarvest, vein );
}
Code:
// the number to set for mining above new HarvestVein( 01.0, 0.4, res[17], res[0] ), // Mist new HarvestVein( 01.0, 0.4, res[18], res[0] ), // Liquidrock new HarvestVein( 00.5, 0.4, res[19], res[0] ), // Blackrock --- use this number or the highest numbe you want them to have Code:
public override HarvestVein MutateVein( Mobile from, Item tool, HarvestDefinition def, HarvestBank bank, object toHarvest, HarvestVein vein )
{
if ( tool is GargoylesAxe )
{
int veinIndex = Array.IndexOf( def.Veins, vein );
if ( veinIndex >= 0 && veinIndex < (def.Veins.Length - 1) )
return def.Veins[veinIndex + 1];
}
else if ( tool is DragonAxe )
{
int veinIndex = Array.IndexOf( def.Veins, vein );
return def.Veins[0];
}
else if ( tool is WyrmAxe )
{
WyrmAxe wyrmtool = tool as WyrmAxe;
int veinIndex = Array.IndexOf( def.Veins, vein );
int veincolor = (int)((wyrmtool.Resource) -300); // the 300 has to be set to match your log system - see below
if (veincolor <= 0) veincolor = 0;
if (veincolor >= 13) veincolor = 13; // set these 2 numbers to the highest vein you want used --- see below
return def.Veins[veincolor];
}
return base.MutateVein( from, tool, def, bank, toHarvest, vein );
}
Code:
// the number to set for LJ above new HarvestVein( 02.0, 0.2, res[11], res[0] ), // Eucalyptus new HarvestVein( 02.0, 0.2, res[12], res[0] ), // Willow new HarvestVein( 02.0, 0.2, res[13], res[0] ), // Cherry --- use this number or the highest numbe you want them to have Code:
RegularLog = 300, // this is the number to use for subtraction for lowest resource used based on log system used Pine, Ash, Mohogany, Yew, Oak, Maple, here: Code:
[Constructable] public WyrmPickaxe() : this( 100 ) ![]() again these also make great BOD rewards to spice them up (instead of just getting the same old thing)(to add them in there will mean a multi line deal to set the resource because they will not "add" right with the resource in the name - but if you know how to mod bod rewards well enough - should not be to hard )enjoy
__________________
http://www.AoAUO.com
:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :) Last edited by Lord_Greywolf; 10-03-2006 at 01:38 PM. |
|
|
|
|
|
#2 (permalink) |
|
Forum Expert
|
Thanks for both these scripts they are exactly what i am looking for.
Hey i tried these out and they do not work. I still mine all types of ore with them both.. :-/
__________________
Broadside ~AkA~ Bad Karma Last edited by Broadside; 10-03-2006 at 10:46 PM. |
|
|
|
|
|
#3 (permalink) |
|
Forum Master
|
are you using daats99 system with random ores turned on?
if so it overwrites the vein with each hit, need to set it to not be random there is a script mod in the archives that tells how to randomize the ore/logs on each new startup
__________________
http://www.AoAUO.com
:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :) |
|
|
|
|
|
#5 (permalink) |
|
Forum Master
|
the random ore/logs also messes up prospectors tools and such also because it randomizes the vein each strike
__________________
http://www.AoAUO.com
:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :) |
|
|
|
|
|
#6 (permalink) |
|
Forum Novice
|
Ok, I still can't get this to work...I *think* i found the old post on how to randomize....but not sue. I still dont get it, acn you help me? (Yes, I'm using Daat 99)
__________________
(\__/) (='.'=)This is Bunny. Copy and paste bunny into your (")_(")signature to help him gain world domination. |
|
|
|
|
|
#7 (permalink) |
|
Forum Expert
|
Yes i have done the same on disabling it and thought it worked but was bad test i guess.... I disabled the Daat Mining but still get what the vien originally should have. There must be another edit somewhere i think?? Not sure.
__________________
Broadside ~AkA~ Bad Karma |
|
|
|
|
|
#8 (permalink) |
|
Forum Master
|
since i do not use datts system - i am not sure where that would be at then
__________________
http://www.AoAUO.com
:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :) |
|
|
|
|
|
#11 (permalink) | |
|
Forum Expert
|
Quote:
__________________
Broadside ~AkA~ Bad Karma |
|
|
|
|
|
|
#12 (permalink) |
|
Forum Expert
|
Just wanted to let ya know this will not work with latest release of RunUO RC1 It only works with the svn. May want to change somehow in title so no one goes through same problems. I had it right just would not work till i ran a new svn
__________________
Broadside ~AkA~ Bad Karma |
|
|
|
|
|
#13 (permalink) |
|
Forum Master
|
it was designed and working in RC1 - that is what i designed it in - i did not start using the svn's until 103 - and that was long after i made this up
might be something with datt's system needing the svn to work with it though
__________________
http://www.AoAUO.com
:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :) |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|