Сборки серверов

СливПлатные

Сейчас онлайн

  • Karton
  • meowl_boostik
  • golik
  • d1fs
  • Youn
  • armen992
  • Sasha_Lainy
  • dobrichhh
  • DAFSSS11
  • semka_lol
  • Egleop088
  • nersik
  • xayrl
  • Codmodeon
  • trtretrtr
  • qiuki
  • Jomarin
  • Радмир
  • wawadawdaw_49073
  • no_war
  • bebronim
  • MONIX05
  • kexbomba2758
  • 1Eugesha
  • fdssfdsdfsfd
  • Romanuv
  • DevMaks
  • renaudrl
  • Makar223
  • simdim1977
  • graty
  • raulapakidze070
  • VeJo
  • vsemoguchi
  • lopez
  • sdqw
  • Makar_Sigmavichev
  • ?????
  • Shadow Bonnie
  • miwkiee
  • kakashkaed
  • VaaskaYT98
  • Lesha_Way
  • toxatenoise
  • ffedsfdsfdfe
  • fhjehgfruhfgr
  • ErKcarBon
  • mrmesniy
  • exxese11
  • hazaudxd
  • Garana1
  • legend3352
  • dfdffdqw3
  • hanakee
  • deidara1296
  • Fong
  • zxcvbhnjkl
  • Dimong12
  • ScammerRllyBro
  • arturswifs
  • 2978231087031
  • Dragon725
  • SergOBW
  • Deniska12
  • Immm
  • fdsfsf2132131
  • Steveson4065
  • flxwerqx
  • tony56734
  • kffff
  • viCi888
  • Zeeldaa
  • qwerottt
  • PhantomTheYT
  • Semmi17
  • MRAWAH
  • Xlebinator
  • Klaimoon
  • hidens
  • DarkGames
  • Russkiyff12
  • ljerghe
  • feach
  • jacats
  • Фрозка
  • s1ttxxx21

ПОМОГИТЕ!!! плагин DeluxeMenus , NPC срочно пжлстт

shau999
И так, начну сначала.
Во первых всем привет!
Проблема вот в чём, создал я себе магазин на сервер при помощи DeluxeMenus и NPC, вроде всё настроил, всё работает нормально НОООО, если инвентарь полный, а ты нажимаешь кнопку купить, ВЕЩЬ ПОКУПАЕТСЯ, а в инвентаре то места немаааа, но деньги снимаются
p.s. как сделать проверку на заполненность инвентаря, пжл помогите я тугооой, знаю что есть какой то плейсхолдер %player_has_empty_slot% , но куда и как его правильно поставить, чтобы это всё функционировало я ХЗ
 
Extr1se_
РЕШЕНО | Зайди в конфиг раздела магазина где предметы, и вставь выделенные строки(inventory_full:) , вот тебе пример:

Код:
  'apple':
    material: golden_apple
    left_click_requirement:
      requirements:
        anything_here:
          type: '>='
          input: '%playerpoints_points%'
          output: '1900'
      deny_commands:
       - '[refresh]'
       - '[sound] ENTITY_VILLAGER_NO'
       - '[message]'
       - '[message] &c&k|&f BBBB'
       - '[message] &c&k|&f BBBB'
       - '[message]'
    right_click_requirement:
      requirements:
        anything_here:
          type: '>='
          input: '%playerpoints_points%'
          output: '1900'
      deny_commands:
       - '[refresh]'
       - '[sound] ENTITY_VILLAGER_NO'
       - '[message]'
       - '[message] &c&k|&f B'
       - '[message] &c&k|&f BBBB'
       - '[message]'
    inventory_full:
      type: '!='
      input: '%player_has_empty_slot%'
      output: 'true'
    left_click_commands:
    - '[console] give %player_name% golden_apple'
    - '[console] p take %player_name% 1900'
    - '[message] DD'
    right_click_commands:
    - '[console] give %player_name% golden_apple'
    - '[console] p take %player_name% 1900'
    - '[message] DDD'

А если не хочешь в каждый предмет это вставлять, вне items: в конфиге вставь этот код:
Код:
global_empty_slot_condition:
  type: '!='
  input: '%player_has_empty_slot%'
  output: 'true'
 
A
РЕШЕНО | Зайди в конфиг раздела магазина где предметы, и вставь выделенные строки(inventory_full:) , вот тебе пример:

Код:
  'apple':
    material: golden_apple
    left_click_requirement:
      requirements:
        anything_here:
          type: '>='
          input: '%playerpoints_points%'
          output: '1900'
      deny_commands:
       - '[refresh]'
       - '[sound] ENTITY_VILLAGER_NO'
       - '[message]'
       - '[message] &c&k|&f BBBB'
       - '[message] &c&k|&f BBBB'
       - '[message]'
    right_click_requirement:
      requirements:
        anything_here:
          type: '>='
          input: '%playerpoints_points%'
          output: '1900'
      deny_commands:
       - '[refresh]'
       - '[sound] ENTITY_VILLAGER_NO'
       - '[message]'
       - '[message] &c&k|&f B'
       - '[message] &c&k|&f BBBB'
       - '[message]'
    inventory_full:
      type: '!='
      input: '%player_has_empty_slot%'
      output: 'true'
    left_click_commands:
    - '[console] give %player_name% golden_apple'
    - '[console] p take %player_name% 1900'
    - '[message] DD'
    right_click_commands:
    - '[console] give %player_name% golden_apple'
    - '[console] p take %player_name% 1900'
    - '[message] DDD'

А если не хочешь в каждый предмет это вставлять, вне items: в конфиге вставь этот код:
Код:
global_empty_slot_condition:
  type: '!='
  input: '%player_has_empty_slot%'
  output: 'true'
menu_title: 'Default Menu'
open_command: logmenu
size: 54
open_requirement:
requirements:
permission:
type: has permission
permission: deluxemenus.admin
deny_commands:
- '[message] &cYou don''t have permission to do that!'
items:
'dirt':
material: DIRT
slot: 0
amount: 1
display_name: 'Тест'
lore:
- 'LKM - kupiti'
- 'balance: %vault_eco_balance_fixed%'
left_click_requirement:
requirements:
balance:
type: has money
amount: 10
deny_commands:
- '[message] Nus bani'
inventory_full:
type: '!='
input: '%player_has_empty_slot%'
output: 'true'
deny_commands:
- '[message]'
- '[message] &6 ✘&8 » &x&F&F&0&0&0&0У вас не достаточно места для покупки!'
- '[message]'
- '[sound] BLOCK_END_PORTAL_FRAME_FILL'
left_click_commands:
- '[takemoney] 10'
- '[refresh]'
- '[message] &aYou bought 1 &6GOLD_BLOCK &afor $100'
- '[console] give %player_name% DIRT 1'


что не так у меня? есть одна ячейка свободна, пишет что инвентарь полный
 
jFrostyBoy
И так, начну сначала.
Во первых всем привет!
Проблема вот в чём, создал я себе магазин на сервер при помощи DeluxeMenus и NPC, вроде всё настроил, всё работает нормально НОООО, если инвентарь полный, а ты нажимаешь кнопку купить, ВЕЩЬ ПОКУПАЕТСЯ, а в инвентаре то места немаааа, но деньги снимаются
p.s. как сделать проверку на заполненность инвентаря, пжл помогите я тугооой, знаю что есть какой то плейсхолдер %player_has_empty_slot% , но куда и как его правильно поставить, чтобы это всё функционировало я ХЗ
Насколько надо быть гениальным чтобы на заполненный инвентарь пытаться ещё что-то купить?!. 🤔
 
jFrostyBoy
РЕШЕНО | Зайди в конфиг раздела магазина где предметы, и вставь выделенные строки(inventory_full:) , вот тебе пример:

Код:
  'apple':
    material: golden_apple
    left_click_requirement:
      requirements:
        anything_here:
          type: '>='
          input: '%playerpoints_points%'
          output: '1900'
      deny_commands:
       - '[refresh]'
       - '[sound] ENTITY_VILLAGER_NO'
       - '[message]'
       - '[message] &c&k|&f BBBB'
       - '[message] &c&k|&f BBBB'
       - '[message]'
    right_click_requirement:
      requirements:
        anything_here:
          type: '>='
          input: '%playerpoints_points%'
          output: '1900'
      deny_commands:
       - '[refresh]'
       - '[sound] ENTITY_VILLAGER_NO'
       - '[message]'
       - '[message] &c&k|&f B'
       - '[message] &c&k|&f BBBB'
       - '[message]'
    inventory_full:
      type: '!='
      input: '%player_has_empty_slot%'
      output: 'true'
    left_click_commands:
    - '[console] give %player_name% golden_apple'
    - '[console] p take %player_name% 1900'
    - '[message] DD'
    right_click_commands:
    - '[console] give %player_name% golden_apple'
    - '[console] p take %player_name% 1900'
    - '[message] DDD'

А если не хочешь в каждый предмет это вставлять, вне items: в конфиге вставь этот код:
Код:
global_empty_slot_condition:
  type: '!='
  input: '%player_has_empty_slot%'
  output: 'true'
Ещё один гений года... Где таких штампуют вообще...

В данную конструкцию можно запихнуть разве что проверку:
check_inventory:
type: string equals
input: '%player_has_empty_slot%
output: 'true'
deny_commands:
- '[message] &fВаш инвентарь &cзаполнен'
 
ВерхНиз