123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- --[[
- Script Name : erwin.lua
- Script Purpose : Waypoint Path for erwin.lua
- Script Author : Devn00b
- Script Date : 04/11/2020 02:39:02 PM
- Script Notes : Locations collected from Live
- --]]
- dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
- dofile("SpawnScripts/Generic/ExpelNonCitizen.lua")
- function spawn(NPC)
- AddTimer(NPC,2000,"waypoints")
- SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
- end
- function InRange(NPC, Spawn)
- NonCitizen(NPC,Spawn)
- if math.random(0, 100) <= 25 and GetFactionAmount(Spawn,11) >20000 then
- PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/guard/human_guard_service_good_1_hail_gm_c865a827.mp3", "Duty above all else, citizen, except honor!", "scold", 4141262779, 4227030045, Spawn, 0)
- else
- CheckFaction(NPC, Spawn, "Qeynos")
- end
- end
- function hailed(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- GenericGuardHail(NPC, Spawn)
- end
- function respawn(NPC)
- spawn(NPC)
- end
- function waypoints(NPC)
- MovementLoopAddLocation(NPC, 456.43, -21.01, 215.59, 2, 0)
- MovementLoopAddLocation(NPC, 456.63, -21.75, 229.75, 2, 0)
- MovementLoopAddLocation(NPC, 452.71, -21.92, 243.31, 2, 0)
- MovementLoopAddLocation(NPC, 447.6, -21.83, 254.94, 2, 6)
- MovementLoopAddLocation(NPC, 450.17, -21.77, 248.25, 2, 0)
- MovementLoopAddLocation(NPC, 457.59, -21.63, 228.65, 2, 0)
- MovementLoopAddLocation(NPC, 472.52, -21.05, 193.91, 2, 0)
- MovementLoopAddLocation(NPC, 489.21, -13.79, 154.34, 2, 0)
- MovementLoopAddLocation(NPC, 486.95, -11.61, 147.57, 2, 6)
- MovementLoopAddLocation(NPC, 488.3, -13.58, 153.83, 2, 0)
- MovementLoopAddLocation(NPC, 474.7, -20.59, 187.88, 2, 0)
- MovementLoopAddLocation(NPC, 473.42, -20.94, 192.16, 2, 0)
- MovementLoopAddLocation(NPC, 476.75, -20.94, 195.61, 2, 0)
- MovementLoopAddLocation(NPC, 514.13, -15.61, 206.43, 2, 0)
- MovementLoopAddLocation(NPC, 535.08, -15.41, 209.16, 2, 0)
- MovementLoopAddLocation(NPC, 571.87, -15.69, 207.42, 2, 0)
- MovementLoopAddLocation(NPC, 606.84, -15.73, 203.11, 2, 0)
- MovementLoopAddLocation(NPC, 650.97, -16.96, 191.6, 2, 0)
- MovementLoopAddLocation(NPC, 680.39, -19.44, 185.63, 2, 6)
- MovementLoopAddLocation(NPC, 655.94, -17.33, 190.57, 2, 0)
- MovementLoopAddLocation(NPC, 595.2, -15.89, 204.5, 2, 0)
- MovementLoopAddLocation(NPC, 558.82, -15.42, 208.86, 2, 0)
- MovementLoopAddLocation(NPC, 506.33, -15.57, 205.78, 2, 0)
- MovementLoopAddLocation(NPC, 492.54, -17.13, 202.42, 2, 0)
- MovementLoopAddLocation(NPC, 473.19, -21.14, 195.01, 2, 0)
- MovementLoopAddLocation(NPC, 470.75, -21.14, 196.68, 2, 0)
- MovementLoopAddLocation(NPC, 463.51, -21.2, 209.14, 2, 0)
- end
- --[[Attempt1 of Patrol (too broad)
- function waypoints(NPC)
- MovementLoopAddLocation(NPC, 454.74, -20.93, 213.81, 2, 0)
- MovementLoopAddLocation(NPC, 466.9, -21.19, 202.46, 2, 0)
- MovementLoopAddLocation(NPC, 471.23, -21.11, 195.84, 2, 0)
- MovementLoopAddLocation(NPC, 475.29, -21.06, 195.68, 2, 0)
- MovementLoopAddLocation(NPC, 491.39, -17.34, 200.47, 2, 0)
- MovementLoopAddLocation(NPC, 501.53, -15.79, 205.01, 2, 0)
- MovementLoopAddLocation(NPC, 519.53, -15.61, 207.07, 2, 0)
- MovementLoopAddLocation(NPC, 536.01, -15.34, 210.78, 2, 0)
- MovementLoopAddLocation(NPC, 570.85, -15.66, 208.71, 2, 0)
- MovementLoopAddLocation(NPC, 614.71, -16.09, 201.55, 2, 0)
- MovementLoopAddLocation(NPC, 650.02, -16.93, 191.85, 2, 0)
- MovementLoopAddLocation(NPC, 669.25, -18.71, 186.5, 2, 0)
- MovementLoopAddLocation(NPC, 682.46, -19.52, 183.74, 2, 0)
- MovementLoopAddLocation(NPC, 686.8, -19.52, 188.12, 2, 0)
- MovementLoopAddLocation(NPC, 689.5, -19.52, 193.53, 2, 0)
- MovementLoopAddLocation(NPC, 694.3, -19.52, 194.77, 2, 0)
- MovementLoopAddLocation(NPC, 704.89, -19.54, 191.44, 2, 0)
- MovementLoopAddLocation(NPC, 704.3, -19.47, 180.97, 2, 0)
- MovementLoopAddLocation(NPC, 703.94, -19.47, 176.94, 2, 0)
- MovementLoopAddLocation(NPC, 686.62, -20.13, 166.55, 2, 0)
- MovementLoopAddLocation(NPC, 678.22, -20.82, 156.41, 2, 0)
- MovementLoopAddLocation(NPC, 669.82, -21.29, 140.37, 2, 0)
- MovementLoopAddLocation(NPC, 665.59, -21.22, 103.62, 2, 0)
- MovementLoopAddLocation(NPC, 667.42, -21.31, 123.11, 2, 0)
- MovementLoopAddLocation(NPC, 670.61, -21.26, 143.62, 2, 0)
- MovementLoopAddLocation(NPC, 682.76, -20.38, 163.53, 2, 0)
- MovementLoopAddLocation(NPC, 702.26, -19.55, 174.34, 2, 0)
- MovementLoopAddLocation(NPC, 720.78, -19.64, 183.64, 2, 0)
- MovementLoopAddLocation(NPC, 724.47, -19.62, 193.34, 2, 0)
- MovementLoopAddLocation(NPC, 717.08, -19.52, 195.13, 2, 0)
- MovementLoopAddLocation(NPC, 709.49, -19.53, 196.2, 2, 0)
- MovementLoopAddLocation(NPC, 703.74, -19.53, 192.74, 2, 0)
- MovementLoopAddLocation(NPC, 692.03, -19.52, 196.09, 2, 0)
- MovementLoopAddLocation(NPC, 689.23, -19.52, 196.91, 2, 0)
- MovementLoopAddLocation(NPC, 683.03, -19.49, 215.78, 2, 0)
- MovementLoopAddLocation(NPC, 677.54, -19.73, 221.69, 2, 0)
- MovementLoopAddLocation(NPC, 655.7, -19.04, 228.28, 2, 0)
- MovementLoopAddLocation(NPC, 628.85, -18.75, 234.62, 2, 0)
- MovementLoopAddLocation(NPC, 608.3, -18.1, 239.05, 2, 0)
- MovementLoopAddLocation(NPC, 565.43, -17.73, 245.68, 2, 0)
- MovementLoopAddLocation(NPC, 562.49, -17.51, 238.05, 2, 0)
- MovementLoopAddLocation(NPC, 558.82, -17.12, 230.47, 2, 0)
- MovementLoopAddLocation(NPC, 556.95, -15.31, 218.53, 2, 0)
- MovementLoopAddLocation(NPC, 556.71, -15.12, 213.96, 2, 0)
- MovementLoopAddLocation(NPC, 554.18, -15.27, 212.18, 2, 0)
- MovementLoopAddLocation(NPC, 524.61, -15.55, 208.65, 2, 0)
- MovementLoopAddLocation(NPC, 493.74, -16.93, 202.29, 2, 0)
- MovementLoopAddLocation(NPC, 474.12, -21.11, 194.42, 2, 0)
- MovementLoopAddLocation(NPC, 458.14, -20.55, 184.01, 2, 0)
- MovementLoopAddLocation(NPC, 441.9, -20.49, 176.88, 2, 0)
- MovementLoopAddLocation(NPC, 435.25, -20.61, 181.11, 2, 0)
- MovementLoopAddLocation(NPC, 435.58, -20.61, 193.92, 2, 0)
- MovementLoopAddLocation(NPC, 447.2, -20.68, 209.48, 2, 0)
- end
- function waypoints(NPC) DEVNOOB PATROL
- MovementLoopAddLocation(NPC, 698.34, -19.9, 131.15, 2, 0)
- MovementLoopAddLocation(NPC, 677.48, -21.02, 142.28, 2, 0)
- MovementLoopAddLocation(NPC, 680.55, -20.76, 155.63, 2, 0)
- MovementLoopAddLocation(NPC, 704.73, -19.48, 175.59, 2, 0)
- MovementLoopAddLocation(NPC, 703.89, -19.54, 189.78, 2, 0)
- MovementLoopAddLocation(NPC, 692.1, -19.52, 195.98, 2, 0)
- MovementLoopAddLocation(NPC, 679.77, -19.76, 221.54, 2, 0)
- MovementLoopAddLocation(NPC, 671.72, -19.66, 223.75, 2, 0)
- MovementLoopAddLocation(NPC, 686.27, -20.49, 267.75, 2, 30)
- MovementLoopAddLocation(NPC, 671.72, -19.66, 223.75, 2, 0)
- MovementLoopAddLocation(NPC, 679.77, -19.76, 221.54, 2, 0)
- MovementLoopAddLocation(NPC, 692.1, -19.52, 195.98, 2, 0)
- MovementLoopAddLocation(NPC, 703.89, -19.54, 189.78, 2, 0)
- MovementLoopAddLocation(NPC, 704.73, -19.48, 175.59, 2, 0)
- MovementLoopAddLocation(NPC, 680.55, -20.76, 155.63, 2, 0)
- MovementLoopAddLocation(NPC, 677.48, -21.02, 142.28, 2, 0)
- MovementLoopAddLocation(NPC, 698.34, -19.9, 131.15, 2, 30)
- end
- ]]--
|