9
3

Wizzy.lua 1008 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. --[[
  2. Script Name : SpawnScripts/GMHall/Wizzy.lua
  3. Script Author : TyroneSWG
  4. Script Date : 2019.01.15 11:01:51
  5. Script Purpose : Dragon that mounts people. Wait a minute...
  6. :
  7. --]]
  8. local mount_favorites = { '25423', '24053', '25864', '23713', '15397', '20950', '20344', '17509' }
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. local conversation = CreateConversation()
  14. AddConversationOption(conversation, "I need a mount please!", "mountme")
  15. AddConversationOption(conversation, "I would like to dismount", "unmountme")
  16. StartConversation(conversation, NPC, Spawn, "Greetings.")
  17. end
  18. function mountme(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. SendMessage(Player, "Did it work?", "red")
  21. SetMount(Spawn, mount_favorites[ math.random( 1, #mount_favorites - 1 ) ] )
  22. --SetSpeed(Spawn, 100)
  23. end
  24. function unmountme(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. SetMount(Spawn, 0)
  27. SetSpeed(Spawn, 1)
  28. end
  29. function respawn(NPC)
  30. end