Diff
checker
文本
文本
圖像
文檔
Excel
文件夾
Legal
Enterprise
桌面版
定價
登入
下載 Diffchecker 桌面版
比較文本
尋找兩個文字檔案之間的差異
工具
歷史
即時編輯器
摺疊未變更行
關閉換行
檢視
拆分
統一
比對精度
智能
單詞
字符
語法突出顯示
選擇語法
忽略
文字轉換
前往第一個差異
編輯輸入
Diffchecker Desktop
執行Diffchecker最安全的方式。取得Diffchecker桌面應用程式:您的差異永遠不會離開您的電腦!
取得桌面版
Untitled diff
建立於
10 年前
差異永不過期
清除
匯出
分享
解釋
4 刪除
行
總計
刪除
字符
總計
刪除
要繼續使用此功能,請升級到
Diff
checker
Pro
查看價格
35 行
全部複製
4 新增
行
總計
新增
字符
總計
新增
要繼續使用此功能,請升級到
Diff
checker
Pro
查看價格
35 行
全部複製
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)
複製
已複製
複製
已複製
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)
複製
已複製
複製
已複製
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
已保存差異
原始文本
開啟檔案
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
更改後文本
開啟檔案
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
尋找差異