Resource icon

ACC... public gates and spell system. 2013-12-08

No permission to download

Joshua

Well-Known Member
Sep 13, 2014
562
64
34
Bountiful, Utah
Shard Name
My Own Shard
btw on my last post I did figure out the code to add custom maps ;) its not as strait forward , if anyone is interested pm me directly.
 

Dramoor

Well-Known Member
Apr 4, 2014
73
5
38
Just a tip. But using the Cleric Spell "BanishEvil" It will Delete the ShadowKnight no matter what his health is at as he is weak to Silver. Thus the bigger part of the Gauntlet being something that is more needing to be played rather than just a few rail scripts to get around that part that isn't as easy to bypass the tracking and revealing. Just a heads up I noticed it does. I just changed ShadowKnights to be not weak against Silver to fix on my end.
 

decker86

Member
Jan 20, 2014
16
1
32
I get this error. Can someone help me?

ServUO - [https://www.servuo.com] Version 0.5, Build 6344.19248
Core: Optimizing for 8 64-bit processors
RandomImpl: CSPRandom (Software)
Core: Loading config...
Scripts: Compiling C# scripts...Failed with: 1 errors, 1 warnings
Warnings:
+ custom/ACC Systems/Complete Spell System/-=+ 03 Systems/Avatar/AvatarSpell.cs:
CS0114: Line 115: 'Server.ACC.CSS.Systems.Avatar.AvatarSpell.SendCastEffect()' nasconde il membro ereditato 'Server.Spells.Spell.SendCastEffect()'. Per consentire al membro corrente di eseguire l'override di tale implementazione, aggiungere la parola chiave override, altrimenti aggiungere la parola chiave new.
Errors:
+ custom/ACC Systems/Complete Spell System/-=+ 03 Systems/Ranger/Spells/NoxBowSpell.cs:
CS0115: Line 101: 'Server.ACC.CSS.Systems.Ranger.RangerNoxBowSpell.RangerNoxBow.OnHit(Server.Mobile, Server.Mobile, double)': impossibile trovare un metodo adeguato per eseguire l'override.
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

The error is printed in italian, however it says "You can not find an appropriate method to override"
 

zerodowned

Moderator
ServUO Developer
Jun 28, 2014
1,754
206
I get this error. Can someone help me?

ServUO - [https://www.servuo.com] Version 0.5, Build 6344.19248
Core: Optimizing for 8 64-bit processors
RandomImpl: CSPRandom (Software)
Core: Loading config...
Scripts: Compiling C# scripts...Failed with: 1 errors, 1 warnings
Warnings:
+ custom/ACC Systems/Complete Spell System/-=+ 03 Systems/Avatar/AvatarSpell.cs:
CS0114: Line 115: 'Server.ACC.CSS.Systems.Avatar.AvatarSpell.SendCastEffect()' nasconde il membro ereditato 'Server.Spells.Spell.SendCastEffect()'. Per consentire al membro corrente di eseguire l'override di tale implementazione, aggiungere la parola chiave override, altrimenti aggiungere la parola chiave new.
Errors:
+ custom/ACC Systems/Complete Spell System/-=+ 03 Systems/Ranger/Spells/NoxBowSpell.cs:
CS0115: Line 101: 'Server.ACC.CSS.Systems.Ranger.RangerNoxBowSpell.RangerNoxBow.OnHit(Server.Mobile, Server.Mobile, double)': impossibile trovare un metodo adeguato per eseguire l'override.
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

The error is printed in italian, however it says "You can not find an appropriate method to override"
change SendCastEffect from public virtual void to: public override void SendCastEffect()

for nox bow change: public override void OnHit( Mobile attacker, Mobile defender, double damageBonus )
to: public override void OnHit(Mobile attacker, IDamageable defender, double damageBonus)

also for the noxbow find: public override int OldSpeed{ get{ return 20; } }
and add: public override float MlSpeed { get { return 4.25f; } }

otherwise if you're using ML or anything newer it will have a speed of 0 and never shoot
 

Joshua

Well-Known Member
Sep 13, 2014
562
64
34
Bountiful, Utah
Shard Name
My Own Shard
Would it be too challenging to add in the other distro spell systems? Bushido / Ninja / Mysticism ? so all the book gumps match
 

TwilightRaven

Well-Known Member
Oct 29, 2016
438
7
36
Pennsylvania
Shard Name
Guardia
Hey this looks awesome but I'm getting some compile errrors:

--------------------------------------------------------------------------------
ServUO - [https://www.servuo.com] Version 0.5, Build 6396.27340
Core: Optimizing for 8 64-bit processors
RandomImpl: CSPRandom (Software)
Core: Loading config...
Scripts: Compiling C# scripts...Failed with: 11 errors, 2 warnings
Warnings:
+ Multis/Boats/BaseBoat.cs:
CS0105: Line 11: The using directive for 'Server.Network' appeared previously in this namespace
+ Customs/[ServUO.com]-Hue Center/Hue Center/HueListGumpGold.cs:
CS0219: Line 90: The variable 'bought' is assigned but its value is never used
CS0472: Line 141: The result of the expression is always 'false' since a value of type 'int' is never equal to 'null' of type 'int?'
Errors:
+ Customs/[ServUO.com]-ACC Systems/ACC Systems/Complete Spell System/-=+ 03 Systems/Ancient/Spells/CharmSpell.cs:
CS0117: Line 160: 'Server.Layer' does not contain a definition for 'Unused_xF'
CS0117: Line 253: 'Server.Layer' does not contain a definition for 'Unused_xF'
CS0117: Line 316: 'Server.Layer' does not contain a definition for 'Unused_xF'
+ Customs/[ServUO.com]-ACC Systems/ACC Systems/Complete Spell System/-=+ 03 Systems/Ancient/Spells/CloneSpell.cs:
CS0117: Line 139: 'Server.Layer' does not contain a definition for 'Unused_xF'
CS0117: Line 278: 'Server.Layer' does not contain a definition for 'Unused_xF'
+ Customs/[ServUO.com]-ACC Systems/ACC Systems/Complete Spell System/-=+ 03 Systems/Ancient/Spells/MassCharmSpell.cs:
CS0117: Line 152: 'Server.Layer' does not contain a definition for 'Unused_xF'
CS0117: Line 212: 'Server.Layer' does not contain a definition for 'Unused_xF'
+ Customs/[ServUO.com]-ACC Systems/ACC Systems/Complete Spell System/-=+ 03 Systems/Ancient/Spells/MassMightSpell.cs:
CS1501: Line 77: No overload for method 'AddStatBonus' takes 3 arguments
CS0117: Line 77: 'Server.Spells.SpellHelper' does not contain a definition for 'DisableSkillCheck'
CS1501: Line 78: No overload for method 'AddStatBonus' takes 3 arguments
CS1501: Line 79: No overload for method 'AddStatBonus' takes 3 arguments
CS0117: Line 79: 'Server.Spells.SpellHelper' does not contain a definition for 'DisableSkillCheck'
+ Customs/[ServUO.com]-ACC Systems/ACC Systems/Complete Spell System/-=+ 03 Systems/Ancient/Spells/PeerSpell.cs:
CS0117: Line 155: 'Server.Layer' does not contain a definition for 'Unused_xF'
CS0117: Line 223: 'Server.Layer' does not contain a definition for 'Unused_xF'
+ Customs/[ServUO.com]-ACC Systems/ACC Systems/Complete Spell System/-=+ 03 Systems/Avatar/AvatarSpell.cs:
CS0029: Line 92: Cannot implicitly convert type 'System.DateTime' to 'long'
+ Customs/[ServUO.com]-ACC Systems/ACC Systems/Complete Spell System/-=+ 03 Systems/Cleric/Cleric/ClericSpell.cs:
CS0029: Line 94: Cannot implicitly convert type 'System.DateTime' to 'long'
+ Customs/[ServUO.com]-ACC Systems/ACC Systems/Complete Spell System/-=+ 03 Systems/Druid/Familiars/SkitteringHopperFamiliar.cs:
CS0029: Line 92: Cannot implicitly convert type 'System.DateTime' to 'long'
+ Customs/[ServUO.com]-ACC Systems/ACC Systems/Complete Spell System/-=+ 03 Systems/Druid/Spells/HollowReedSpell.cs:
CS1501: Line 48: No overload for method 'AddStatBonus' takes 3 arguments
CS1501: Line 49: No overload for method 'AddStatBonus' takes 3 arguments
+ Customs/[ServUO.com]-ACC Systems/ACC Systems/Complete Spell System/-=+ 03 Systems/Ranger/Familars/PackRat.cs:
CS0029: Line 95: Cannot implicitly convert type 'System.DateTime' to 'long'
+ Customs/[ServUO.com]-ACC Systems/ACC Systems/Complete Spell System/-=+ 03 Systems/Rogue/Spells/Charm.cs:
CS0117: Line 168: 'Server.Layer' does not contain a definition for 'Unused_xF'
CS0117: Line 260: 'Server.Layer' does not contain a definition for 'Unused_xF'
CS0117: Line 341: 'Server.Layer' does not contain a definition for 'Unused_xF'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 

NoSkillNewbie

Active Member
May 7, 2017
31
4
I use AngelicFaith to transform into Angel but cant transform back not sure where the problem is in the script
I tried Tick count & utcNow but maybe I did that wrong this is what it looks like when I use spell

is this a bug or am not doing the right thing to transform back into Elf I assumed I just recast angelicform

I noticed this as well when I first started using the system. I've attached my AngelicFaithSpell.cs below that works for me. Casting once changes your form with the benefits. Another casts removes the benefits and changes your form back.

Code:
using System;
using System.Collections;
using Server.Items;
using Server.Mobiles;
using Server.Spells;
using Server.Spells.Seventh;

namespace Server.ACC.CSS.Systems.Cleric
{
	public class ClericAngelicFaithSpell : ClericSpell
	{
		private static SpellInfo m_Info = new SpellInfo(
		                                                "Angelic Faith", "Angelus Terum",
		                                                //SpellCircle.Eighth,
		                                                212,
		                                                9041
		                                               );

        public override SpellCircle Circle
        {
            get { return SpellCircle.Eighth; }
        }

		public override int RequiredTithing{ get{ return 100; } }
		public override double RequiredSkill{ get{ return 80.0; } }
		
		public override double CastDelayFastScalar { get { return 1.0; } }
		public override int CastRecoveryBase { get { return (Core.ML ? 5 : base.CastRecoveryBase); } }
		public override TimeSpan CastDelayBase
        {
            get
            {
                return TimeSpan.FromSeconds(2.0);
            }
        }

		private static Hashtable m_Table = new Hashtable();

		public ClericAngelicFaithSpell( Mobile caster, Item scroll ) : base( caster, scroll, m_Info )
		{
		}

		public static bool HasEffect( Mobile m )
		{
			return ( m_Table[m] != null );
		}

		public static void RemoveEffect( Mobile m )
		{
			if ( TransformationSpellHelper.UnderTransformation(m) ) TransformationSpellHelper.RemoveContext(m, true);
			
			m.BodyMod = 0;
			
			object[] mods = (object[])m_Table[m];

			if ( mods != null )
			{
				m.RemoveStatMod( ((StatMod)mods[0]).Name );
				m.RemoveStatMod( ((StatMod)mods[1]).Name );
				m.RemoveStatMod( ((StatMod)mods[2]).Name );
				m.RemoveSkillMod( (SkillMod)mods[3] );
				m.RemoveSkillMod( (SkillMod)mods[4] );
				m.RemoveSkillMod( (SkillMod)mods[5] );
			}

			m_Table.Remove( m );

			m.EndAction( typeof( ClericAngelicFaithSpell ) );
		}

		public override bool CheckCast()
		{
			if ( Caster.BodyMod == 123 ) 
			{
				RemoveEffect(Caster);
				if ( TransformationSpellHelper.UnderTransformation(Caster) ) TransformationSpellHelper.RemoveContext(Caster, true);
				if ( Caster.BodyMod != 0 ) Caster.BodyMod = 0;
				return false;
			}
			
            if (!TransformationSpellHelper.CheckCast(Caster, this))
                return false;

            return base.CheckCast();
		}

		public override void OnCast()
		{	
            TransformationSpellHelper.OnCast(Caster, this);
			
            if ( CheckSequence() )
			{
                RemoveEffect(Caster);

				object[] mods = new object[]
				{
					new StatMod( StatType.Str, "[Cleric] Str Offset", 20, TimeSpan.Zero ),
					new StatMod( StatType.Dex, "[Cleric] Dex Offset", 20, TimeSpan.Zero ),
					new StatMod( StatType.Int, "[Cleric] Int Offset", 20, TimeSpan.Zero ),
					new DefaultSkillMod( SkillName.Macing, true, 20 ),
					new DefaultSkillMod( SkillName.Healing, true, 20 ),
					new DefaultSkillMod( SkillName.Anatomy, true, 20 )
				};

				m_Table[Caster] = mods;

				Caster.AddStatMod( (StatMod)mods[0] );
				Caster.AddStatMod( (StatMod)mods[1] );
				Caster.AddStatMod( (StatMod)mods[2] );
				Caster.AddSkillMod( (SkillMod)mods[3] );
				Caster.AddSkillMod( (SkillMod)mods[4] );
				Caster.AddSkillMod( (SkillMod)mods[5] );

				double span = 10.0 * ClericDivineFocusSpell.GetScalar( Caster );
				new InternalTimer( Caster, TimeSpan.FromMinutes( (int)span ) ).Start();

				IMount mount = Caster.Mount;

				if ( mount != null )
					mount.Rider = null;

				Caster.BodyMod = 123;
				Caster.BeginAction( typeof( ClericAngelicFaithSpell ) );
				Caster.PlaySound( 0x165 );
				Caster.FixedParticles( 0x3728, 1, 13, 0x480, 92, 3, EffectLayer.Head );
			}

            FinishSequence();
		}

		private class InternalTimer : Timer
		{
			private Mobile m_Owner;
			private DateTime m_Expire;

			public InternalTimer( Mobile owner, TimeSpan duration ) : base( TimeSpan.Zero, TimeSpan.FromSeconds( 0.1 ) )
			{
				m_Owner = owner;
				m_Expire = DateTime.Now + duration;
			}

			protected override void OnTick()
			{
				if ( DateTime.Now >= m_Expire )
				{
					ClericAngelicFaithSpell.RemoveEffect( m_Owner );
					Stop();
				}
			}
		}
	}
}
[doublepost=1521860476][/doublepost]Bug fixes for Public Gates. So I noticed if you use a UOSteam macro and send the system bad information you can crash your shard 100% of the time. I've fixed that issue and a few others. I've also added a personal teleporter which works exactly like the moongates but is portable. It also will not be removed if locked down when someone [gengates.

Other changes. I modified [csscast to [cs which will cast all the default spells without a key and the custom spells once a key is set. I also modified a few of the cleric spells such as Angelic Faith to not keep you stuck in form.
 

Attachments

PyrO

Well-Known Member
Jan 27, 2015
1,074
75
Well first you are a little impatient for giving zero information of whats not working, also its a custom system so we dont even know if it was setup right in your server instance.

So what is not working? "not work..." is not really saying anything. Does it not work at all, just some parts of it not. No damage? ...
 
  • Like
Reactions: Dramoor

Arcadius

Gold Donator
Oct 22, 2016
205
2
38
I'm getting the following errors on compile:

Code:
------------------------------------------------------------------------------------------------------------------------
ServUO - [https://www.servuo.com] Version 0.5, Build 6472.26597
Core: Optimizing for 4 64-bit processors
RandomImpl: CSPRandom (Software)
Core: Loading config...
Scripts: Compiling C# scripts...Failed with: 10 errors, 3 warnings
Warnings:
+ Customs/RunUO Archived Customs/custom detect hidden/CustomDetectHidden/CustomDetectHidden.cs:
    CS0105: Line 14: The using directive for 'Server.Mobiles' appeared previously in this namespace
+ Customs/RunUO Archived Customs/life stone/Life_Stone_System/Life Stone System/Core/Core.cs:
    CS0105: Line 12: The using directive for 'Server.Commands' appeared previously in this namespace
+ Customs/singles/[ServUO.com]-GraniteFurnessAddon.cs:
    CS0105: Line 2: The using directive for 'System' appeared previously in this namespace
Errors:
+ Customs/[ServUO.com]-ACC Systems/ACC Systems/[ServUO.com]-ACC Systems/ACC/Icons Module/ApplyIcons.cs:
    CS0234: Line 7: The type or namespace name 'CM' does not exist in the namespace 'Server.ACC' (are you missing an assembly reference?)
+ Customs/[ServUO.com]-ACC Systems/ACC Systems/[ServUO.com]-ACC Systems/ACC/Icons Module/IconInfo.cs:
    CS0234: Line 4: The type or namespace name 'CM' does not exist in the namespace 'Server.ACC' (are you missing an assembly reference?)
+ Customs/[ServUO.com]-ACC Systems/ACC Systems/[ServUO.com]-ACC Systems/ACC/Icons Module/IconsModule.cs:
    CS0234: Line 5: The type or namespace name 'CM' does not exist in the namespace 'Server.ACC' (are you missing an assembly reference?)
    CS0246: Line 9: The type or namespace name 'Module' could not be found (are you missing a using directive or an assembly reference?)
    CS0246: Line 62: The type or namespace name 'Module' could not be found (are you missing a using directive or an assembly reference?)
+ Customs/[ServUO.com]-ACC Systems/ACC Systems/[ServUO.com]-ACC Systems/ACC/Cast.cs:
    CS0234: Line 9: The type or namespace name 'CM' does not exist in the namespace 'Server.ACC' (are you missing an assembly reference?)
+ Customs/[ServUO.com]-ACC Systems/ACC Systems/[ServUO.com]-ACC Systems/ACC/CastCommandsModule.cs:
    CS0234: Line 5: The type or namespace name 'CM' does not exist in the namespace 'Server.ACC' (are you missing an assembly reference?)
    CS0246: Line 9: The type or namespace name 'Module' could not be found (are you missing a using directive or an assembly reference?)
    CS0246: Line 88: The type or namespace name 'Module' could not be found (are you missing a using directive or an assembly reference?)
+ Customs/[ServUO.com]-ACC Systems/ACC Systems/[ServUO.com]-ACC Systems/ACC/CastInfo.cs:
    CS0234: Line 4: The type or namespace name 'CM' does not exist in the namespace 'Server.ACC' (are you missing an assembly reference?)
+ Customs/[ServUO.com]-ACC Systems/ACC Systems/[ServUO.com]-ACC Systems/ACC/CSS.cs:
    CS0234: Line 9: The type or namespace name 'CM' does not exist in the namespace 'Server.ACC' (are you missing an assembly reference?)
+ Customs/[ServUO.com]-ACC Systems/ACC Systems/[ServUO.com]-ACC Systems/ACC/IconPlacementGump.cs:
    CS0234: Line 7: The type or namespace name 'CM' does not exist in the namespace 'Server.ACC' (are you missing an assembly reference?)
+ Customs/[ServUO.com]-ACC Systems/ACC Systems/[ServUO.com]-ACC Systems/ACC/ScrollGump.cs:
    CS0234: Line 6: The type or namespace name 'CM' does not exist in the namespace 'Server.ACC' (are you missing an assembly reference?)
+ Customs/[ServUO.com]-ACC Systems/ACC Systems/[ServUO.com]-ACC Systems/ACC/SpellIconGump.cs:
    CS0234: Line 9: The type or namespace name 'CM' does not exist in the namespace 'Server.ACC' (are you missing 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.
 

TheDoc

Gold Donator
Platinum Donator
Jun 16, 2014
257
37
43
Atlanta, Georgia
Shard Name
MAGA
Donate
Donate money to this user
Here are updated working files. This system is not mine, the download and other files in this thread are too old for ServUO publis or corrupted. I just put the same fixes in as usual. I figured someone new would want a working copy for the latest ServUO.
 

Attachments

  • Like
Reactions: Joshua