From 52fcc84a60f427e2c97c6cc706aea39b648a308e Mon Sep 17 00:00:00 2001 From: Blaymoira Date: Wed, 14 Jan 2009 19:39:09 +0100 Subject: *Added a check for Eventstarting in hyjal - by Bagsac --HG-- branch : trunk --- .../scripts/scripts/zone/caverns_of_time/hyjal/hyjalAI.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/hyjalAI.cpp b/src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/hyjalAI.cpp index cbb8ce53b91..53a013bed5a 100644 --- a/src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/hyjalAI.cpp +++ b/src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/hyjalAI.cpp @@ -230,6 +230,13 @@ void hyjalAI::StartEvent(Player* player) if(!player) return; + Map* Hyjal = m_creature->GetMap(); + if(Hyjal->GetPlayersCountExceptGMs() < 15) //check if there are more than 15 players in hyjal (abuse prevent) + { + //error_log("Some Players try to farm in Hyjal (less than 15 people)"); + return; + } + Talk(BEGIN); EventBegun = true; -- cgit v1.2.3