Page 1 of 1
Spellbook got only CLUMSY spells
Posted: Sat Jun 02, 2007 5:51 am
by JeanLuc
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

)
Posted: Sat Jun 02, 2007 5:58 am
by MuadDib
Make sure the UOEXpansion (read core-changes) is set correctly for this client version (T2A).
Also, make sure you are not using the AOS Style spellbook settings in the SERVERSPECOPT.CFG file (UOFeatureEnable).
Posted: Sat Jun 02, 2007 6:50 am
by JeanLuc
Accounts.txt shows:
UOExpansion T2A
ServerSpecOpt.cfg shows:
UOFeatureEnable=0x00
Is this correct?
These settings have already been set, so your idea didnt helped so far

Posted: Sat Jun 02, 2007 10:11 am
by CWO
find your spellbook entry in itemdesc.cfg and change the entry from
to
also be sure to add within that itemdesc entry
Posted: Sat Jun 02, 2007 1:40 pm
by JeanLuc
Yay! That helped!!
THANK YOU
Posted: Sat Jun 30, 2007 2:21 pm
by runtest
Same problem with 96 distro, thanks for the fix!
Posted: Sat Jun 30, 2007 2:23 pm
by runtest
Now there are no power words displaying when I cast the spell.
Posted: Sat Jun 30, 2007 9:12 pm
by CWO
read core-changes.cfg. Going from 095-096 rips out almost all if not all core responsibility for spellcasting. Everything must be scripted now which on the con side, means more work for an established system but on the pro side, means you can customize spells completely to your liking.
Posted: Sun Jul 01, 2007 5:34 am
by runtest
So the 'PowerWords' tag is no longer used in spells.cfg?
Posted: Sun Jul 01, 2007 10:43 am
by CWO
The core won't automatically display them. Instead, now you must put in your scripts SpeakPowerWords(who, spellid); This is defined in uo.em. This function uses the power words defined in spells.cfg.
Posted: Sun Jul 01, 2007 5:56 pm
by runtest
Ah, I see, but when will a complete script set come into play and are the new scripts availible for SVN with 96 like the .gmtoolbar or .cmdbar somthing like that command?
Posted: Tue Jul 24, 2007 10:34 am
by dkpat
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
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
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?
Posted: Tue Jul 24, 2007 7:05 pm
by Yukiko
Hello dk.
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
}
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.
Posted: Tue Jul 24, 2007 9:28 pm
by dkpat
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...
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
Posted: Wed Jul 25, 2007 11:10 am
by 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:
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
}
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.
Posted: Thu Jul 26, 2007 9:56 am
by dkpat
that is exactly how my spell book entry is... minus a change in the place of the script it uses. so.... yah
Posted: Thu Jul 26, 2007 5:20 pm
by Yukiko
dk,
I can't help but wonder if it is something missing in the definitions in the itemdesc files. Post the definition of one of the scrolls and the spellbook definition. Maybe you've overlooked something.
Posted: Thu Jul 26, 2007 6:14 pm
by dkpat
ok
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
}
ok here is one of each. can somebody please help out.
Posted: Thu Jul 26, 2007 9:02 pm
by Yukiko
dk,
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
}
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.
Posted: Mon Jul 30, 2007 12:39 pm
by dkpat
well thanks yukiko but it doesn't do anything different. i can just erase that in pcequip right... i'm thinking now that where i changed those files it can't figure out what item it is on the character. so getting rid of those items would fix it right?
Posted: Mon Jul 30, 2007 12:58 pm
by dkpat
i was right. lol i got on and deleted all spellbooks and scrolls from people and it fixed it after i rehanged the files. it now displays all of the spells. THANK YOU SO MUCH YUKIKO!!!
Posted: Mon Jul 30, 2007 6:58 pm
by Yukiko
No problem. Glad I was able to help.