Share tool dịch ngược chữ nhỏ thành chữ thường piliapp.com bằng lua
3 minute read
Vì nhiều bạn lập trình script lua, sử dụng công cụ "Máy phát điện chữ nhỏ" của piliapp.com để giúp phông chữ trong script của mình trông gọn gàng và đẹp hơn. nhưng sau 1 thời gian dùng cảm thấy nó "rất phiền" vì khi dùng "Máy phát điện chữ nhỏ" của piliapp.com lập trình thì nó rất bất tiện. Vì các lí do đó hôm nay mình sẽ share cho mọi người dòng code lua chạy trên gameguardian chuyển từ chữ nhỏ thành chữ thường. Kéo xuống cuối để copy code !!!
Lua
a={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","\t"}
b={"ᴀ","ʙ","ᴄ","ᴅ","ᴇ","ғ","ɢ","ʜ","ɪ","ᴊ","ᴋ","ʟ","ᴍ","ɴ","ᴏ","ᴘ","q","ʀ","ᴛ","ᴜ","ᴠ","ᴡ","x","ʏ","ᴢ","ᴀ","ʙ","ᴄ","ᴅ","ᴇ","ғ","ɢ","ʜ","ɪ","ᴊ","ᴋ","ʟ","ᴍ","ɴ","ᴏ","ᴘ","q","ʀ","s","ᴛ","ᴜ","ᴠ","ᴡ","x","ʏ","ᴢ","\t"}
local SELF_PATH, SELF_DIR
SELF_PATH = gg.getFile()
SELF_DIR = ''
for Text in SELF_PATH:gmatch('[^/]*/') do
SELF_DIR = SELF_DIR .. Text
end
v={SELF_PATH, SELF_DIR}
function Main()
toolvip = gg.choice({
" 『 nhỏ sang thường 』",
" 『 thường sang nhỏ 』"
},nil,("🇻🇳★sᴄʀɪᴘᴛ ᴅɪ̣ᴄʜ ɴɢᴜ̛ᴏ̛̣ᴄ sᴍᴀʟʟᴄᴀᴘs★🇻🇳"))
if toolvip==nil then gg.toast("cao ngu") else
if toolvip == 1 then c=a d=b kkkk() end
if toolvip == 2 then c=b d=a kkkk() end
end
XGCK=-1
end
function kkkk()
sle = gg.prompt({"📤 ᴄʜᴏ̣ɴ ғɪʟᴇ ᴄᴀ̂̀ɴ ᴅɪ̣ᴄʜ : "},v,{"file"})
if not sle then
return
end
ssss=sle[1]
function ingest(file)
local f = io.open(file, "r")
local lines = f:read("all")
f:close()
return(lines)
end
myfile=ingest(ssss)
function smallCapsToRegular(str)
for i = 1, #smallcaps.searches do
str = str:gsub(smallcaps.searches[i], smallcaps.replaces[i])
end
return str
end
smallcaps = {
replaces = c,
searches = d
}
a = myfile
b = smallCapsToRegular(a)
tool_vip_pro = gg.choice({
" 『 copy text 』",
" 『 save file 』"
},nil,("🇻🇳★sᴄʀɪᴘᴛ ᴅɪ̣ᴄʜ ɴɢᴜ̛ᴏ̛̣ᴄ sᴍᴀʟʟᴄᴀᴘs★🇻🇳"))
if tool_vip_pro==nil then gg.toast("cao ngu") else
if tool_vip_pro == 1 then print(b) os.exit()end
if tool_vip_pro == 2 then
function exgest(file)
local f = io.open(file, "a")
io.output(f)
io.write("Sau khi dịch :\n\n\n"..b)
io.close(f)
end
myfile=exgest(ssss)
gg.toast("đã ghi đè file")
end
end
Đăng nhận xét