9
3

anoasisbandit.lua 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --[[
  2. Script Name : SpawnScripts/SinkingSands/anoasisbandit.lua
  3. Script Author : premierio015
  4. Script Date : 2023.12.17 02:12:29
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. if GetSpawnLocationID(NPC) == 133788947 then
  10. MoveToLocation(NPC, -1120.10, -208.95, -244.28, 3, "", true)
  11. MoveToLocation(NPC, -1137.88, -211.05, -249.93, 3, "", true)
  12. MoveToLocation(NPC, -1153.25, -212.78, -236.50, -236.22, 3, "", false)
  13. elseif GetSpawnLocationID(NPC) == 133788951 then
  14. MoveToLocation(NPC, -1126.91, -209.99, -244.68, 3, "", true)
  15. MoveToLocation(NPC, -1136.22, -211.04, -241.41, 3, "", true)
  16. MoveToLocation(NPC, -1143.47, -211.98, -238.79, 3, "", true)
  17. elseif GetSpawnID(NPC) == 730487 then
  18. MoveToLocation(NPC, -1137.88, -211.05, -249.93, 3, "", true)
  19. MoveToLocation(NPC, -1153.25, -212.78, -236.50, 3, "", true)
  20. MoveToLocation(NPC, -1125.46, -209.60, -237.31, 3,"",true)
  21. MoveToLocation(NPC, -1132.50, -210.54, -248.73, 3,"",true)
  22. MoveToLocation(NPC, -1145.80, -212.29, -236.74, 3,"", false)
  23. elseif GetSpawnID(NPC) == 730488 then
  24. MoveToLocation(NPC, -1116.94, -208.28, -240.72, 3, "", true)
  25. MoveToLocation(NPC, -1143.81, -211.74, -247.55, 3, "", true)
  26. MoveToLocation(NPC, -1151.48, -212.58, -239.19, 3, "", false)
  27. end
  28. end
  29. function hailed(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. end
  32. function respawn(NPC)
  33. spawn(NPC)
  34. end
  35. function prespawn(NPC)
  36. local gender_choice = MakeRandomInt(1, 2)
  37. if gender_choice == 1 then -- MALE
  38. SpawnSet(NPC, "model_type", 78)
  39. SpawnSet(NPC, "soga_model_type", 78)
  40. SpawnSet(NPC, "gender", 1)
  41. else -- FEMALE
  42. end
  43. end