• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • E大,请问对话框的“接受”,“取消”,在脚本里怎么实现,先谢谢了

    Discussion in '中文综合讨论区' started by luningno2, May 12, 2016.

    1. luningno2

      luningno2 New Member

      Joined:
      May 9, 2016
      Messages:
      8
      Likes Received:
      0
      Trophy Points:
      0
      E大,请问对话框的“接受”,“取消”,在脚本里怎么实现


      <CustomBehavior File="InteractWith" MobId="56667" GossipOptions="1" X="-1793.587" Y="-2388.05" Z="341.4378" />

      这句是和NPC对话互动的,然后他弹出一个对话框 ,让点击“接受”还是“取消”

      用什么语法来实现????

      还有也是这句 <CustomBehavior File="InteractWith" MobId="56667" GossipOptions="1" X="-1793.587" Y="-2388.05" Z="341.4378" />
      如果没有发现这个NPC,或者NPC不存在,用什么写法可以跳过这句,接着往下面执行??
       
    2. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      点接受或者取消这个应该可以用类似游戏里的宏来实现
      Code:
      <CustomBehavior File="RunMacro" Macro="/click QuestFrameAcceptButton" />
      
      至于click后面接的是不是QuestFrameAcceptButton我就不知道了,你可以查下百度看游戏里的宏是怎么获取这些指令的
      不存在跳过的话我也不太清楚
       
    3. luningno2

      luningno2 New Member

      Joined:
      May 9, 2016
      Messages:
      8
      Likes Received:
      0
      Trophy Points:
      0
      是这样吗??

      <CustomBehavior File="InteractWith" MobId="56667" GossipOptions="1" X="-1793.587" Y="-2388.05" Z="341.4378" />

      <CustomBehavior File="WaitTimer" WaitTime="5000" />
      <CustomBehavior File="RunMacro" Macro="/click QuestFrameAcceptButton" />

      我试了,还是不行
       
    4. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      不一定是/click QuestFrameAcceptButton,我这里只是举个例子,你得百度下看怎么去获取游戏里你那个接受的按钮类型,将QuestFrameAcceptButton改成你那个接受的按钮类型才可以
       

    Share This Page