《剑网3》:对目标的目标施放探梅

2010-09-13 727

该宏只对目标为npc的时候使用有效,对玩家施放时请勿用此宏。复制的时候请不要复制多余的空格,以免造成宏无法使用

/script function st(dwid)

local scene = (station.lookup("lowest/scene/scene_main"))

local ttype = nil

if isplayer(dwid) then

ttype = target.player

else

ttype = target.npc

end

this = {}

local bldown = scene.bldown

local brdown = scene.brdown

this.bldown = true

this.brdown = false

this.dwobjtype = ttype

this.dwobjid = dwid

this.bdowntime = gettickcount() + 1000

local x, y = cursor.getpos(false)

this.x = x

this.y = y

scenesettarget()

scene.bldown = bldown

scene.brdown = brdown

if bldown and not brdown then

scene.onscenelbuttondown()

elseif not bldown and brdown then

scene.onscenerbuttondown()

end

end

/script tty,tid = getclientplayer().gettarget()

pt,pid=getnpc(tid).gettarget() st(tid)

/cast 探梅

/script st(tid)

专业玩家网是集各种热门游戏资讯,游戏工作室的专业站点。

 

免责声明:部分内容转自其他媒体,转载目的在于为游戏工作室传递更多信息,如因作品内容、版权和其他问题请 联系客服