wafuboe
Active Member
- Joined
- Dec 24, 2010
- Messages
- 884
- Solutions
- 2
- Reaction score
- 26
Well i installed modal window and installed aswell this crafting systems
otland.net
When i click on the details to craft nothing happens and this error appears in console

any idea? thanks by the way
[TFS 1.2] Simple Crafting System.
Hello, Wasn't going to release this because there is already a couple but open source right? Like always it is using @Non Sequitur modal window system which can be found HERE You will have to install that in order to be able to use this system. Pictures Main Screen Selection Screen...
When i click on the details to craft nothing happens and this error appears in console
Code:
function onModalWindow(player, modalWindowId, buttonId, choiceId)
local modalWindow
for _, window in ipairs(modalWindows.windows) do
if window.id == modalWindowId then
modalWindow = window
break
end
end
if not modalWindow then
return true
end
local playerId = player:getId()
if not modalWindow.players[playerId] then
return true
end
modalWindow.players[playerId] = nil
local choice = modalWindow.choices[choiceId]
for _, button in ipairs(modalWindow.buttons) do
if button.id == buttonId then
local callback = button.callback or modalWindow.defaultCallback
if callback then
callback(button, choice)
break
end
end
end
return true
end