I know ist quiete a long time but nice script.... +Rep
but i find a misstake so the gossip actually didnt work 100%
if u click about nothing happen...
its just a wrong end...
the wrong one
Code:
function TheStarterSelects(pUnit, event, player, id, intid, code)
if (intid == 10) then
pUnit:GossipCreateMenu(70016, player, 0)
pUnit:GossipMenuAddItem(17, "I am sure!", 11, 0)
pUnit:GossipMenuAddItem(0, "Nevermind.", 21, 0)
pUnit:GossipSendMenu(player)
end
if (intid == 11) then
pUnit:SpawnCreature(500004, -4743, 591, 402, 3.198040, 35, 0)
pUnit:SendChatMessage(14,0,"Evil draws near!")
pUnit:SetNPCFlags(2) -- 0 will return nill, so use 2 as it doesn't have any quests, stops bugs changing flag.
x = pUnit:GetX()
y = pUnit:GetY() -- Getting where to move to
z = pUnit:GetZ()
o = pUnit:GetO()
x = x + 14
y = y + 14 -- Changing our destination
z = z + 0.5
pUnit:MoveTo(x,y,z,o) -- Makes him run away
pUnit:Despawn(2500,0)
player:GossipComplete()
if (intid == 20) then
player:SendBroadcastMessage("The Sentry ignores you") -- some random message to fix bugs if you only have one option
player:SendAreaTriggerMessage("The Sentry ignores you")
player:GossipComplete()
if (intid == 21) then
player:SendBroadcastMessage("The Sentry ignores you")
player:SendAreaTriggerMessage("The Sentry ignores you")
player:GossipComplete()
end
end
end
end
the right one i hope so
Code:
function TheStarterSelects(pUnit, event, player, id, intid, code)
if (intid == 10) then
pUnit:GossipCreateMenu(70016, player, 0)
pUnit:GossipMenuAddItem(17, "I am sure!", 11, 0)
pUnit:GossipMenuAddItem(0, "Nevermind.", 21, 0)
pUnit:GossipSendMenu(player)
end
if (intid == 11) then
pUnit:SpawnCreature(500004, -4743, 591, 402, 3.198040, 35, 0)
pUnit:SendChatMessage(14,0,"Evil draws near!")
pUnit:SetNPCFlags(2) -- 0 will return nill, so use 2 as it doesn't have any quests, stops bugs changing flag.
x = pUnit:GetX()
y = pUnit:GetY() -- Getting where to move to
z = pUnit:GetZ()
o = pUnit:GetO()
x = x + 14
y = y + 14 -- Changing our destination
z = z + 0.5
pUnit:MoveTo(x,y,z,o) -- Makes him run away
pUnit:Despawn(2500,0)
player:GossipComplete()
end
if (intid == 20) then
player:SendBroadcastMessage("The Sentry ignores you") -- some random message to fix bugs if you only have one option
player:SendAreaTriggerMessage("The Sentry ignores you")
player:GossipComplete()
end
if (intid == 21) then
player:SendBroadcastMessage("The Sentry ignores you")
player:SendAreaTriggerMessage("The Sentry ignores you")
player:GossipComplete()
end
end