What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

寻找一个接受支付金币的代码

maon888

New Member
Joined
Nov 22, 2016
Messages
11
在游戏里,有个任务需要支付npc 2金币,对话之后会弹出一个 接受支付的对话框,请问哪位知道,点击接受, 这个动作可以用什么代码实现? 我试了 <CustomBehavior File="Misc\RunLua" WaitTime="5000" Lua="StaticPopup1Button1:Click();" /> 可以这个并不行,谁有好办法吗
 

Attachments

  • 123123123123.png
    123123123123.png
    158.4 KB · Views: 221
把鼠标移到按钮上
在聊天用按回车粘贴这个宏
Code:
/run local a,b,c,x,d,e,f=GetCursorInfo()if a then x=a..":"..b.." " if a=="item"then _,_,_,_,_,d,e,_,f=GetItemInfo(x)x=x.." "..c.." "..d.." "..e.." "..f elseif c then x=x..c end else x=GetMouseFocus():GetName()end DEFAULT_CHAT_FRAME:AddMessage(x)
在聊天框里就会出现这个按钮的名称
然后用你那句将StaticPopup1Button1改成上面获取到的那个名字试试
 
Last edited:
把鼠标移到按钮上
在聊天用按回车粘贴这个宏
Code:
/run local a,b,c,x,d,e,f=GetCursorInfo()if a then x=a..":"..b.." " if a=="item"then _,_,_,_,_,d,e,_,f=GetItemInfo(x)x=x.." "..c.." "..d.." "..e.." "..f elseif c then x=x..c end else x=GetMouseFocus():GetName()end DEFAULT_CHAT_FRAME:AddMessage(x)
在聊天框里就会出现这个按钮的名称
然后用你那句将StaticPopup1Button1改成上面获取到的那个名字试试
谢谢E大,看上去这个宏就肯定没问题。我马上去试。多谢!
 
Back
Top