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!

Lucid Nagual's All Spells System

Lucid Nagual's All Spells System

Lucid Nagual's All Spells
Version: [7].0.1 (a)
RunUO RC1[2.0] Compliant
------< : >----<>--<>--< 0 >->-<--<< 0 >>-->-<-< 0 >--<>--<>----< : >------
| w/ an Optional Class & Race Restrictive System , Class Hues & Control Center. |
------< : >----<>--<>--< 0 >->-<--<< 0 >>-->-<-< 0 >--<>--<>----< : >------


Attention: Your Anti-Virus may give you a warning. This is because of the Undead Spell "Poison Ivy Patch". I do not intend on changing the name of the spell, but you can if you'd like. Otherwise, ignore the warning.

Error Reports: This thread is not accepting error reports. This release has been tested and produces no errors on a clean install. Those who have errors must submit them to the Script Support section.

Installation Instructions: Please zip your script folder (for backup), and replace all files with the ones from this release. Many of the old files have been edited!!! Oh and I have included edited spells for Chivalry, Mage and Necromancer. These files should be replaced as well. The zip that contains All Spells has a Scripts Folder in it. This file should be dropped on top of the Scripts Folder in your RunUO directory to replace all old ones.
  1. Drag-N-Drop scripts folder.
  2. Download Alien's "Completely Custom" and install the "Central Memory" scripts (the only ones required).
  3. Boot your shard.
  4. Use the [GoCC command to recall to the Control Stone and double-click it, or use the [ASCC command to pull up the gump.
  5. Enable or disable the setting you prefer. And now you are done.
Special Thanks:
  • SirSly: For allowing me to continue this project.
  • Alien: For improving the All Spells code and for your Full Spellbook.
  • Daat99: For helping keep restrictions optional and helping with the control center. Thank you for your kind words and support.
  • Rift: For many support issues and helping fix the instrument problem for the Bard. Oh and the craftable spellbook!!!
  • Artie: For support issues in the forums.
  • MetallicSomber: For the Ranger Spells.
  • Voran: For support you gave me with the Undead Spells and your Ultima IIV spells.
  • TMTMSTKSBK: For making All Spells part of the new Shard Pack. I'd also like to thank you for the web space that I will be using soon.
  • To those that reported all the errors and crash logs that made this release far better and closer to being bug free.
  • For those that stuck through my 4.0 release lol.
  • To the RunUO Team that makes everything possible.
  • Most of all Richard Garrett for the many great years of entertainment you have given me since my Apple 2 computer and Ultima 3 'Exodus' lol.
All Spells History:
All Spells is a combo of many people's spell sysems that was brought into one system for an easier install. I am the creator of the Undead and Avatar Spells. SirSly orginally put together the All Spells Project and allowed me to help him with scripting and testing. When he gave up the project I asked for permission to continue it on my own. Recently Alien has taken over the project is the one who is currently releasing his version with the ShardPack. I will continue working on this version for people that have my version on their systems.

Spells Included:
  • Bard
  • Cleric
  • Druid
  • Undead
  • Avatar
  • Rogue
  • Ranger
  • Ancient
Classes Included:
  • The Bard
  • The Cleric
  • The Druid
  • The Mage
  • The Paladin
  • The Rogue
  • The Ranger
  • The Necromancer
  • The Nomad
  • The Tamer
  • The Farmer
  • The Crafter
Things Included in this Package:
  • Control Center (prefered methods already set)
  • Optional Class System (updated without loop holes)
  • Optional Race System (Raven's Race Stone MODed by me)
  • Optional Class Hues System (new edition)
  • Optional Give Spellbooks (option for the trainer(give free books?))
  • Druid Reagents (if you have Daat's Druid Reagents.cs delete it)
  • Reagent Stones (to purchase reagents)
  • ATM Stone and Card (to withdraw gold for reagent stones)
  • MegaSpawner Map to place Reagent and ATM Stones :)
  • Class Clothing (not all done yet)
  • Alien's Full Spellbook (standard options set)
  • Magics Trainer (to train spell classes)
  • Welcome Timer (to make new players select their Class, hasn't been tested)
  • new SBScribe that sells spellbooks for 5k each.
  • new Runebook Gump (that includes new spells of travel)
In the Playermobile.cs locate these lines:
Code:
 public enum SolenFriendship
 {
  None,
  Red,
  Black
 }
 public class PlayerMobile : Mobile
 {

Add this under it(the code in the edit windows(in blue)):
Code:
 public class PlayerMobile : Mobile
 {
[COLOR=blue]/////////////////////////////////////
//  PlayerMobile Edit #5           //
//  All Spells Addition <Start>    //
/////////////////////////////////////
  public override bool CanSee( Item item )
  {
   if ( m_DesignContext != null && m_DesignContext.Foundation.IsHiddenToCustomizer( item ) )
    return false;[/COLOR]
[COLOR=blue]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;
   }[/COLOR]
[COLOR=blue]return base.CanSee( item );
 }
/////////////////////////////////////
//  PlayerMobile Edit #5           //
//  All Spells Addition <End>      //
/////////////////////////////////////
[/COLOR]


Quote:
Server.Molbiles.PlayerMobile already defines a member called 'CanSee' with the same parameter types. It will have to be commented out. See the example below:

Code:
public override bool CanSee( Item item )
{
if ( m_DesignContext != null && m_DesignContext.Foundation.IsHiddenToCustomizer( item ) )
return false;
 
return base.CanSee( item );
}


The commented out section should look like this when you are done:


Code:
[LEFT][B][COLOR=blue]/*[/COLOR][/B]public override bool CanSee( Item item )[/LEFT]
 
[LEFT]{[/LEFT]
 
[LEFT]if ( m_DesignContext != null && m_DesignContext.Foundation.IsHiddenToCustomizer( item ) )[/LEFT]
 
[LEFT]return false;[/LEFT]
 
 
[LEFT]return base.CanSee( item );[/LEFT]
 
[LEFT]} [COLOR=blue][B]*/[/B][/COLOR][/LEFT]

List of Commands:
  • [GoCC - Recall to Control Center (in Fel)
    [*][ASCC - Control Center gump for staff
    [*][ASInfo - Gives players class info (need to finish that gump still)
    [*][CCount - Gives staff the total number of Control Centers in the world
    [*][CClean - Deletes all Control Centers (even deletes them in Internal Map if they are there)
    [*][CCGen - Generates the Control Centers
    [*][LockCC - Locks the Control Center so staff can't delete it on accident
    [*][UnLockCC - Allows Admin to unlock the Control Center and delete it if he wishes
Important Notice: The class/restrictive system works off of Alien's Central Memory and ACC (Public Gates are opitonal but do not install his spell system, otherwise might be errors). Can be downloaded through this link: Completely_Custom
 

Attachments

  • [Bonus]Spellbooks with Attributes.zip
    1.7 KB · Views: 380
  • [2.0]Alien's - Public Gates, ACC and Central Memory.zip
    24.7 KB · Views: 346
  • [2.0]Lucid's AS [7].0.1 (b).zip
    852.4 KB · Views: 516
Current Fixes

Version 5.0.2a:
  1. There was an issue when Restrictions were set to false the books wouldn't open. That problem is now solved.
  2. There was also an issue with the Druid Tamer the spellbooks wouldn't open. That problem is now fixed.
  3. Fixed Undead Exorcism description in spellbook and full spellbook.
  4. Fixed the Magics Trainer druid robe issue.
  5. Removed the (open) spellbook restriction. Don't really need it since I have added the restriction in the individual spells themselves.
  6. Added the FSB restrictions that work off of the control center just like the spell restrictions. Same option sets both. Both the spellbook drop and the scroll drop have been restricted when set.
  7. Fixed spellbook restrictions. I found my stupid mistake :)
  8. I fixed the gump(ClassSystemOptionGump.cs) to change the SpellRestrictions.cs/public static bool Restricted = true; so that when you select the Class( restrictive system) it automatically adjusts this for you.
  9. Fixed the Magic Trainer errors.
  10. Fixed creature casting issue in the SpellRestrictions.cs
  11. Fixed the ControlCenter.cs bug. Now longer creates multiple stones.
AS v[5].0.2b:
  • Fixed magic trainer and eliminated warnings.
  • Fixed the welcome timer so it will check for class restrictive settings.
  • Added the DefInscription to the package due to downloading issues.
  • Eliminated many warnings that some scripts were creating.
AS v[6].0.1:
  • Got rid of title checks for class system. Now AS uses Alien's Central Memory to save class and race info (NO PLAYERMOBILE EDITS NEEDED).
  • Introducing my Characterization System. The system includes the early stages of my class and race system. As time goes on I will add more to the class and race restrictive system and include an experience system.
  • Added a Message Center to store my lengthy text messages.
  • Have rebuilt the restrictive system.
  • Have eliminated the Magics Trainer (was intended to be a temp fix) and build a new class gump. Now when attempting to open a spellbook (refering to the restrictive option), the restrictive bool will check to see if the caster has an existing Class Module....if not it will send the class gump to the caster and interupt the spell.

 

daat99

Moderator
Staff member
Great job on this lucid, good to see that you released it again ;)
I have 1 question tho, did you made sure that if the admin delete all the control centers in the shard that it won't crash or something like that?
I had this problem when I first worked on my control center so I just wanted to give you a heads up to test it before something happens ;)
 

Lokigom92

Wanderer
If we are upgrading from 5.0.1 beta, will all the old ones be deleted? I have your last release that included A LI N's full spellbook. Will the items that the players have be deleted or will they just change in game?
 
Great job on this lucid, good to see that you released it again

I have 1 question tho, did you made sure that if the admin delete all the control centers in the shard that it won't crash or something like that?
I had this problem when I first worked on my control center so I just wanted to give you a heads up to test it before something happens
OK I will check into this and see if it is a problem and thanks :) I've been working on this all week.

*Edit: OK I tested the control center...when it is deleted a new one appears instantly so there is no crash. I used your control center as a template but didn't want to copy off of you completely so I scripted a lot of it myself.
---------------------------------------------------------------------------
If we are upgrading from 5.0.1 beta, will all the old ones be deleted? I have your last release that included A LI N's full spellbook. Will the items that the players have be deleted or will they just change in game?
You shouldn't have any problems the spellbooks are same version number and Alien's FSB are offered in this release too, and it is set the same. The only major difference with the spells is that I added the Exorcism spell to the Undead spells ..oh and another Ranger spell which is real nice. But those types of changes should only change in the game.

As a matter of fact I first make these changes on my shard, test it, then package it, and then test it on a clean server for errors.
 

AdminVile

Sorceror
Oh Boy

just when i think i finally got the ultimate spell system. :D Cant wait to see what gets added next. Maybe a whole new spell book?
 
AdminVile

Oh Boy
just when i think i finally got the ultimate spell system.
Cant wait to see what gets added next. Maybe a whole new spell book?
I make continuous improvements and have no idea when I will call this complete. This and future installs will be error free in a drag N drop format.
 
I dono about the whole new spellbook idea cause Im running OUT of ideas and still have them being unique instead of nearly exact copys of others. May just be me though.

The plans for this week are for the ranger spells to get a mark spell made, a gate spell, and a defencive and area effect spell created.

Do have a question though Lucid, Did you change anything about how the spells themselves work, like the Initalizer, or just the spell restrictions. Guess what I'm asking is Can I avoid updating (using the old style restrictions file) and create spells that are useable for the package?
 
I dono about the whole new spellbook idea cause Im running OUT of ideas and still have them being unique instead of nearly exact copys of others. May just be me though.

The plans for this week are for the ranger spells to get a mark spell made, a gate spell, and a defencive and area effect spell created.

Do have a question though Lucid, Did you change anything about how the spells themselves work, like the Initalizer, or just the spell restrictions. Guess what I'm asking is Can I avoid updating (using the old style restrictions file) and create spells that are useable for the package?
The spell itself has a restriction check in it that works with the new restrictions script. It has to be the same way, but I can update them to the new system myself. And yeah I have strayed from new spell systems so far and I feel the same way. I have been adding other features instead of new spell systems. A lot of my ideas will require a custom skill system first. Like for instance the Brujo Shaman skill will have some transformation skills in the spellbook format but mostly be a skill.
 
Thats sort of what I want to do to give the clerics the Turn undead spell, make it an ability.
and personally I knid of think of the rangers spells as abilities too cause there not magic users
 

daat99

Moderator
Staff member
Daat

Just wanted to grab your attention to some posts in the script support that I think would fit here as well:

http://www.runuo.com/forum/showthrea...895#post435895

http://www.runuo.com/forum/showthread.php?t=60111

Both those threads mentioned something about players can't open the spell books if the restrictions is on.
Maybe there's a mising check or something in the CheckRestrictions or you didn't called it in the OnDoubleClick of the books or something like that.
Ok thanks Daat I was busy working on the custom skills script and I got an issue with my anti res kill system :( I think these issues are solved now. I updated the Package B and replaced the crappy trainer.
 

cuy782002

Wanderer
Douh

i feel like a totle dumn ass but i cant get this system to work i had it in 5 days ago and had to restore my pc lost every thing
i put the system in the same way i didnt befor now im getting errors im using daat99 system im getting errors in the @@Other shit folder and something about kill book


maybe i just need to stop :mad: messing wif my shard for a wile
 
i feel like a totle dumn ass but i cant get this system to work i had it in 5 days ago and had to restore my pc lost every thing
i put the system in the same way i didnt befor now im getting errors im using daat99 system im getting errors in the @@Other shit folder and something about kill book


maybe i just need to stop :mad: messing wif my shard for a wile
I understand from what lil you posted and fixed the trainer. I am sorry bout this but I have many customs that I have to remove to make this system available to the public. Updated!

And thanks for reporting this issue. :)
 

etherkye

Wanderer
don't suppose you could make it so that scrolls were inculded in the restrictions please. some of my members keep casting all sorts of things.
 
etherkye

don't suppose you could make it so that scrolls were inculded in the restrictions please. some of my members keep casting all sorts of things.
Sorry but when restrictions are selected people can't cast by using scrolls. They start to then it interrupts them. Do you hand out the Full Spellbook? Cause I have stated that I haven't fixed theat book yet.
 
Top