TheAvatar1
Page
thanks for your support on this system man and cannot wait till the update
A_Li_N;800620 said:2009-05-14
-Added Ancient (Ultima VII) spell system.
-Fixed a paging issue in the spellbook gump.
Files Updated
CSS Core\CSpellbookGump.cs
To Update
Overwrite current files with files from rar.
server.acc.css.school does not contain a definiton for 'Ancient'
jokik;800652 said:wahoo , but im having a problem. i get the error:
Code:server.acc.css.school does not contain a definiton for 'Ancient'
AvariceShard;800946 said:Anybody have any luck adding these to their CharacterCreation.cs script?
As they are not Items, they wont work, any ideas on how to give these spell books to new characters?
Thanks!
A_Li_N;800949 said:They are items:
AncientSpellbook
AvatarSpellbook
BardSpellbook
ClericSpellbook
ChivalrySpellbook
MageSpellbook
NecroSpellbook
DruidSpellbook
RangerSpellbook
RogueSpellbook
AddItem(new AncientSpellbook());
AddItem(new AncientSpellbook(true/false)); //Select one, false = empty book, true = full
Errors:
+ Misc/CharacterCreation.cs:
CS0103: Line 1578: The name 'AddItem' does not exist in the current context
CS0246: Line 1578: The type or namespace name 'AncientSpellbook' could not b
e found (are you missing a using directive or an assembly reference?)
AvariceShard;800959 said:Nah i wish, i get the same error:
Code:Errors: + Misc/CharacterCreation.cs: CS0103: Line 1578: The name 'AddItem' does not exist in the current context CS0246: Line 1578: The type or namespace name 'AncientSpellbook' could not b e found (are you missing a using directive or an assembly reference?)
using Server.ACC.CSS;
using Server.ACC.CSS.Systems;
using Server.ACC.CSS.Systems.Ancient;
using Server.ACC.CSS.Systems.Avatar;
...etc etc
using Server.ACC.CSS.Systems.Ancient;
using Server.ACC.CSS.Systems.Avatar;
...etc etc
A_Li_N;800661 said:My bad, forgot a file that was modified. Check the update post again and re-download the 2.0 package if you are using 2.0.
'server.commands.dupe.copyproperties<server.item, server.item>' is inaccessible due to its protection level
jokik;800972 said:ok done that had a problem with reagents , fixed that and now i have another .
Code:'server.commands.dupe.copyproperties<server.item, server.item>' is inaccessible due to its protection level
A_Li_N;800974 said:Apologies...I'm guessing I tried uploading that file when my internet sucked. The 2.0 package is in the first post now.
http://www.runuo.com/forums/custom-script-releases/95653-acc-complete-spell-system.html#post795105
Download the 2.0 package and extract it, replacing all files.
Looks like Caster.Magery * 1.2 seconds for Sleep and 3 + Caster.Magery * .4 seconds fo Sleep Field.jokik;801068 said:all works perfectly now, well i think so , how long is a player supposed to stay asleep?
A_Li_N;801076 said:Looks like Caster.Magery * 1.2 seconds for Sleep and 3 + Caster.Magery * .4 seconds fo Sleep Field.
So if you have 100 magery, 2 minutes for sleep and 43 seconds for sleep field.
You can adjust that by going to line 75 of SleepSpell.cs and 83 of SleepField.cs.
Thilgon;801962 said:i've noticed that of the ancient spells, ignite, great ignite and firering are not damaging blue players and npc's, while instead they damages me (on my admin char, so perma-grey)... before saying anything, all my maps are set to felucca rules...
probably they are not supposed to work like that... how to repair them?
Interesting, yes. Something I am going to do, no. From the looks of the changes needed, it would require a lot of changes to almost every spell in the systems and I do not feel like doing such thingsAdmin_Shaka;801254 said:Hello Allin,
Very nice package of scripts you are doing...
Maybe it would be interesting adding a no-precasting option...
Just like the sphere way of casting spells, that is something very unique since nobody was able to do it,...
I started, but never finished...
http://www.runuo.com/forums/custom-...here-like-spell-system-aka-no-precasting.html
Thanks man ! I hope this can inspire you....
public static bool MobileHasSpell(Mobile m, School school, Type type)
public static bool MobileHasSpell(Mobile m, School school, Type type)
{
if (m == null || m.Deleted || m.Backpack == null || school == School.Invalid || type == null)
return false;
foreach (Item i in m.Backpack.Items)
{
if (i is CSpellbook)
{
CSpellbook book = (CSpellbook)i;
if (book.School == school && book.HasSpell(type))
return true;
}
}
return false;
}
public static bool MobileHasSpell(Mobile m, School school, Type type)
{
if (m == null || m.Deleted || m.Backpack == null || school == School.Invalid || type == null)
return false;
foreach (Item i in m.Backpack.Items)
{
if (i is CSpellbook)
{
CSpellbook book = (CSpellbook)i;
if (book.School == school && book.HasSpell(type))
return true;
}
}
[COLOR=Red] Item ii = m.FindItemOnLayer(Layer.OneHanded);
if (ii is CSpellbook)
{
CSpellbook book = (CSpellbook)ii;
if (book.School == school && book.HasSpell(type))
return true;
}
Item iii = m.FindItemOnLayer(Layer.FirstValid);
if (iii is CSpellbook)
{
CSpellbook book = (CSpellbook)iii;
if (book.School == school && book.HasSpell(type))
return true;
}
[/COLOR] return false;
}