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] Lucid Nagual's <<_All Spells System_>>

jokik

Sorceror
ok got to another error:

Line 994 unexpected preprosseser directive

hears line 990 -999

Code:
			TransformContext context = GetContext( m );

			return (context != null && context.Type == type);
		}
#endregion

		public static bool CheckCast( Mobile caster, Spell spell )
		{
			if( Factions.Sigil.ExistsOn( caster ) )
			{

think im close to solving this now.:D straight away i get fixed , will put my spellhelper.cs on here for others with the same problem
 

test444

Wanderer
you screwed it up somehow with bad copying or editing, just delete that #endregion but i told you, use rather my all file, and back up your first... you will see
 

jokik

Sorceror
ive uploaded the errors i get when using your script , maybe you can solve them?
 

Attachments

  • 1.jpg
    1.jpg
    167.1 KB · Views: 36
  • 2.jpg
    2.jpg
    96.1 KB · Views: 50
  • 3.jpg
    3.jpg
    52.5 KB · Views: 49

test444

Wanderer
do you have this

Code:
		public abstract TimeSpan CastDelayBase { get; }

in scipts/spells/base/spells.cs ?

as for sleepingbody instead of this:

Code:
		public override void SendInfoTo( NetState state )
		{
			base.SendInfoTo( state );
use this
Code:
                public override void SendInfoTo( NetState state, bool sendOplPacket )
		{
			base.SendInfoTo( state, sendOplPacket );

as for noxboxbowspell.cs instead of this

Code:
		public override void OnHit( Mobile attacker, Mobile defender )
use this
Code:
		public override void OnHit( Mobile attacker, Mobile defender, double damageBonus )
 

jokik

Sorceror
no i dont have that in spell.cs , will change the other stuff when i get back , just about to set off out for the night. :D when i get back ill try first thing
:D
 

jokik

Sorceror
worked perfectly for the sleeping body / nox bow spell. now for
Code:
public abstract TimeSpan CastDelayBase { get; }
i tried replacing something close , it says
Code:
	public virtual int CastDelayBase{ get{ return 3; } }

but i get so many errors i cant even scroll far enough to see the first error

if i plant it into the script i get an error saying
Code:
server.spells.spell already contains a definition for 'castdelaybase'

god soo close now , last error to fix and then i can get back to my shard after over a week. :D:D:D:D:D
 

test444

Wanderer
hm dnk man, much more easy is solution, install extra spellweawing, druidic and may be cleric from extra packages here, as i did..
 

test444

Wanderer
Spell.cs

Code:
		public abstract TimeSpan CastDelayBase { get; }

MagerySpell.cs

Code:
		public override TimeSpan CastDelayBase
		{
			get
			{
				return TimeSpan.FromSeconds( (3 + (int)Circle) * CastDelaySecondsPerTick );
			}
		}
 

jokik

Sorceror
god i have no idea what to do lol , if i give you my files , can you check them out see whats wrong?
ive attached them with this post
 

Attachments

  • MagerySpell.cs
    3 KB · Views: 14
  • SpellRegistry.cs
    5 KB · Views: 12
  • Spell.cs
    26.1 KB · Views: 13

test444

Wanderer
just replace this in spell.cs

Code:
	public virtual int CastDelayBase{ get{ return 3; } }

with this man.........................................................................................

Code:
		public abstract TimeSpan CastDelayBase { get; }

and if there will be again errors, get rid of this package
 

jokik

Sorceror
ha ha well two more errors but i believe you will be able to fix these , have attached pic.:D
 

Attachments

  • eror.jpg
    eror.jpg
    50.3 KB · Views: 55
Top