Diff
checker
Texte
Texte
Images
Documents
Excel
Dossiers
Legal
Enterprise
Application de bureau
Prix
Se connecter
Télécharger Diffchecker Desktop
Comparer le texte
Trouver la différence entre deux fichiers texte
Outils
Historique
Éditeur live
Cacher identiques
Sans retour à la ligne
Vue
Divisé
Unifié
Niveau de précision
Intelligent
Mot
Caractère
Coloration syntaxique
Choisir la syntaxe
Ignorer
Transformer le texte
Aller au premier écart
Modifier l'entrée
Diffchecker Desktop
La façon la plus sécurisée d'utiliser Diffchecker. Obtenez l'application Diffchecker Desktop : vos diffs ne quittent jamais votre ordinateur !
Obtenir Desktop
Untitled diff
Créé
il y a 10 ans
Le diff n'expire jamais
Effacer
Exporter
Partager
Expliquer
4 suppressions
Lignes
Total
Supprimé
Caractères
Total
Supprimé
Pour continuer à utiliser cette fonctionnalité, passez à
Diff
checker
Pro
Voir les prix
35 lignes
Copier tout
4 ajouts
Lignes
Total
Ajouté
Caractères
Total
Ajouté
Pour continuer à utiliser cette fonctionnalité, passez à
Diff
checker
Pro
Voir les prix
35 lignes
Copier tout
local cfg = {
local cfg = {
bless = { 1, 2, 3, 4, 5 }
bless = { 1, 2, 3, 4, 5 }
}
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
function onUse(cid, item, fromPosition, itemEx, toPosition)
Copier
Copié
Copier
Copié
if item.
aid
>
0
then
if item.
actionid
>
24354
then
if item.
aid
~= getPlayerGUID(cid) then
if item.
actionid
~= getPlayerGUID(cid) then
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
Copier
Copié
Copier
Copié
doPlayerSendCancel(cid, "Get your filthy hands off Master " .. getPlayerNameByGUID(item.
aid
) .. "'s Book you thief!")
doPlayerSendCancel(cid, "Get your filthy hands off Master " .. getPlayerNameByGUID(item.
actionid
) .. "'s Book you thief!")
return true
return true
end
end
end
end
for i = 1, table.maxn(cfg.bless) do
for i = 1, table.maxn(cfg.bless) do
if(getPlayerBlessing(cid, cfg.bless[i])) then
if(getPlayerBlessing(cid, cfg.bless[i])) then
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
doPlayerSendCancel(cid, "You have already recieved Blessings!")
doPlayerSendCancel(cid, "You have already recieved Blessings!")
return true
return true
end
end
end
end
local exstorage = 45001
local exstorage = 45001
if exhaustion.check(cid, exstorage) then
if exhaustion.check(cid, exstorage) then
doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
doPlayerSendCancel(cid, "You are exhausted. Please wait awhile.")
doPlayerSendCancel(cid, "You are exhausted. Please wait awhile.")
return true
return true
end
end
exhaustion.set(cid, exstorage, 120)
exhaustion.set(cid, exstorage, 120)
for i = 1,5 do
for i = 1,5 do
doPlayerAddBlessing(cid, cfg.bless[i])
doPlayerAddBlessing(cid, cfg.bless[i])
end
end
doCreatureSetDropLoot(cid, false)
doCreatureSetDropLoot(cid, false)
doSetItemActionId(item.uid, getPlayerGUID(cid))
doSetItemActionId(item.uid, getPlayerGUID(cid))
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
doSendAnimatedText(getCreaturePosition(cid), "BLESSED!", TEXTCOLOR_RED)
doSendAnimatedText(getCreaturePosition(cid), "BLESSED!", TEXTCOLOR_RED)
doPlayerSendTextMessage(cid, 21, "You have recieved blessings by Ancient Book!")
doPlayerSendTextMessage(cid, 21, "You have recieved blessings by Ancient Book!")
return true
return true
end
end
Différences enregistrées
Texte d'origine
Ouvrir un fichier
local cfg = { bless = { 1, 2, 3, 4, 5 } } function onUse(cid, item, fromPosition, itemEx, toPosition) if item.aid > 0 then if item.aid ~= getPlayerGUID(cid) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doPlayerSendCancel(cid, "Get your filthy hands off Master " .. getPlayerNameByGUID(item.aid) .. "'s Book you thief!") return true end end for i = 1, table.maxn(cfg.bless) do if(getPlayerBlessing(cid, cfg.bless[i])) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doPlayerSendCancel(cid, "You have already recieved Blessings!") return true end end local exstorage = 45001 if exhaustion.check(cid, exstorage) then doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) doPlayerSendCancel(cid, "You are exhausted. Please wait awhile.") return true end exhaustion.set(cid, exstorage, 120) for i = 1,5 do doPlayerAddBlessing(cid, cfg.bless[i]) end doCreatureSetDropLoot(cid, false) doSetItemActionId(item.uid, getPlayerGUID(cid)) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA) doSendAnimatedText(getCreaturePosition(cid), "BLESSED!", TEXTCOLOR_RED) doPlayerSendTextMessage(cid, 21, "You have recieved blessings by Ancient Book!") return true end
Texte modifié
Ouvrir un fichier
local cfg = { bless = { 1, 2, 3, 4, 5 } } function onUse(cid, item, fromPosition, itemEx, toPosition) if item.actionid > 24354 then if item.actionid ~= getPlayerGUID(cid) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doPlayerSendCancel(cid, "Get your filthy hands off Master " .. getPlayerNameByGUID(item.actionid) .. "'s Book you thief!") return true end end for i = 1, table.maxn(cfg.bless) do if(getPlayerBlessing(cid, cfg.bless[i])) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doPlayerSendCancel(cid, "You have already recieved Blessings!") return true end end local exstorage = 45001 if exhaustion.check(cid, exstorage) then doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) doPlayerSendCancel(cid, "You are exhausted. Please wait awhile.") return true end exhaustion.set(cid, exstorage, 120) for i = 1,5 do doPlayerAddBlessing(cid, cfg.bless[i]) end doCreatureSetDropLoot(cid, false) doSetItemActionId(item.uid, getPlayerGUID(cid)) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA) doSendAnimatedText(getCreaturePosition(cid), "BLESSED!", TEXTCOLOR_RED) doPlayerSendTextMessage(cid, 21, "You have recieved blessings by Ancient Book!") return true end
Trouver la différence