9
3

JinglesLastingThawPotion.lua 904 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : ItemScripts/JinglesLastingThawPotion.lua
  3. Script Purpose : Handles the item "Jingle's Lasting Thaw Potion"
  4. Script Author : vo1d
  5. Script Date : 2019.10.30
  6. Script Notes :
  7. --]]
  8. -- Original Item Values:
  9. -- Name: a vial of breezes
  10. -- Description: A small vial that contains a captured breeze. A merchant might pay a few coin for this item.
  11. -- Item Type: Normal
  12. -- StackCount: 20
  13. -- MaxCharges: 0
  14. -- Toggles: false (all)
  15. function used(Item, Player)
  16. local target = GetTarget(Player)
  17. if GetName(target) == 'Candice Cheriweth' or 'Gardy Ex-Giftgiver' or 'Mr. McScroogle' or 'Queen Bunny' or 'Snarf Frostfoot' then
  18. CastThawPotion(Player, target)
  19. end
  20. end
  21. function CastThawPotion(Player, target)
  22. Say(Player, "Casting Thaw Potion!")
  23. CastEntityCommand(Player, target, 930, "pour acid on")
  24. end