|
||
|
|||||||
| Script Support Get support for modifying RunUO Scripts, or writing your own! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#2 (permalink) |
|
Master of the Internet
Join Date: Oct 2005
Age: 45
Posts: 6,283
|
public enum SpellbookType
{ Invalid = -1, Regular, Necromancer, Paladin, Ninja, Samurai, /////////////////////////// // All Spells Edit 1/11 // /////////////////////////// Druid, Ancient, Cleric, Song, Undead, Rogue, Wizardry, Avatar, Ranger /////////////////////////// // End Edit 1/11 // /////////////////////////// } |
|
|
|
|
|
#4 (permalink) |
|
Master of the Internet
Join Date: Oct 2005
Age: 45
Posts: 6,283
|
The name of the individual spellbook is not set in the base Spellbook.cs script, it is set in the specific script for the individual spellbook.
Code:
[Constructable]
public AncientSpellbook( ulong content ) : base( content, 0xEFA )
{
Hue = 1355;
Name = "Ancient Spellbook";
}
|
|
|
|
|
|
#5 (permalink) |
|
Forum Newbie
Join Date: Jan 2006
Posts: 12
|
\\
protected override void OnTarget( Mobile from, object targeted ) { ClassControl c_control = null; bool isLoaded = false; foreach (Item i in World.Items.Values) { if (i is ClassControl) c_control = i as ClassControl; } if ( from.Name == null) { from.SendMessage("Your name is not valid fix it now"); return; } if ( targeted is Spellbook ) { Spellbook m_book = (Spellbook)targeted; for (int i=0; i<20; i++) { if (m_book.SpellbookType == c_control.LoadBook[i]) { isLoaded = true; break; } } if (isLoaded) { c_control.LoadBook[c_control.Loaded_Books] = m_book.SpellbookType; c_control.Loaded_Books += 1; from.SendMessage(6, m_book.Name + " Spellbook Loaded"); m_book.Delete(); } else { c_control.LoadBook[c_control.Loaded_Books] = m_book.SpellbookType; c_control.Loaded_Books += 1; from.SendMessage( 6, m_book.Name + " Spellbook Loaded" ); m_book.Delete(); } } else { from.SendMessage( 0x35, "That is not a Spellbook" ); } } pls can u help me chang "m_book.SpellbookType" to "m_book.SpellbookName" pls |
|
|
|
|
|
#6 (permalink) | |
|
Forum Expert
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
|
Quote:
__________________
Leader of the Anti-OSI Movement. Inventing a new game experience in an EA Games-free environment. Don Juan Matus "The basic difference between an ordinary man and a warrior is that a warrior takes everything as a challenge, while an ordinary man takes everything as a blessing or as a curse." My Customs:
|
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|