AdditionalPylons

Installer

Mar 29th, 2025 (edited)
587
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.72 KB | None | 0 0
  1. print("Where would you like to install LIMAPI? (relative to current dir)")
  2. local dest = shell.resolve(read())
  3. shell.run("pastebin get M9uq3brA /"..dest.."/limapi.lua")
  4. print("Enter Y to additionally install UI for LIMAPI.")
  5. if read().upper()=="Y" then
  6.     print("What is the ID of the main chest?")
  7.     local chest = read()
  8.     settings.set("limapi_main_chest",chest)
  9.     settings.save()
  10.     shell.run("pastebin get eREGwRGT /"..dest.."/ui_limapi.lua")
  11.     print("Enter Y to pre-generate cache.")
  12.     if read().upper()=="Y" then
  13.         local inv = require("limapi")
  14.         inv.setMainChest(chest)
  15.         inv.registerChests()
  16.         inv.createCache()
  17.         inv.saveCache("/"..dest.."/caches/cache.lua")
  18.     end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment