Page 1 of 1

Does anyone have an example of a Necromancer Scroll Book?

Posted: Thu Apr 23, 2009 12:26 am
by JaceAce
Does anyone have a necromancer scroll book script i can look at?

I understand how to set up a Necromancer Scroll book with spellid 101 etc.
For some reason it wont put the picture in the book.

Im using Mondains Legacy with no updates.

Im not sure what i am doing wrong.....
:)

Re: Does anyone have an example of a Necromancer Scroll Book?

Posted: Thu Apr 23, 2009 3:02 am
by blkwr
spells.cfg

Spell <spell_id>
{
SpellId <spell_id>
Name <spell_name>
Script <spell_script>
PowerWords <powerword>
Reagent <reagent>
Reagent <reagent>
Reagent <reagent>
}

itemdesc.cfg

Spellbook <spellbook_objtype>
{
Name spellbookname
Gump 0xFFFF
MinX 40
MaxX 60
MinY 20
MaxY 80
Newbie 1
BlocksCastingIfInHand 0
RequiresAttention 0
VendorSellsFor 22
VendorBuysFor 11
OnInsertScript scrollinsert
MaxWeight 60000
SpellType <spelltype> -> Necro for Necromancy
}

Item <spell_objtype>
{
Name <spellname>
Desc <spell desc>
Script <spell script>
Spellid <spell_id>
}

Re: Does anyone have an example of a Necromancer Scroll Book?

Posted: Thu Apr 23, 2009 3:37 am
by OldnGrey
As far as I know, these entries in itemdesc.cfg work for necro and spellweaving books themselves:

Code: Select all

Spellbook 0x2d50
{
	Name			spellweavingbook
	Desc			Spell Weaving Book
	Tooltips		Spellweaver Casting Book
	Gump			0xFFFF
	MinX			40
	MaxX			60
	MinY			20
	MaxY			80
	Spelltype		SpellWeaving
	Newbie			1
	BlocksCastingIfInHand	0
	RequiresAttention	0
	VendorSellsFor		22
	VendorBuysFor		11
	Weight			1
	OnInsertScript		oninsert_spellbook
	CanInsertScript		caninsert_spellbook
}


Spellbook 0x2253
{
	Name			necrobook
	Desc			Necromancer Spell Book
	Tooltips		Necromancer Casting Book
	Gump			0xFFFF
	MinX			40
	MaxX			60
	MinY			20
	MaxY			80
	Spelltype		Necro
	Newbie			1
	BlocksCastingIfInHand	0
	RequiresAttention	0
	VendorSellsFor		22
	VendorBuysFor		11
	Weight			1
	OnInsertScript		oninsert_spellbook
	CanInsertScript		caninsert_spellbook
}

Here are a couple of the scroll definitions I have coded in but not tested.

Code: Select all

Item 0x2260
{
	Name			animateddead_scroll
	Desc			Animate Dead scroll
	Tooltips		Cast from scroll or insert into necromancer spellbook
//	Script			scroll
	Spellid			101
	VendorBuysFor		12
	VendorSellsFor		124
	color			0
	Weight			1/20
}

Item 0x2261
{
	Name			bloodoath_scroll
	Desc			Blood Oath scroll
	Tooltips		Cast from scroll or insert into necromancer spellbook
//	Script			scroll
	Spellid			102
	VendorBuysFor		12
	VendorSellsFor		124
	color			0
	Weight			1/20
}

Re: Does anyone have an example of a Necromancer Scroll Book?

Posted: Thu Apr 23, 2009 5:57 am
by JaceAce
Yea thats how i did it. I'll test with your examples to see what I get.

Im using Pol 098
Mondains Legacy (no updates) the original Mondain's Legacy Download.

I can create the book. I can create the scroll with the spell. I can use the scroll and it works.
I can drop the scroll into the book. The book appears to contain the scroll and it will not allow a second scroll of the same type. But it does not give the picture for the scroll spell, the name, within the book. Almost like it is there without the graphics. Not sure if its a Pol 098 problem. Client Problem or Me. Lol

Probably a setting im missing.

Thanks ill try your examples see what i get.

Anyone else get Pol 098 working with a "necro spellbook"?

Re: Does anyone have an example of a Necromancer Scroll Book?

Posted: Thu Apr 23, 2009 6:15 am
by *Edwards
You can get an exemple of necrospell scripts in my project pkg/skills/mage/magery/spellScripts/codex

http://forums.polserver.com/viewtopic.php?f=8&t=2607

Re: Does anyone have an example of a Necromancer Scroll Book?

Posted: Thu Apr 23, 2009 10:07 am
by MuadDib
Make sure you have enabled UOFeatures for the books in servspecopt.cfg