Does anyone have an example of a Necromancer Scroll Book?

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
JaceAce
Expert Poster
Posts: 74
Joined: Fri Feb 29, 2008 10:56 pm

Does anyone have an example of a Necromancer Scroll Book?

Post 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.....
:)
blkwr
New User
Posts: 26
Joined: Wed Feb 08, 2006 1:47 pm

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

Post 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>
}
User avatar
OldnGrey
POL Expert
Posts: 657
Joined: Sat Feb 04, 2006 6:26 pm

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

Post 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
}
JaceAce
Expert Poster
Posts: 74
Joined: Fri Feb 29, 2008 10:56 pm

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

Post 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"?
User avatar
*Edwards
Forum Regular
Posts: 303
Joined: Fri Dec 28, 2007 11:19 pm

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

Post 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
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm

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

Post by MuadDib »

Make sure you have enabled UOFeatures for the books in servspecopt.cfg
Post Reply