0

工具资源
蓝色悠悠 关注 发布时间: 2019-01-28 最后更新: 2018-02-08 556062 13407
打印
分享
正序查看
未知剑三玩家 匿名 7 13367# 发布于 2019-01-30
更多 回复
/script

  bZiDongZa = bZiDongZa or false

  bZiDongZa2 = bZiDongZa2 or false

  if not bZiDongZa then

  Output("自动砸开启")

  bZiDongZa = true

  else

  Output("自动砸关闭")

  bZiDongZa = false

  end

  if not bZiDongZa2 then

  RegisterEvent("NPC_ENTER_SCENE", function()

  if not bZiDongZa then return end

  bZiDongZa2 = true

  if GetNpc(arg0).szName == "年兽陶罐" and GetCharacterDistance(GetClientPlayer().dwID,arg0) / 64 <= 4 then

  SetTarget(3,arg0)

  OnUseItem(1,1)

  end

  frame_CloseMessageBox()

  end)

  end

  RegisterEvent("RENDER_FRAME_UPDATE",function() if bZiDongZa then if GetLogicFrameCount() % 2 == 0 then frame_CloseMessageBox() end end end)

  function frame_CloseMessageBox(szName)

  local frame = Station.Lookup("Topmost/MB_PlayerMessageBoxCommon")

  if frame then

  local btn = frame:Lookup("Wnd_All/Btn_Option1")

  if btn and btn:IsEnabled() then

  btn.fnAction(1)

  CloseMessageBox("PlayerMessageBoxCommon")

  end

  end

  end
小果子 14 13366# 发布于 2019-01-28
更多 回复
111111111111111111111111111
下一页 »
跳转到指定楼层
请先登录

试一试@用户名 立即召唤神龙 小伙伴会收到通知喔:)无需加好友即可通知到

您需要登录后才可以回帖 登录 | 立即注册  

本版积分规则


您当前使用的浏览器版本过低,网站部分功能可能失效,请更换合适的浏览器。了解更多