Files
jianyin2025/服务端/MirServer/Mir200/Envir/Market_Def/zhuanshuxitong.lua

44 lines
2.4 KiB
Lua

require("Envir/Market_Def/wza.lua") --¸öÈË·â×°º¯Êý
function zhuanshuxitongui(actor)
local msg = [[
<Img|loadDelay=0|show=4|img=wza/zhuanshuhe.png|move=1|reset=1|bg=1|bagPos=1|esc=1>
<Button|x=327.0|y=3.0|nimg=public/1900000510.png|pimg=public/1900000511.png|link=@exit>
]]
msg = msg .."<DBItemShow|x=29.0|y=50.0|width=70|height=70|dblink=@tuoxia_zhuanshu,79|makeindex="..getconst(actor,"<$USEITEM[79]>")..">"
msg = msg .."<DBItemShow|x=128.0|y=50.0|width=70|height=70|dblink=@tuoxia_zhuanshu,80|makeindex="..getconst(actor,"<$USEITEM[80]>")..">"
msg = msg .."<DBItemShow|x=227.0|y=50.0|width=70|height=70|dblink=@tuoxia_zhuanshu,81|makeindex="..getconst(actor,"<$USEITEM[81]>")..">"
msg = msg .."<DBItemShow|x=29.0|y=131.0|width=70|height=70|dblink=@tuoxia_zhuanshu,82|makeindex="..getconst(actor,"<$USEITEM[82]>")..">"
msg = msg .."<DBItemShow|x=128.0|y=130.0|width=70|height=70|dblink=@tuoxia_zhuanshu,83|makeindex="..getconst(actor,"<$USEITEM[83]>")..">"
msg = msg .."<DBItemShow|x=227.0|y=130.0|width=70|height=70|dblink=@tuoxia_zhuanshu,84|makeindex="..getconst(actor,"<$USEITEM[84]>")..">"
say(actor,msg)
end
function tuoxia_zhuanshu(actor,index)
index = tonumber(index)
local item = GetItemByPos(actor,index)
if item then
local makeIndex = getiteminfo(actor,item,1)
takeoffitem(actor,index,makeIndex)
end
return zhuanshuxitongui(actor)
end
function lookotherzhuanshu(actor,player)
local msg = [[
<Img|loadDelay=0|show=4|img=wza/zhuanshuhe.png|move=0|reset=1|bg=1|bagPos=1|esc=1>
<Layout|x=545|y=0|width=80|height=80|link=@exit>
<Button|x=327.0|y=3.0|nimg=public/1900000510.png|pimg=public/1900000511.png|link=@exit>
]]
msg = msg .."<DBItemShow|x=29.0|y=50.0|width=70|height=70|makeindex="..getconst(player,"<$USEITEM[79]>")..">"
msg = msg .."<DBItemShow|x=128.0|y=50.0|width=70|height=70|makeindex="..getconst(player,"<$USEITEM[80]>")..">"
msg = msg .."<DBItemShow|x=227.0|y=50.0|width=70|height=70|makeindex="..getconst(player,"<$USEITEM[81]>")..">"
msg = msg .."<DBItemShow|x=29.0|y=131.0|width=70|height=70|makeindex="..getconst(player,"<$USEITEM[82]>")..">"
msg = msg .."<DBItemShow|x=128.0|y=130.0|width=70|height=70|makeindex="..getconst(player,"<$USEITEM[83]>")..">"
msg = msg .."<DBItemShow|x=227.0|y=130.0|width=70|height=70|makeindex="..getconst(player,"<$USEITEM[84]>")..">"
say(actor,msg)
end