123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351 |
- --[[
- Script Name : SpawnScripts/IsleRefuge1/aGruttoothprovider.lua
- Script Author : LordPazuzu
- Script Date : 2022.09.05 07:09:59
- Script Purpose :
- :
- --]]
- dofile("SpawnScripts/Generic/MonsterCallouts/BaseGoblin1.lua")
- function spawn(NPC)
- ChooseMovement(NPC)
- end
- function ChooseMovement(NPC)
- if GetSpawnLocationID(NPC)==133774837 then
- MovementLoopAddLocation(NPC, 175.9, 1.34, 54.84, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 180.33, 1.13, 54.46, 2, 0)
- MovementLoopAddLocation(NPC, 186.01, 1.1, 59.5, 2, 0)
- MovementLoopAddLocation(NPC, 190.24, 1.09, 62.3, 2, 0)
- MovementLoopAddLocation(NPC, 201.44, 1.25, 58.55, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 201.6, 1.25, 59.91, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 198.28, 1.26, 46.35, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 194.95, 1.27, 48.29, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 192.19, 1.29, 43.45, 2, 0)
- MovementLoopAddLocation(NPC, 192.19, 1.29, 43.45, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 182.46, 1.12, 49.55, 2, 0)
- MovementLoopAddLocation(NPC, 176.25, 1.34, 50.8, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 175.55, 1.34, 53.52, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 171.7, 1.36, 50.67, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 171.72, 1.36, 53.69, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 171.7, 1.36, 50.67, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 175.55, 1.34, 53.52, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 176.25, 1.34, 50.8, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 182.46, 1.12, 49.55, 2, 0)
- MovementLoopAddLocation(NPC, 192.19, 1.29, 43.45, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 192.19, 1.29, 43.45, 2, 0)
- MovementLoopAddLocation(NPC, 194.95, 1.27, 48.29, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 198.28, 1.26, 46.35, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 201.6, 1.25, 59.91, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 201.44, 1.25, 58.55, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 190.24, 1.09, 62.3, 2, 0)
- MovementLoopAddLocation(NPC, 186.01, 1.1, 59.5, 2, 0)
- MovementLoopAddLocation(NPC, 180.33, 1.13, 54.46, 2, 0)
- MovementLoopAddLocation(NPC, 175.9, 1.34, 54.84, 2, 15 , "InitialPause")
- elseif GetSpawnLocationID(NPC)==133774722 then
- MovementLoopAddLocation(NPC, 186.15, 1.31, 46.77, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 180.41, 1.13, 44.64, 2, 0)
- MovementLoopAddLocation(NPC, 174.82, 1.35, 38.93, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 171.83, 1.36, 44.16, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 174.63, 1.35, 46.27, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 179.73, 1.13, 47.31, 2, 0)
- MovementLoopAddLocation(NPC, 178.82, 1.13, 35.57, 2, 0)
- MovementLoopAddLocation(NPC, 187.43, 1.31, 26.64, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 190.82, 1.29, 30.64, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 186.49, 1.31, 30.48, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 178.45, 1.14, 31.81, 2, 0)
- MovementLoopAddLocation(NPC, 181.5, 1.12, 37.67, 2, 0)
- MovementLoopAddLocation(NPC, 182.51, 1.12, 43.65, 2, 0)
- MovementLoopAddLocation(NPC, 185.48, 1.31, 46.22, 2, 0)
- MovementLoopAddLocation(NPC, 191.27, 1.29, 45.01, 2, 0)
- MovementLoopAddLocation(NPC, 193.77, 1.3, 39.39, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 191.45, 1.29, 38.13, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 191.51, 1.29, 41.12, 2, 0)
- MovementLoopAddLocation(NPC, 187.29, 1.3, 45.11, 2, 0)
- MovementLoopAddLocation(NPC, 191.51, 1.29, 41.12, 2, 0)
- MovementLoopAddLocation(NPC, 191.45, 1.29, 38.13, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 193.77, 1.3, 39.39, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 191.27, 1.29, 45.01, 2, 0)
- MovementLoopAddLocation(NPC, 185.48, 1.31, 46.22, 2, 0)
- MovementLoopAddLocation(NPC, 182.51, 1.12, 43.65, 2, 0)
- MovementLoopAddLocation(NPC, 181.5, 1.12, 37.67, 2, 0)
- MovementLoopAddLocation(NPC, 178.45, 1.14, 31.81, 2, 0)
- MovementLoopAddLocation(NPC, 186.49, 1.31, 30.48, 2, 15 ,"InitialPause")
- MovementLoopAddLocation(NPC, 190.82, 1.29, 30.64, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 187.43, 1.31, 26.64, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 178.82, 1.13, 35.57, 2, 0)
- MovementLoopAddLocation(NPC, 179.73, 1.13, 47.31, 2, 0)
- MovementLoopAddLocation(NPC, 174.63, 1.35, 46.27, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 171.83, 1.36, 44.16, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 174.82, 1.35, 38.93, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 180.41, 1.13, 44.64, 2, 0)
- MovementLoopAddLocation(NPC, 186.15, 1.31, 46.77, 2, 15 , "InitialPause")
- elseif GetSpawnLocationID(NPC)==133774723 then
- MovementLoopAddLocation(NPC, 166.81, 1.38, 48.55, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 165.48, 1.38, 47.37, 2, 15 ,"InitialPause")
- MovementLoopAddLocation(NPC, 167.78, 1.37, 50.92, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 163.52, 1.39, 50.15, 2, 0)
- MovementLoopAddLocation(NPC, 152.09, 1.23, 49.58, 2, 0)
- MovementLoopAddLocation(NPC, 147.07, 1.25, 58.02, 2, 0)
- MovementLoopAddLocation(NPC, 141.14, 1.27, 66.28, 2, 0)
- MovementLoopAddLocation(NPC, 129.08, 1.51, 70.55, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 126.54, 1.52, 75.56, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 130.77, 1.51, 71.09, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 135.12, 1.32, 63.93, 2, 0)
- MovementLoopAddLocation(NPC, 133.59, 1.15, 59.45, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 130.32, 1.48, 52.14, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 136.85, 1.49, 53.43, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 142.24, 1.26, 60.9, 2, 0)
- MovementLoopAddLocation(NPC, 145, 1.25, 58.43, 2, 0)
- MovementLoopAddLocation(NPC, 149.63, 1.24, 52.65, 2, 0)
- MovementLoopAddLocation(NPC, 156.22, 1.42, 48.93, 2, 0)
- MovementLoopAddLocation(NPC, 159.21, 1.41, 47.87, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 160.91, 1.4, 50.9, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 159.21, 1.41, 47.87, 2, 15 ,"InitialPause")
- MovementLoopAddLocation(NPC, 156.22, 1.42, 48.93, 2, 0)
- MovementLoopAddLocation(NPC, 149.63, 1.24, 52.65, 2, 0)
- MovementLoopAddLocation(NPC, 145, 1.25, 58.43, 2, 0)
- MovementLoopAddLocation(NPC, 142.24, 1.26, 60.9, 2, 0)
- MovementLoopAddLocation(NPC, 136.85, 1.49, 53.43, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 130.32, 1.48, 52.14, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 133.59, 1.15, 59.45, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 135.12, 1.32, 63.93, 2, 0)
- MovementLoopAddLocation(NPC, 130.77, 1.51, 71.09, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 126.54, 1.52, 75.56, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 129.08, 1.51, 70.55, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 141.14, 1.27, 66.28, 2, 0)
- MovementLoopAddLocation(NPC, 147.07, 1.25, 58.02, 2, 0)
- MovementLoopAddLocation(NPC, 152.09, 1.23, 49.58, 2, 0)
- MovementLoopAddLocation(NPC, 163.52, 1.39, 50.15, 2, 0)
- MovementLoopAddLocation(NPC, 167.78, 1.37, 50.92, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 165.48, 1.38, 47.37, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 166.81, 1.38, 48.55, 2, 15 , "InitialPause")
- elseif GetSpawnLocationID(NPC)==133774719 then
- MovementLoopAddLocation(NPC, 167.76, 1.38, 40.95, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 171.08, 1.36, 37.6, 2, 0)
- MovementLoopAddLocation(NPC, 172.58, 1.36, 37.7, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 175.8, 1.15, 33.51, 2, 0)
- MovementLoopAddLocation(NPC, 172.59, 1.16, 29.76, 2, 0)
- MovementLoopAddLocation(NPC, 167.85, 1.18, 29.09, 2, 0)
- MovementLoopAddLocation(NPC, 159.53, 1.21, 31.52, 2, 0)
- MovementLoopAddLocation(NPC, 154.35, 1.23, 35.7, 2, 0)
- MovementLoopAddLocation(NPC, 143.85, 1.44, 34.18, 2, 0)
- MovementLoopAddLocation(NPC, 138.42, 1.49, 31.86, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 133.77, 1.2, 34.23, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 137.95, 1.49, 35.1, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 142.89, 1.47, 39.42, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 149.52, 1.24, 38.7, 2, 0)
- MovementLoopAddLocation(NPC, 152.63, 1.23, 34.96, 2, 0)
- MovementLoopAddLocation(NPC, 160.52, 1.2, 29.28, 2, 0)
- MovementLoopAddLocation(NPC, 171.43, 1.16, 28.09, 2, 0)
- MovementLoopAddLocation(NPC, 173.07, 1.36, 37.79, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 168.56, 1.37, 35.65, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 170.91, 1.36, 42.47, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 168.56, 1.37, 35.65, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 173.07, 1.36, 37.79, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 171.43, 1.16, 28.09, 2, 0)
- MovementLoopAddLocation(NPC, 160.52, 1.2, 29.28, 2, 0)
- MovementLoopAddLocation(NPC, 152.63, 1.23, 34.96, 2, 0)
- MovementLoopAddLocation(NPC, 149.52, 1.24, 38.7, 2, 0)
- MovementLoopAddLocation(NPC, 142.89, 1.47, 39.42, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 137.95, 1.49, 35.1, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 133.77, 1.2, 34.23, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 138.42, 1.49, 31.86, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 143.85, 1.44, 34.18, 2, 0)
- MovementLoopAddLocation(NPC, 154.35, 1.23, 35.7, 2, 0)
- MovementLoopAddLocation(NPC, 159.53, 1.21, 31.52, 2, 0)
- MovementLoopAddLocation(NPC, 167.85, 1.18, 29.09, 2, 0)
- MovementLoopAddLocation(NPC, 172.59, 1.16, 29.76, 2, 0)
- MovementLoopAddLocation(NPC, 175.8, 1.15, 33.51, 2, 0)
- MovementLoopAddLocation(NPC, 172.58, 1.36, 37.7, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 171.08, 1.36, 37.6, 2, 0)
- MovementLoopAddLocation(NPC, 167.76, 1.38, 40.95, 2, 15 , "InitialPause")
- elseif GetSpawnLocationID(NPC)==133774720 then
- MovementLoopAddLocation(NPC, 163.07, 1.39, 39.8, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 162.97, 1.39, 35.05, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 164.66, 1.39, 40.25, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 159.6, 1.41, 40.53, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 162.97, 1.39, 36.33, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 158.4, 1.41, 23.42, 2, 0)
- MovementLoopAddLocation(NPC, 155.26, 1.43, 23.59, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 150.81, 1.22, 23.03, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 153.18, 1.43, 26.48, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 157.68, 1.42, 24.73, 2, 0)
- MovementLoopAddLocation(NPC, 163.85, 1.39, 34.01, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 160.13, 1.4, 38.31, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 163.85, 1.39, 34.01, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 157.68, 1.42, 24.73, 2, 0)
- MovementLoopAddLocation(NPC, 153.18, 1.43, 26.48, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 150.81, 1.22, 23.03, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 155.26, 1.43, 23.59, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 158.4, 1.41, 23.42, 2, 0)
- MovementLoopAddLocation(NPC, 162.97, 1.39, 36.33, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 159.6, 1.41, 40.53, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 164.66, 1.39, 40.25, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 162.97, 1.39, 35.05, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 163.07, 1.39, 39.8, 2, 15 , "InitialPause")
- elseif GetSpawnLocationID(NPC)==133774721 then
- MovementLoopAddLocation(NPC, 152.56, 1.36, 29.72, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 143.2, 1.06, 27.27, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 141.82, 0.94, 22.81, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 145.98, 0.48, 22.2, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 144.77, 1.26, 31.45, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 152.5, 1.23, 32.68, 2, 0)
- MovementLoopAddLocation(NPC, 156.33, 1.22, 30.41, 2, 0)
- MovementLoopAddLocation(NPC, 166.78, 1.18, 26.31, 2, 0)
- MovementLoopAddLocation(NPC, 171.64, 1.16, 28.21, 2, 0)
- MovementLoopAddLocation(NPC, 179.59, 1.13, 35.99, 2, 0)
- MovementLoopAddLocation(NPC, 181.48, 1.12, 45.44, 2, 0)
- MovementLoopAddLocation(NPC, 183.18, 1.12, 55.45, 2, 0)
- MovementLoopAddLocation(NPC, 189.35, 1.09, 61.04, 2, 0)
- MovementLoopAddLocation(NPC, 189.93, 1.09, 61.62, 2, 2)
- MovementLoopAddLocation(NPC, 191.32, 1.08, 63.08, 2, 0)
- MovementLoopAddLocation(NPC, 184.83, 1.11, 60.74, 2, 0)
- MovementLoopAddLocation(NPC, 180.73, 1.12, 53.17, 2, 0)
- MovementLoopAddLocation(NPC, 179.95, 1.13, 41.35, 2, 0)
- MovementLoopAddLocation(NPC, 179.17, 1.13, 36.97, 2, 0)
- MovementLoopAddLocation(NPC, 172.16, 1.16, 29.61, 2, 0)
- MovementLoopAddLocation(NPC, 166.16, 1.18, 28.48, 2, 0)
- MovementLoopAddLocation(NPC, 155.3, 1.22, 34.34, 2, 0)
- MovementLoopAddLocation(NPC, 151.74, 1.23, 49.81, 2, 0)
- MovementLoopAddLocation(NPC, 146.3, 1.25, 59.18, 2, 0)
- MovementLoopAddLocation(NPC, 141.62, 1.27, 66.38, 2, 0)
- MovementLoopAddLocation(NPC, 141.52, 1.27, 66.6, 2, 2)
- MovementLoopAddLocation(NPC, 135.2, 1.49, 66.72, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 135.87, 1.41, 64.3, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 140.52, 1.27, 64.29, 2, 0)
- MovementLoopAddLocation(NPC, 148.77, 1.24, 52.35, 2, 0)
- MovementLoopAddLocation(NPC, 151.82, 1.24, 34.51, 2, 0)
- MovementLoopAddLocation(NPC, 153.94, 1.23, 31.79, 2, 0)
- MovementLoopAddLocation(NPC, 151.82, 1.24, 34.51, 2, 0)
- MovementLoopAddLocation(NPC, 148.77, 1.24, 52.35, 2, 0)
- MovementLoopAddLocation(NPC, 140.52, 1.27, 64.29, 2, 0)
- MovementLoopAddLocation(NPC, 135.87, 1.41, 64.3, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 135.2, 1.49, 66.72, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 141.52, 1.27, 66.6, 2, 2)
- MovementLoopAddLocation(NPC, 141.62, 1.27, 66.38, 2, 0)
- MovementLoopAddLocation(NPC, 146.3, 1.25, 59.18, 2, 0)
- MovementLoopAddLocation(NPC, 151.74, 1.23, 49.81, 2, 0)
- MovementLoopAddLocation(NPC, 155.3, 1.22, 34.34, 2, 0)
- MovementLoopAddLocation(NPC, 166.16, 1.18, 28.48, 2, 0)
- MovementLoopAddLocation(NPC, 172.16, 1.16, 29.61, 2, 0)
- MovementLoopAddLocation(NPC, 179.17, 1.13, 36.97, 2, 0)
- MovementLoopAddLocation(NPC, 179.95, 1.13, 41.35, 2, 0)
- MovementLoopAddLocation(NPC, 180.73, 1.12, 53.17, 2, 0)
- MovementLoopAddLocation(NPC, 184.83, 1.11, 60.74, 2, 0)
- MovementLoopAddLocation(NPC, 191.32, 1.08, 63.08, 2, 0)
- MovementLoopAddLocation(NPC, 189.93, 1.09, 61.62, 2, 2)
- MovementLoopAddLocation(NPC, 189.35, 1.09, 61.04, 2, 0)
- MovementLoopAddLocation(NPC, 183.18, 1.12, 55.45, 2, 0)
- MovementLoopAddLocation(NPC, 181.48, 1.12, 45.44, 2, 0)
- MovementLoopAddLocation(NPC, 179.59, 1.13, 35.99, 2, 0)
- MovementLoopAddLocation(NPC, 171.64, 1.16, 28.21, 2, 0)
- MovementLoopAddLocation(NPC, 166.78, 1.18, 26.31, 2, 0)
- MovementLoopAddLocation(NPC, 156.33, 1.22, 30.41, 2, 0)
- MovementLoopAddLocation(NPC, 152.5, 1.23, 32.68, 2, 0)
- MovementLoopAddLocation(NPC, 144.77, 1.26, 31.45, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 145.98, 0.48, 22.2, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 141.82, 0.94, 22.81, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 143.2, 1.06, 27.27, 2, 15 , "InitialPause")
- MovementLoopAddLocation(NPC, 152.56, 1.36, 29.72, 2, 15 , "InitialPause")
- end
- end
- function InitialPause(NPC)
- math.randomseed(os.time())
- local pause = math.random (1, 4)
- if pause == 1 then
- AddTimer(NPC, 100, "stop_gathering")
- else
- AddTimer(NPC, 1000, "Gather")
- end
- end
- function Gather(NPC)
- SpawnSet(NPC, "visual_state", "2809") -- Start gathering
- AddTimer(NPC, 8000, "Collect") -- for 5 seconds, then stop
- end
- function Collect(NPC)
- SpawnSet(NPC, "visual_state", "2810") -- Start gathering
- AddTimer(NPC, 2000, "stop_gathering") -- for 5 seconds, then stop
- end
- function stop_gathering(NPC)
- SpawnSet(NPC, "visual_state", "0") -- Stop gathering
- end
- function aggro(NPC,Spawn)
- SpawnSet(NPC, "visual_state", "0") -- Stop gathering
- end
- --[[ local route = math.random(1,4)
- if route == 1 then
- RouteOne(NPC, Spawn)
- elseif route == 2 then
- RouteTwo(NPC, Spawn)
- elseif route == 3 then
- RouteThree(NPC, Spawn)
- elseif route == 4 then
- RouteFour(NPC, Spawn)
- end
- end
- function RouteOne(NPC, Spawn)
- local X = GetX(NPC)
- local Y = GetY(NPC)
- local Z = GetZ(NPC)
- MovementLoopAddLocation(NPC, X, Y, Z, 2, math.random(5,10))
- MovementLoopAddLocation(NPC, X + 12, Y, Z, 2,math.random(5,10))
- MovementLoopAddLocation(NPC, X + 12, Y, Z + 4, 2, math.random(5,10))
- MovementLoopAddLocation(NPC, X + 14, Y, Z, 2, math.random(5,10))
- MovementLoopAddLocation(NPC, X + 5, Y, Z + 4, 2, math.random(5,10))
- MovementLoopAddLocation(NPC, X, Y, Z, 2, math.random(5,10))
- end
- function RouteTwo(NPC, Spawn)
- local X = GetX(NPC)
- local Y = GetY(NPC)
- local Z = GetZ(NPC)
- MovementLoopAddLocation(NPC, X, Y, Z, 2, math.random(5,10))
- MovementLoopAddLocation(NPC, X - 5, Y, Z, 2, math.random(5,10))
- MovementLoopAddLocation(NPC, X - 14, Y, Z - 4, 2, math.random(5,10))
- MovementLoopAddLocation(NPC, X - 12, Y, Z, 2, math.random(5,10))
- MovementLoopAddLocation(NPC, X - 12, Y, Z - 4, 2, math.random(5,10))
- MovementLoopAddLocation(NPC, X, Y, Z, 1, 0)
- end
- function RouteThree(NPC, Spawn)
- local X = GetX(NPC)
- local Y = GetY(NPC)
- local Z = GetZ(NPC)
- MovementLoopAddLocation(NPC, X, Y, Z, 2, math.random(5,10))
- MovementLoopAddLocation(NPC, X + 12, Y, Z, 2, math.random(5,10))
- MovementLoopAddLocation(NPC, X + 5, Y, Z - 4, 2, math.random(5,10))
- MovementLoopAddLocation(NPC, X + 14, Y, Z, 2, math.random(5,10))
- MovementLoopAddLocation(NPC, X + 12, Y, Z - 4, 2, math.random(5,10))
- MovementLoopAddLocation(NPC, X, Y, Z, 2, math.random(5,10))
- end
- function RouteFour(NPC, Spawn)
- local X = GetX(NPC)
- local Y = GetY(NPC)
- local Z = GetZ(NPC)
- MovementLoopAddLocation(NPC, X, Y, Z, 2, math.random(5,10))
- MovementLoopAddLocation(NPC, X - 12, Y, Z, 2, math.random(5,10))
- MovementLoopAddLocation(NPC, X - 5, Y, Z + 4, 2, math.random(5,10))
- MovementLoopAddLocation(NPC, X - 14, Y, Z, 2, math.random(5,10))
- MovementLoopAddLocation(NPC, X - 12, Y, Z + 4, 2, math.random(5,10))
- MovementLoopAddLocation(NPC, X, Y, Z, 2, math.random(5,10))
- end
- ]]--
- function respawn(NPC, Spawn)
- spawn(NPC)
- end
- function hailed(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- end
|