Spellbook got only CLUMSY spells
Moderator: POL Developer
Spellbook got only CLUMSY spells
Hi
Ive got another problem with my newest POL 97 version.
I copy the 2 POL packages into each other, use UO Convert, copy UO files to MUL directory, do not change ANY file.
I have a blank new installation. I login with admin / admin.
I open my inventory and have a full spellbook there by default. When I open it, it has ONLY 'CLUMSY' spells at first page, no spells at all other pages.
If I look in my PCEQUIP.TXT, I have all the correct different scrolls in my spellbook container, but its not displayed at the client (v 2.0.0) correctly. It doesnt matter which CLUMSY text I doubleclick, everyone casts CLUMSY spell.
Any help?
Thaaaaaaaaaaanks (again )
Ive got another problem with my newest POL 97 version.
I copy the 2 POL packages into each other, use UO Convert, copy UO files to MUL directory, do not change ANY file.
I have a blank new installation. I login with admin / admin.
I open my inventory and have a full spellbook there by default. When I open it, it has ONLY 'CLUMSY' spells at first page, no spells at all other pages.
If I look in my PCEQUIP.TXT, I have all the correct different scrolls in my spellbook container, but its not displayed at the client (v 2.0.0) correctly. It doesnt matter which CLUMSY text I doubleclick, everyone casts CLUMSY spell.
Any help?
Thaaaaaaaaaaanks (again )
find your spellbook entry in itemdesc.cfg and change the entry from
to
also be sure to add within that itemdesc entry
Code: Select all
container 0x0EFA
{
Code: Select all
Spellbook 0x0EFA
{
Code: Select all
Spelltype magic
hey i'm having problems with this. using 095 distro on 096 core ( the one in the downloads section) i did the changes in the itemdesc.cfg but when i go to run POL this is what it says
i know this has to be a spellbook problem it wasn't like this before i changed the spellbook in itemdesc.cfg... can someone help me please?
Code: Select all
Reading data files:
data/accounts.txt: 5 elements in 171 ms.
data/pol.txt: 2 elements in 20 ms.
data/objects.txt: 0 elements in 0 ms.
data/pcs.txt: 29 elements in 60 ms.
data/pcequip.txt:Can't add Item 0x6ae0ea54 to container 0x6ae0ea13
Server Shutdown: reading data
Leftover objects in objecthash: 88
Leaking a copy of the objecthash in order to avoid a crash.
Execution aborted due to: Data file error
Hello dk.
Did you change the item name for spell scrolls from "Item" to "SpellScroll" within the itemdesc.cfg file they are defined?
Example:
That might be the problem. It is possible that the server is trying to insert a scroll with the wrong item type definition (not sure if that's what it's called). It wants "SpellScroll" and is getting "Item" for the type definition of the spell scrolls.
If that doesn't fix it then you can open the pcequip.txt file in \pol\data and search for the serial of the container that is causing the problem to see what it is.
Did you change the item name for spell scrolls from "Item" to "SpellScroll" within the itemdesc.cfg file they are defined?
Example:
Code: Select all
SpellScroll 0x1f2d
{
Name reactivearmorscroll
Desc Reactive Armor scroll
Script spellScroll/use
Spellid 7
SpellType Magic
VendorBuysFor 6
VendorSellsFor 12
Tooltip Doubleclick to cast a spell, or use Inscription to add this spell to a spellbook
}
If that doesn't fix it then you can open the pcequip.txt file in \pol\data and search for the serial of the container that is causing the problem to see what it is.
... i really wanted to avoid doing that...If that doesn't fix it then you can open the pcequip.txt file in \pol\data and search for the serial of the container that is causing the problem to see what it is.
ok the item definition has nothing to do with it ( yah i know kinda behind my self)
and as for the items serials .... i don't get much from it...
the thing is the item it says it's trying to insert into the other container... well the container has a container... this might be normal.. i don't know. lol ( i'm not very good with POL distro 095)
so in the end.. i still need help.
oh and hi Yukiko
You may not be aware that spellbooks are containers. That is why you will find that they have a container mermber in the pcequip,txt file. When POL starts it scans the spellbook container and makes sure the items in the container are the right kind, scrolls. If the scroll's members are not set correctly or the spellbook members are not set properly then POL will complain that the scrolls don't belong in the spellbook. Since you have the scrolls entered correctly in your itemdesc file, make sure you have all the necessary members set in your spellbook entry in the itemdesc.cfg file.
Here is an example of what a spellbook entry would look like:
Your entry might look a bit different in a few places but the important lines are the first one; Spellbook 0x0EFA and SpellType Magic. If those are not set properly then I am pretty sure the core won't handle inserting scrolls properly.
Here is an example of what a spellbook entry would look like:
Code: Select all
Spellbook 0x0EFA
{
Name spellbook
Desc spellbook
Gump 0xFFFF
MinX 40
MaxX 60
MinY 20
MaxY 80
Newbie 1
SpellType Magic
BlocksCastingIfInHand 0
RequiresAttention 0
VendorSellsFor 22
VendorBuysFor 11
weight 1
canRemoveScript spellBook/canRemove
}
ok
Spellbook Definition
Reactive Armor Scroll Definition
ok here is one of each. can somebody please help out.
Spellbook Definition
Code: Select all
Spellbook 0x0EFA
{
Name Spellbook
desc spellbook
OnInsertScript scrollInsert
Gump 0xFFFF
MinX 40
MaxX 60
MinY 20
MaxY 80
Newbie 1
BlocksCastingIfInHand 0
RequiresAttention 0
VendorSellsFor 22
VendorBuysFor 11
weight 1
CanInsertScript ::canInsert
OnInsertScript ::onInsert
CanRemoveScript ::canRemove
OnRemoveScript ::onRemove
Spelltype magic
}
Reactive Armor Scroll Definition
Code: Select all
Scroll 0x1f2d
{
Name reactivearmorscroll
Desc Reactive Armor scroll
Script scroll
Spellid 7
VendorBuysFor 6
VendorSellsFor 12
Tooltip Doubleclick to cast a spell, or use Inscription to add this spell to a spellbook
}
dk,
Here is the sample spellscroll definition I posted earlier:
You need the SpellType member in the scroll definitions as well. That is required in order for the core to know that the scroll contained in the spellbook is of the right type. According to the core chamges file There are six types of magic now, Magic (the standard one we all know and love), Necro, Paladin, Bushido, Ninjitsu and Spellweaving. I am not sure if the member names are case sensitive either so I use them with the first letter in uppercase.
Hope that fixes the problem.
Here is the sample spellscroll definition I posted earlier:
Code: Select all
SpellScroll 0x1f2d
{
Name reactivearmorscroll
Desc Reactive Armor scroll
Script spellScroll/use
Spellid 7
SpellType Magic
VendorBuysFor 6
VendorSellsFor 12
Tooltip Doubleclick to cast a spell, or use Inscription to add this spell to a spellbook
}
Hope that fixes the problem.