9
3

tutorialdrake.lua 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : SpawnScripts/FarJourneyFreeport/tutorialdrake.lua
  3. Script Author : Cynnar
  4. Script Date : 2019.05.18 11:05:52
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. --DoF Version
  11. function attack(NPC)
  12. SendStateCommand(NPC, 65) -- attack
  13. -- AddTimer(NPC, 40000, "DoFdrake_rain")
  14. end
  15. function DoFdrake_rain(NPC)
  16. SendStateCommand(NPC, 910) --rain
  17. -- AddTimer(NPC, 10000, "DoFdrake_stop")
  18. end
  19. function DoFdrake_stop(NPC)
  20. -- SendStateCommand(NPC, 33678) --kill_rain
  21. end
  22. --non DoF Version
  23. function NonDoFattack(NPC)
  24. -- SendStateCommand(NPC, 10783) -- attack
  25. PlayFlavor(NPC,"","","attack")
  26. --SpawnSet(NPC, "visual_state", 10783)
  27. -- AddTimer(NPC, 40000, "drake_rain")
  28. end
  29. function drake_rain(NPC)
  30. -- SendStateCommand(NPC, 12080) --rain
  31. SpawnSet(NPC, "visual_state", 12080)
  32. -- AddTimer(NPC, 10000, "drake_stop")
  33. end
  34. function drake_stop(NPC)
  35. -- SendStateCommand(NPC, 44848) --kill_rain
  36. -- SpawnSet(NPC, "visual_state", 44848)
  37. end