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_>>

madron;677987 said:
I did know this, I must of been up way to early today :D

Thanks for your help Lucid. There is not one player on my shard, that does not love this system!

change:
Code:
private static string[][] m_SDefs = new string[1000][]; //This should match your SpellRegistry.m_Types size

to this:
Code:
private static string[][] m_SDefs = new string[1500][]; //This should match your SpellRegistry.m_Types size

And I will have to look at something else...

Are you up to date?

http://www.runuo.com/forums/636493-post240.html
 

madron

Wanderer
I was not uptodate,, I will be now, thank you so much :)

I know my answer is in this thread so I will look for it, but players are reporting that when trying to cast a spell the class gump pops up, even when changing class or checking the same one.

I will let you know how this fix goes, thank you again.
 

madron

Wanderer
Are you up to date?

[RunUO 2.0 RC1] Lucid Nagual's <<_All Spells System_>>

This download only contains an empty folder, is that suppose to be correct?


Also in restrictions.cs I found Druid Tamer twice as sclass 4 and 8, I am not that experienced in scripting yet so this may be intentional but I need to ask if this was intentional?

also Bard is listed as sclass 8, I think these refer to spell class in reference to class restrictions? he he I am getting it I think lol
/*
_________________________________
-=(_)_______________________________)=-
/ . . . ____ . ___ _/
/~ / / / / / / )2006 /
(~ (____(___/ (____ / /___/ (
\ ----------------------------- \
\ [email protected] \
\_ =================== \
\ -Owner of "The Conjuring"- \
\_ =================== ~\
) Lucid's Mega Pack )
/~ The Mother Load v1.1(a) _/
_/_______________________________/
-=(_)_______________________________)=-

*/
using System;
using Server.Mobiles;
using Server.Items;
using Server.Network;
using Server.Spells;
using Server.ACC.CM;
using Server.Gumps;
using Server.Enums;
using Server.LucidNagual;


namespace Server.Spells
{
public class AllSpells
{
//--<Spell Restrictions>---------------------------------------------------<Start>
public static bool CheckRestriction( Mobile caster, int sclass )
{
if ( caster == null )
return false;

if ( !DataCenter.SetRestrictions )
return true;

if ( caster is BaseCreature || caster is BaseHealer || caster is BaseChampion || caster is BaseMount )
return true;

if ( caster.AccessLevel == AccessLevel.Player )
{
PlayerMobile pm = caster as PlayerMobile;
PlayerModule mod = pm.PlayerModule;

if ( mod.PlayerClasses == PlayerClasses.None )
{
caster.SendGump( new ClassGump( caster ) );
return false;
}
else if ( mod.PlayerClasses == PlayerClasses.Nomad )
{
return true;
}
else if ( sclass == 1 ) //Paladin
{
if ( mod.PlayerClasses == PlayerClasses.Paladin )
return true;
else
caster.PrivateOverheadMessage( MessageType.Regular, 0x22, false, "You do not posses the training required for these spells.", caster.NetState );
}
else if ( sclass == 2 ) //Mage
{
if ( mod.PlayerClasses == PlayerClasses.Mage )
return true;
else
caster.PrivateOverheadMessage( MessageType.Regular, 0x22, false, "You do not posses the training required for these spells.", caster.NetState );
}
else if ( sclass == 3 ) //Necromancer
{
if ( mod.PlayerClasses == PlayerClasses.Paladin )
return true;
else
caster.PrivateOverheadMessage( MessageType.Regular, 0x22, false, "You do not posses the training required for these spells.", caster.NetState );
}
else if ( sclass == 4 ) //Druid
{
if ( mod.PlayerClasses == PlayerClasses.Druid )
return true;
else
caster.PrivateOverheadMessage( MessageType.Regular, 0x22, false, "You do not posses the training required for these spells.", caster.NetState );
}
else if ( sclass == 4 ) //Druid Tamer
{
if ( mod.PlayerClasses == PlayerClasses.Tamer )
return true;
else
caster.PrivateOverheadMessage( MessageType.Regular, 0x22, false, "You do not posses the training required for these spells.", caster.NetState );
}
else if ( sclass == 5 ) //Cleric
{
if ( mod != null && mod.PlayerClasses == PlayerClasses.Cleric )
return true;
else
caster.PrivateOverheadMessage( MessageType.Regular, 0x22, false, "You do not posses the training required for these spells.", caster.NetState );
}
else if ( sclass == 6 ) //Ranger
{
if ( mod != null && mod.PlayerClasses == PlayerClasses.Ranger )
return true;
else
caster.PrivateOverheadMessage( MessageType.Regular, 0x22, false, "You do not posses the training required for these spells.", caster.NetState );
}
else if ( sclass == 7 ) //Rogue
{
if ( mod.PlayerClasses == PlayerClasses.Rogue )
return true;
else
caster.PrivateOverheadMessage( MessageType.Regular, 0x22, false, "You do not posses the training required for these spells.", caster.NetState );
}
else if ( sclass == 8 ) //Bard
{
if ( mod != null && mod.PlayerClasses == PlayerClasses.Bard )
return true;
else
caster.PrivateOverheadMessage( MessageType.Regular, 0x22, false, "You do not posses the training required for these spells.", caster.NetState );
}
else if ( sclass == 8 ) //Druid Tamer
{
if ( mod.PlayerClasses == PlayerClasses.Tamer )
return true;
else
caster.PrivateOverheadMessage( MessageType.Regular, 0x22, false, "You do not posses the training required for these spells.", caster.NetState );
}
else if ( sclass == 9 ) //Farmer
{
if ( mod != null && mod.PlayerClasses == PlayerClasses.Farmer )
return true;
else
caster.PrivateOverheadMessage( MessageType.Regular, 0x22, false, "You do not posses the training required for farming.", caster.NetState );
}
else if ( sclass == 10 ) //Laborer
{
if ( mod.PlayerClasses == PlayerClasses.Laborer )
return true;
else
caster.PrivateOverheadMessage( MessageType.Regular, 0x22, false, "You do not posses the training required for farming.", caster.NetState );
}
else if ( sclass == 19 ) //Ninja
{
if ( mod.PlayerClasses == PlayerClasses.Ninja )
return true;
else
caster.PrivateOverheadMessage( MessageType.Regular, 0x22, false, "You do not posses the training required for these spells. You must visit a Magics and Skill Trainer.", caster.NetState );
}
else if ( sclass == 20 ) //Samurai
{
if ( mod.PlayerClasses == PlayerClasses.Samurai )
return true;
else
caster.PrivateOverheadMessage( MessageType.Regular, 0x22, false, "You do not posses the training required for these spells. You must visit a Magics and Skill Trainer.", caster.NetState );
}
else
{
return false;
}
return false;
}
else //Above player status.
{
return true;
}
}
//--<Spell Restrictions>-----------------------------------------------------<End>
}


//--<Spellbook Restrictions>-----------------------------------------------<Start>
public class SpellRestrictions
{
private static ControlCenter ctrlc;

public static bool CheckRestrictions( Mobile caster, Spellbook book )
{
if ( caster == null || book == null )
return false;

if ( caster.AccessLevel > AccessLevel.Player )
return true;

if ( !DataCenter.SetRestrictions )
return true;

PlayerModule mod = ( PlayerModule )CentralMemory.GetModule( caster.Serial, typeof( PlayerModule ) );

if ( DataCenter.SetRestrictions && mod == null || mod.PlayerClasses == PlayerClasses.None )
{
caster.SendGump( new ClassGump( caster ) );
return false;
}

if ( book.SpellbookType == SpellbookType.Invalid )
return false;

if ( book.SpellbookType == SpellbookType.Regular )
{
if ( mod != null && mod.PlayerClasses == PlayerClasses.Mage )
return true;
else
{
caster.PrivateOverheadMessage( MessageType.Regular, 0x22, false, "You do not posses the training required for these spells. You must visit a Magics and Skill Trainer.", caster.NetState );
return false;
}
}
else if ( book.SpellbookType == SpellbookType.Necromancer )
{
if ( mod != null && mod.PlayerClasses == PlayerClasses.Necromancer )
return true;
else
{
caster.PrivateOverheadMessage( MessageType.Regular, 0x22, false, "You do not posses the training required for these spells. You must visit a Magics and Skill Trainer.", caster.NetState );
return false;
}
}
else if ( book.SpellbookType == SpellbookType.Paladin )
{
if ( mod != null && mod.PlayerClasses == PlayerClasses.Paladin )
return true;
else
{
caster.PrivateOverheadMessage( MessageType.Regular, 0x22, false, "You do not posses the training required for these spells. You must visit a Magics and Skill Trainer.", caster.NetState );
return false;
}
}
else if ( book.SpellbookType == SpellbookType.Avatar )
{
if ( mod != null && mod.PlayerClasses == PlayerClasses.Paladin )
return true;
else
{
caster.PrivateOverheadMessage( MessageType.Regular, 0x22, false, "You do not posses the training required for these spells. You must visit a Magics and Skill Trainer.", caster.NetState );
return false;
}
}
else if ( book.SpellbookType == SpellbookType.Ninja )
{
if ( mod != null && mod.PlayerClasses == PlayerClasses.Ninja )
return true;
else
{
caster.PrivateOverheadMessage( MessageType.Regular, 0x22, false, "You do not posses the training required for these spells. You must visit a Magics and Skill Trainer.", caster.NetState );
return false;
}
}
else if ( book.SpellbookType == SpellbookType.Samurai )
{
if ( mod != null && mod.PlayerClasses == PlayerClasses.Samurai )
return true;
else
{
caster.PrivateOverheadMessage( MessageType.Regular, 0x22, false, "You do not posses the training required for these spells. You must visit a Magics and Skill Trainer.", caster.NetState );
return false;
}
}
else if ( book.SpellbookType == SpellbookType.Druid )
{
if ( mod != null && mod.PlayerClasses == PlayerClasses.Tamer )
return true;
else
{
caster.PrivateOverheadMessage( MessageType.Regular, 0x22, false, "You do not posses the training required for these spells. You must visit a Magics and Skill Trainer.", caster.NetState );
return false;
}
}
else if ( book.SpellbookType == SpellbookType.Ancient )
{
if( caster.AccessLevel <= AccessLevel.Seer )
{
caster.PrivateOverheadMessage( MessageType.Regular, 0x22, false, "You are allowed to use this.", caster.NetState );
return false;
}
else if( caster.AccessLevel >= AccessLevel.Administrator )
return true;
}
else if ( book.SpellbookType == SpellbookType.Cleric )
{
if ( mod != null && mod.PlayerClasses == PlayerClasses.Cleric )
return true;
else
{
caster.PrivateOverheadMessage( MessageType.Regular, 0x22, false, "You do not posses the training required for these spells. You must visit a Magics and Skill Trainer.", caster.NetState );
return false;
}
}
else if ( book.SpellbookType == SpellbookType.Song )
{
if ( mod != null && mod.PlayerClasses == PlayerClasses.Tamer )
return true;
else
{
caster.PrivateOverheadMessage( MessageType.Regular, 0x22, false, "You do not posses the training required for these spells. You must visit a Magics and Skill Trainer.", caster.NetState );
return false;
}
}
else if ( book.SpellbookType == SpellbookType.Undead )
{
if ( mod != null && mod.PlayerClasses == PlayerClasses.Necromancer )
return true;
else
{
caster.PrivateOverheadMessage( MessageType.Regular, 0x22, false, "You do not posses the training required for these spells. You must visit a Magics and Skill Trainer.", caster.NetState );
return false;
}
}
else if ( book.SpellbookType == SpellbookType.Rogue )
{
if ( mod != null && mod.PlayerClasses == PlayerClasses.Rogue )
return true;
else
{
caster.PrivateOverheadMessage( MessageType.Regular, 0x22, false, "You do not posses the training required for these spells. You must visit a Magics and Skill Trainer.", caster.NetState );
return false;
}
}
else if ( book.SpellbookType == SpellbookType.Ranger )
{
if ( mod != null && mod.PlayerClasses == PlayerClasses.Ranger )
return true;
else
{
caster.PrivateOverheadMessage( MessageType.Regular, 0x22, false, "You do not posses the training required for these spells. You must visit a Magics and Skill Trainer.", caster.NetState );
return false;
}
}
else if ( book.SpellbookType == SpellbookType.Farming )
{
if ( mod != null && mod.PlayerClasses == PlayerClasses.Farmer )
return true;
else
{
caster.PrivateOverheadMessage( MessageType.Regular, 0x22, false, "You do not posses the training required for these spells. You must visit a Magics and Skill Trainer.", caster.NetState );
return false;
}
}
return true;
}
}
//--<Spellbook Restrictions>-------------------------------------------------<End>
}

Thanks
 

madron

Wanderer
Lucid Nagual;678003 said:
change:
Code:
private static string[][] m_SDefs = new string[1000][]; //This should match your SpellRegistry.m_Types size

to this:
Code:
private static string[][] m_SDefs = new string[1500][]; //This should match your SpellRegistry.m_Types size

And I will have to look at something else...

Are you up to date?

http://www.runuo.com/forums/636493-post240.html


I did these corrections, i am guessing I need the ancient update, which was an empty folder, so I will wait for your reply. My tester did find a few errors, I will list them for you.

When choosing Paladin class, a full chivalry book appears in backpack.
When choosing Cleric, a full Chivalry book appears in backpack.

My Trammel CC is not appearing, however, I fixed it on my end.

Errors with march 16th update. I have more, but have not had a moment to gather them for you. I will post them later, or email them to you Lucid. Is it alright for us to alter or add to your scripts for our own use? I want to add a Dark Paladin. I am sure it is, but I like to ask before changing anothers scripts.
 

Chrizd

Wanderer
need help

code:

RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (4 errors, 3 warnings)
Warnings:
+ MyCustoms/Commands/Knives Chat 3.0 Beta 9/General/MultiConnection.cs:
CS0168: Line 65: The variable 'e' is declared but never used
CS0168: Line 134: The variable 'e' is declared but never used
CS0168: Line 165: The variable 'e' is declared but never used
CS0168: Line 184: The variable 'e' is declared but never used
CS0168: Line 201: The variable 'e' is declared but never used
CS0168: Line 252: The variable 'e' is declared but never used
+ MyCustoms/Commands/Knives Chat 3.0 Beta 9/Gumps/Error Reporting/Errors.cs:
CS0618: Line 91: 'System.Web.Mail.MailMessage' is obsolete: 'The recommended
alternative is System.Net.Mail.MailMessage. Search Microsoft.com
kid=14202'
CS0618: Line 91: 'System.Web.Mail.MailMessage' is obsolete: 'The recommended
alternative is System.Net.Mail.MailMessage. Search Microsoft.com
kid=14202'
CS0618: Line 102: 'System.Web.Mail.SmtpMail' is obsolete: 'The recommended a
lternative is System.Net.Mail.SmtpClient. Search Microsoft.com
=14202'
+ MyCustoms/RC1 All Spells BETA for v8/Scripts/Spells/@@Other Shit/Reagent Book
/RegBook.cs:
CS0162: Line 308: Unreachable code detected
Errors:
+ MyCustoms/RC1 All Spells BETA for v8/Scripts/Spells/@@Other Shit/-=+ Full Spe
llbook +=-/Full Spellbook/Settings.cs:
CS0117: Line 68: 'Server.Mobiles.PlayerMobile' does not contain a definition
for 'PlayerModule'
+ MyCustoms/RC1 All Spells BETA for v8/Scripts/Spells/@@Other Shit/-=+ Full Spe
llbook +=-/Full Spellbook/TomeOfKnowledge.cs:
CS0117: Line 358: 'Server.Mobiles.PlayerMobile' does not contain a definitio
n for 'PlayerModule'
CS0117: Line 366: 'Server.Mobiles.PlayerMobile' does not contain a definitio
n for 'PlayerModule'
CS0117: Line 425: 'Server.Mobiles.PlayerMobile' does not contain a definitio
n for 'PlayerModule'
CS0117: Line 578: 'Server.Mobiles.PlayerMobile' does not contain a definitio
n for 'PlayerModule'
+ MyCustoms/RC1 All Spells BETA for v8/Scripts/Spells/Base/Restrictions.cs:
CS0117: Line 48: 'Server.Mobiles.PlayerMobile' does not contain a definition
for 'PlayerModule'
+ MyCustoms/RC1 All Spells BETA for v8/Scripts/Spells/Characterization System/R
avensRaceStone.cs:
CS0117: Line 243: 'Server.Mobiles.PlayerMobile' does not contain a definitio
n for 'PlayerModule'
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 those errors after download the three downloads at the first post and editing the scripts that i was suppose to do can you help me fix this it says im missing the module thing.... but it has the player module thing after you download those three and distribute them into your customs folder...

:confused:

Ill be checking this tommorow morning so hopefully theres a reply by then

btw heres the downloads if ya wanna fix the warnings too...
 

Attachments

  • MultiConnection.cs
    9.9 KB · Views: 36
  • Errors.cs
    3.7 KB · Views: 36

Chrizd

Wanderer
spellbook errors

ok ive only tested a few of the book and what i know so far is the ancient spellbook doesn't work at all.... if you cast any spells on something the server crashes and one of the book the one that requireschivalry just keeps fizzling... heres the crash repot i got when casting a spell on a training elemental



Code:

Server Crash Report
===================

RunUO Version 2.0, Build 2357.32527
Operating System: Microsoft Windows NT 5.1.2600 Service Pack 2
.NET Framework: 2.0.50727.42
Time: 5/4/2007 8:43:45 PM
Mobiles: 2433
Items: 102593
Clients:
- Count: 1
+ 127.0.0.1: (account = Administrator) (mobile = 0x2 'Demon')

Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at Server.Items.BaseWeapon.OnHit(Mobile attacker, Mobile defender, Double damageBonus)
at Server.Items.BaseWeapon.OnSwing(Mobile attacker, Mobile defender, Double damageBonus)
at Server.Items.BaseWeapon.OnSwing(Mobile attacker, Mobile defender)
at Server.Items.Fists.OnSwing(Mobile attacker, Mobile defender)
at Server.Mobile.CombatTimer.OnTick()
at Server.Timer.Slice()
at Server.Core.Main(String[] args)
 

Chrizd

Wanderer
i found out that every time i attack something my server crashes so so i need the base weapon.cs correctly modified version

:p
 
Chrizd;688009 said:
ok ive only tested a few of the book and what i know so far is the ancient spellbook doesn't work at all.... if you cast any spells on something the server crashes and one of the book the one that requireschivalry just keeps fizzling... heres the crash repot i got when casting a spell on a training elemental



Code:

Server Crash Report
===================

RunUO Version 2.0, Build 2357.32527
Operating System: Microsoft Windows NT 5.1.2600 Service Pack 2
.NET Framework: 2.0.50727.42
Time: 5/4/2007 8:43:45 PM
Mobiles: 2433
Items: 102593
Clients:
- Count: 1
+ 127.0.0.1: (account = Administrator) (mobile = 0x2 'Demon')

Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at Server.Items.BaseWeapon.OnHit(Mobile attacker, Mobile defender, Double damageBonus)
at Server.Items.BaseWeapon.OnSwing(Mobile attacker, Mobile defender, Double damageBonus)
at Server.Items.BaseWeapon.OnSwing(Mobile attacker, Mobile defender)
at Server.Items.Fists.OnSwing(Mobile attacker, Mobile defender)
at Server.Mobile.CombatTimer.OnTick()
at Server.Timer.Slice()
at Server.Core.Main(String[] args)

Please post the crash report in debug mode.
 

Chrizd

Wanderer
ok if you tell me how lol im definitely a script newbie and a frorum newbie so yes i think you mean debug mode through runuo 2.0 but i do not know how to enter that mode :(

but i do believe i modded the baseweapon script wrong when i was trying to modify it
 

Attachments

  • BaseWeapon.cs
    100.2 KB · Views: 40
playermobile.cs error

i have this error

Code:
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:
 + Mobiles/PlayerMobile.cs:
    CS0542: Line 167: 'PlayerMobile': member names cannot be the same as their e
nclosing type
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.


Code:
using System;
using System.Collections;
using System.Collections.Generic;
using Server;
using Server.Misc;
using Server.Items;
using Server.Gumps;
using Server.Multis;
using Server.Engines.Help;
using Server.ContextMenus;
using Server.Network;
using Server.Spells;
using Server.Spells.Fifth;
using Server.Spells.Sixth;
using Server.Spells.Seventh;
using Server.Spells.Necromancy;
using Server.Spells.Ninjitsu;
using Server.Spells.Bushido;
using Server.Targeting;
using Server.Engines.Quests;
using Server.Factions;
using Server.Regions;
using Server.Accounting;
using Server.Engines.CannedEvil;
using Server.Engines.Craft;
//Customs
using Server.ACC.CM;
using Server.LucidNagual;
//Customs

namespace Server.Mobiles
{
	#region Enums
	[Flags]
	public enum PlayerFlag // First 16 bits are reserved for default-distro use, start custom flags at 0x00010000
	{
		None				= 0x00000000,
		Glassblowing		= 0x00000001,
		Masonry				= 0x00000002,
		SandMining			= 0x00000004,
		StoneMining			= 0x00000008,
		ToggleMiningStone	= 0x00000010,
		KarmaLocked			= 0x00000020,
		AutoRenewInsurance	= 0x00000040,
		UseOwnFilter		= 0x00000080,
		PublicMyRunUO		= 0x00000100,
		PagingSquelched		= 0x00000200,
		Young				= 0x00000400,
		AcceptGuildInvites	= 0x00000800,
		DisplayChampionTitle= 0x00001000
	}

	public enum NpcGuild
	{
		None,
		MagesGuild,
		WarriorsGuild,
		ThievesGuild,
		RangersGuild,
		HealersGuild,
		MinersGuild,
		MerchantsGuild,
		TinkersGuild,
		TailorsGuild,
		FishermensGuild,
		BardsGuild,
		BlacksmithsGuild
	}

	public enum SolenFriendship
	{
		None,
		Red,
		Black
	}
    public class PlayerMobile : Mobile
{ 
/////////////////////////////////////
 
 
//  PlayerMobile Edit #5           // 
//  All Spells Addition <Start>    // 
///////////////////////////////////// 
public override bool CanSee( Item item ) 
{ 
if ( m_DesignContext != null && m_DesignContext.Foundation.IsHiddenToCustomizer( item ) ) 
return false; 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
if ( item is BaseHouseTrap ) 
 
{ 
BaseHouseTrap trap = item as BaseHouseTrap; 
if(trap.Detected) 
return true; 
else if (this.AccessLevel!=AccessLevel.Player) 
return true; 
else if (Spells.First.DetectTrapSpell.UnderEffect( this )) 
return true; 
else if (this.Skills[SkillName.DetectHidden].Value >= 100.0) 
return true; 
else if(trap.Placer!=null) 
{ 
if(trap.Placer == this || this.GuildFealty == trap.Placer.GuildFealty || Spells.First.DetectTrapSpell.UnderEffect( this )) 
return true; 
else 
return false;

}
else if ( this != trap.Placer && this.AccessLevel == AccessLevel.Player )
return false;
} 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
return base.CanSee( item ); 
 
} 
///////////////////////////////////// 
//  PlayerMobile Edit #5           // 
//  All Spells Addition <End>      // 
/////////////////////////////////////
	#endregion

	public class PlayerMobile : Mobile, IHonorTarget
	{
 
playermobile.cs error

i i have your All Spells System and Daats99's OWLTR and i get this error

Code:
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:
 + Mobiles/PlayerMobile.cs:
    CS0542: Line 167: 'PlayerMobile': member names cannot be the same as their e
nclosing type
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.


Code:
using System;
using System.Collections;
using System.Collections.Generic;
using Server;
using Server.Misc;
using Server.Items;
using Server.Gumps;
using Server.Multis;
using Server.Engines.Help;
using Server.ContextMenus;
using Server.Network;
using Server.Spells;
using Server.Spells.Fifth;
using Server.Spells.Sixth;
using Server.Spells.Seventh;
using Server.Spells.Necromancy;
using Server.Spells.Ninjitsu;
using Server.Spells.Bushido;
using Server.Targeting;
using Server.Engines.Quests;
using Server.Factions;
using Server.Regions;
using Server.Accounting;
using Server.Engines.CannedEvil;
using Server.Engines.Craft;
//Customs
using Server.ACC.CM;
using Server.LucidNagual;
//Customs

namespace Server.Mobiles
{
	#region Enums
	[Flags]
	public enum PlayerFlag // First 16 bits are reserved for default-distro use, start custom flags at 0x00010000
	{
		None				= 0x00000000,
		Glassblowing		= 0x00000001,
		Masonry				= 0x00000002,
		SandMining			= 0x00000004,
		StoneMining			= 0x00000008,
		ToggleMiningStone	= 0x00000010,
		KarmaLocked			= 0x00000020,
		AutoRenewInsurance	= 0x00000040,
		UseOwnFilter		= 0x00000080,
		PublicMyRunUO		= 0x00000100,
		PagingSquelched		= 0x00000200,
		Young				= 0x00000400,
		AcceptGuildInvites	= 0x00000800,
		DisplayChampionTitle= 0x00001000
	}

	public enum NpcGuild
	{
		None,
		MagesGuild,
		WarriorsGuild,
		ThievesGuild,
		RangersGuild,
		HealersGuild,
		MinersGuild,
		MerchantsGuild,
		TinkersGuild,
		TailorsGuild,
		FishermensGuild,
		BardsGuild,
		BlacksmithsGuild
	}

	public enum SolenFriendship
	{
		None,
		Red,
		Black
	}
    public class PlayerMobile : Mobile
{ 
/////////////////////////////////////
 
 
//  PlayerMobile Edit #5           // 
//  All Spells Addition <Start>    // 
///////////////////////////////////// 
public override bool CanSee( Item item ) 
{ 
if ( m_DesignContext != null && m_DesignContext.Foundation.IsHiddenToCustomizer( item ) ) 
return false; 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
if ( item is BaseHouseTrap ) 
 
{ 
BaseHouseTrap trap = item as BaseHouseTrap; 
if(trap.Detected) 
return true; 
else if (this.AccessLevel!=AccessLevel.Player) 
return true; 
else if (Spells.First.DetectTrapSpell.UnderEffect( this )) 
return true; 
else if (this.Skills[SkillName.DetectHidden].Value >= 100.0) 
return true; 
else if(trap.Placer!=null) 
{ 
if(trap.Placer == this || this.GuildFealty == trap.Placer.GuildFealty || Spells.First.DetectTrapSpell.UnderEffect( this )) 
return true; 
else 
return false;

}
else if ( this != trap.Placer && this.AccessLevel == AccessLevel.Player )
return false;
} 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
return base.CanSee( item ); 
 
} 
///////////////////////////////////// 
//  PlayerMobile Edit #5           // 
//  All Spells Addition <End>      // 
/////////////////////////////////////
	#endregion

	public class PlayerMobile : Mobile, IHonorTarget
	{
 

Malaperth

Wanderer
I don't know what to tell you. This is the first I have seen that error and I suspect many others would have come up with it if it was an issue with the package.
 
Rosey1;688898 said:
Lucid, every time the server reboots, the settings on the ascc go back to the default.

What did i miss?

I have no idea. I have looked over the serialization and deserialization and can't find the problem.
 

jpmythic

Sorceror
A quick wack at the Welcome timer for createchar

I thought I'd just drop off my little snippet that got the
two gumps to come up right after your welcome messages...

You can remove the welcome messages.

Code:
using System;
using Server.Network;

//Mythic DEBUG
using Server.Gumps;
using Server.ACC.CM;
using Server.LucidNagual;
using Server.Items;

namespace Server.Misc
{
	/// <summary>
	/// This timer spouts some welcome messages to a user at a set interval. It is used on character creation and login.
	/// </summary>
	public class WelcomeTimer : Timer
	{
		private Mobile m_Mobile;
		private int m_State, m_Count;

		private static string[] m_Messages = ( TestCenter.Enabled ?
			new string[]
            {
				"Welcome to this test shard.  You are able to customize your character's stats and skills at anytime to anything you wish.  To see the commands to do this just say 'help'.",
				"You will find a bank check worth 1,000,000 gold in your bank!",
				"A spellbook and a bag of reagents has been placed into your bank box.",
				"Various tools have been placed into your bank.",
				"Various raw materials like ingots, logs, feathers, hides, bottles, etc, have been placed into your bank.",
				"5 unmarked recall runes, 5 Felucca moonstones and 5 Trammel moonstones have been placed into your bank box.",
				"One of each level of treasure map has been placed in your bank box.",
				"You will find 9000 silver pieces deposited into your bank box.  Spend it as you see fit and enjoy yourself!",
				"You will find 9000 gold pieces deposited into your bank box.  Spend it as you see fit and enjoy yourself!",
				"A bag of PowerScrolls has been placed in your bank box."
			} :
			new string[]
			{	//Yes, this message is a pathetic message, It's suggested that you change it.
				"Welcome to Everon Worlds.",
				"Move on in and have some fun."
			} );

		public WelcomeTimer( Mobile m ) : this( m, m_Messages.Length )
		{
		}

		public WelcomeTimer( Mobile m, int count ) : base( TimeSpan.FromSeconds( 5.0 ), TimeSpan.FromSeconds( 10.0 ) )
		{
			m_Mobile = m;
			m_Count = count;
		}

		protected override void OnTick()
		{
            if (m_State < m_Count)
            {
                m_Mobile.SendMessage(0x35, m_Messages[m_State++]);

                if (m_State == m_Count)
                {
                    Stop();
                 
                    //Mythic DEBUG
                    PlayerModule module = (PlayerModule)CentralMemory.GetModule(m_Mobile.Serial, typeof(PlayerModule));
                    if (module == null)
                    {
                        module = new PlayerModule(m_Mobile.Serial);
                        CentralMemory.AppendModule(m_Mobile.Serial, module, true);
                        
                        if (LucidNagual.DataCenter.EnableClassSystem)
                            m_Mobile.SendGump(new ClassGump(m_Mobile));
                        
                        if (LucidNagual.DataCenter.EnableRaceSystem)
                            m_Mobile.SendGump(new RavensRaceGump(m_Mobile, RavensRacePage.Info));
                    }
                }
            }
	}
	}
}

It's just a quick hack to test it out. Using RC1, got tired of trying to convert all the different scripts to svn.

Mythic
 
Malaperth;688983 said:
Are you saving after making the settings changes and before the restart?

The PlayerModules keep deleting causing the gumps to reappear. I haven't been able to find out what is causing the modules to delete.
 
Top