Diff
checker
Text
Text
Images
Documents
Excel
Folders
Legal
Enterprise
Desktop
Pricing
Sign in
Download Diffchecker Desktop
Compare text
Find the difference between two text files
Tools
History
Real-time editor
Hide unchanged lines
Disable line wrap
Layout
Split
Unified
Diff precision
Smart
Word
Char
Syntax highlighting
Choose syntax
Ignore
Transform text
Go to first change
Edit input
Diffchecker Desktop
The most secure way to run Diffchecker. Get the Diffchecker Desktop app: your diffs never leave your computer!
Get Desktop
Untitled diff
Created
10 years ago
Diff never expires
Clear
Export
Share
Explain
25 removals
Lines
Total
Removed
Characters
Total
Removed
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
37 lines
Copy
25 additions
Lines
Total
Added
Characters
Total
Added
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
34 lines
Copy
Copy
Copied
Copy
Copied
local letter = {2598
}
function onSay(player, words, param)
function onSay(player, words, param)
if not player:getGroup():getAccess() then
if not player:getGroup():getAccess() then
return true
return true
end
end
Copy
Copied
Copy
Copied
local
target
local
p = param:split(',')
if param == '' then
if #p ~= 2
then
target = player:getTarget()
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Para Enviar . Usse: /sendletter <player name>
, text
')
if not target
then
return false
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Para Enviar . Usse: /sendletter <player name>
')
return false
end
else
target = Player(param)
end
end
Copy
Copied
Copy
Copied
if not target then
local target = Player(p[1]:trim())
if not target then
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Player ' .. param .. ' não está online.')
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Player ' .. param .. ' não está online.')
return false
return false
end
end
if target:getAccountType() > player:getAccountType() then
if target:getAccountType() > player:getAccountType() then
Copy
Copied
Copy
Copied
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, '
N
ão pode
.')
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, '
Você n
ão pode
enviar uma carta caso o acesso da pessoa seja maior que o seu
.')
return false
return false
end
end
Copy
Copied
Copy
Copied
for i = 1, #
letter
do
local
letter
=
target:addItem(
2598, 1)
target:addItem(
letter
, 1):setAttribute(ITEM_ATTRIBUTE_TEXT, "Notificação\n" .. player:getName() .. ".")
if not
letter
then
return false
end
end
Copy
Copied
Copy
Copied
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, '
C
arta
E
nviada
' .. target:getName() .. '.')
letter:setAttribute(ITEM_ATTRIBUTE_NAME, string.format('Notificação\n%s.', player:getName()))
target:sendTextMessage(MESSAGE_STATUS_WARNING,
"[Server
] Você
R
ecebeu uma
notificação
de
" ..
player:getName()
.. "."
)
letter:setAttribute(ITEM_ATTRIBUTE_TEXT, ''.. p[2]:trim()..'')
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, '
Sua c
arta
foi e
nviada
com sucesso para o jogador
' .. target:getName() .. '.')
target:sendTextMessage(MESSAGE_STATUS_WARNING,
string.format('[SERVER
] Você
r
ecebeu uma
carta
de
%s',
player:getName()
)
)
return false
return false
end
end
Saved diffs
Original text
Open file
local letter = {2598 } function onSay(player, words, param) if not player:getGroup():getAccess() then return true end local target if param == '' then target = player:getTarget() if not target then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Para Enviar . Usse: /sendletter <player name>') return false end else target = Player(param) end if not target then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Player ' .. param .. ' não está online.') return false end if target:getAccountType() > player:getAccountType() then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Não pode.') return false end for i = 1, #letter do target:addItem(letter, 1):setAttribute(ITEM_ATTRIBUTE_TEXT, "Notificação\n" .. player:getName() .. ".") end player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Carta Enviada ' .. target:getName() .. '.') target:sendTextMessage(MESSAGE_STATUS_WARNING, "[Server] Você Recebeu uma notificação de " .. player:getName() .. ".") return false end
Changed text
Open file
function onSay(player, words, param) if not player:getGroup():getAccess() then return true end local p = param:split(',') if #p ~= 2 then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Para Enviar . Usse: /sendletter <player name>, text') return false end local target = Player(p[1]:trim()) if not target then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Player ' .. param .. ' não está online.') return false end if target:getAccountType() > player:getAccountType() then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Você não pode enviar uma carta caso o acesso da pessoa seja maior que o seu.') return false end local letter = target:addItem(2598, 1) if not letter then return false end letter:setAttribute(ITEM_ATTRIBUTE_NAME, string.format('Notificação\n%s.', player:getName())) letter:setAttribute(ITEM_ATTRIBUTE_TEXT, ''.. p[2]:trim()..'') player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Sua carta foi enviada com sucesso para o jogador ' .. target:getName() .. '.') target:sendTextMessage(MESSAGE_STATUS_WARNING, string.format('[SERVER] Você recebeu uma carta de %s', player:getName())) return false end
Find difference