Skip to content
On this page

猹の三角洲搜刮

龙核界面配置

背包界面

yml
Functions:
  open: |-
    方法.异步执行方法('屏幕自适应');
    方法.异步执行方法('历遍槽位');
    方法.异步执行方法('图片位移');
  close: |-
    方法.异步执行方法('关闭界面');
  keyPress: |-
    if (方法.取当前按下键=='E'){
      方法.异步执行方法('添加物品');
    }else if (方法.取当前按下键=='R'){
      方法.异步执行方法('旋转物品');
    }else if (方法.取当前按下键=='F'){
      方法.异步执行方法('快捷挪动物品');
    }
  屏幕自适应: |-
    界面变量.X = w*0.20;
    界面变量.Y = h*0.01;
    方法.延时(500);
    方法.异步执行方法('屏幕自适应');
  关闭界面: |-
    方法.延时(100);
    方法.发包('chadeltaforce', 'close', '三角洲背包');
    方法.发包('chadeltaforce', 'closeSlot', '三角洲背包#左边区域', 'cha_delta_slot');
    方法.发包('chadeltaforce', 'closeSlot', '三角洲背包#右边区域', 'cha_delta_slot');
  更新三角洲背包: |-
    方法.延时(100);
    方法.发包('chadeltaforce', 'clickMcSlot', 'cha_delta_slot');
    方法.删除组件('三角洲背包#左边区域槽位背景_',1);
    方法.删除组件('三角洲背包#左边区域槽位品质_',1);
    方法.删除组件('三角洲背包#左边区域槽位物品_',1);
    方法.删除组件('三角洲背包#左边区域槽位_',1);
    方法.删除组件('三角洲背包#右边区域槽位背景_',1);
    方法.删除组件('三角洲背包#右边区域槽位品质_',1);
    方法.删除组件('三角洲背包#右边区域槽位物品_',1);
    方法.删除组件('三角洲背包#右边区域槽位_',1);
    方法.延时(1000);
    方法.发包('chadeltaforce', 'openSlot', '三角洲背包界面', '三角洲背包','cha_delta_slot');
  历遍槽位: |-
    方法.延时(100);
    方法.发包('chadeltaforce', 'open', '三角洲背包界面', '玩家行囊' , '6', '6');
    方法.延时(100);
    方法.发包('chadeltaforce', 'openSlot', '三角洲背包界面', '三角洲背包#左边区域','cha_delta_slot','124+20*floor({x}%{width})+20*floor({y}/{height})','120+20*floor({x}/{width})+20*floor({y}%{height})');
    方法.延时(100);
    方法.发包('chadeltaforce', 'openSlot', '三角洲背包界面', '三角洲背包#右边区域','cha_delta_slot','204+20*floor({x}%{width})+20*floor({y}/{height})','120+20*floor({x}/{width})+20*floor({y}%{height})');
  旋转物品: |-
    方法.延时(100);
    方法.发包('chadeltaforce', 'rotate');
  添加物品: |-
    方法.延时(100);
    方法.发包('chadeltaforce', 'addHand', 'MM#低级强化石');
  快捷挪动物品: |-
    if (方法.是否存在前缀(方法.到整数(方法.是否存在前缀(方法.取鼠标悬浮组件名(),'武器箱槽位'))=='1')){
      界面变量.当前选择槽位 = 方法.取组件值(方法.取鼠标悬浮组件名(),'value');
      方法.延时(100);
      方法.发包('chadeltaforce', 'clickQuick', '武器箱', '三角洲背包', 界面变量.当前选择槽位);
    }
  放置行囊物品: |-
    界面变量.当前选择槽位 = 方法.取组件值(方法.取鼠标悬浮组件名(),'value');
    方法.延时(100);
    方法.发包('chadeltaforce', 'click', '玩家行囊', 界面变量.当前选择槽位);
  放置背包物品: |-
    界面变量.当前选择槽位 = 方法.取组件值(方法.取鼠标悬浮组件名(),'value');
    方法.延时(100);
    方法.发包('chadeltaforce', 'click', '三角洲背包', 界面变量.当前选择槽位,'cha_delta_slot');
  图片位移: |-
    方法.延时(20);
    if (方法.取组件值('指针','visible') == 1)
    {
      方法.设置组件值('指针','x',方法.取鼠标x()-方法.取组件值('指针','width')/2);
      方法.设置组件值('指针','y',方法.取鼠标y()-方法.取组件值('指针','height')/2);
      方法.设置组件值('指针物品','x',方法.取鼠标x()-方法.取组件值('指针物品','width')/2);
      方法.设置组件值('指针物品','y',方法.取鼠标y()-方法.取组件值('指针物品','height')/2);
    }
    方法.异步执行方法('图片位移');
指针:
  type: "texture"
  texture: 5,5,5,5
  x: "0"
  y: "0"
  z: "195"
  visible: false
  width: "20"
  height: "20"
指针物品:
  type: "slot"
  x: "0"
  y: "0"
  z: "198"
  scale: 1
  visible: false
  identifier: '指针物品槽位'
三角洲背包槽位标题_label:
  center: false
  shadow: true
  x: 124
  y: 110
  z: 200
  texts: "三角洲背包"
三角洲背包槽位背景_texture:
  x: 50
  y: 50
  z: 1
  visible: false
  width: 20
  height: 20
  texture: gui/loot/slot.png
三角洲背包槽位_texture:
  x: 50
  y: 50
  z: 200
  visible: false
  width: 20
  height: 20
  texture: 5,5,5,5
  actions:
    click_left: |-
      方法.异步执行方法('放置背包物品');
三角洲背包槽位品质_texture:
  x: 50
  y: 50
  z: 80
  visible: false
  width: 20
  height: 20
  texture: 0,0,0,0
三角洲背包槽位物品_slot:
  type: "slot"
  x: 75
  y: 75
  scale: 1
  visible: false
  z: 100
  identifier: cha_slot2



玩家行囊槽位标题_label:
  center: false
  shadow: true
  x: 1
  y: 110
  z: 200
  texts: "玩家行囊"
玩家行囊槽位背景_texture:
  x: 50
  y: 50
  z: 1
  visible: false
  width: 20
  height: 20
  texture: gui/loot/slot.png
玩家行囊槽位_texture:
  x: 50
  y: 50
  z: 200
  visible: false
  width: 20
  height: 20
  texture: 5,5,5,5
  actions:
    click_left: |-
      方法.异步执行方法('放置行囊物品');
玩家行囊槽位品质_texture:
  x: 50
  y: 50
  z: 80
  visible: false
  width: 20
  height: 20
  texture: 0,0,0,0
玩家行囊槽位物品_slot:
  type: "slot"
  x: 75
  y: 75
  scale: 1
  visible: false
  z: 100
  identifier: cha_slot2


背包槽位背景_texture:
  x: 124
  y: 90
  z: 1
  width: 16
  height: 16
  texture: gui/loot/slot.png
背包槽位_slot:
  type: "slot"
  x: 124
  y: 90
  scale: 1
  visible: true
  z: 100
  identifier: cha_delta_slot
更新默认背包_texture:
  x: 124
  y: 90
  z: 200
  visible: true
  width: 20
  height: 20
  texture: 5,5,5,5
  actions:
    click_left: |-
      方法.异步执行方法('更新三角洲背包');

武器箱界面

yml
Functions:
  open: |-
    方法.异步执行方法('屏幕自适应');
    方法.异步执行方法('历遍槽位');
    方法.异步执行方法('图片位移');
  close: |-
    方法.异步执行方法('关闭界面');
  keyPress: |-
    if (方法.取当前按下键=='E'){
      方法.异步执行方法('添加物品');
    }else if (方法.取当前按下键=='R'){
      方法.异步执行方法('旋转物品');
    }else if (方法.取当前按下键=='F'){
      方法.异步执行方法('快捷挪动物品');
    }
  屏幕自适应: |-
    界面变量.X = w*0.20;
    界面变量.Y = h*0.01;
    方法.延时(500);
    方法.异步执行方法('屏幕自适应');
  关闭界面: |-
    方法.延时(100);
    方法.发包('chadeltaforce', 'close', '搜刮武器箱');
  历遍槽位: |-
    方法.延时(100);
    方法.发包('chadeltaforce', 'open', '搜刮武器箱', '三角洲背包' , '9', '4');
    方法.发包('chadeltaforce', 'open', '搜刮武器箱', '武器箱#大厅2', '9' , '4');
  旋转物品: |-
    方法.延时(100);
    方法.发包('chadeltaforce', 'rotate');
  添加物品: |-
    方法.延时(100);
    方法.发包('chadeltaforce', 'addHand', 'MM#低级强化石');
  快捷挪动物品: |-
    if (方法.是否存在前缀(方法.到整数(方法.是否存在前缀(方法.取鼠标悬浮组件名(),'武器箱槽位'))=='1')){
      界面变量.当前选择槽位 = 方法.取组件值(方法.取鼠标悬浮组件名(),'value');
      方法.延时(100);
      方法.发包('chadeltaforce', 'clickQuick', '武器箱', '三角洲背包', 界面变量.当前选择槽位);
    }
  放置物品: |-
    界面变量.当前选择槽位 = 方法.取组件值(方法.取鼠标悬浮组件名(),'value');
    方法.延时(100);
    方法.发包('chadeltaforce', 'click', '三角洲背包', 界面变量.当前选择槽位);
  放置武器箱物品: |-
    界面变量.当前选择槽位 = 方法.取组件值(方法.取鼠标悬浮组件名(),'value');
    方法.延时(100);
    方法.发包('chadeltaforce', 'click', '武器箱', 界面变量.当前选择槽位);
  放置原版槽位物品: |-
    界面变量.当前选择槽位 = 方法.取组件值(方法.取鼠标悬浮组件名(),'value');
    方法.延时(100);
    方法.发包('chadeltaforce', 'clickMcSlot', '三角洲背包', '槽位id');
  图片位移: |-
    方法.延时(20);
    if (方法.取组件值('指针','visible') == 1)
    {
      方法.设置组件值('指针','x',方法.取鼠标x()-方法.取组件值('指针','width')/2);
      方法.设置组件值('指针','y',方法.取鼠标y()-方法.取组件值('指针','height')/2);
      方法.设置组件值('指针物品','x',方法.取鼠标x()-方法.取组件值('指针物品','width')/2);
      方法.设置组件值('指针物品','y',方法.取鼠标y()-方法.取组件值('指针物品','height')/2);
    }
    方法.异步执行方法('图片位移');
指针:
  type: "texture"
  texture: 5,5,5,5
  x: "0"
  y: "0"
  z: "195"
  visible: false
  width: "20"
  height: "20"
指针物品:
  type: "slot"
  x: "0"
  y: "0"
  z: "198"
  scale: 1
  visible: false
  identifier: '指针物品槽位'
三角洲背包槽位标题_label:
  center: false
  shadow: true
  x: 124
  y: 120
  z: 200
  texts: "三角洲背包"
三角洲背包槽位背景_texture:
  x: 50
  y: 50
  z: 1
  visible: false
  width: 20
  height: 20
  texture: gui/loot/slot.png
三角洲背包槽位_texture:
  x: 50
  y: 50
  z: 200
  visible: false
  width: 20
  height: 20
  texture: 5,5,5,5
  actions:
    click_left: |-
      方法.异步执行方法('放置物品');
三角洲背包槽位品质_texture:
  x: 50
  y: 50
  z: 80
  visible: false
  width: 20
  height: 20
  texture: 0,0,0,0
三角洲背包槽位物品_slot:
  type: "slot"
  x: 75
  y: 75
  scale: 1
  visible: false
  z: 100
  identifier: cha_slot2


武器箱槽位标题_label:
  center: false
  shadow: true
  x: 124
  y: 20
  z: 200
  texts: "武器箱"
武器箱槽位背景_texture:
  x: 50
  y: 50
  z: 1
  visible: false
  width: 20
  height: 20
  texture: gui/loot/slot.png
武器箱槽位搜索_texture:
  x: 50
  y: 50
  z: 180
  visible: false
  width: 20
  height: 20
  texture: gui/loot/黑/search.gif
武器箱槽位_texture:
  x: 50
  y: 50
  z: 200
  visible: false
  width: 20
  height: 20
  texture: 5,5,5,5
  actions:
    click_left: |-
      方法.异步执行方法('放置武器箱物品');
武器箱槽位品质_texture:
  x: 50
  y: 50
  z: 80
  visible: false
  width: 20
  height: 20
  texture: 0,0,0,0
武器箱槽位物品_slot:
  type: "slot"
  x: 75
  y: 75
  scale: 1
  visible: false
  z: 100
  identifier: cha_slot2