hellboy
Intermediate OT User
Yesterday I saw this commit:
revscriptsys (#2558) · otland/forgottenserver@62dac47 (https://github.com/otland/forgottenserver/commit/62dac47c01610f652a5d792d4c9e06f4f0febefa)
1. There is any additional documentation about this? Last time I heard about revscriptsys few years ago (I guess in 2011).
2. If I create lua script for knife in both ways (revscriptsys and "classic way") which script run on use item?
3. Next TFS release will be 1.3 (with some backward compability) or 2.0 (with no backward compability)?
Or it'll be: 1.0 -> 1.1 -> 1.2 -> 1.3 -> 2.0
Anyway I like idea of registering functions in lua:
revscriptsys (#2558) · otland/forgottenserver@62dac47 (https://github.com/otland/forgottenserver/commit/62dac47c01610f652a5d792d4c9e06f4f0febefa)
1. There is any additional documentation about this? Last time I heard about revscriptsys few years ago (I guess in 2011).
2. If I create lua script for knife in both ways (revscriptsys and "classic way") which script run on use item?
3. Next TFS release will be 1.3 (with some backward compability) or 2.0 (with no backward compability)?
Or it'll be: 1.0 -> 1.1 -> 1.2 -> 1.3 -> 2.0
Anyway I like idea of registering functions in lua:
Code:
local spellbook = Action()
function spellbook.onUse(player, item, fromPosition, target, toPosition, isHotkey)
-- do stuff here
end
spellbook:id(2175, 6120, 8900, 8901, 8902, 8903, 8904, 8918)
spellbook:register()