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

Notice:

I have gotten a lot better at coding lately. I have decided it is time that I totally redo this system. I am currently rebuilding the core and eliminating code. May even eliminate the need for Central Memory and create my own module system. Stay tuned for updates on the progress of this new system. Thanks for your patience.
 

jpmythic

Sorceror
A minor Glitch.. just passing on

in [AS]Playermodule.cs

Code:
		private class InternalTarget : Target
		{
			private PlayerModule player_mod;
			
			public InternalTarget( PlayerModule module ) : base( 1, false, TargetFlags.None )
			{
                			player_mod = null;  //Mythic DEBUG we DON't want our OWN Module --> module;
			}
			
			protected override void OnTarget( Mobile from, object targeted )
			{
				if ( targeted is PlayerMobile )
				{
					PlayerMobile pm = ( PlayerMobile )targeted;
                    				//Mythic DEBUG
					//PlayerModule module = ( PlayerModule )CentralMemory.GetModule( from.Serial, typeof( PlayerModule ) );
                    				if (pm != null)
                    				{
                        				player_mod = (PlayerModule)CentralMemory.GetModule(pm.Serial, typeof(PlayerModule));

                        				if (player_mod == null)
                            					from.SendMessage("This player does not have a playermodule.");
                        				else
                            					from.SendGump(new PropertiesGump(from, player_mod));
                        				return;
                    				}
				}
                			from.SendMessage("Can Only Target PLAYERS!");
			}
		}

Gets the Correct playermodule for Targeted Player, before it was only returning
The Person who gave the command..

I was just getting ready to test this out as well.. I just whipped it together.

Mythic
 

Rosey1

Wanderer
Thanks Lucid.

Malaperth: yes, the server is saving. I have it on daily reboot so i have to go back to the gump every morning.

Lucid, I'm not sure I understand in the lootpack. We're not finding any of the new spells on the monsters. I know you are redoing all this but I'd like to fix that in the meantime unless the release is imminent :D
 
Rosey1;689495 said:
Thanks Lucid.

Malaperth: yes, the server is saving. I have it on daily reboot so i have to go back to the gump every morning.

Lucid, I'm not sure I understand in the lootpack. We're not finding any of the new spells on the monsters. I know you are redoing all this but I'd like to fix that in the meantime unless the release is imminent :D

You'll have to add the scrolls to the lootpack and choose which type of loot they drop in. If I remember right I included the Loot.cs and LootPack.cs.
 

Rosey1

Wanderer
Lucid Nagual;689567 said:
You'll have to add the scrolls to the lootpack and choose which type of loot they drop in. If I remember right I included the Loot.cs and LootPack.cs.

Ok, I'm not sure how the lootpack thing works. I'll try to figure it out. Thanks : )
 
Hello. I'm back now. I will be redoing all my systems. I have made the decision to drop Central Memory and create my own core system. I currently scripting on Second Life but plan on working on these projects when i get a chance. I have laid down the ground works for the new core system and it looks VERY promising. thank you for patience. All ideas are welcome. this is OUR system and all of us have played a role in making this system bigger and better. Dragable icons are coming soon.............Lucid Nagual.
 

Drayvock

Sorceror
Ok... I am on my test shard, which is a Pre-AOS shard, if it matters. I booted up the system before I changed it to AOS, and it worked fine. However, the shard that I am working on is Pre-AOS, so I changed my shard over, and now whenever I try to open the spellbook, I get this err:

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: 7/5/2007 1:44:45 AM
Mobiles: 2421
Items: 99995
Clients:
- Count: 1
+ 127.0.0.1: (account = admin) (mobile = 0x3 'Drayvock')

Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Server.Gumps.BaseCGump.AddSpells()
   at Server.Gumps.BaseCGump..ctor(Mobile from, Spellbook book)
   at Server.Items.ClericSpellbook.OnDoubleClick(Mobile from)
   at Server.Mobile.Use(Item item)
   at Server.Network.PacketHandlers.UseReq(NetState state, PacketReader pvSrc)
   at Server.Network.MessagePump.HandleReceive(NetState ns)
   at Server.Network.MessagePump.Slice()
   at Server.Core.Main(String[] args)
 

mkiplm

Sorceror
when i try to use spell book like recall spell it crashes client any ideas this also when players try to use it crashes there clients too
 

Tru

Knight
I have updated the original threads for Cleric Spells and Druid Spells I'm going to put links to Ultima VII spells and Bard Songs here as this is the only currently valid link with these spells.

KEEP IN MIND THESE ARE SEPERATE SYSTEMS AND NOT INCORPORATED INTO THE ALL SPELLS SYSTEM (this may help Lucid update it quicker if he has that in mind)

ALSO I DID NOT WRITE THESE!!

Edit: I also changed 3 of the Bard songs that didnt work for me (for music) to Sleep, Mass Sleep, and Awaken (As from Ultima VII spells)
 

Attachments

  • Bard system 2 0 svn 187.rar
    39.6 KB · Views: 805
  • UltimaVII 2 0 svn 187.rar
    90.5 KB · Views: 910

Thadeus

Wanderer
all spells question

Sounds like a great tool, but I don't want to bombard my users with every spell system in this pack.
Is each spell system optional?
 
Tru;701007 said:
I have updated the original threads for Cleric Spells and Druid Spells I'm going to put links to Ultima VII spells and Bard Songs here as this is the only currently valid link with these spells.

KEEP IN MIND THESE ARE SEPERATE SYSTEMS AND NOT INCORPORATED INTO THE ALL SPELLS SYSTEM (this may help Lucid update it quicker if he has that in mind)

ALSO I DID NOT WRITE THESE!!

Edit: I also changed 3 of the Bard songs that didnt work for me (for music) to Sleep, Mass Sleep, and Awaken (As from Ultima VII spells)

Thx True. I need an SVN version. I am redoing the core system at the moment.
 

mehoo

Sorceror
well im having an issue i am using a clean install on ruo 2.0

Code:
RunUO - [www.runuo.com] Version 2.0, Build 2818.38873
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
 + Mobiles/PlayerMobile.cs:
    CS0246: Line 78: The type or namespace name 'PlayerModule' could not be foun
d (are you missing a using directive or an assembly reference?)
    CS0246: Line 81: The type or namespace name 'PlayerModule' 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.

Playermobile.cs
Code:
 //PlayerModule edit.
        private PlayerModule m_PlayerModule;
        
        [CommandProperty( AccessLevel.GameMaster )]
        public PlayerModule PlayerModule
        {
            get
    {
        PlayerModule existingModule = ( PlayerModule )CentralMemory.GetModule( this.Serial, typeof( PlayerModule ) );
                
        if ( existingModule == null )
        {
            PlayerModule module = new PlayerModule( this.Serial );
            CentralMemory.AppendModule( this.Serial, module, true );
                    
            SendLNGumps( this );
                    
            return ( m_PlayerModule = module as PlayerModule );
       }
       else
       {
           if ( m_PlayerModule != null )
               return m_PlayerModule;
                    
           return ( m_PlayerModule = existingModule as PlayerModule );
       }
                }
           }
           //PlayerModule edit.

           private void SendLNGumps( Mobile from )
           {
                if ( LucidNagual.DataCenter.EnableClassSystem )
    from.SendGump( new ClassGump( this ) );
            
                if ( LucidNagual.DataCenter.EnableRaceSystem )
    from.SendGump( new RavensRaceGump( this, RavensRacePage.Info ) );
          }
   
        /////////////////////////////////////
 
 
// 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> //
 
/////////////////////////////////////
 
Lucid Nagual;544825 said:
Download Alien's "Completely Custom" and install the "Central Memory" scripts (the only ones required)
Sorry to bother you all but I'm finding some difficulties in retrieving this script...

Supposing Alien is the user A_Li_N, the only similar script I've found out is this one: A_Li_N Completely Custom Core (http://www.runuo.com/forums/custom-script-releases/79745-a_li_n-completely-custom-core.html)

There I've found out this file : ACC Core - 070207 - 0156.rar
But it contains 3 files named ACC.cs, ACCGump.cs and ACCSystem.cs
No "Central Memory" scripts, as far as I can recognize.

The question is: am I making some mistakes? Where can I download the mentioned script?

I haven't found any other topic about this issue. If there are, well... Sorry but can you indicate me what I've missed?

Thanks for your help!

Andrew
 

[UVA]steve

Wanderer
haveing this same problem

+ Mobiles/PlayerMobile.cs:
CS0246: Line 78: The type or namespace name 'PlayerModule' could not be foun
d (are you missing a using directive or an assembly reference?)
CS0246: Line 81: The type or namespace name 'PlayerModule' 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.
 
Top