Hey,
So what I'm going for is pretty simple, I want spells to be learned from using a scroll. I've searched around and obviously there are lots of different tutorials for this, but none are seeming to work with my distribution.
For something simple like "exura," I used the script from this thread https://otland.net/threads/use-scroll-learn-spell.71707/#post735701. Yes, I updated my actions.xml, made sure to change 'needlearn="1"' in spells.xml,
but I'm still getting the following error in my server console window:
Lua Script Error: [Action Interface]
data/actions/scripts/other/scroll.lua: onUse
data/actions/scripts/other/scroll.lua:4: attempt to call global 'doPlayerLearnInstantSpell' (a nil value)
stack traceback:
[C]: in function 'doPlayerLearnInstantSpell'
data/action/scripts/other/scroll.lua:4: in function <data/actions/scripts/other/scroll.lua:2>
I understand that there's something wrong with "doPlayerLearnInstantSpell," but I'm not sure what exactly is wrong.
Any ideas as to how to modify the script from the thread I linked to work for OTX3, or is there an example script out there that's already working?
thanks~
So what I'm going for is pretty simple, I want spells to be learned from using a scroll. I've searched around and obviously there are lots of different tutorials for this, but none are seeming to work with my distribution.
For something simple like "exura," I used the script from this thread https://otland.net/threads/use-scroll-learn-spell.71707/#post735701. Yes, I updated my actions.xml, made sure to change 'needlearn="1"' in spells.xml,
but I'm still getting the following error in my server console window:
Lua Script Error: [Action Interface]
data/actions/scripts/other/scroll.lua: onUse
data/actions/scripts/other/scroll.lua:4: attempt to call global 'doPlayerLearnInstantSpell' (a nil value)
stack traceback:
[C]: in function 'doPlayerLearnInstantSpell'
data/action/scripts/other/scroll.lua:4: in function <data/actions/scripts/other/scroll.lua:2>
I understand that there's something wrong with "doPlayerLearnInstantSpell," but I'm not sure what exactly is wrong.
Any ideas as to how to modify the script from the thread I linked to work for OTX3, or is there an example script out there that's already working?
thanks~