Diff
checker
Testo
Testo
Immagini
Documenti
Excel
Cartelle
Legal
Enterprise
Applicazione per desktop
Prezzi
Accedi
Scarica Diffchecker Desktop
Confronta il testo
Trova la differenza tra due file di testo
Strumenti
Cronologia
Editor live
Comprimi invariate
Senza a capo
Layout
Diviso
Unificato
Livello di dettaglio
Intelligente
Parola
Carattere
Evidenziazione sintassi
Scegli sintassi
Ignora
Trasforma testo
Vai alla prima modifica
Modifica input
Diffchecker Desktop
Il modo più sicuro per usare Diffchecker. Ottieni l'app Diffchecker Desktop: i tuoi diff non lasciano mai il tuo computer!
Ottieni Desktop
Untitled diff
Creato
10 anni fa
Il diff non scade mai
Eliminare
Esporta
Condividere
Spiegare
25 rimozioni
Linee
Totale
Rimosso
Caratteri
Totale
Rimosso
Per continuare a utilizzare questa funzione, aggiorna a
Diff
checker
Pro
Visualizza prezzi
37 linee
Copia tutti
25 aggiunte
Linee
Totale
Aggiunto
Caratteri
Totale
Aggiunto
Per continuare a utilizzare questa funzione, aggiorna a
Diff
checker
Pro
Visualizza prezzi
34 linee
Copia tutti
Copia
Copiato
Copia
Copiato
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
Copia
Copiato
Copia
Copiato
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
Copia
Copiato
Copia
Copiato
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
Copia
Copiato
Copia
Copiato
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
Copia
Copiato
Copia
Copiato
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
Copia
Copiato
Copia
Copiato
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
Diff salvati
Testo originale
Apri 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
Testo modificato
Apri 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
Trovare la differenza