Lambert.lua 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. --[[
  2. Script Name : Lambert.lua
  3. Script Purpose : Lambert the cat
  4. Script Author : Xanibunib
  5. Script Date : 3.28.2009
  6. Script Notes : I like fish...
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange", "LeavingRange")
  10. MovementLoopAddLocation(NPC, 22.81, -4.38, 32.81, 3, 0)
  11. MovementLoopAddLocation(NPC, 19.00, -4.38, 47.91, 3, 0)
  12. MovementLoopAddLocation(NPC, 30.35, 0.00, 51.70, 3, 0)
  13. MovementLoopAddLocation(NPC, 29.89, 0.06, 56.19, 3, 5)
  14. MovementLoopAddLocation(NPC, 28.23, 0.00, 59.10, 3, 0)
  15. MovementLoopAddLocation(NPC, 13.19, -4.38, 54.93, 3, 0)
  16. MovementLoopAddLocation(NPC, 6.70, -4.38, 54.33, 3, 5)
  17. MovementLoopAddLocation(NPC, 11.11, -4.38, 59.40, 3, 0)
  18. MovementLoopAddLocation(NPC, 14.33, -4.38, 62.94, 3, 5)
  19. MovementLoopAddLocation(NPC, 7.88, -4.38, 64.47, 3, 0)
  20. MovementLoopAddLocation(NPC, 6.37, -4.38, 69.68, 3, 0)
  21. MovementLoopAddLocation(NPC, 10.87, -4.38, 72.00, 3, 10)
  22. MovementLoopAddLocation(NPC, 7.93, -4.38, 72.70, 3, 0)
  23. MovementLoopAddLocation(NPC, 6.62, -4.65, 79.08, 3, 0)
  24. MovementLoopAddLocation(NPC, 6.97, -4.69, 83.51, 3, 0)
  25. MovementLoopAddLocation(NPC, 2.78, -4.66, 93.73, 3, 0)
  26. MovementLoopAddLocation(NPC, 0.23, -4.67, 103.16, 3, 0)
  27. MovementLoopAddLocation(NPC, 0.82, -4.61, 109.15, 3, 0)
  28. MovementLoopAddLocation(NPC, -3.88, -4.38, 105.70, 3, 15)
  29. MovementLoopAddLocation(NPC, -1.74, -4.68, 105.50, 3, 0)
  30. MovementLoopAddLocation(NPC, 4.29, -4.66, 89.09, 3, 0)
  31. MovementLoopAddLocation(NPC, 7.14, -4.65, 75.05, 3, 0)
  32. MovementLoopAddLocation(NPC, 7.24, -4.38, 65.48, 3, 0)
  33. MovementLoopAddLocation(NPC, 9.03, -4.38, 56.55, 3, 0)
  34. MovementLoopAddLocation(NPC, 13.24, -4.36, 48.21, 3, 0)
  35. MovementLoopAddLocation(NPC, 14.93, -4.38, 34.59, 3, 0)
  36. MovementLoopAddLocation(NPC, 16.77, -4.38, 24.72, 3, 0)
  37. MovementLoopAddLocation(NPC, 14.36, -4.38, 23.53, 3, 5)
  38. MovementLoopAddLocation(NPC, 17.50, -4.38, 14.88, 3, 0)
  39. MovementLoopAddLocation(NPC, 9.21, -4.20, 12.62, 3, 0)
  40. MovementLoopAddLocation(NPC, 1.25, -4.60, 9.41, 3, 0)
  41. MovementLoopAddLocation(NPC, -5.98, -5.13, 2.10, 3, 0)
  42. MovementLoopAddLocation(NPC, -4.62, -5.59, -10.56, 3, 0)
  43. MovementLoopAddLocation(NPC, -7.92, -5.57, -9.38, 3, 0)
  44. MovementLoopAddLocation(NPC, -2.63, -5.18, -2.02, 3, 0)
  45. MovementLoopAddLocation(NPC, 0.51, -4.99, 1.73, 3, 0)
  46. MovementLoopAddLocation(NPC, 7.18, -4.37, 7.06, 3, 0)
  47. MovementLoopAddLocation(NPC, 12.13, -4.23, 8.17, 3, 0)
  48. MovementLoopAddLocation(NPC, 13.03, -4.38, 4.20, 3, 10)
  49. MovementLoopAddLocation(NPC, 19.31, -4.38, 10.26, 3, 0)
  50. MovementLoopAddLocation(NPC, 26.12, -2.25, 15.53, 3, 0)
  51. MovementLoopAddLocation(NPC, 27.21, -4.03, 20.92, 3, 0)
  52. MovementLoopAddLocation(NPC, 24.77, -4.38, 28.67, 3, 0)
  53. end
  54. function InRange(NPC, Player)
  55. FaceTarget(NPC, Spawn)
  56. conversation = CreateConversation()
  57. AddConversationOption(conversation, "What the hell was that....*Look around for who said that*", "dlg_0_1")
  58. StartConversation(conversation, NPC, Spawn, "Pssst....")
  59. end
  60. function hailed(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. conversation = CreateConversation()
  63. AddConversationOption(conversation, "What the hell was that....*Look around for who said that*", "dlg_0_1")
  64. StartConversation(conversation, NPC, Spawn, "Pssst....")
  65. end
  66. function respawn(NPC)
  67. end
  68. function dlg_0_1(NPC, Spawn)
  69. FaceTarget(NPC, Spawn)
  70. conversation = CreateConversation()
  71. AddConversationOption(conversation, "What the hell.....", "dlg_0_2")
  72. StartConversation(conversation, NPC, Spawn, "Hey.....")
  73. end
  74. function dlg_0_2(NPC, Spawn)
  75. FaceTarget(NPC, Spawn)
  76. conversation = CreateConversation()
  77. AddConversationOption(conversation, "*look down*", "dlg_0_3")
  78. StartConversation(conversation, NPC, Spawn, "Pssst... down here....")
  79. end
  80. function dlg_0_3(NPC, Spawn)
  81. FaceTarget(NPC, Spawn)
  82. conversation = CreateConversation()
  83. AddConversationOption(conversation, "*Soil yourself*", "dlg_0_4")
  84. StartConversation(conversation, NPC, Spawn, "Yeah, you!")
  85. end
  86. function dlg_0_4(NPC, Spawn)
  87. FaceTarget(NPC, Spawn)
  88. conversation = CreateConversation()
  89. AddConversationOption(conversation, "You...you... can talk!", "dlg_0_5")
  90. StartConversation(conversation, NPC, Spawn, "Woah buddy! Might wanna check your pantaloons...")
  91. end
  92. function dlg_0_5(NPC, Spawn)
  93. FaceTarget(NPC, Spawn)
  94. conversation = CreateConversation()
  95. AddConversationOption(conversation, "...", "dlg_0_6")
  96. StartConversation(conversation, NPC, Spawn, "So you noticed...")
  97. end
  98. function dlg_0_6(NPC, Spawn)
  99. FaceTarget(NPC, Spawn)
  100. conversation = CreateConversation()
  101. AddConversationOption(conversation, "For a talking cat? ANYTHING!", "dlg_0_7")
  102. StartConversation(conversation, NPC, Spawn, "Anyways...Hey I need you to do something for me, ok?")
  103. end
  104. function dlg_0_7(NPC, Spawn)
  105. FaceTarget(NPC, Spawn)
  106. conversation = CreateConversation()
  107. AddConversationOption(conversation, "Uh...ok", "dlg_0_8")
  108. StartConversation(conversation, NPC, Spawn, "Here take this...*Hacks up a wad of... something*")
  109. end
  110. function dlg_0_8(NPC, Spawn)
  111. FaceTarget(NPC, Spawn)
  112. conversation = CreateConversation()
  113. AddConversationOption(conversation, "...")
  114. StartConversation(conversation, NPC, Spawn, "Thanks bud, been bothering me for a while meow.")
  115. end