|
马上注册,下载996引擎,与更多游戏开发者交流。
您需要 登录 才可以下载或查看,没有账号?注册
×
local tab = {
["刺杀剑术"] = { [1] = 100, [2] = 200, [3] = 300 },
["烈火剑法"] = { [1] = 200, [2] = 300, [3] = 400 },
["开天斩"] = { [1] = 300, [2] = 400, [3] = 500 },
}
function main(actor)
local t = {}
for key in pairs(tab) do
local skill_id = getskillindex(key)
local skill_level = getskillinfo(actor, skill_id, 2)
if skill_level then
t[key] = skill_level
if skill_level >= 3 then
t[key] = "满级"
end
else
t[key] = "未学习"
end
end
local mai = [[
<Img|id=ui_1|children={ui_2}|x=0|y=0|width=496|height=352|img=public\bg_npc_04.jpg|bg=1|move=0|reset=1|show=0|scale9l=10|scale9r=10|scale9t=10|scale9b=10>
<Button|id=ui_2|x=493|y=0|width=26|height=42|nimg=public\1900000510.png|pimg=public\1900000510.png|mimg=public\1900000510.png|color=251|size=18|link=@exit>
<Layout|id=ui_6|children={ui_3,ui_7,ui_4,ui_5,ui_9,ui_19}|x=10|y=15|width=476|height=324|color=0>
<Img|id=ui_3|x=4|y=47|width=70|height=70|img=skill_icon_c\12_4.png|show=0>
<Img|id=ui_7|x=60|y=6|width=359|height=12|img=public\word_sxbt_05.png|show=0>
<Img|id=ui_4|x=4|y=150|width=70|height=70|img=skill_icon_c\26.png|show=0>
<Img|id=ui_5|x=3|y=248|width=70|height=70|img=skill_icon_c\39_2.png|show=0>
<Img|id=ui_9|x=1|y=32|width=478|height=4|img=public\1900000667_1.png|show=0>
<Button|id=ui_19|x=389|y=94|width=88|height=38|nimg=public\1900000679_1.png|pimg=public\1900000679_1.png|mimg=public\1900000679.png|color=149|size=18|text=强化刺杀|link=@tap,刺杀剑术>
<Img|id=ui_10|x=11|y=150|width=478|height=4|img=public\1900000667_1.png|show=0>
<Img|id=ui_11|x=11|y=247|width=478|height=4|img=public\1900000667_1.png|show=0>
<Text|id=ui_8|x=215|y=19|color=151|size=18|text=技能强化>
..t["刺杀剑术"]..[[ 〗>
<Text|id=ui_13|x=200|y=57|color=209|size=18|text=强化Lv:1重>
<Text|id=ui_14|x=200|y=86|color=209|size=18|text=强化Lv:2重>
<Text|id=ui_15|x=200|y=115|color=209|size=18|text=强化Lv:3重>
<Text|id=ui_18|x=299|y=58|color=209|size=16|text==元宝100>
<Text|id=ui_17|x=299|y=87.5|color=209|size=16|text==元宝200>
<Text|id=ui_16|x=299|y=117|color=209|size=16|text==元宝300>
<Button|id=ui_27|x=399|y=204.5|width=88|height=38|nimg=public\1900000679_1.png|pimg=public\1900000679_1.png|mimg=public\1900000679.png|color=149|size=18|text=强化烈火|link=@tap,烈火剑法>
..t["烈火剑法"]..[[ 〗>
<Text|id=ui_25|x=200|y=160|color=209|size=18|text=强化Lv:1重>
<Text|id=ui_24|x=200|y=189|color=209|size=18|text=强化Lv:2重>
<Text|id=ui_23|x=200|y=218|color=209|size=18|text=强化Lv:3重>
<Text|id=ui_22|x=299|y=161|color=209|size=16|text==元宝200>
<Text|id=ui_21|x=299|y=190.5|color=209|size=16|text==元宝300>
<Text|id=ui_20|x=299|y=220|color=209|size=16|text==元宝400>
<Button|id=ui_35|x=399|y=300|width=88|height=38|nimg=public\1900000679_1.png|pimg=public\1900000679_1.png|mimg=public\1900000679.png|color=149|size=18|text=强化开天|link=@tap,开天斩>
..t["开天斩"]..[[ 〗>
<Text|id=ui_33|x=200|y=259|color=209|size=18|text=强化Lv:1重>
<Text|id=ui_32|x=200|y=287|color=209|size=18|text=强化Lv:2重>
<Text|id=ui_31|x=200|y=317|color=209|size=18|text=强化Lv:3重>
<Text|id=ui_30|x=299|y=260|color=209|size=16|text==元宝300>
<Text|id=ui_29|x=299|y=289.5|color=209|size=16|text==元宝400>
<Text|id=ui_28|x=299|y=319|color=209|size=16|text==元宝500>
<Text|id=ui_36|x=377|y=60|color=255|size=14|text=强化3重威力加倍>
<Text|id=ui_37|x=377|y=161|color=255|size=14|text=强化3重威力加倍>
<Text|id=ui_38|x=377|y=259|color=255|size=14|text=强化3重威力加倍>
say(actor, mai)
end
function tap(actor, ln_mz)
local t = {}
local jineng_id = getskillindex(ln_mz)
local qianghua_level = getskillinfo(actor, jineng_id, 2)
if not qianghua_level then
messagebox(actor, "你没有学习,技能无法强化!")
return
end
t["强化技能"] = qianghua_level
t["下次强化技能"] = t["强化技能"] + 1
if t["强化技能"] >= 3 then
messagebox(actor, "技能已经强化满级了!")
return
end
local level = t["下次强化技能"]
if querymoney(actor, 2) >= tab[ln_mz][level] then
changemoney(actor, 2, "-", tab[ln_mz][level], "", true)
setskillinfo(actor, jineng_id, 2, t["下次强化技能"])
callscriptex(actor, "sendmsg", 9, level .. ln_mz .. "强化成功!")
main(actor)
else
messagebox(actor, "元宝不足,无法强化!")
end
end
|
最后回复时间:2024-09-26 09:21:23官方回复了此贴
|