SummonFoodandWater.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --[[
  2. Script Name : Summon Food and Water
  3. Script Purpose : Summons 5 Sacred Food and 5 Sacred Water to the target
  4. Script Author : Zcoretri
  5. Script Date : 2009.01.10
  6. Script Notes : JA: Going to ask LE for an "Array" spell_data type for passing multiple item IDs
  7. --]]
  8. --[[function cast(Caster, Target, SummonType, MinQty, MaxQty, Item1, Item2)
  9. if SummonType == "FoodWater" then
  10. if FoodID ~= nil and WaterID ~= nil then
  11. SummonItem(Target, 36884, 5)
  12. SummonItem(Target, 36885, 5)
  13. -- SummonItem(Target, FoodID, MinQty) <Dev Note:need to add a qty param>
  14. end
  15. else
  16. end
  17. end--]]
  18. function cast(Caster, Target, MinQty, MaxQty, Item1, Item2)
  19. SummonItem(Target, 36884, 0)
  20. SummonItem(Target, 36884, 0)
  21. SummonItem(Target, 36884, 0)
  22. SummonItem(Target, 36884, 0)
  23. SummonItem(Target, 36884, 0)
  24. SummonItem(Target, 36885, 0)
  25. SummonItem(Target, 36885, 0)
  26. SummonItem(Target, 36885, 0)
  27. SummonItem(Target, 36885, 0)
  28. SummonItem(Target, 36885, 0)
  29. SendMessage(Target, "5 Sacred Food and Water have been provided to you.")
  30. end