mirror of
https://github.com/otland/forgottenserver
synced 2026-08-15 16:32:07 -04:00
20 lines
440 B
Lua
20 lines
440 B
Lua
|
|
local reactWindow = TalkAction("!textWindow")
|
||
|
|
|
||
|
|
function reactWindow.onSay(player, words, param, type)
|
||
|
|
local txtWindow = TextWindow({
|
||
|
|
itemId = 1234,
|
||
|
|
text = "Write something here:",
|
||
|
|
canWrite = true,
|
||
|
|
length = 100,
|
||
|
|
callback = function(player, item, text)
|
||
|
|
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "You wrote: " .. text)
|
||
|
|
return true
|
||
|
|
end
|
||
|
|
})
|
||
|
|
|
||
|
|
txtWindow:sendToPlayer(player)
|
||
|
|
return false
|
||
|
|
end
|
||
|
|
|
||
|
|
reactWindow:register()
|