Page 1 of 1

Spellbook

Posted: Thu Jan 24, 2008 5:11 pm
by Poi
Im having major spellbook issues, when I use one it just shows clumsy over and over, I tried everything(meaning i basically reinstalled pol)

I dunno whats wrong..

Image

Posted: Thu Jan 24, 2008 6:10 pm
by OldnGrey
take a look at your itemdesc.cfg entry for the spellbook and compare it to mine.
Here is mine - ignore my custom stuff like the oninserts etc.

Code: Select all

Spellbook 0x0EFA
{
	Name			Spellbook
	Desc			Spell Book
	Gump			0xFFFF
	MinX			40
	MaxX			60
	MinY			20
	MaxY			80
	Spelltype		Magic
	Newbie			1
	BlocksCastingIfInHand	0
	RequiresAttention	0
	Weight			1
	OnInsertScript		oninsert_spellbook
	CanInsertScript		caninsert_spellbook
}

Posted: Thu Jan 24, 2008 6:22 pm
by dkpat
also be sure to note the scrolls, an example scroll entry:

Code: Select all

SpellScroll 0x1F2D
{
	Name			reactivearmorscroll
	Desc			Reactive Armor scroll

	SpellId			7
	SpellType		Magic

	VendorBuysFor		6
	VendorSellsFor		12

	Script			spellScroll/use
}
be sure the spelltype is set to magic. this is from itemdesc.cfg

Posted: Thu Jan 24, 2008 7:05 pm
by Poi
OldnGrey wrote:take a look at your itemdesc.cfg entry for the spellbook and compare it to mine.
Here is mine - ignore my custom stuff like the oninserts etc.

Code: Select all

Spellbook 0x0EFA
{
	Name			Spellbook
	Desc			Spell Book
	Gump			0xFFFF
	MinX			40
	MaxX			60
	MinY			20
	MaxY			80
	Spelltype		Magic
	Newbie			1
	BlocksCastingIfInHand	0
	RequiresAttention	0
	Weight			1
	OnInsertScript		oninsert_spellbook
	CanInsertScript		caninsert_spellbook
}

Thanks, It was set as container not spellbook