LUA脚本
function chuanyunjian(actor,zhaohuanzhe,mapid,x,y) --召唤者,地图id,x,y
delbutton(actor,107,97)
if getname(actor) ~= zhaohuanzhe and getmap(actor) ~= "tuoji" and getmap(actor) ~= "waigua" then
--sendmsg6(actor,"穿云箭触发"..zhaohuanzhe.." "..mapid.." " .. x.." " ..y)
local pyx = -320
local pyy = -100
local msg = ""
msg = msg..'<Img|x='.. pyx ..'|y='.. pyy ..'|width=200|esc=0|bg=1|move=1|img=zh/54.png>'
msg = msg..'<Text|x='.. 68 + pyx ..'|y='.. 10+pyy ..'|color=251|outline=1|size=18|text=穿云箭>'
msg = msg..'<RText|ax=0.5|x='.. 100 + pyx ..'|y='.. 42+pyy ..'|color=255|outline=1|size=18|text=<'.. zhaohuanzhe ..'/FCOLOR=250>发起了行会召唤>'
msg = msg..'<RText|x='.. 36 + pyx ..'|y='.. 67+pyy ..'|color=255|size=18|outline=1|text=<是否前往支援?/FCOLOR=254>>'
msg = msg..'<Button|x='.. 29 + pyx ..'|y='.. 94+pyy ..'|nimg=zh/22.png|color=150|outline=1|size=18|text=前往支援|link=@zhiyuan,'..mapid..','..x..','..y..'>'
msg = msg..'<COUNTDOWN|a=4|x='.. 92 + pyx ..'|y='.. 138+pyy ..'|time=60|count=1|outline=1|size=16|color=250|link=@close_chuanyunjian>'
msg = msg..'<Button|x='.. 161 + pyx ..'|y='.. pyy ..'|nimg=zh/96.png|outline=1|size=18|link=@close_chuanyunjian>'
addbutton(actor,107,97,msg)
end
end
function zhiyuan(actor,mapid,x,y)
if mapid == "64" then
if getlevel(actor) < 50 then
sendmsg9(actor,"支援此地图需要50级")
delbutton(actor,107,97)
return
end
end
mapmove(actor,mapid,tonumber(x),tonumber(y),3)
delbutton(actor,107,97)
end
function close_chuanyunjian(actor)
delbutton(actor,107,97)
end