Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local SAY_WILLIX_START = "Woo hoo! Finally getting out of here. It's going to be rough though. Keep your eyes peeled for trouble."
- local SAY_WILLIX_1 = "Up there is where Charlga Razorflank resides. Blasted old crone."
- local SAY_WILLIX_2 = "There's blueleaf tuber in this trench! It's like gold waiting to be mined I tell you!"
- local SAY_WILLIX_3 = "There could be danger around every corner here."
- local SAY_WILLIX_4 = "I don't see how these foul animals live in this place... sheesh it smells!"
- local SAY_WILLIX_5 = "I think I see a way for us to get out of this big twisted mess of a bramble."
- local SAY_WILLIX_6 = "Glad to be out of that wretched trench. Not much nicer up here though!"
- local SAY_WILLIX_7 = "Finally! I'll be glad to get out of this place."
- local SAY_WILLIX_END = "I think I'll rest a moment and catch my breath before heading back to Ratchet. Thanks for all the help!"
- local RAGING_AGAMAR = 4514
- local NPC_WILLIX = 4508
- local T = {}
- local currentWP = 0
- local WILLIX_Waypoints =
- {
- {0, 2194.38, 1791.65, 65.48},
- {1, 2188.56, 1805.87, 64.45},
- {2, 2186.2, 1836.28, 59.859},
- {3, 2163.27, 1851.67, 56.73},
- {4, 2140.22, 1845.02, 48.32},
- {5, 2131.5, 1804.29, 46.85},
- {6, 2096.18, 1789.03, 51.13},
- {7, 2074.46, 1780.09, 55.64},
- {8, 2055.12, 1768.67, 58.46},
- {9, 2037.83, 1748.62, 60.27},
- {10, 2037.51, 1728.94, 60.85},
- {11, 2044.7, 1711.71, 59.71},
- {12, 2067.66, 1701.84, 57.77},
- {13, 2078.91, 1704.54, 56.77},
- {14, 2097.65, 1715.24, 54.74},
- {15, 2106.44, 1720.98, 54.41},
- {16, 2123.96, 1732.56, 52.27},
- {17, 2153.82, 1728.73, 51.92},
- {18, 2163.49, 1706.33, 54.42},
- {19, 2158.75, 1695.98, 55.7},
- {20, 2142.6, 1680.72, 58.24},
- {21, 2118.31, 1671.54, 59.21},
- {22, 2086.02, 1672.04, 61.24},
- {23, 2068.81, 1658.93, 61.24},
- {24, 2062.82, 1633.31, 64.35},
- {25, 2060.92, 1600.11, 62.41},
- {26, 2063.05, 1589.16, 63.26},
- {27, 2063.67, 1577.22, 65.89},
- {28, 2057.94, 1560.68, 68.4},
- {29, 2052.56, 1548.05, 73.35},
- {30, 2045.22, 1543.4, 76.65},
- {31, 2034.35, 1543.01, 79.7},
- {32, 2029.95, 1542.94, 80.79},
- {33, 2021.34, 1538.67, 80.8},
- {34, 2012.45, 1549.48, 79.93},
- {35, 2008.05, 1554.92, 80.44},
- {36, 2006.54, 1562.72, 81.11},
- {37, 2003.8, 1576.43, 81.57},
- {38, 2000.57, 1590.06, 80.62},
- {39, 1998.96, 1596.87, 80.22},
- {40, 1991.19, 1600.82, 79.39},
- {41, 1980.71, 1601.44, 79.77},
- {42, 1967.22, 1600.18, 80.62},
- {43, 1956.43, 1596.97, 81.75},
- {44, 1954.87, 1592.02, 82.18},
- {45, 1948.35, 1571.35, 80.96},
- {46, 1947.02, 1566.42, 81.8}
- }
- -- EVENTS:
- function WILLIX_OnQuestAccept(event, player, creature, quest)
- creature:SetWalk(0)
- creature:SetSpeed(3, 1)
- creature:SetFaction(10) -- 69
- creature:SendUnitSay(SAY_WILLIX_START, 0)
- creature:MoveTo(0, 2188.56, 1805.87, 64.45)
- -- creature:SetNPCFlags(0)
- end
- function WILLIX_OnReachWP(event, creature, pointType, waypointId)
- T[creature:GetGUIDLow()] = currentWP+1;
- if (waypointId == 0) then
- creature:RegisterEvent(WILLIX_OnMove, 0, 1)
- elseif (waypointId == 2) then
- creature:Emote(1)
- creature:SendUnitSay(SAY_WILLIX_1, 0) -- Point Emote
- creature:RegisterEvent(WILLIX_OnMove, 5000, 1)
- elseif (waypointId == 6) then
- creature:Emote(1)
- creature:SendUnitSay(SAY_WILLIX_2, 0)
- creature:RegisterEvent(WILLIX_OnMove, 0, 1)
- elseif (waypointId == 8) then
- creature:Emote(1)
- creature:SendUnitSay(SAY_WILLIX_3, 0)
- creature:RegisterEvent(WILLIX_OnMove, 0, 1)
- elseif (waypointId == 14) then
- creature:Emote(1)
- creature:SendUnitSay(SAY_WILLIX_4, 0)
- creature:RegisterEvent(WILLIX_OnMove, 0, 1)
- elseif (waypointId == 15) then
- local AGAMAR1 = creature:SpawnCreature(RAGING_AGAMAR, 2166.330, 1718.457, 53.368, 0.647, 3, 25000)
- local AGAMAR2 = creature:SpawnCreature(RAGING_AGAMAR, 2157.686, 1717.527, 52.591, 1.040, 3, 25000)
- AGAMAR1:AttackStart(creature)
- AGAMAR2:AttackStart(creature)
- creature:RegisterEvent(WILLIX_OnMove, 0, 1)
- elseif (waypointId == 25) then
- creature:Emote(1)
- creature:SendUnitSay(SAY_WILLIX_5, 0)
- creature:RegisterEvent(WILLIX_OnMove, 3000, 1)
- elseif (waypointId == 33) then
- creature:Emote(1)
- creature:SendUnitSay(SAY_WILLIX_6, 0)
- creature:RegisterEvent(WILLIX_OnMove, 0, 1)
- elseif (waypointId == 44) then
- creature:Emote(1)
- creature:SendUnitSay(SAY_WILLIX_7, 0)
- local AGAMAR3 = creature:SpawnCreature(RAGING_AGAMAR, 1964.465, 1602.200, 81.008, 3.818, 3, 25000)
- local AGAMAR4 = crweature:SpawnCreature(RAGING_AGAMAR, 1962.268, 1597.519, 81.307, 3.995, 3, 25000)
- AGAMAR3:AttackStart(creature)
- AGAMAR4:AttackStart(creature)
- creature:RegisterEvent(WILLIX_OnMove, 3000, 1)
- elseif (waypointId == 45) thend
- creature:SendUnitSay(SAY_WILLIX_END, 0)
- else
- creature:RegisterEvent(WILLIX_OnMove, 0, 1)
- end
- end
- -- MECHANICAL:
- function WILLIX_OnMove(event, delay, pCall, creature)
- creature:SendUnitSay(T[creature:GetGUIDLow()], 0) -- DEBUG ONLY, Prints " 1 "
- for k,_ in ipairs(WILLIX_Waypoints) do
- if (WILLIX_Waypoints[k][1] == T[creature:GetGUIDLow()]) then
- creature:MoveTo(WILLIX_Waypoints[k][1], WILLIX_Waypoints[k][2],WILLIX_Waypoints[k][3], WILLIX_Waypoints[k][4])
- end
- end
- end
- function WILLIX_OnEmote(event, creature, player, emoteid)
- creature:SendUnitYell("Test",0)
- local AGAMAR1 = creature:SpawnCreature(RAGING_AGAMAR, 2188.364, 1842.793, 59.498, 4.762, 3, 25000)
- AGAMAR1:AttackStart(creature)
- end
- -- REGISTRY:
- RegisterCreatureEvent(NPC_WILLIX, 6, WILLIX_OnReachWP)
- RegisterCreatureEvent(NPC_WILLIX, 8, WILLIX_OnEmote)
- RegisterCreatureEvent(NPC_WILLIX, 31, WILLIX_OnQuestAccept)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement