Advertisement
FSNeZ

QoL Edit: Itemdispenser

Dec 21st, 2017
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. 1. Open the CommandList.lua in the folder C:\Program Files (x86)\Steam\steamapps\common\Warhammer End Times Vermintide\binaries\mods
  2.  
  3. 2. add the line
  4. {"/giveitem", true, "commands", "giveitem"},
  5. to the commands
  6.  
  7. 3. create a .lua file named giveitem.lua in the folder
  8. C:\Program Files (x86)\Steam\steamapps\common\Warhammer End Times Vermintide\binaries\mods\commands
  9.  
  10. 4. add the following content to this file:
  11.  
  12. local args = {...}
  13.  
  14. if #args == 1 then
  15. local item_name = args[1]
  16.  
  17. local found = false
  18. for key, obj in pairs(ItemMasterList) do
  19. if key == item_name then
  20. found = true
  21. end
  22. end
  23.  
  24. if found then
  25. EchoConsole("Spawned Item '" .. item_name .. "' in inventory!")
  26.  
  27. ScriptBackendItem.award_item(item_name)
  28. Managers.backend:commit()
  29. else
  30. EchoConsole("Item '" .. item_name .. "' does not exist")
  31. end
  32.  
  33. return true
  34. else
  35. return false
  36. end
  37.  
  38. 5. ingame, type /giveitem into chat, followed by the item name, for example /giveitem bw_1h_mace_0001
  39.  
  40. 6. the item list can be found here: https://docs.google.com/spreadsheets/d/1gZeOH9qqzckbSsinDFWvR6lO_-cnjIXhBCHlEBXrYKU/edit#gid=0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement