9
3

tutorialdrake.lua 1005 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. SpawnSet(NPC, "visual_state", 10783)
  26. AddTimer(NPC, 40000, "drake_rain")
  27. end
  28. function drake_rain(NPC)
  29. -- SendStateCommand(NPC, 12080) --rain
  30. SpawnSet(NPC, "visual_state", 12080)
  31. AddTimer(NPC, 10000, "drake_stop")
  32. end
  33. function drake_stop(NPC)
  34. -- SendStateCommand(NPC, 44848) --kill_rain
  35. SpawnSet(NPC, "visual_state", 44848)
  36. end