宏在之前的藏剑文章中有提到过,但是很多人说不好用.但是我这里无论是用大脚,用盒子,还是不装插件都好用,于是再发出来做为这个宏的集中讨论帖。
该宏只对目标为NPC的时候使用有效,是我针对输出的时候给T探梅做的。未加判断,所以对玩家施放时请勿用此宏
/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)