9
3

Toad.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : SpawnScripts/GMHall/Toad.lua
  3. Script Author : TyroneSWG
  4. Script Date : 2019.01.14 03:01:44
  5. Script Purpose : Test, can be nuked later.
  6. :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function hailed(NPC, Spawn)
  11. FaceTarget(NPC, Spawn)
  12. local conversation = CreateConversation()
  13. AddConversationOption(conversation, "Morph Me!", "Change")
  14. AddConversationOption(conversation, "Revert Me!", "Revert")
  15. AddConversationOption(conversation, "Just saying Hello!", "Hello")
  16. StartConversation(conversation, NPC, Spawn, "Ah wise warrior. How can I assist you?")
  17. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1006.mp3", "", "wave", 0, 0, Spawn)
  18. end
  19. function Change(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. local conversation = CreateConversation()
  22. StartConversation(conversation, NPC, Spawn, "Watch this...")
  23. v = math.random (200, 300)
  24. SetIllusion(Spawn, v)
  25. Say(NPC, "Allakhazam!")
  26. end
  27. function Revert(NPC, Spawn)
  28. ResetIllusion(Spawn)
  29. end
  30. function Hello(NPC, Spawn)
  31. Say(NPC, "Well hello.")
  32. end
  33. function respawn(NPC)
  34. end