9
3

DisassembledStorageBox.lua 699 B

1234567891011121314151617181920212223
  1. --[[
  2. Script Name : ItemScripts/DisassembledStorageBox.lua
  3. Script Purpose : Harvest Storage Bank Box
  4. Script Author : Ememjr
  5. Script Date : 2017.03.30
  6. Script Notes :
  7. --]]
  8. function examined(Item, Player)
  9. conversation = CreateConversation()
  10. AddConversationOption(conversation, "Assemble the Storage box.","Unpack")
  11. AddConversationOption(conversation, "Put Storage Box away.")
  12. StartDialogConversation(conversation, 2, Item, Player, "Be sure you are near a bank as the assembled Storage Box is Heavy.")
  13. end
  14. function Unpack(Item, Player)
  15. SummonItem(Player,20731,1)
  16. if HasItem(Player, 22227) then
  17. RemoveItem(Player, 22227)
  18. end
  19. CloseItemConversation(Item,Player)
  20. end