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!

[RunUO 2.0 RC1] [OSI] Talisman

MalGanis

Sorceror
Actually i do :), BUT its not completed, coz ther's like millions of thos tiny quests to do and tons of stuff to script...
 

Kenko

Page
MalGanis said:
Actually i do :), BUT its not completed, coz ther's like millions of thos tiny quests to do and tons of stuff to script...
OMG, sorry to ask, but will you release them when you complete them? *drools*
 

MalGanis

Sorceror
I made some changes and tried to upload them but somehow i cant seem to find the button to do that :(. Can anyone help me?
 

garthro

Wanderer
why the problem

RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
+ custom script/Talismans/Talisman/Items/BaseTalisman.cs:
CS0122: Line 939: 'Server.Spells.Second.ProtectionSpell.m_Table' is inaccess
ible due to its protection level
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

i get this error when i start up i did everything like u said
 

Enkel

Wanderer
Hi, when I first used your script i got a PlayerMobile error, i replaced yours with mine and now i dint get the same error. Now i get this:
Code:
RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts...failed (2 errors, 0 warnings)
Errors:
 + Engines/Harvest/Lumberjacking.cs:
    CS0117: Line 89: 'Server.Engines.Harvest.HarvestDefinition' does not contain
 a definition for 'RaceBonus'
 + Misc/Titles.cs:
    CS0246: Line 71: The type or namespace name 'BaseTalisman' could not be foun
d (are you missing a using directive or an assembly reference?)
    CS0246: Line 73: The type or namespace name 'BaseTalisman' could not be foun
d (are you missing a using directive or an assembly reference?)
    CS0246: Line 73: The type or namespace name 'BaseTalisman' could not be foun
d (are you missing a using directive or an assembly reference?)
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.

I added you on MSN for further help, anyone else that can help add my msn:
[email protected]
 

MalGanis

Sorceror
You forgot something:

add
Code:
using Server.Items;
to beginning of the file. About Lumberjacking.cs: you shouldn't replace, you should only copy that function in #region Mondain's Legacy to your lumber.cs.
 

WhoopeR

Wanderer
Ok little problem :D

I used merge tool to check those files and after many changes i got these
Code:
problems: Scripts: Compiling C# scripts...failed (6 errors, 0 warnings)
Errors:
 + Mobiles/Animals/Mounts/LesserHiryu.cs:
    CS0506: Line 89: 'Server.Mobiles.LesserHiryu.GetControlChance(Server.Mobile)
': cannot override inherited member 'Server.Mobiles.BaseCreature.GetControlChanc
e(Server.Mobile)' because it is not marked virtual, abstract, or override
 + Mobiles/Animals/Mounts/Ridgeback.cs:
    CS0506: Line 48: 'Server.Mobiles.Ridgeback.GetControlChance(Server.Mobile)':
 cannot override inherited member 'Server.Mobiles.BaseCreature.GetControlChance(
Server.Mobile)' because it is not marked virtual, abstract, or override
 + Mobiles/Animals/Mounts/SavageRidgeback.cs:
    CS0506: Line 48: 'Server.Mobiles.SavageRidgeback.GetControlChance(Server.Mob
ile)': cannot override inherited member 'Server.Mobiles.BaseCreature.GetControlC
hance(Server.Mobile)' because it is not marked virtual, abstract, or override
 + Mobiles/Animals/Mounts/ScaledSwampDragon.cs:
    CS0506: Line 47: 'Server.Mobiles.ScaledSwampDragon.GetControlChance(Server.M
obile)': cannot override inherited member 'Server.Mobiles.BaseCreature.GetContro
lChance(Server.Mobile)' because it is not marked virtual, abstract, or override
 + Mobiles/Animals/Mounts/SwampDragon.cs:
    CS0506: Line 145: 'Server.Mobiles.SwampDragon.GetControlChance(Server.Mobile
)': cannot override inherited member 'Server.Mobiles.BaseCreature.GetControlChan
ce(Server.Mobile)' because it is not marked virtual, abstract, or override
 + Mobiles/Monsters/SE/FireBeetle.cs:
    CS0506: Line 80: 'Server.Mobiles.FireBeetle.GetControlChance(Server.Mobile)'
: cannot override inherited member 'Server.Mobiles.BaseCreature.GetControlChance
(Server.Mobile)' because it is not marked virtual, abstract, or override
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again
 

MalGanis

Sorceror
You can its just not displayed.

add this
Code:
else if ( Insured )
	list.Add( 1061682 ); // <b>insured</b>
after this
Code:
if ( LootType == LootType.Blessed )
	list.Add( 1038021 ); // blessed
 

Avelyn

Sorceror
I found a small problem.

In BaseCreature.cs you have
Code:
if (  from.Talisman is BaseTalisman )
			{
				BaseTalisman talisman = (BaseTalisman) from.Talisman;				
				
				if ( talisman.Slayer != TalismanSlayerName.None && TalismanSlayer.Check( talisman.Slayer, this ) )
					amount *= 2;
			}

This needs to be
Code:
if ( from != null && from.Talisman is BaseTalisman )

Otherwise if something damages a basecreature such as solen acid the server will crash.

So far nice system! Thanks!
 

Avelyn

Sorceror
Do you know of a reason that when you add the talisman it doesnt show your skill updating? It's wierd weps and clothes.. all show that your skill went up and updates the skill gump. This doesnt even though the code looks correct. Does anyone know how that could happen?
 

Cheetah2003

Wanderer
Avelyn;653387 said:
I found a small problem.

In BaseCreature.cs you have
Code:
if (  from.Talisman is BaseTalisman )
			{
				BaseTalisman talisman = (BaseTalisman) from.Talisman;				
				
				if ( talisman.Slayer != TalismanSlayerName.None && TalismanSlayer.Check( talisman.Slayer, this ) )
					amount *= 2;
			}

This needs to be
Code:
if ( from != null && from.Talisman is BaseTalisman )

Otherwise if something damages a basecreature such as solen acid the server will crash.

So far nice system! Thanks!

This same bug is in PlayerMobile.cs too. In the same method. And the fix is the same as well. I didn't know about the one in BaseCreature, so thanks. :)
 
Top