From 3843c956efbab7dca9c4851ee002cfa32758c948 Mon Sep 17 00:00:00 2001 From: ConradBunton Date: Tue, 7 Nov 2017 23:40:01 +0100 Subject: [PATCH] Squirrel.lua Try to kill a squirrel in Dalaran :) --- Example Scripts/Squirrel.lua | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Example Scripts/Squirrel.lua diff --git a/Example Scripts/Squirrel.lua b/Example Scripts/Squirrel.lua new file mode 100644 index 0000000..3718b0e --- /dev/null +++ b/Example Scripts/Squirrel.lua @@ -0,0 +1,8 @@ +print "---------- Squirrel attack ---" + +local NPCsquirel = 1412 +local function Squirel(event, creature, player) + player:SendAreaTriggerMessage("Squirrels are our friends !!! Let them live !") + player:AddAura(28271, player) +end +RegisterCreatureEvent(NPCsquirel , 9, Squirel)