• 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!

CreatureEvent [TFS 1.3 / 1.4] Upgrade System

19:04 Item upgrade level increased by 4!
but it doesnt show item level on look , no errors
 
Anyone know how to make it so items don't break at all?

When im changing anything here up or down:
Lua:
UPGRADE_LEVEL_DESTROY = 7, -- at which upgrade level should it break if failed, for example if = 7 then upgrading from +6 to +7-9 can destroy item on failure.
I get this error:
Code:
Lua Script Error: [Action Interface]
data/actions/scripts/upgrade_system_actions.lua:onUse
data/upgrade_system_core.lua:37: attempt to compare nil with number
stack traceback:
        [C]: in function '__lt'
        data/upgrade_system_core.lua:37: in function <data/upgrade_system_core.lua:6>

And do anyone know why no one of the element damages work?
for example:
(20% to cast Ice Strike on Attack dealing 1-34 damage)

Using nekiro/TFS-1.4-Downgrade 8.6 (everything else works as far as i have seen)
 
i need a little help with the code.

my target:
Lua:
target:    { ["actionid"] = 0,["type"] = 0,["uid"] = 0,["itemid"] = 0,}
but if i use any upgrade item:

Code:
Lua Script Error: [Action Interface]
data/actions/scripts/upgrade_system_actions.lua:onUse
data/upgrade_system_core.lua:27: attempt to call method 'isItem' (a nil value)
stack traceback:
    [C]: in function 'isItem'
    data/upgrade_system_core.lua:27: in function <data/upgrade_system_core.lua:20>
^CSIGINT re
 
Left to do? Nothing. What can be done is moving this to revscriptsys and adjusting installation process (EventCallback support).

If anyone is interested in doing so, PM me and I'll add them to GitHub repo.
Is there a way we can set a bounty on this. Im willing to reward anyone who updates this. Im also willing to help.
 
If You Say So Ok GIF by The Grinch


Not tested btw 🤪
 
Are there any chances for the script to run on tfs 1.4 8.6 downgrade after change upgrade crystals to available items in 8.6?
 
Are there any chances for the script to run on tfs 1.4 8.6 downgrade after change upgrade crystals to available items in 8.6?
This works on any TFS 1.4. It won't work with items created before this script was added.
 
Tfs 1.4 8.6 downgrade by Nekiro:
Lua:
Lua Script Error: [Scripts Interface]
/home/ots/data/scripts/core.lua
luaDebugPrint(). [Warning - EventCallback::register] is need to set up a callbac                                                                                        k before register.
stack traceback:
        [C]: in function 'debugPrint'
        /home/ots/data/scripts/lib/event_callbacks.lua:97: in function 'register                                                                                        '
        /home/ots/data/scripts/core.lua:1365: in main chunk
        [C]: in function 'reload'
        data/talkactions/scripts/reload.lua:81: in function <data/talkactions/sc                                                                                        ripts/reload.lua:59>

Lua Script Error: [Scripts Interface]
/home/ots/data/scripts/core.lua
luaDebugPrint(). [Warning - EventCallback::register] is need to set up a callbac                                                                                        k before register.
stack traceback:
        [C]: in function 'debugPrint'
        /home/ots/data/scripts/lib/event_callbacks.lua:97: in function 'register                                                                                        '
        /home/ots/data/scripts/core.lua:1366: in main chunk
        [C]: in function 'reload'
        data/talkactions/scripts/reload.lua:81: in function <data/talkactions/sc                                                                                        ripts/reload.lua:59>

Lua Script Error: [Scripts Interface]
/home/ots/data/scripts/core.lua
luaDebugPrint(). [Warning - EventCallback::register] is need to set up a callbac                                                                                        k before register.
stack traceback:
        [C]: in function 'debugPrint'
        /home/ots/data/scripts/lib/event_callbacks.lua:97: in function 'register                                                                                        '
        /home/ots/data/scripts/core.lua:1367: in main chunk
        [C]: in function 'reload'
        data/talkactions/scripts/reload.lua:81: in function <data/talkactions/sc                                                                                        ripts/reload.lua:59>

Lua Script Error: [Scripts Interface]
/home/ots/data/scripts/core.lua
luaDebugPrint(). [Warning - EventCallback::register] is need to set up a callbac                                                                                        k before register.
stack traceback:
        [C]: in function 'debugPrint'
        /home/ots/data/scripts/lib/event_callbacks.lua:97: in function 'register                                                                                        '
        /home/ots/data/scripts/core.lua:1368: in main chunk
        [C]: in function 'reload'
        data/talkactions/scripts/reload.lua:81: in function <data/talkactions/scripts/reload.lua:59>                                                                                      ripts/reload.lua:59>
 
Ah yes, the good old stupid loading order of RevScript files. Jesus christ, I actually want to commit seppuku, can't count how many times I've run into such issues.
You are loading these scripts before EventCallback lib script is loaded.
What would you recommend to do? This is how i added your script to the latest otservbr server:
1637794800789.png
 
@oen432 there is a folder called data/scripts/lib all files of type lib should be defined here
these files are loaded after the classical lib's

in any case, if you really want to pack everything in a single file, you shouldn't have any problem if everything is in a single file, just try to put the user settings in the header

after all, revscript and eventcallback were created for that, to be able to pack large systems in a single file
 
Back
Top