123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- --[[
- Script Name : SpawnScripts/Baubbleshire/Misty.lua
- Script Purpose : Misty
- Script Author : Scatman
- Script Date : 2009.05.11
- Script Notes : Updated w/ emotes 2022.08.23 Dorbin
- --]]
- function spawn(NPC)
- waypoints(NPC)
- end
- function waypoints(NPC)
- MovementLoopAddLocation(NPC, 888.75, -13.79, -437.42, 1, 0)
- MovementLoopAddLocation(NPC, 885.18, -13.31, -442.76, 1, 25,"Sleep")
- MovementLoopAddLocation(NPC, 880.94, -13.14, -441.76, 1, 0)
- MovementLoopAddLocation(NPC, 879.05, -13.44, -439.52, 1, 25,"Sleep")
- MovementLoopAddLocation(NPC, 879.73, -13.47, -435.77, 1, 0)
- MovementLoopAddLocation(NPC, 880.7, -14.17, -430.35, 1, 0)
- MovementLoopAddLocation(NPC, 883.77, -13.74, -425.76, 1, 25,"Sleep")
- MovementLoopAddLocation(NPC, 879.97, -14.19, -425.73, 1, 0)
- MovementLoopAddLocation(NPC, 875.38, -14.46, -423.42, 1, 0)
- MovementLoopAddLocation(NPC, 867.76, -13.01, -420.76, 1, 0)
- MovementLoopAddLocation(NPC, 861.06, -12.15, -418.43, 1, 0)
- MovementLoopAddLocation(NPC, 858.1, -11.83, -416.22, 1, 25,"Sleep")
- MovementLoopAddLocation(NPC, 860.28, -12.36, -421.81, 1, 0)
- MovementLoopAddLocation(NPC, 870.73, -13.93, -422.59, 1, 0)
- MovementLoopAddLocation(NPC, 879.08, -14.26, -421.87, 1, 25,"Sleep")
- MovementLoopAddLocation(NPC, 876.57, -15.47, -427.36, 1, 0)
- MovementLoopAddLocation(NPC, 873.52, -18.37, -434.05, 1, 0)
- MovementLoopAddLocation(NPC, 875.83, -18.32, -436.25, 1, 25,"Sleep")
- MovementLoopAddLocation(NPC, 870.7, -18.42, -438.16, 1, 0)
- MovementLoopAddLocation(NPC, 865.05, -18.23, -441.05, 1, 25,"Sleep")
- MovementLoopAddLocation(NPC, 866.27, -18.44, -442.91, 1, 0)
- MovementLoopAddLocation(NPC, 867.37, -18.96, -448.65, 1, 0)
- MovementLoopAddLocation(NPC, 868.54, -19.17, -449.66, 1, 25,"Sleep")
- MovementLoopAddLocation(NPC, 868.54, -19.27, -450.44, 1, 0)
- MovementLoopAddLocation(NPC, 866.74, -19.2, -450.7, 1, 0)
- MovementLoopAddLocation(NPC, 864.2, -19.03, -450.65, 1, 0)
- MovementLoopAddLocation(NPC, 858.61, -19.05, -446.68, 1, 25,"Sleep")
- MovementLoopAddLocation(NPC, 857.53, -18.88, -443.49, 1, 0)
- MovementLoopAddLocation(NPC, 857.75, -18.98, -441.6, 1, 25,"Sleep")
- MovementLoopAddLocation(NPC, 857.15, -19.16, -441.48, 1, 0)
- MovementLoopAddLocation(NPC, 861.09, -19.21, -449.61, 1, 0)
- MovementLoopAddLocation(NPC, 858.41, -18.51, -452.92, 1, 0)
- MovementLoopAddLocation(NPC, 855.11, -19.4, -457.18, 1, 0)
- MovementLoopAddLocation(NPC, 853.09, -18.58, -461.13, 1, 0)
- MovementLoopAddLocation(NPC, 848.29, -18.01, -461.27, 1, 25,"Sleep")
- MovementLoopAddLocation(NPC, 845.96, -17.66, -463.4, 1, 0)
- MovementLoopAddLocation(NPC, 839.99, -13.92, -471.63, 1, 25,"Sleep")
- MovementLoopAddLocation(NPC, 835.75, -13.67, -472.47, 1, 25,"Sleep")
- MovementLoopAddLocation(NPC, 834.59, -14.03, -476.77, 1, 0)
- MovementLoopAddLocation(NPC, 830.49, -13.73, -477.41, 1, 25,"Sleep")
- MovementLoopAddLocation(NPC, 832.14, -13.73, -477.61, 1, 0)
- MovementLoopAddLocation(NPC, 835.69, -14.4, -476.07, 1, 0)
- MovementLoopAddLocation(NPC, 838.51, -13.89, -472.15, 1, 0)
- MovementLoopAddLocation(NPC, 840.76, -14, -467.56, 1, 0)
- MovementLoopAddLocation(NPC, 844.6, -17.35, -463.51, 1, 0)
- MovementLoopAddLocation(NPC, 847.22, -17.91, -464.83, 1, 0)
- MovementLoopAddLocation(NPC, 852.31, -18.55, -467.71, 1, 25,"Sleep")
- MovementLoopAddLocation(NPC, 854.55, -16.68, -469.33, 1, 1,"Heading")
- MovementLoopAddLocation(NPC, 854.55, -16.68, -469.33, 1, 25,"Sleep")
- MovementLoopAddLocation(NPC, 854.55, -16.68, -469.33, 1, 0)
- MovementLoopAddLocation(NPC, 854.12, -16.92, -468.49, 1, 0)
- MovementLoopAddLocation(NPC, 852.89, -18.58, -466.16, 1, 0)
- MovementLoopAddLocation(NPC, 858.75, -18.92, -466.44, 1, 0)
- MovementLoopAddLocation(NPC, 863.55, -18.23, -473.42, 1, 0)
- MovementLoopAddLocation(NPC, 870.44, -18.85, -476.77, 1, 25,"Sleep")
- MovementLoopAddLocation(NPC, 871.5, -18.91, -477.13, 1, 0)
- MovementLoopAddLocation(NPC, 869.88, -18.78, -477.22, 1, 0)
- MovementLoopAddLocation(NPC, 866.79, -18.83, -478.45, 1, 0)
- MovementLoopAddLocation(NPC, 863.48, -18.25, -473.67, 1, 0)
- MovementLoopAddLocation(NPC, 860.41, -19.01, -467.65, 1, 0)
- MovementLoopAddLocation(NPC, 860.34, -19.17, -459.86, 1, 25,"Sleep")
- MovementLoopAddLocation(NPC, 861.14, -19.36, -459.05, 1, 0)
- MovementLoopAddLocation(NPC, 859.66, -19.36, -458.83, 1, 0)
- MovementLoopAddLocation(NPC, 856.94, -19.34, -458.65, 1, 0)
- MovementLoopAddLocation(NPC, 857.17, -19.08, -456.92, 1, 0)
- MovementLoopAddLocation(NPC, 861.14, -19.27, -450.05, 1, 0)
- MovementLoopAddLocation(NPC, 866.32, -18.9, -448.65, 1, 0)
- MovementLoopAddLocation(NPC, 872.17, -18.88, -447.52, 1, 0)
- MovementLoopAddLocation(NPC, 876.66, -18.78, -449.69, 1, 0)
- MovementLoopAddLocation(NPC, 879.69, -19.06, -452.34, 1, 25,"Sleep")
- MovementLoopAddLocation(NPC, 879.79, -19.48, -454.01, 1, 0)
- MovementLoopAddLocation(NPC, 882.67, -19.47, -455.33, 1, 0)
- MovementLoopAddLocation(NPC, 887.06, -19.14, -457.1, 1, 0)
- MovementLoopAddLocation(NPC, 891.45, -18.52, -468.2, 1, 25,"Sleep")
- MovementLoopAddLocation(NPC, 887.83, -18.06, -478.34, 1, 25,"Sleep")
- MovementLoopAddLocation(NPC, 887.23, -18.12, -478.39, 1, 0)
- MovementLoopAddLocation(NPC, 886.98, -18.21, -477.63, 1, 0)
- MovementLoopAddLocation(NPC, 889.62, -18.42, -471.81, 1, 0)
- MovementLoopAddLocation(NPC, 894.91, -18.13, -467.36, 1, 0)
- MovementLoopAddLocation(NPC, 894.56, -18.31, -464.97, 1, 25,"Sleep")
- MovementLoopAddLocation(NPC, 892.9, -18.68, -456.36, 1, 0)
- MovementLoopAddLocation(NPC, 887.87, -17.34, -450.92, 1, 0)
- MovementLoopAddLocation(NPC, 890.28, -15.39, -446.64, 1, 0)
- MovementLoopAddLocation(NPC, 897.53, -15.28, -445.9, 1, 0)
- MovementLoopAddLocation(NPC, 901.99, -15.2, -448.15, 1, 25,"Sleep")
- MovementLoopAddLocation(NPC, 903.02, -15.31, -448.74, 1, 0)
- MovementLoopAddLocation(NPC, 899.89, -16.27, -446.83, 1, 0)
- MovementLoopAddLocation(NPC, 895.02, -14.2, -439.55, 1, 0)
- MovementLoopAddLocation(NPC, 890.45, -13.71, -435.21, 1, 0)
- MovementLoopAddLocation(NPC, 890.37, -13.69, -431.6, 1, 25,"Sleep")
- end
- function Sleep(NPC)
- local choice = math.random(1,2)
- if choice == 1 then
- SpawnSet(NPC, "action_state", 540)
- AddTimer(NPC, 22000, "Wake")
- elseif choice ==2 then
- end
- end
- function Wake(NPC)
- SpawnSet(NPC, "action_state", 0)
- end
- function Heading(NPC)
- SetHeading(NPC,180)
- end
- --[[ OLD
- function spawn(NPC)
- MovementLoopAddLocation(NPC, 886.51, -13.74, -433.7, 2, 0)
- MovementLoopAddLocation(NPC, 893.35, -15.1, -442.65, 2, 0)
- MovementLoopAddLocation(NPC, 893.22, -18.07, -453.45, 2, 0)
- MovementLoopAddLocation(NPC, 897.16, -18.12, -463.73, 2, 0)
- MovementLoopAddLocation(NPC, 896.33, -17.98, -468.75, 2, 0)
- MovementLoopAddLocation(NPC, 884.48, -18.47, -479.11, 2, 5)
- MovementLoopAddLocation(NPC, 888.89, -17.96, -490.04, 2, math.random(0, 30))
- MovementLoopAddLocation(NPC, 893.55, -17.65, -496.84, 2, 0)
- MovementLoopAddLocation(NPC, 894.02, -16.24, -519.28, 2, 0)
- MovementLoopAddLocation(NPC, 888.24, -13.86, -538.79, 2, 0)
- MovementLoopAddLocation(NPC, 880.94, -14.64, -532.11, 2, 0)
- MovementLoopAddLocation(NPC, 870.38, -16.37, -530.64, 2, 0)
- MovementLoopAddLocation(NPC, 878.59, -16.88, -514.71, 2, 0)
- MovementLoopAddLocation(NPC, 870.89, -17.85, -491.59, 2, 0)
- MovementLoopAddLocation(NPC, 864.27, -18.18, -485.9, 2, 0)
- MovementLoopAddLocation(NPC, 863.76, -18.43, -474.64, 2, 5)
- MovementLoopAddLocation(NPC, 855.6, -18.89, -460.24, 2, math.random(0, 30))
- MovementLoopAddLocation(NPC, 863.53, -18.78, -446.69, 2, 0)
- MovementLoopAddLocation(NPC, 872.08, -18.49, -442.15, 2, 0)
- MovementLoopAddLocation(NPC, 875.7, -15.04, -425.86, 2, 0)
- MovementLoopAddLocation(NPC, 880.6, -13.86, -432.16, 2, 0)
- MovementLoopAddLocation(NPC, 880.84, -13.44, -438.9, 2, 0)
- end
- --]]
- function respawn(NPC)
- end
- function hailed(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- end
|