All pastes #944464 Raw Edit

Opera - NPC Barnes by Seline

public cpp v1 · immutable
·published 2008-03-16 03:01 UTC
rendered paste body
/* Copyright (C) 2006,2007 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>* This program is free software; you can redistribute it and/or modify* it under the terms of the GNU General Public License as published by* the Free Software Foundation; either version 2 of the License, or* (at your option) any later version.** This program is distributed in the hope that it will be useful,* but WITHOUT ANY WARRANTY; without even the implied warranty of* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the* GNU General Public License for more details.** You should have received a copy of the GNU General Public License* along with this program; if not, write to the Free Software* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA*/#include "../../sc_defines.h"#define SAY_READY			"Splendid, I'm going to get the audience ready. Break a leg!"#define SAY_OZ_INTRO1		"Finally, everything is in place. Are you ready for your big stage debut?"#define OZ_GOSSIP1			"I'm not an actor."#define SAY_OZ_INTRO2		"Don't worry, you'll be fine. You look like a natural!"#define OZ_GOSSIP2			"Ok, I'll give it a try, then."#define SAY_RAJ_INTRO1		"The romantic plays are really tough, but you'll do better this time. You have TALENT. Ready?"#define RAJ_GOSSIP1			"I've never been more ready."struct Dialogue{    char* text;    uint32 soundid, timer;};static Dialogue OzDialogue[]={    {"Welcome Ladies and Gentlemen, to this evening's presentation!", 9174, 5000}, 0:06    {"Tonight we plumb the depths of the human soul as we join a lost, lonely girl trying desperately -- with the help of her loyal companions -- to find her way home!", 9338, 5000}, 0:18    {"But she is pursued... by a wicked malevolent crone!", 9339, 5000}, 0:09    {"Will she survive? Will she prevail? Only time will tell. And now ... on with the show!", 9340, 5000} 0:13};static Dialogue HoodDialogue[]={    {"Good evening, Ladies and Gentlemen! Welcome to this evening's presentation!", 9175, 5000}, 0:06    {"Tonight, things are not what they seem. For tonight, your eyes may not be trusted", 9335, 5000}, 0:10    {"Take for instance, this quiet, elderly woman, waiting for a visit from her granddaughter. Surely there is nothing to fear from this sweet, grey-haired, old lady.", 9336, 5000}, 0:14    {"But don't let me pull the wool over your eyes. See for yourself what lies beneath these covers! And now... on with the show!", 9337, 5000} 0:13};static Dialogue RAJDialogue[]={    {"Welcome, Ladies and Gentlemen, to this evening's presentation!", 9176, 5000}, 0:05    {"Tonight, we explore a tale of forbidden love!", 9341, 5000}, 0:07    {"But beware, for not all love stories end happily, as you may find out. Sometimes, love pricks like a thorn.", 9342, 5000}, 0:14     {"But don't take it from me, see for yourself what tragedy lies ahead as the paths of star-crossed lovers meet. And now...on with the show!", 9343, 5000} 0:13};#define SAY_JUL_RES_ROMEO	"Come, gentle night; and give me back my Romulo!"#define SPELL_ETERNALAFF	30878#define EVENT_HOOD	1#define EVENT_OZ	2#define EVENT_RAJ	3#define POS_Z	90.5#define POS_OR	4.5#define WOLF_X	-10892#define WOLF_Y	-1758#define OZ_Y	-1750#define ROAR_X	-10891#define DOR_X	-10896#define TIN_X	-10884#define STRAW_X	-10902#define CRONE_X -10890#define CRONE_Y	-1747struct WayPoint{    float x,y,o;    uint32 timer;};#define JUL_X	-10892#define JUL_Y	-1758static WayPoint Points[]={    {-10868, -1781, 1.56, 15000},    {-10867.9, -1779.7, 3.13, 5000},    {-10890.9, -1777.9, 3.00, 1000},    {-10891.1, -1781.4, 4.68, 500}};#define SPELL_SPOTLIGHT		25824#define SPELL_ROOTSELF		31366#define SPELL_TUXEDO        32616struct MANGOS_DLL_DECL npc_barnesAI : public ScriptedAI{    npc_barnesAI(Creature* c) : ScriptedAI(c)    {        Reset();    }    void Reset()    {    }    void AttackStart(Unit* who)    {    }    void MoveInLineOfSight(Unit* who)    {    }    void UpdateAI(const uint32 diff)    {    }};