• Trong thời gian này, bạn không thể tạo bài mới, đăng comment, hay tạo tài nguyên mới để diễn đàn dọn dẹp nội dung.
    Diễn đàn sẽ sớm mở trở lại, chi tiết hãy theo dõi tại Discord
D2K Fake

LỖI DELUXE MENUS KHÔNG TRỪ POINTS

  • Người tạo chủ đề Người tạo chủ đề D2K Fake
  • Ngày gửi Ngày gửi
Khi mình set như này cho 1 file .yml trong DM , có 1 đoạn code như sau
Mã:
      'minions1':
        material: 'basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNjA0ZDNiMWIyMzExMmM0ODc0OWViYjVlOWQwY2FlZmU5YTUxMWU2NDIxODhhOTZlMmUzMjRlYjY0MWVlNWIzZSJ9fX0===='
        slot: 13
        display_name: '&a&lMinions Thợ Mỏ'
        lore:
        - ''       
        - '&7&m                                      '
        - ''       
        - '&f      &fNhấn vào để mua &eMinions Thợ Mỏ'
        - '&f           &cGiá : &a20 Poinst'
        - ''       
        - '&7&m                                      '     
        left_click_commands: #khi mua bằng chuột trái
        - '[console] minion give %player_name% Miner' 
        - '[refresh]'       
        right_click_commands: #khi mua bằng chuột phải
        - '[console] minion give %player_name% Miner' 
        - '[refresh]'       
        left_click_requirement:
            requirements:
                aything_here:
                    type: '>='
                    input: '%playerpoints_points%'
                    output: '20' 
                    deny_commands:
                    - '[message] &6Server &7> &cBạn cần 20 Coins để mua con Minions này'
        right_click_requirement:
            requirements:
                aything_here:
                    type: '>='
                    input: '%playerpoints_points%'
                    output: '20' 
                    deny_commands:
                    - '[message] &6Server &7> &cBạn cần 20 Coins để mua con Minions này'
Mã:

Khi dùng lệnh này trong game thì nó chỉ thực hiện lệnh và không trừ đi Points
Các bác giúp e với :3
 
left_click_commands: #khi mua bằng chuột trái
- '[console] minion give %player_name% Miner'
- '[console] points take %player_name% 20'
- '[refresh]'
right_click_commands: #khi mua bằng chuột phải
- '[console] minion give %player_name% Miner'
- '[console] points take %player_name% 20'
- '[refresh]'
 
Khi mình set như này cho 1 file .yml trong DM , có 1 đoạn code như sau
Mã:
      'minions1':
        material: 'basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNjA0ZDNiMWIyMzExMmM0ODc0OWViYjVlOWQwY2FlZmU5YTUxMWU2NDIxODhhOTZlMmUzMjRlYjY0MWVlNWIzZSJ9fX0===='
        slot: 13
        display_name: '&a&lMinions Thợ Mỏ'
        lore:
        - ''       
        - '&7&m                                      '
        - ''       
        - '&f      &fNhấn vào để mua &eMinions Thợ Mỏ'
        - '&f           &cGiá : &a20 Poinst'
        - ''       
        - '&7&m                                      '     
        left_click_commands: #khi mua bằng chuột trái
        - '[console] minion give %player_name% Miner' 
        - '[refresh]'       
        right_click_commands: #khi mua bằng chuột phải
        - '[console] minion give %player_name% Miner' 
        - '[refresh]'       
        left_click_requirement:
            requirements:
                aything_here:
                    type: '>='
                    input: '%playerpoints_points%'
                    output: '20' 
                    deny_commands:
                    - '[message] &6Server &7> &cBạn cần 20 Coins để mua con Minions này'
        right_click_requirement:
            requirements:
                aything_here:
                    type: '>='
                    input: '%playerpoints_points%'
                    output: '20' 
                    deny_commands:
                    - '[message] &6Server &7> &cBạn cần 20 Coins để mua con Minions này'
Mã:

Khi dùng lệnh này trong game thì nó chỉ thực hiện lệnh và không trừ đi Points
Các bác giúp e với :3
Cái mà placeholder yêu cầu points k bảo gồm trừ points nên phải thêm /p take %player_name% 20 để trừ
 
có cần bỏ cái
Mã:
            requirements:
                aything_here:
                    type: '>='
                    input: '%playerpoints_points%'
                    output: '20'
                    deny_commands:
                    - '[message] &6Server &7> &cBạn cần 20 Coins để mua con Minions này'
không hay vẫn để
 
Nội dung tương tự Xem nhiều nhất Xem thêm

Thống kê nội dung

Tạo
D2K Fake,
Trả lời lần cuối từ
VoChiDanh,
Trả lời
5
Lượt xem
512
Quay lại
Trên cùng