GrennStiles.lua 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : SpawnScripts/ThunderingSteppes/GrennStiles.lua
  3. Script Author : Zcoretri
  4. Script Date : 2014.07.14 07:07:35
  5. Script Purpose : Grenn Stiles spawn script
  6. :
  7. --]]
  8. local RecycleTheOldFashionedWay = 111
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, RecycleTheOldFashionedWay)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. end
  17. function LeaveRange(NPC, Spawn)
  18. end
  19. function hailed(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. conversation = CreateConversation()
  22. if HasQuest(Spawn, RecyclingTheOldFashoinedWay) then
  23. -- Has the quest
  24. if GetQuestStep(Spawn, RecyclingTheOldFashoinedWay) == 1 then
  25. -- Has not completed the quest yet
  26. AddConversationOption(conversation, "Ah! Got the bones, eh? Let me see them.")
  27. StartConversation(conversation, NPC, Spawn, "Er, no, not quite. Just stopped by to say hello. I'll be back")
  28. end
  29. else
  30. AddConversationOption(conversation, "What kind of opportunity?", "Option1")
  31. AddConversationOption(conversation, "No, I look like someone who's heading the other way.")
  32. StartConversation(conversation, NPC, Spawn, "Hey! Don't miss out on this once-in-a-lifetime opportunity!")
  33. end
  34. end
  35. function Option1(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. conversation = CreateConversation()
  38. AddConversationOption(conversation, "If the price is right", "Option2")
  39. AddConversationOption(conversation, "No, I'm not")
  40. StartConversation(conversation, NPC, Spawn, "Why, in farming of course. Lots of opportunity to grow in the farming industry--HA! Get it? Grow ... farming ... Oh, Never mind ... On any note, I've made a bundle selling fertilizer to the farmers in the Steppes. I'm looking for a business partner - no investment required. Yuo'd be silly to pass up this opportunity!")
  41. end
  42. function Option2(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. OfferQuest(NPC, Spawn, RecycleTheOldFashionedWay)
  45. end