RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Rune Crafting & Enchanting system

Nikoru

Squire
Hey

Hey there I tryed adding your cap:

else if(Weapon.Attributes.HitFireball <= 50 )
SendMessage( "You cannot enhance that any further.");

But it did not work it gave me the following error:

CS1525: Line 256: Invalid expression term 'else'
CS1002: Line 256: ; expected

Anyone know what that error means?
 

chost

Wanderer
Nikoru;826256 said:
Hey there I tryed adding your cap:

else if(Weapon.Attributes.HitFireball <= 50 )
SendMessage( "You cannot enhance that any further.");

But it did not work it gave me the following error:

CS1525: Line 256: Invalid expression term 'else'
CS1002: Line 256: ; expected

Anyone know what that error means?


try this

....from.SendMessage( "You cannot enhance that in it's current location." );
}

else if (Weapon.WeaponAttributes.HitFireball >= 50)
{
from.SendMessage("You cannot enhance that any further.");
}


else....
 

shamus252

Wanderer
Getting an error with runuomondains.

Code:
RunUO - [www.runuo.com] Version 2.1, Build 3785.32387
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 4 64-bit processors
Scripts: Compiling C# scripts...failed (2 errors, 0 warnings)
Errors:
 + Rune Crafting/RuneCrafter/RuneCrafter.cs:
    CS1715: Line 10: 'Server.Mobiles.RuneCrafter.SBInfos': type must be 'System.
Collections.Generic.List<Server.Mobiles.SBInfo>' to match overridden member 'Ser
ver.Mobiles.BaseVendor.SBInfos'
    CS0534: Line 7: 'Server.Mobiles.RuneCrafter' does not implement inherited ab
stract member 'Server.Mobiles.BaseVendor.SBInfos.get'
 + Rune Crafting/RuneCrafter/SBRuneCraft.cs:
    CS1715: Line 17: 'Server.Mobiles.SBRuneCraft.BuyInfo': type must be 'System.
Collections.Generic.List<Server.Mobiles.GenericBuyInfo>' to match overridden mem
ber 'Server.Mobiles.SBInfo.BuyInfo'
    CS0534: Line 7: 'Server.Mobiles.SBRuneCraft' does not implement inherited ab
stract member 'Server.Mobiles.SBInfo.BuyInfo.get'
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
 

uocarnage

Squire
success

is ther anyway to set the chance the item will break? i notice the randome part but ther should b a way to make it like 75% chance of breaking every time right?
Code:
						int DestroyChance = Utility.Random( 5 );

						if ( DestroyChance > 0 ) // Success
						{
							int augment = ( ( Utility.Random( 3 ) ) * scalar ) + 1;
							int augmentper = ( ( Utility.Random( 5 ) ) * scalar ) + 5;

							Weapon.WeaponAttributes.DurabilityBonus += augmentper; from.SendMessage( "The Aglo Rune enhances your weapon." );

				                  	from.PlaySound( 0x1F5 );
			        	          	m_AgloRune.Delete();
			          		}

						else // Fail
this is in a specific rune tho.
 

Jukas

Sorceror
I am having a problem mining up the rough stones. I added the line to the Mining.cs. Mined for over an hour and got no rough stones. Any Ideas what the problem could be. I have adjusted the number up and down with no luck. Is there another place it needs to be added.
 

Jukas

Sorceror
I cant mine the rune stones. I did every thing it said in the post but it does not mine for me. the crafting part works. I could always put out the eley, But then players would camp on it. So I am not using the scripts.
 

NOOOBY123

Wanderer
Beat Me To It...

Aw man, I JUST finished making a system like this. I also called it the Enchantment System. Looks like I'll have to go dig around in my bag of creativity for a fresher idea since you beat me to the punch. Heh.

Actually, I like that you used the runes, I didn't do that with my system. I'll install this when I get home from work later and see if it beats my version (no doubt it will, heh).

Good work from a glance though.



Man i think i seen you post this message heaps do u really have these original ideas lol
 

Macil

Sorceror
This system went in a working shard and all it did was cause fights and chaos between players and resulting in the removal of this hidious s cri0pt it is sooo unbalanced for any shard with any sensibilty it needs to be modified so that u can only add 2 runes or less and high chance of breaking each time as players are too overpowered with this system

I actually later went on to develop a checks and balance system with a friend of mine. We assigned a point system value to each stat that could be enchanted on the item capping it at a total cap. I then took that a step further after a bit of testing and felt it would be more efficient to keep the enchantments to jewelry only.

"Man i think i seen you post this message heaps do u really have these original ideas lol" Whats that about? lol
 

Chemoshe

Wanderer
Don't go off topic about that now, I'm trying to run this on RunUO 2.1 but I'm getting the same error as Shamus252 previously in this forum. Anyone with a solution?

RunUO - [www.runuo.com] Version 2.1, Build 3785.32387 Core: Running on .NET Framework Version 2.0.50727 Core: Optimizing for 4 64-bit processors Scripts: Compiling C# scripts...failed (2 errors, 0 warnings) Errors: + Rune Crafting/RuneCrafter/RuneCrafter.cs: CS1715: Line 10: 'Server.Mobiles.RuneCrafter.SBInfos': type must be 'System. Collections.Generic.List<Server.Mobiles.SBInfo>' to match overridden member 'Ser ver.Mobiles.BaseVendor.SBInfos' CS0534: Line 7: 'Server.Mobiles.RuneCrafter' does not implement inherited ab stract member 'Server.Mobiles.BaseVendor.SBInfos.get' + Rune Crafting/RuneCrafter/SBRuneCraft.cs: CS1715: Line 17: 'Server.Mobiles.SBRuneCraft.BuyInfo': type must be 'System. Collections.Generic.List<Server.Mobiles.GenericBuyInfo>' to match overridden mem ber 'Server.Mobiles.SBInfo.BuyInfo' CS0534: Line 7: 'Server.Mobiles.SBRuneCraft' does not implement inherited ab stract member 'Server.Mobiles.SBInfo.BuyInfo.get' Scripts: One or more scripts failed to compile or no script files were found. - Press return to exit, or R to try again.
 

Jukas

Sorceror
The error is in your SBRunCrfater. you need to change it to look like this.



using
System;
using
System.Collections.Generic;
using
Server.Items;
namespace
Server.Mobiles
{
public class SBRuneCraft
: SBInfo
{
private List<GenericBuyInfo> m_BuyInfo = new
InternalBuyInfo(); private IShopSellInfo m_SellInfo = new
InternalSellInfo(); public
SBRuneCraft()
{
}
public override IShopSellInfo SellInfo { get { return
m_SellInfo; } } public override List<GenericBuyInfo> BuyInfo { get { return
m_BuyInfo; } } public class InternalBuyInfo
: ArrayList
{
public
InternalBuyInfo()
{
Add(new GenericBuyInfo( typeof
( ScribesPen ), 8, 20, 0xFBF, 0 ) );
Add(new GenericBuyInfo( typeof
( BlankScroll ), 5, 999, 0x0E34, 0 ) );
Add(new GenericBuyInfo( typeof
( RuneChisel ), 5000, 20, 0x10E7, 0xB92 ) );
Add(new GenericBuyInfo( typeof
( BlankRune ), 15, 999, 0x1726, 0x3e8 ) );
//Add( new GenericBuyInfo( "1041267", typeof( Runebook ), 3500, 10, 0xEFA, 0x461 ) );
}
}
public class InternalSellInfo
: GenericSellInfo
{
public
InternalSellInfo()
{
Add(typeof
( ScribesPen ), 4 );
Add(typeof
( BlankRune ), 3 );
Add(typeof
( RoughStone ), 8 );
Add(typeof
( RuneChisel ), 9 );
Add(typeof
( BlankScroll ), 3 );
}
}
}
}
 

svnstrms

Sorceror
Tried to use these files with my Runuo 2.1 ML server. Recieved The following error.
Errors:
* Mobiles/Vendors/SBInfo/SBRunCraft.cs:
CS0246: Line 22: The Type or namespace name 'ArrayList' could not be found
(are you missing a using directive or an assembly reference?)

So like a good noob I went to my file and changed line 22 from this

public override IShopSellInfo SellInfo { get { return
m_SellInfo; } } public override List<GenericBuyInfo> BuyInfo { get { return
m_BuyInfo; } } public class InternalBuyInfo
: ArrayList
{

to this

public override IShopSellInfo SellInfo { get { return
m_SellInfo; } } public override List<GenericBuyInfo> BuyInfo { get { return
m_BuyInfo; } } public class InternalBuyInfo
: GenericBuyInfo
{

that took care of that error but gave me these again (the whole reason I tried the new files from Jukas)

Errors:
+ Rune Crafting/RuneCrafter/RuneCrafter.cs:
CS1715: Line 10: 'Server.Mobiles.RuneCrafter.SBInfos': type must be 'System.
Collections.Generic.List<Server.Mobiles.SBInfo>' to match overridden member 'Ser
ver.Mobiles.BaseVendor.SBInfos'
CS0534: Line 7: 'Server.Mobiles.RuneCrafter' does not implement inherited ab
stract member 'Server.Mobiles.BaseVendor.SBInfos.get'

Can anyone point me in the right direction? Thanks :)

Update:

OK I've got a work around that will do for now .. I just removed the Runecrafter.cs and SB info. Everything else seems to work fine.
 

Spookyrobert

Sorceror
Tried to use these files with my Runuo 2.1 ML server. Recieved The following error.
Errors:
* Mobiles/Vendors/SBInfo/SBRunCraft.cs:
CS0246: Line 22: The Type or namespace name 'ArrayList' could not be found
(are you missing a using directive or an assembly reference?)

So like a good noob I went to my file and changed line 22 from this

public override IShopSellInfo SellInfo { get { return
m_SellInfo; } } public override List<GenericBuyInfo> BuyInfo { get { return
m_BuyInfo; } } public class InternalBuyInfo
: ArrayList
{

to this

public override IShopSellInfo SellInfo { get { return
m_SellInfo; } } public override List<GenericBuyInfo> BuyInfo { get { return
m_BuyInfo; } } public class InternalBuyInfo
: GenericBuyInfo
{

that took care of that error but gave me these again (the whole reason I tried the new files from Jukas)

Errors:
+ Rune Crafting/RuneCrafter/RuneCrafter.cs:
CS1715: Line 10: 'Server.Mobiles.RuneCrafter.SBInfos': type must be 'System.
Collections.Generic.List<Server.Mobiles.SBInfo>' to match overridden member 'Ser
ver.Mobiles.BaseVendor.SBInfos'
CS0534: Line 7: 'Server.Mobiles.RuneCrafter' does not implement inherited ab
stract member 'Server.Mobiles.BaseVendor.SBInfos.get'

Can anyone point me in the right direction? Thanks :)

Update:

OK I've got a work around that will do for now .. I just removed the Runecrafter.cs and SB info. Everything else seems to work fine.
Did you change
Code:
using System.Collections;
to
Code:
using System.Collections.Generic;
on both the vendor and the SBinfo? If you did, just compare the 2.1 vendor and SBinfo files to these to the ones in this pack. There should be only couple of minor differences. It's a common error in update to 2.1 they changed the vendors just a little.
 

svnstrms

Sorceror
Going to try this now, thanks
 

svnstrms

Sorceror
OK I did some more editing with the aid of WinMerge to check for inconstancies against other SBvendor.cs files and made several edits to the SBrunecraft.cs. This is now working with my server. Thanks to SpookyRobert for the nudge in the right direction. Posting the updated versions.
 

Attachments

  • RuneCrafter.cs
    1.3 KB · Views: 64
  • SBRuneCraft.cs
    1.3 KB · Views: 64
hi loved this idea but im having some errors can someone help please ?? here is the errors im gettin

RunUO - [www.runuo.com] Version 2.1, Build 3995.28114
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (2 errors, 0 warnings)
Errors:
+ Custom/RuneCrafter/RuneCrafter.cs:
CS1715: Line 10: 'Server.Mobiles.RuneCrafter.SBInfos': type must be 'System.
Collections.Generic.List<Server.Mobiles.SBInfo>' to match overridden member 'Ser
ver.Mobiles.BaseVendor.SBInfos'
CS0534: Line 7: 'Server.Mobiles.RuneCrafter' does not implement inherited ab
stract member 'Server.Mobiles.BaseVendor.SBInfos.get'
+ Custom/RuneCrafter/SBRuneCraft.cs:
CS1715: Line 17: 'Server.Mobiles.SBRuneCraft.BuyInfo': type must be 'System.
Collections.Generic.List<Server.Mobiles.GenericBuyInfo>' to match overridden mem
ber 'Server.Mobiles.SBInfo.BuyInfo'
CS0534: Line 7: 'Server.Mobiles.SBRuneCraft' does not implement inherited ab
stract member 'Server.Mobiles.SBInfo.BuyInfo.get'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.



nvm i got this workin didnt scroll threw to page 3 which is the more updated post :) thanks was hopin to finally get a script added an not have to redo the whole thing
 
Top