• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 1.X+ Custom Spell Scroll help 1.3

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:
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()
Old file:
Lua:
function onUse(player, item, frompos, itemEx, topos) return spellcast_spellScroll_onUse(player, item, frompos, itemEx, topos) end
 
Last edited:
Here is the Script works fine in 1.2 but Registering files have changed in 1.3 and this is not working the same.
just FYI, registering in 1.3 have not changed, you can still register your scripts in the "old" way, unless you are using otservbr of course

(no, tfs 1.3 and otservbr aren't the same thing)
 
Back
Top