• Chào bạn, hãy đăng ký hoặc đăng nhập để tham gia cùng bọn mình và sử dụng được đầy đủ chức năng của diễn đàn :).
D2K Fake

LỖI DELUXE MENUS KHÔNG TRỪ POINTS

D2K Fake

THÀNH VIÊN
Tham gia
19/07/2017
Bài viết
2,096
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 để
 
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 để
Để cái đó để thông báo k đủ points chứ mennn
 
Similar content Most view Xem thêm
Back
Top Bottom