查看:22199|回复:0
收起左侧

官方助手 Lua function

 [复制链接]
等级头衔

等級:雪人王

活跃状态

31

主题

139

回帖

213

积分

积分货币
祝福
991 颗
灵魂
114 颗
玛雅
25283 颗
元宝
1 锭
积分
1742 枚
注册时间
2023-11-1
最后登录
2025-6-30

联系方式

QQ
QQ

违规信息
违规:5

荣誉勋章

    发表于 2025-6-28 21:57:49|显示全部楼层|阅读模式
    1. require "System\\ScriptCore"
    2. require "System\\ScriptDefines"

    3. BridgeFunctionAttach("LuaEntryProc", "OficialMuHelperWindow")

    4. --[[
    5.         Amount Page = 1 or 2
    6.         Window Index = 0 to 4
    7.         Button Index = 0 to 15
    8.         Check Box Index = 0 to 27
    9.         Input Text Index = 0 to 3
    10.         Range Number Index = 0 to 1
    11.         Select Skill Index = 0 to 5
    12.         Render Box Index = 0 to 9
    13.         Render Text Index = 0 to 10

    14.         AddHelperPage = Amount Page, Position X, Position Y
    15.         MuHelperAddTitleWindow = Position X, Position Y, Width, Align
    16.         MuHelperAddWindow = Window Index, Image Index, Position X, Position Y, Width, Height, MapX, MapY, RealWidth, RealHeight
    17.         MuHelperAddRenderBox = Render Box Index, Enable/Disable, Position X, Position Y, Width, Height
    18.         MuHelperAddTextMap = Render Text Index, Enable/Disable, Position X, Position Y
    19.         MuHelperAddButtonMap = Button Index, Enable/Disable, Position X, Position Y
    20.         MuHelperAddRangeNumber = Range Number Index, Enable/Disable, Position X, Position Y
    21.         MuHelperAddCheckBoxMap = Check Box Index, Enable/Disable, Position X, Position Y
    22.         MuHelperAddTextInputMap = Input Text Index, Enable/Disable, Position X, Position Y
    23.         MuHelperAddSelectSkill = Select Skill Index, Enable/Disable, Position X Position Y
    24.         MuHelperAddPickList = Enable/Disable, Position X, Position Y, Width, Height, Amount Lines
    25. ]]

    26. OficialMuHelperWindow = function()

    27.         --MU HELPER WINDOW
    28.         ---------------------------------------------------------------------------------------
    29.         --Window
    30.         MuHelperAddWindow(0, 31322, 0, 0, 190, 429, 0, 0, 190, 429) -- Background / Cursor Focus
    31.         MuHelperAddWindow(1, 31354, 0, 0, 190, 64, 0, 0, 190, 64) -- Up Squad
    32.         MuHelperAddWindow(2, 31355, 0, 0, 21, 320, 0, 0, 21, 320) -- Left Squad
    33.         MuHelperAddWindow(3, 31356, 0, 0, 21, 320, 0, 0, 21, 320) -- Right Squad
    34.         MuHelperAddWindow(4, 31357, 0, 0, 190, 45, 0, 0, 190, 45) -- Down Squad

    35.         MuHelperAddTitleWindow(0, 0, 190, 3) -- Window Title
    36.         ---------------------------------------------------------------------------------------

    37.         ---------------------------------------------------------------------------------------
    38.         AddHelperPage(2, 10, 48) -- Pages Position
    39.         ---------------------------------------------------------------------------------------

    40.         --[ HUNTING PAGE - 1 ]

    41.         --Render Box
    42.         ---------------------------------------------------------------------------------------
    43.         MuHelperAddRenderBox(0, 1, 0, 0, 68, 50) -- RenderBox Window 1
    44.         MuHelperAddRenderBox(1, 1, 0, 0, 102, 50) -- RenderBox Window 2
    45.         MuHelperAddRenderBox(2, 1, 0, 0, 165, 39) -- RenderBox Window 3
    46.         MuHelperAddRenderBox(3, 1, 0, 0, 165, 120) -- RenderBox Window 4
    47.         MuHelperAddRenderBox(4, 1, 0, 0, 165, 69) -- RenderBox Window 5
    48.         ---------------------------------------------------------------------------------------

    49.         --Hunting Range
    50.         ---------------------------------------------------------------------------------------
    51.         MuHelperAddTextMap(0, 1, 0, 0) -- Text 0 = Range --------
    52.         MuHelperAddButtonMap(0, 1, 0, 0) -- Button 0 = Hunt Range +
    53.         MuHelperAddButtonMap(1, 1, 0, 0) -- Button 1 = Hunt Range -
    54.         MuHelperAddRangeNumber(0, 1, 0, 0) -- Range Number 0 = Hunting
    55.         ---------------------------------------------------------------------------------------

    56.         --Potion Recovery Settings
    57.         ---------------------------------------------------------------------------------------
    58.         MuHelperAddCheckBoxMap(0, 1, 0, 0) -- CheckBox 0 = Potion
    59.         MuHelperAddCheckBoxMap(11, 1, 0, 0) -- CheckBox 11 = Auto Heal "ELF"
    60.         MuHelperAddCheckBoxMap(12, 1, 0, 0) -- CheckBox 12 = Drain Life "SUM"

    61.         MuHelperAddButtonMap(7, 1, 0, 0) -- Button 7 = Auto Recovery 3 Setting "ELF"
    62.         MuHelperAddButtonMap(8, 1, 0, 0) -- Button 8 = Auto Recovery 3 Setting "SUM"
    63.         MuHelperAddButtonMap(9, 1, 0, 0) -- Button 9 = Auto Recovery 3 Setting
    64.         ---------------------------------------------------------------------------------------

    65.         --Position Settings
    66.         ---------------------------------------------------------------------------------------
    67.         MuHelperAddCheckBoxMap(1, 1, 0, 0) -- CheckBox 1 = Long Distance Attack
    68.         MuHelperAddCheckBoxMap(2, 1, 0, 0) -- CheckBox 2 = Original Position

    69.         MuHelperAddTextMap(1, 1, 0, 0) -- Text 1 = Distance
    70.         MuHelperAddTextMap(2, 1, 0, 0) -- Text 2 = Min
    71.         MuHelperAddTextInputMap(0, 1, 0, 0) -- InputBox 0 = Position Distance
    72.         ---------------------------------------------------------------------------------------

    73.         --Skills Settings
    74.         ---------------------------------------------------------------------------------------
    75.         MuHelperAddTextMap(3, 1, 0, 0) -- Text 3 = Basic Skill
    76.         MuHelperAddTextMap(4, 1, 0, 0) -- Text 4 = Activation Skill 1
    77.         MuHelperAddTextMap(5, 1, 0, 0) -- Text 5 = Skill 1 Min
    78.         MuHelperAddTextMap(6, 1, 0, 0) -- Text 6 = Activation Skill 2
    79.         MuHelperAddTextMap(7, 1, 0, 0) -- Text 7 = Skill 2 Min

    80.         MuHelperAddCheckBoxMap(3, 1, 0, 0) -- CheckBox 3 = Activation Skill 1 "Delay"
    81.         MuHelperAddCheckBoxMap(4, 1, 0, 0) -- CheckBox 4 = Activation Skill 1 "Con"
    82.         MuHelperAddCheckBoxMap(5, 1, 0, 0) -- CheckBox 5 = Activation Skill 2 "Delay"
    83.         MuHelperAddCheckBoxMap(6, 1, 0, 0) -- CheckBox 6 = Activation Skill 2 "Con"
    84.         MuHelperAddCheckBoxMap(7, 1, 0, 0) -- CheckBox 7 = Combo
    85.         MuHelperAddCheckBoxMap(9, 1, 0, 0) -- CheckBox 9 = Use Dark Spirits
    86.         MuHelperAddCheckBoxMap(10, 1, 0, 0) -- CheckBox 10 = Party

    87.         MuHelperAddButtonMap(2, 1, 0, 0) -- Button 2 = Activation Skill 1 Setting
    88.         MuHelperAddButtonMap(3, 1, 0, 0) -- Button 3 = Activation Skill 2 Setting
    89.         MuHelperAddButtonMap(10, 1, 0, 0) -- Button 10 = Party 4 Setting "ELF"
    90.         MuHelperAddButtonMap(11, 1, 0, 0) -- Button 11 = Party 4 Setting

    91.         MuHelperAddTextInputMap(1, 1, 0, 0) -- InputBox 1 = Skill 1 Min
    92.         MuHelperAddTextInputMap(2, 1, 0, 0) -- InputBox 2 = Skill 2 Min

    93.         MuHelperAddSelectSkill(0, 1, 0, 0) -- SellectSkill 0 = Skill 1
    94.         MuHelperAddSelectSkill(1, 1, 0, 0) -- SellectSkill 1 = Skill 2
    95.         MuHelperAddSelectSkill(2, 1, 0, 0) -- SellectSkill 2 = Skill 3

    96.         MuHelperAddCheckBoxMap(25, 1, 0, 0) -- CheckBox 25 = Cease Attack "DL"
    97.         MuHelperAddCheckBoxMap(26, 1, 0, 0) -- CheckBox 26 = Auto Attack "DL"
    98.         MuHelperAddCheckBoxMap(27, 1, 0, 0) -- CheckBox 27 = Attack Together "DL"
    99.         ---------------------------------------------------------------------------------------

    100.         --Buff Settings
    101.         ---------------------------------------------------------------------------------------
    102.         MuHelperAddCheckBoxMap(8, 1, 0, 0) -- CheckBox 8 = Buff Duration

    103.         MuHelperAddSelectSkill(3, 1, 0, 0) -- SellectSkill 3 = Skill 4
    104.         MuHelperAddSelectSkill(4, 1, 0, 0) -- SellectSkill 4 = Skill 5
    105.         MuHelperAddSelectSkill(5, 1, 0, 0) -- SellectSkill 5 = Skill 6
    106.         ---------------------------------------------------------------------------------------

    107.         --[ OBTAING PAGE - 2 ]

    108.         --Render Box
    109.         ---------------------------------------------------------------------------------------
    110.         MuHelperAddRenderBox(6, 1, 0, 0, 68, 50) -- RenderBox Window 7
    111.         MuHelperAddRenderBox(7, 1, 0, 0, 102, 50) -- RenderBox Window 8
    112.         MuHelperAddRenderBox(8, 1, 0, 0, 165, 30) -- RenderBox Window 9
    113.         MuHelperAddRenderBox(9, 1, 0, 0, 165, 195) -- RenderBox Window 10
    114.         ---------------------------------------------------------------------------------------
    115.        
    116.         --Pick Range
    117.         ---------------------------------------------------------------------------------------
    118.         MuHelperAddTextMap(8, 1, 0, 0) -- Text 8 = Range --------

    119.         MuHelperAddButtonMap(12, 1, 0, 0) -- Button 12 = Pick Range +
    120.         MuHelperAddButtonMap(13, 1, 0, 0) -- Button 13 = Pick Range -
    121.         MuHelperAddRangeNumber(1, 1, 0, 0) -- Range Number 1 = Obtaing
    122.         ---------------------------------------------------------------------------------------

    123.         --Repair Settings
    124.         ---------------------------------------------------------------------------------------
    125.         MuHelperAddCheckBoxMap(13, 1, 0, 0) -- CheckBox 13 = Repair Item
    126.         ---------------------------------------------------------------------------------------

    127.         --Pick List Settings
    128.         ---------------------------------------------------------------------------------------
    129.         MuHelperAddCheckBoxMap(14, 1, 0, 0) -- CheckBox 14 = Pick All Near Items
    130.         MuHelperAddCheckBoxMap(15, 1, 0, 0) -- CheckBox 15 = Pick Selected Items
    131.         MuHelperAddCheckBoxMap(16, 1, 0, 0) -- CheckBox 16 = Jewel/Gem
    132.         MuHelperAddCheckBoxMap(17, 1, 0, 0) -- CheckBox 17 = Set Item
    133.         MuHelperAddCheckBoxMap(18, 1, 0, 0) -- CheckBox 18 = Zen
    134.         MuHelperAddCheckBoxMap(19, 1, 0, 0) -- CheckBox 19 = Excellent Item
    135.         MuHelperAddCheckBoxMap(20, 1, 0, 0) -- CheckBox 20 = Add Extra Item

    136.         MuHelperAddButtonMap(14, 1, 0, 0) -- Button 14 = Button Add
    137.         MuHelperAddButtonMap(15, 1, 0, 0) -- Button 15 = Button Delete

    138.         MuHelperAddPickList(1, 0, 0, 154, 78, 5) -- Pick Text List Box

    139.         MuHelperAddTextInputMap(3, 1, 0, 0) -- InputBox 3 = Add Item List
    140.         ---------------------------------------------------------------------------------------

    141.         --ALL PAGES
    142.         ---------------------------------------------------------------------------------------
    143.         MuHelperAddRenderBox(5, 1, 0, 0, 165, 46) -- RenderBox Window 6

    144.         MuHelperAddCheckBoxMap(24, 1, 0, 0) -- CheckBox 24 = Enable Off Helper
    145.         MuHelperAddTextMap(9, 1, 0, 0) -- Text 9 = Enable Off Helper 1 / Extension Function 1
    146.         MuHelperAddTextMap(10, 1, 0, 0) -- Text 10 = Enable Off Helper 2 / Extension Function 2

    147.         MuHelperAddButtonMap(4, 1, 0, 0) -- Button 4 = Save Settings
    148.         MuHelperAddButtonMap(5, 1, 0, 0) -- Button 5 = Initialization
    149.         MuHelperAddButtonMap(6, 1, 0, 0) -- Button 6 = Cancel
    150.         ---------------------------------------------------------------------------------------
    151. end
    复制代码


    吾爱一起玩儿,一个游戏爱好者的聚集地!《新会员请仔细阅读入坑须知!发布资源请阅读资源分享规则!》用户组达到[戈登]后可修改此签名!