kozmo
Member
- Joined
- Jan 30, 2009
- Messages
- 443
- Solutions
- 2
- Reaction score
- 23
Here is the Script works fine in 1.2 but Registering files have changed in 1.3 and this is not working the same.
Trying to use this custom action script to learn a spell. Tried to remake new file but i think something is missing.
New file:
Old file:
Trying to use this custom action script to learn a spell. Tried to remake new file but i think something is missing.
New file:
Lua:
local spellcast_spellScroll_onUse = Action()
function spellcast_spellScroll_onUse.onUse(player, item, fromPosition, target, toPosition, isHotkey) return spellcast_spellScroll_onUse(player, item, fromPosition, target, toPosition, isHotkey) end
spellcast_spellScroll_onUse:id(4217, 4216, 4218, 4208, 4206, 4207)
spellcast_spellScroll_onUse:register()
Lua:
function onUse(player, item, frompos, itemEx, topos) return spellcast_spellScroll_onUse(player, item, frompos, itemEx, topos) end
Last edited: