mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-21 23:38:54 -04:00
Merged commit 269 (5f0e38da128a).
--HG-- branch : trunk
This commit is contained in:
+3
-2
@@ -1,6 +1,6 @@
|
||||
-- MySQL dump 10.11
|
||||
--
|
||||
-- Host: localhost Database: characters
|
||||
-- Host: localhost Database: char_temp
|
||||
-- ------------------------------------------------------
|
||||
-- Server version 5.0.34-log
|
||||
|
||||
@@ -614,6 +614,7 @@ CREATE TABLE `characters` (
|
||||
`zone` int(11) unsigned NOT NULL default '0',
|
||||
`death_expire_time` bigint(20) unsigned NOT NULL default '0',
|
||||
`taxi_path` text,
|
||||
`latency` int(11) unsigned NOT NULL default '0',
|
||||
PRIMARY KEY (`guid`),
|
||||
KEY `idx_account` (`account`),
|
||||
KEY `idx_online` (`online`),
|
||||
@@ -1301,4 +1302,4 @@ UNLOCK TABLES;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed on 2008-10-14 13:27:52
|
||||
-- Dump completed on 2008-11-18 11:24:11
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE `guild_bank_tab`
|
||||
CHANGE COLUMN `TabText` `TabText` text;
|
||||
|
||||
ALTER TABLE `character_aura` ADD `stackcount` INT NOT NULL DEFAULT '1' AFTER `effect_index` ;
|
||||
ALTER TABLE `pet_aura` ADD `stackcount` INT NOT NULL DEFAULT '1' AFTER `effect_index` ;
|
||||
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE `account`
|
||||
CHANGE COLUMN `email` `email` text;
|
||||
@@ -0,0 +1,70 @@
|
||||
DELETE FROM trinity_string WHERE entry IN (1119,1120,1121);
|
||||
|
||||
INSERT INTO trinity_string VALUES
|
||||
(1119,'You must use male or female as gender.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
||||
(1120,'You change gender of %s to %s.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
||||
(1121,'Your gender changed to %s by %s.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
|
||||
|
||||
|
||||
DELETE FROM command WHERE name IN ('modify gender');
|
||||
|
||||
INSERT INTO command VALUES
|
||||
('modify gender',2,'Syntax: .modify gender male/female\r\n\r\nChange gender of selected player.');
|
||||
|
||||
|
||||
delete from `command` where `name` IN ('senditems','sendmail');
|
||||
insert into `command` (`name`, `security`, `help`) values
|
||||
('senditems',3,'Syntax: .senditems #playername "#subject" "#text" itemid1[:count1] itemid2[:count2] ... itemidN[:countN]\r\n\r\nSend a mail to a player. Subject and mail text must be in "". If for itemid not provided related count values then expected 1, if count > max items in stack then items will be send in required amount stacks. All stacks amount in mail limited to 12.'),
|
||||
('sendmail',1,'Syntax: .sendmail #playername "#subject" "#text"\r\n\r\nSend a mail to a player. Subject and mail text must be in "".');
|
||||
|
||||
|
||||
delete from `command` where `name` = 'sendmoney';
|
||||
insert into `command` (`name`, `security`, `help`) values
|
||||
('sendmoney',3,'Syntax: .sendmoney #playername "#subject" "#text" #money\r\n\r\nSend mail with money to a player. Subject and mail text must be in "".');
|
||||
|
||||
|
||||
DELETE FROM trinity_string WHERE entry IN (453);
|
||||
|
||||
|
||||
DROP TABLE IF EXISTS `db_script_string`;
|
||||
CREATE TABLE `db_script_string` (
|
||||
`entry` int(11) unsigned NOT NULL default '0',
|
||||
`content_default` text NOT NULL,
|
||||
`content_loc1` text,
|
||||
`content_loc2` text,
|
||||
`content_loc3` text,
|
||||
`content_loc4` text,
|
||||
`content_loc5` text,
|
||||
`content_loc6` text,
|
||||
`content_loc7` text,
|
||||
`content_loc8` text,
|
||||
PRIMARY KEY (`entry`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
DELETE FROM `command` WHERE `name` IN (
|
||||
'server exit',
|
||||
'server idleshutdown',
|
||||
'server idleshutdown cancel',
|
||||
'server idlerestart',
|
||||
'server idlerestart cancel',
|
||||
'server restart',
|
||||
'server restart cancel',
|
||||
'server shutdown',
|
||||
'server shutdown cancel'
|
||||
);
|
||||
|
||||
INSERT INTO `command` (`name`, `security`, `help`) VALUES
|
||||
('server exit',4,'Syntax: .server exit\r\n\r\nTerminate mangosd NOW. Exit code 0.'),
|
||||
('server idleshutdown',3,'Syntax: .server idleshutdown #delay [#exist_code]\r\n\r\nShut the server down after #delay seconds if no active connections are present (no players). Use #exist_code or 0 as program exist code.'),
|
||||
('server idleshutdown cancel',3,'Syntax: .server idleshutdown cancel\r\n\r\nCancel the restart/shutdown timer if any.'),
|
||||
('server idlerestart',3,'Syntax: .server idlerestart #delay\r\n\r\nRestart the server after #delay seconds if no active connections are present (no players). Use #exist_code or 2 as program exist code.'),
|
||||
('server idlerestart cancel',3,'Syntax: .server idlerestart cancel\r\n\r\nCancel the restart/shutdown timer if any.'),
|
||||
('server restart',3,'Syntax: .server restart #delay\r\n\r\nRestart the server after #delay seconds. Use #exist_code or 2 as program exist code.'),
|
||||
('server restart cancel',3,'Syntax: .server restart cancel\r\n\r\nCancel the restart/shutdown timer if any.'),
|
||||
('server shutdown',3,'Syntax: .server shutdown #delay [#exist_code]\r\n\r\nShut the server down after #delay seconds. Use #exist_code or 0 as program exist code.'),
|
||||
('server shutdown cancel',3,'Syntax: .server shutdown cancel\r\n\r\nCancel the restart/shutdown timer if any.');
|
||||
|
||||
DELETE FROM trinity_string WHERE entry IN (251);
|
||||
INSERT INTO trinity_string VALUES
|
||||
(251,'Text%d (ID: %i): %s',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
|
||||
@@ -0,0 +1,31 @@
|
||||
ALTER TABLE event_scripts
|
||||
DROP datatext,
|
||||
ADD COLUMN dataint int(11) NOT NULL default '0' AFTER datalong2;
|
||||
|
||||
ALTER TABLE gameobject_scripts
|
||||
DROP datatext,
|
||||
ADD COLUMN dataint int(11) NOT NULL default '0' AFTER datalong2;
|
||||
|
||||
ALTER TABLE quest_end_scripts
|
||||
DROP datatext,
|
||||
ADD COLUMN dataint int(11) NOT NULL default '0' AFTER datalong2;
|
||||
|
||||
ALTER TABLE quest_start_scripts
|
||||
DROP datatext,
|
||||
ADD COLUMN dataint int(11) NOT NULL default '0' AFTER datalong2;
|
||||
|
||||
ALTER TABLE spell_scripts
|
||||
DROP datatext,
|
||||
ADD COLUMN dataint int(11) NOT NULL default '0' AFTER datalong2;
|
||||
|
||||
ALTER TABLE creature_movement
|
||||
DROP `text1`,
|
||||
DROP `text2`,
|
||||
DROP `text3`,
|
||||
DROP `text4`,
|
||||
DROP `text5`,
|
||||
ADD COLUMN textid1 int(11) NOT NULL default '0' AFTER waittime,
|
||||
ADD COLUMN textid2 int(11) NOT NULL default '0' AFTER textid1,
|
||||
ADD COLUMN textid3 int(11) NOT NULL default '0' AFTER textid2,
|
||||
ADD COLUMN textid4 int(11) NOT NULL default '0' AFTER textid3,
|
||||
ADD COLUMN textid5 int(11) NOT NULL default '0' AFTER textid4;
|
||||
@@ -17,7 +17,8 @@
|
||||
#endif _TRINITY_SCRIPT_CONFIG
|
||||
|
||||
//*** Global data ***
|
||||
int nrscripts;
|
||||
int num_db_scripts;
|
||||
int num_sc_scripts;
|
||||
Script *m_scripts[MAX_SCRIPTS];
|
||||
|
||||
DatabaseType TScriptDB;
|
||||
@@ -47,7 +48,6 @@ enum ChatType
|
||||
// Text Maps
|
||||
UNORDERED_MAP<int32, StringTextData> TextMap;
|
||||
|
||||
|
||||
//*** End Global data ***
|
||||
|
||||
//*** EventAI data ***
|
||||
@@ -1180,15 +1180,16 @@ struct TSpellSummary {
|
||||
|
||||
TRINITY_DLL_EXPORT
|
||||
void ScriptsFree()
|
||||
{
|
||||
{
|
||||
// Free Spell Summary
|
||||
delete []SpellSummary;
|
||||
|
||||
// Free resources before library unload
|
||||
for(int i=0;i<nrscripts;i++)
|
||||
for(int i=0;i<num_db_scripts;i++)
|
||||
delete m_scripts[i];
|
||||
|
||||
nrscripts = 0;
|
||||
num_db_scripts = 0;
|
||||
num_sc_scripts = 0;
|
||||
}
|
||||
|
||||
TRINITY_DLL_EXPORT
|
||||
@@ -1239,12 +1240,13 @@ void ScriptsInit()
|
||||
if (CanLoadDB)
|
||||
LoadDatabase();
|
||||
|
||||
num_db_scripts = GetScriptNames().size();
|
||||
|
||||
outstring_log("TSCR: Loading C++ scripts");
|
||||
barGoLink bar(1);
|
||||
bar.step();
|
||||
outstring_log("");
|
||||
|
||||
nrscripts = 0;
|
||||
for(int i=0;i<MAX_SCRIPTS;i++)
|
||||
m_scripts[i]=NULL;
|
||||
|
||||
@@ -1775,8 +1777,7 @@ void ScriptsInit()
|
||||
|
||||
// -------------------
|
||||
|
||||
outstring_log("TSCR: Loaded %u C++ Scripts", nrscripts);
|
||||
outstring_log("");
|
||||
outstring_log(">> Loaded %i C++ Scripts (of %i ScriptNames defined in Mangos database)", num_sc_scripts, num_db_scripts);
|
||||
}
|
||||
|
||||
//*********************************
|
||||
@@ -1848,32 +1849,29 @@ void DoScriptText(int32 textEntry, WorldObject* pSource, Unit* target)
|
||||
//*********************************
|
||||
//*** Functions used internally ***
|
||||
|
||||
TRINITY_DLL_EXPORT
|
||||
char const* ScriptsVersion()
|
||||
void Script::RegisterSelf()
|
||||
{
|
||||
return "Default Trinity scripting library";
|
||||
}
|
||||
|
||||
Script* GetScriptByName(std::string Name)
|
||||
{
|
||||
if (Name.empty())
|
||||
return NULL;
|
||||
|
||||
for(int i=0;i<MAX_SCRIPTS;i++)
|
||||
int id = GetScriptId(Name.c_str());
|
||||
if (id != 0)
|
||||
{
|
||||
if (m_scripts[i] && m_scripts[i]->Name == Name)
|
||||
return m_scripts[i];
|
||||
}
|
||||
return NULL;
|
||||
m_scripts[id] = this;
|
||||
++num_sc_scripts;
|
||||
} else
|
||||
debug_log("SD2: RegisterSelf, but script named %s does not have ScriptName assigned in database.",(this)->Name.c_str());
|
||||
}
|
||||
|
||||
//********************************
|
||||
//*** Functions to be Exported ***
|
||||
|
||||
TRINITY_DLL_EXPORT
|
||||
char const* ScriptsVersion()
|
||||
{
|
||||
return "Default Trinity scripting library";
|
||||
}
|
||||
TRINITY_DLL_EXPORT
|
||||
bool GossipHello ( Player * player, Creature *_Creature )
|
||||
{
|
||||
Script *tmpscript = GetScriptByName(_Creature->GetScriptName());
|
||||
Script *tmpscript = m_scripts[_Creature->GetScriptId()];
|
||||
if (!tmpscript || !tmpscript->pGossipHello) return false;
|
||||
|
||||
player->PlayerTalkClass->ClearMenus();
|
||||
@@ -1885,7 +1883,7 @@ bool GossipSelect( Player *player, Creature *_Creature, uint32 sender, uint32 ac
|
||||
{
|
||||
debug_log("TSCR: Gossip selection, sender: %d, action: %d",sender, action);
|
||||
|
||||
Script *tmpscript = GetScriptByName(_Creature->GetScriptName());
|
||||
Script *tmpscript = m_scripts[_Creature->GetScriptId()];
|
||||
if (!tmpscript || !tmpscript->pGossipSelect) return false;
|
||||
|
||||
player->PlayerTalkClass->ClearMenus();
|
||||
@@ -1897,7 +1895,7 @@ bool GossipSelectWithCode( Player *player, Creature *_Creature, uint32 sender, u
|
||||
{
|
||||
debug_log("TSCR: Gossip selection with code, sender: %d, action: %d",sender, action);
|
||||
|
||||
Script *tmpscript = GetScriptByName(_Creature->GetScriptName());
|
||||
Script *tmpscript = m_scripts[_Creature->GetScriptId()];
|
||||
if (!tmpscript || !tmpscript->pGossipSelectWithCode) return false;
|
||||
|
||||
player->PlayerTalkClass->ClearMenus();
|
||||
@@ -1907,7 +1905,7 @@ bool GossipSelectWithCode( Player *player, Creature *_Creature, uint32 sender, u
|
||||
TRINITY_DLL_EXPORT
|
||||
bool QuestAccept( Player *player, Creature *_Creature, Quest const *_Quest )
|
||||
{
|
||||
Script *tmpscript = GetScriptByName(_Creature->GetScriptName());
|
||||
Script *tmpscript = m_scripts[_Creature->GetScriptId()];
|
||||
if (!tmpscript || !tmpscript->pQuestAccept) return false;
|
||||
|
||||
player->PlayerTalkClass->ClearMenus();
|
||||
@@ -1917,7 +1915,7 @@ bool QuestAccept( Player *player, Creature *_Creature, Quest const *_Quest )
|
||||
TRINITY_DLL_EXPORT
|
||||
bool QuestSelect( Player *player, Creature *_Creature, Quest const *_Quest )
|
||||
{
|
||||
Script *tmpscript = GetScriptByName(_Creature->GetScriptName());
|
||||
Script *tmpscript = m_scripts[_Creature->GetScriptId()];
|
||||
if (!tmpscript || !tmpscript->pQuestSelect) return false;
|
||||
|
||||
player->PlayerTalkClass->ClearMenus();
|
||||
@@ -1927,7 +1925,7 @@ bool QuestSelect( Player *player, Creature *_Creature, Quest const *_Quest )
|
||||
TRINITY_DLL_EXPORT
|
||||
bool QuestComplete( Player *player, Creature *_Creature, Quest const *_Quest )
|
||||
{
|
||||
Script *tmpscript = GetScriptByName(_Creature->GetScriptName());
|
||||
Script *tmpscript = m_scripts[_Creature->GetScriptId()];
|
||||
if (!tmpscript || !tmpscript->pQuestComplete) return false;
|
||||
|
||||
player->PlayerTalkClass->ClearMenus();
|
||||
@@ -1937,7 +1935,7 @@ bool QuestComplete( Player *player, Creature *_Creature, Quest const *_Quest )
|
||||
TRINITY_DLL_EXPORT
|
||||
bool ChooseReward( Player *player, Creature *_Creature, Quest const *_Quest, uint32 opt )
|
||||
{
|
||||
Script *tmpscript = GetScriptByName(_Creature->GetScriptName());
|
||||
Script *tmpscript = m_scripts[_Creature->GetScriptId()];
|
||||
if (!tmpscript || !tmpscript->pChooseReward) return false;
|
||||
|
||||
player->PlayerTalkClass->ClearMenus();
|
||||
@@ -1947,7 +1945,7 @@ bool ChooseReward( Player *player, Creature *_Creature, Quest const *_Quest, uin
|
||||
TRINITY_DLL_EXPORT
|
||||
uint32 NPCDialogStatus( Player *player, Creature *_Creature )
|
||||
{
|
||||
Script *tmpscript = GetScriptByName(_Creature->GetScriptName());
|
||||
Script *tmpscript = m_scripts[_Creature->GetScriptId()];
|
||||
if (!tmpscript || !tmpscript->pNPCDialogStatus) return 100;
|
||||
|
||||
player->PlayerTalkClass->ClearMenus();
|
||||
@@ -1957,8 +1955,8 @@ uint32 NPCDialogStatus( Player *player, Creature *_Creature )
|
||||
TRINITY_DLL_EXPORT
|
||||
uint32 GODialogStatus( Player *player, GameObject *_GO )
|
||||
{
|
||||
Script *tmpscript = GetScriptByName(_GO->GetGOInfo()->ScriptName);
|
||||
if(!tmpscript || !tmpscript->pGODialogStatus) return 100;
|
||||
Script *tmpscript = m_scripts[_GO->GetGOInfo()->ScriptId];
|
||||
if (!tmpscript || !tmpscript->pGODialogStatus) return 100;
|
||||
|
||||
player->PlayerTalkClass->ClearMenus();
|
||||
return tmpscript->pGODialogStatus(player,_GO);
|
||||
@@ -1967,7 +1965,7 @@ uint32 GODialogStatus( Player *player, GameObject *_GO )
|
||||
TRINITY_DLL_EXPORT
|
||||
bool ItemHello( Player *player, Item *_Item, Quest const *_Quest )
|
||||
{
|
||||
Script *tmpscript = GetScriptByName(_Item->GetProto()->ScriptName);
|
||||
Script *tmpscript = m_scripts[_Item->GetProto()->ScriptId];
|
||||
if (!tmpscript || !tmpscript->pItemHello) return false;
|
||||
|
||||
player->PlayerTalkClass->ClearMenus();
|
||||
@@ -1977,7 +1975,7 @@ bool ItemHello( Player *player, Item *_Item, Quest const *_Quest )
|
||||
TRINITY_DLL_EXPORT
|
||||
bool ItemQuestAccept( Player *player, Item *_Item, Quest const *_Quest )
|
||||
{
|
||||
Script *tmpscript = GetScriptByName(_Item->GetProto()->ScriptName);
|
||||
Script *tmpscript = m_scripts[_Item->GetProto()->ScriptId];
|
||||
if (!tmpscript || !tmpscript->pItemQuestAccept) return false;
|
||||
|
||||
player->PlayerTalkClass->ClearMenus();
|
||||
@@ -1987,7 +1985,7 @@ bool ItemQuestAccept( Player *player, Item *_Item, Quest const *_Quest )
|
||||
TRINITY_DLL_EXPORT
|
||||
bool GOHello( Player *player, GameObject *_GO )
|
||||
{
|
||||
Script *tmpscript = GetScriptByName(_GO->GetGOInfo()->ScriptName);
|
||||
Script *tmpscript = m_scripts[_GO->GetGOInfo()->ScriptId];
|
||||
if (!tmpscript || !tmpscript->pGOHello) return false;
|
||||
|
||||
player->PlayerTalkClass->ClearMenus();
|
||||
@@ -1997,7 +1995,7 @@ bool GOHello( Player *player, GameObject *_GO )
|
||||
TRINITY_DLL_EXPORT
|
||||
bool GOQuestAccept( Player *player, GameObject *_GO, Quest const *_Quest )
|
||||
{
|
||||
Script *tmpscript = GetScriptByName(_GO->GetGOInfo()->ScriptName);
|
||||
Script *tmpscript = m_scripts[_GO->GetGOInfo()->ScriptId];
|
||||
if (!tmpscript || !tmpscript->pGOQuestAccept) return false;
|
||||
|
||||
player->PlayerTalkClass->ClearMenus();
|
||||
@@ -2007,7 +2005,7 @@ bool GOQuestAccept( Player *player, GameObject *_GO, Quest const *_Quest )
|
||||
TRINITY_DLL_EXPORT
|
||||
bool GOChooseReward( Player *player, GameObject *_GO, Quest const *_Quest, uint32 opt )
|
||||
{
|
||||
Script *tmpscript = GetScriptByName(_GO->GetGOInfo()->ScriptName);
|
||||
Script *tmpscript = m_scripts[_GO->GetGOInfo()->ScriptId];
|
||||
if (!tmpscript || !tmpscript->pGOChooseReward) return false;
|
||||
|
||||
player->PlayerTalkClass->ClearMenus();
|
||||
@@ -2017,9 +2015,7 @@ bool GOChooseReward( Player *player, GameObject *_GO, Quest const *_Quest, uint3
|
||||
TRINITY_DLL_EXPORT
|
||||
bool AreaTrigger( Player *player, AreaTriggerEntry * atEntry)
|
||||
{
|
||||
Script *tmpscript = NULL;
|
||||
|
||||
tmpscript = GetScriptByName(GetAreaTriggerScriptNameById(atEntry->id));
|
||||
Script *tmpscript = m_scripts[GetAreaTriggerScriptId(atEntry->id)];
|
||||
if (!tmpscript || !tmpscript->pAreaTrigger) return false;
|
||||
|
||||
return tmpscript->pAreaTrigger(player, atEntry);
|
||||
@@ -2028,16 +2024,16 @@ bool AreaTrigger( Player *player, AreaTriggerEntry * atEntry)
|
||||
TRINITY_DLL_EXPORT
|
||||
CreatureAI* GetAI(Creature *_Creature)
|
||||
{
|
||||
Script *tmpscript = GetScriptByName(_Creature->GetScriptName());
|
||||
|
||||
Script *tmpscript = m_scripts[_Creature->GetScriptId()];
|
||||
if (!tmpscript || !tmpscript->GetAI) return NULL;
|
||||
|
||||
return tmpscript->GetAI(_Creature);
|
||||
}
|
||||
|
||||
TRINITY_DLL_EXPORT
|
||||
bool ItemUse( Player *player, Item* _Item, SpellCastTargets const& targets)
|
||||
{
|
||||
Script *tmpscript = GetScriptByName(_Item->GetProto()->ScriptName);
|
||||
Script *tmpscript = m_scripts[_Item->GetProto()->ScriptId];
|
||||
if (!tmpscript || !tmpscript->pItemUse) return false;
|
||||
|
||||
return tmpscript->pItemUse(player,_Item,targets);
|
||||
@@ -2046,7 +2042,7 @@ bool ItemUse( Player *player, Item* _Item, SpellCastTargets const& targets)
|
||||
TRINITY_DLL_EXPORT
|
||||
bool ReceiveEmote( Player *player, Creature *_Creature, uint32 emote )
|
||||
{
|
||||
Script *tmpscript = GetScriptByName(_Creature->GetScriptName());
|
||||
Script *tmpscript = m_scripts[_Creature->GetScriptId()];
|
||||
if (!tmpscript || !tmpscript->pReceiveEmote) return false;
|
||||
|
||||
return tmpscript->pReceiveEmote(player, _Creature, emote);
|
||||
@@ -2055,12 +2051,10 @@ bool ReceiveEmote( Player *player, Creature *_Creature, uint32 emote )
|
||||
TRINITY_DLL_EXPORT
|
||||
InstanceData* CreateInstanceData(Map *map)
|
||||
{
|
||||
Script *tmpscript = NULL;
|
||||
if (!map->IsDungeon()) return NULL;
|
||||
|
||||
if (!map->IsDungeon()) return false;
|
||||
|
||||
tmpscript = GetScriptByName(((InstanceMap*)map)->GetScript());
|
||||
if (!tmpscript || !tmpscript->GetInstanceData) return false;
|
||||
Script *tmpscript = m_scripts[((InstanceMap*)map)->GetScriptId()];
|
||||
if (!tmpscript || !tmpscript->GetInstanceData) return NULL;
|
||||
|
||||
return tmpscript->GetInstanceData(map);
|
||||
}
|
||||
|
||||
@@ -24,47 +24,46 @@ class Map;
|
||||
class Unit;
|
||||
class WorldObject;
|
||||
|
||||
#define MAX_SCRIPTS 1000 //72 bytes each (approx 71kb)
|
||||
#define MAX_SCRIPTS 5000 //72 bytes each (approx 351kb)
|
||||
#define VISIBLE_RANGE (166.0f) //MAX visible range (size of grid)
|
||||
#define DEFAULT_TEXT "<Trinity Script Text Entry Missing!>"
|
||||
|
||||
struct Script
|
||||
{
|
||||
Script() :
|
||||
pGossipHello(NULL), pQuestAccept(NULL), pGossipSelect(NULL), pGossipSelectWithCode(NULL),
|
||||
pQuestSelect(NULL), pQuestComplete(NULL), pNPCDialogStatus(NULL), pGODialogStatus(NULL), pChooseReward(NULL),
|
||||
pItemHello(NULL), pGOHello(NULL), pAreaTrigger(NULL), pItemQuestAccept(NULL), pGOQuestAccept(NULL),
|
||||
pGOChooseReward(NULL),pReceiveEmote(NULL),pItemUse(NULL), GetAI(NULL), GetInstanceData(NULL)
|
||||
{}
|
||||
pGossipHello(NULL), pQuestAccept(NULL), pGossipSelect(NULL), pGossipSelectWithCode(NULL),
|
||||
pQuestSelect(NULL), pQuestComplete(NULL), pNPCDialogStatus(NULL), pGODialogStatus(NULL), pChooseReward(NULL),
|
||||
pItemHello(NULL), pGOHello(NULL), pAreaTrigger(NULL), pItemQuestAccept(NULL), pGOQuestAccept(NULL),
|
||||
pGOChooseReward(NULL),pReceiveEmote(NULL),pItemUse(NULL), GetAI(NULL), GetInstanceData(NULL)
|
||||
{}
|
||||
|
||||
std::string Name;
|
||||
std::string Name;
|
||||
|
||||
// Quest/gossip Methods to be scripted
|
||||
bool (*pGossipHello )(Player*, Creature*);
|
||||
bool (*pQuestAccept )(Player*, Creature*, Quest const* );
|
||||
bool (*pGossipSelect )(Player*, Creature*, uint32 , uint32 );
|
||||
bool (*pGossipSelectWithCode)(Player*, Creature*, uint32 , uint32 , const char* );
|
||||
bool (*pQuestSelect )(Player*, Creature*, Quest const* );
|
||||
bool (*pQuestComplete )(Player*, Creature*, Quest const* );
|
||||
uint32 (*pNPCDialogStatus )(Player*, Creature* );
|
||||
uint32 (*pGODialogStatus )(Player *player, GameObject * _GO );
|
||||
bool (*pChooseReward )(Player*, Creature*, Quest const*, uint32 );
|
||||
bool (*pItemHello )(Player*, Item*, Quest const* );
|
||||
bool (*pGOHello )(Player*, GameObject* );
|
||||
bool (*pAreaTrigger )(Player*, AreaTriggerEntry* );
|
||||
bool (*pItemQuestAccept )(Player*, Item *, Quest const* );
|
||||
bool (*pGOQuestAccept )(Player*, GameObject*, Quest const* );
|
||||
bool (*pGOChooseReward )(Player*, GameObject*_GO, Quest const*, uint32 );
|
||||
bool (*pReceiveEmote )(Player*, Creature*, uint32 );
|
||||
bool (*pItemUse )(Player*, Item*, SpellCastTargets const& );
|
||||
//Methods to be scripted
|
||||
bool (*pGossipHello )(Player*, Creature*);
|
||||
bool (*pQuestAccept )(Player*, Creature*, Quest const* );
|
||||
bool (*pGossipSelect )(Player*, Creature*, uint32 , uint32 );
|
||||
bool (*pGossipSelectWithCode)(Player*, Creature*, uint32 , uint32 , const char* );
|
||||
bool (*pQuestSelect )(Player*, Creature*, Quest const* );
|
||||
bool (*pQuestComplete )(Player*, Creature*, Quest const* );
|
||||
uint32 (*pNPCDialogStatus )(Player*, Creature* );
|
||||
uint32 (*pGODialogStatus )(Player*, GameObject * _GO );
|
||||
bool (*pChooseReward )(Player*, Creature*, Quest const*, uint32 );
|
||||
bool (*pItemHello )(Player*, Item*, Quest const* );
|
||||
bool (*pGOHello )(Player*, GameObject* );
|
||||
bool (*pAreaTrigger )(Player*, AreaTriggerEntry* );
|
||||
bool (*pItemQuestAccept )(Player*, Item *, Quest const* );
|
||||
bool (*pGOQuestAccept )(Player*, GameObject*, Quest const* );
|
||||
bool (*pGOChooseReward )(Player*, GameObject*, Quest const*, uint32 );
|
||||
bool (*pReceiveEmote )(Player*, Creature*, uint32 );
|
||||
bool (*pItemUse )(Player*, Item*, SpellCastTargets const& );
|
||||
|
||||
CreatureAI* (*GetAI)(Creature*);
|
||||
InstanceData* (*GetInstanceData)(Map*);
|
||||
CreatureAI* (*GetAI)(Creature*);
|
||||
InstanceData* (*GetInstanceData)(Map*);
|
||||
|
||||
void RegisterSelf();
|
||||
};
|
||||
|
||||
extern int nrscripts;
|
||||
extern Script *m_scripts[MAX_SCRIPTS];
|
||||
|
||||
//Generic scripting text function
|
||||
void DoScriptText(int32 textEntry, WorldObject* pSource, Unit* target = NULL);
|
||||
|
||||
|
||||
@@ -73,17 +73,7 @@ bool ScriptedAI::IsVisible(Unit* who) const
|
||||
|
||||
void ScriptedAI::MoveInLineOfSight(Unit *who)
|
||||
{
|
||||
if(m_creature->getVictim() || !m_creature->IsHostileTo(who) || !who->isInAccessiblePlaceFor(m_creature))
|
||||
return;
|
||||
|
||||
if(!m_creature->canFly() && m_creature->GetDistanceZ(who) > CREATURE_Z_ATTACK_RANGE)
|
||||
return;
|
||||
|
||||
if(!m_creature->IsWithinDistInMap(who, m_creature->GetAttackDistance(who)) || !m_creature->IsWithinLOSInMap(who))
|
||||
return;
|
||||
|
||||
if(m_creature->canAttack(who))
|
||||
//who->RemoveSpellsCausingAura(SPELL_AURA_MOD_STEALTH);
|
||||
if(!m_creature->getVictim() && m_creature->canStartAttack(who))
|
||||
AttackStart(who);
|
||||
}
|
||||
|
||||
@@ -679,13 +669,11 @@ void ScriptedAI::DoZoneInCombat(Unit* pUnit)
|
||||
return;
|
||||
}
|
||||
|
||||
InstanceMap::PlayerList const &PlayerList = ((InstanceMap*)map)->GetPlayers();
|
||||
InstanceMap::PlayerList::const_iterator i;
|
||||
for (i = PlayerList.begin(); i != PlayerList.end(); ++i)
|
||||
{
|
||||
if((*i)->isAlive())
|
||||
pUnit->AddThreat(*i, 0.0f);
|
||||
}
|
||||
Map::PlayerList const &PlayerList = map->GetPlayers();
|
||||
for(Map::PlayerList::const_iterator i = PlayerList.begin(); i != PlayerList.end(); ++i)
|
||||
if (Player* i_pl = i->getSource())
|
||||
if (!i_pl->isAlive())
|
||||
pUnit->AddThreat(i_pl, 0.0f);
|
||||
}
|
||||
|
||||
void ScriptedAI::DoResetThreat()
|
||||
@@ -721,6 +709,20 @@ void ScriptedAI::DoTeleportPlayer(Unit* pUnit, float x, float y, float z, float
|
||||
((Player*)pUnit)->TeleportTo(pUnit->GetMapId(), x, y, z, o, TELE_TO_NOT_LEAVE_COMBAT);
|
||||
}
|
||||
|
||||
void ScriptedAI::DoTeleportAll(float x, float y, float z, float o)
|
||||
{
|
||||
Map *map = m_creature->GetMap();
|
||||
if (!map->IsDungeon())
|
||||
return;
|
||||
|
||||
Map::PlayerList const &PlayerList = map->GetPlayers();
|
||||
for(Map::PlayerList::const_iterator i = PlayerList.begin(); i != PlayerList.end(); ++i)
|
||||
if (Player* i_pl = i->getSource())
|
||||
if (!i_pl->isAlive())
|
||||
i_pl->TeleportTo(m_creature->GetMapId(), x, y, z, o, TELE_TO_NOT_LEAVE_COMBAT);
|
||||
}
|
||||
|
||||
|
||||
Unit* ScriptedAI::DoSelectLowestHpFriendly(float range, uint32 MinHPDiff)
|
||||
{
|
||||
CellPair p(Trinity::ComputeCellPair(m_creature->GetPositionX(), m_creature->GetPositionY()));
|
||||
|
||||
@@ -146,6 +146,7 @@ struct TRINITY_DLL_DECL ScriptedAI : public CreatureAI
|
||||
|
||||
//Teleports a player without dropping threat (only teleports to same map)
|
||||
void DoTeleportPlayer(Unit* pUnit, float x, float y, float z, float o);
|
||||
void DoTeleportAll(float x, float y, float z, float o);
|
||||
|
||||
//Returns friendly unit with the most amount of hp missing from max hp
|
||||
Unit* DoSelectLowestHpFriendly(float range, uint32 MinHPDiff = 1);
|
||||
|
||||
@@ -40,5 +40,5 @@ void AddSC_areatrigger_scripts()
|
||||
newscript = new Script;
|
||||
newscript->Name="at_test";
|
||||
newscript->pAreaTrigger = ATtest;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -152,5 +152,5 @@ void AddSC_boss_emeriss()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_emeriss";
|
||||
newscript->GetAI = GetAI_boss_emeriss;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -297,10 +297,10 @@ void AddSC_boss_taerar()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_taerar";
|
||||
newscript->GetAI = GetAI_boss_taerar;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_shade_of_taerar";
|
||||
newscript->GetAI = GetAI_boss_shadeoftaerar;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -237,10 +237,10 @@ void AddSC_boss_ysondre()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_ysondre";
|
||||
newscript->GetAI = GetAI_boss_ysondre;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="mob_dementeddruids";
|
||||
newscript->GetAI = GetAI_mob_dementeddruids;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -1400,5 +1400,5 @@ void AddSC_mob_event()
|
||||
newscript = new Script;
|
||||
newscript->Name="mob_eventai";
|
||||
newscript->GetAI = GetAI_Mob_EventAI;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -168,5 +168,5 @@ void AddSC_generic_creature()
|
||||
newscript = new Script;
|
||||
newscript->Name="generic_creature";
|
||||
newscript->GetAI = GetAI_generic_creature;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -273,5 +273,5 @@ void AddSC_custom_example()
|
||||
newscript->pGossipHello = &GossipHello_custom_example;
|
||||
newscript->pGossipSelect = &GossipSelect_custom_example;
|
||||
newscript->pReceiveEmote = &ReceiveEmote_custom_example;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -77,5 +77,5 @@ void AddSC_custom_gossip_codebox()
|
||||
newscript->pGossipHello = &GossipHello_custom_gossip_codebox;
|
||||
newscript->pGossipSelect = &GossipSelect_custom_gossip_codebox;
|
||||
newscript->pGossipSelectWithCode = &GossipSelectWithCode_custom_gossip_codebox;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -196,5 +196,5 @@ void AddSC_test()
|
||||
newscript->GetAI = GetAI_test;
|
||||
newscript->pGossipHello = &GossipHello_npc_test;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_test;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -165,45 +165,45 @@ void AddSC_go_scripts()
|
||||
newscript = new Script;
|
||||
newscript->Name="go_northern_crystal_pylon";
|
||||
newscript->pGOHello = &GOHello_go_northern_crystal_pylon;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="go_eastern_crystal_pylon";
|
||||
newscript->pGOHello = &GOHello_go_eastern_crystal_pylon;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="go_western_crystal_pylon";
|
||||
newscript->pGOHello = &GOHello_go_western_crystal_pylon;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="go_barov_journal";
|
||||
newscript->pGOHello = &GOHello_go_barov_journal;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="go_field_repair_bot_74A";
|
||||
newscript->pGOHello = &GOHello_go_field_repair_bot_74A;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="go_orb_of_command";
|
||||
newscript->pGOHello = &GOHello_go_orb_of_command;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="go_tablet_of_madness";
|
||||
newscript->pGOHello = &GOHello_go_tablet_of_madness;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="go_tablet_of_the_seven";
|
||||
newscript->pGOHello = &GOHello_go_tablet_of_the_seven;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="go_teleporter";
|
||||
newscript->pGOHello = &GOHello_go_teleporter;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -3980,75 +3980,75 @@ void AddSC_guards()
|
||||
newscript->pGossipHello = &GossipHello_guard_azuremyst;
|
||||
newscript->pGossipSelect = &GossipSelect_guard_azuremyst;
|
||||
newscript->GetAI = GetAI_guard_azuremyst;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="guard_bluffwatcher";
|
||||
newscript->pGossipHello = &GossipHello_guard_bluffwatcher;
|
||||
newscript->pGossipSelect = &GossipSelect_guard_bluffwatcher;
|
||||
newscript->GetAI = GetAI_guard_bluffwatcher;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="guard_contested";
|
||||
newscript->GetAI = GetAI_guard_contested;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="guard_darnassus";
|
||||
newscript->pGossipHello = &GossipHello_guard_darnassus;
|
||||
newscript->pGossipSelect = &GossipSelect_guard_darnassus;
|
||||
newscript->GetAI = GetAI_guard_darnassus;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="guard_dunmorogh";
|
||||
newscript->pGossipHello = &GossipHello_guard_dunmorogh;
|
||||
newscript->pGossipSelect = &GossipSelect_guard_dunmorogh;
|
||||
newscript->GetAI = GetAI_guard_dunmorogh;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="guard_durotar";
|
||||
newscript->pGossipHello = &GossipHello_guard_durotar;
|
||||
newscript->pGossipSelect = &GossipSelect_guard_durotar;
|
||||
newscript->GetAI = GetAI_guard_durotar;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="guard_elwynnforest";
|
||||
newscript->pGossipHello = &GossipHello_guard_elwynnforest;
|
||||
newscript->pGossipSelect = &GossipSelect_guard_elwynnforest;
|
||||
newscript->GetAI = GetAI_guard_elwynnforest;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="guard_eversong";
|
||||
newscript->pGossipHello = &GossipHello_guard_eversong;
|
||||
newscript->pGossipSelect = &GossipSelect_guard_eversong;
|
||||
newscript->GetAI = GetAI_guard_eversong;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="guard_exodar";
|
||||
newscript->pGossipHello = &GossipHello_guard_exodar;
|
||||
newscript->pGossipSelect = &GossipSelect_guard_exodar;
|
||||
newscript->GetAI = GetAI_guard_exodar;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="guard_ironforge";
|
||||
newscript->pGossipHello = &GossipHello_guard_ironforge;
|
||||
newscript->pGossipSelect = &GossipSelect_guard_ironforge;
|
||||
newscript->GetAI = GetAI_guard_ironforge;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="guard_mulgore";
|
||||
newscript->pGossipHello = &GossipHello_guard_mulgore;
|
||||
newscript->pGossipSelect = &GossipSelect_guard_mulgore;
|
||||
newscript->GetAI = GetAI_guard_mulgore;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="guard_orgrimmar";
|
||||
@@ -4056,35 +4056,35 @@ void AddSC_guards()
|
||||
newscript->pGossipSelect = &GossipSelect_guard_orgrimmar;
|
||||
newscript->pReceiveEmote = &ReceiveEmote_guard_orgrimmar;
|
||||
newscript->GetAI = GetAI_guard_orgrimmar;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="guard_shattrath";
|
||||
newscript->pGossipHello = &GossipHello_guard_shattrath;
|
||||
newscript->pGossipSelect = &GossipSelect_guard_shattrath;
|
||||
newscript->GetAI = GetAI_guard_shattrath;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="guard_shattrath_aldor";
|
||||
newscript->GetAI = GetAI_guard_shattrath_aldor;
|
||||
newscript->pGossipHello = &GossipHello_guard_shattrath_aldor;
|
||||
newscript->pGossipSelect = &GossipSelect_guard_shattrath_aldor;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="guard_shattrath_scryer";
|
||||
newscript->GetAI = GetAI_guard_shattrath_scryer;
|
||||
newscript->pGossipHello = &GossipHello_guard_shattrath_scryer;
|
||||
newscript->pGossipSelect = &GossipSelect_guard_shattrath_scryer;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="guard_silvermoon";
|
||||
newscript->pGossipHello = &GossipHello_guard_silvermoon;
|
||||
newscript->pGossipSelect = &GossipSelect_guard_silvermoon;
|
||||
newscript->GetAI = GetAI_guard_silvermoon;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="guard_stormwind";
|
||||
@@ -4092,26 +4092,26 @@ void AddSC_guards()
|
||||
newscript->pGossipSelect = &GossipSelect_guard_stormwind;
|
||||
newscript->pReceiveEmote = &ReceiveEmote_guard_stormwind;
|
||||
newscript->GetAI = GetAI_guard_stormwind;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="guard_teldrassil";
|
||||
newscript->pGossipHello = &GossipHello_guard_teldrassil;
|
||||
newscript->pGossipSelect = &GossipSelect_guard_teldrassil;
|
||||
newscript->GetAI = GetAI_guard_teldrassil;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="guard_tirisfal";
|
||||
newscript->pGossipHello = &GossipHello_guard_tirisfal;
|
||||
newscript->pGossipSelect = &GossipSelect_guard_tirisfal;
|
||||
newscript->GetAI = GetAI_guard_tirisfal;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="guard_undercity";
|
||||
newscript->pGossipHello = &GossipHello_guard_undercity;
|
||||
newscript->pGossipSelect = &GossipSelect_guard_undercity;
|
||||
newscript->GetAI = GetAI_guard_undercity;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -455,95 +455,95 @@ void AddSC_item_scripts()
|
||||
newscript = new Script;
|
||||
newscript->Name="item_area_52_special";
|
||||
newscript->pItemUse = ItemUse_item_area_52_special;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="item_arcane_charges";
|
||||
newscript->pItemUse = ItemUse_item_arcane_charges;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="item_attuned_crystal_cores";
|
||||
newscript->pItemUse = ItemUse_item_attuned_crystal_cores;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="item_blackwhelp_net";
|
||||
newscript->pItemUse = ItemUse_item_blackwhelp_net;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="item_disciplinary_rod";
|
||||
newscript->pItemUse = ItemUse_item_disciplinary_rod;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="item_draenei_fishing_net";
|
||||
newscript->pItemUse = ItemUse_item_draenei_fishing_net;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="item_nether_wraith_beacon";
|
||||
newscript->pItemUse = ItemUse_item_nether_wraith_beacon;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="item_flying_machine";
|
||||
newscript->pItemUse = ItemUse_item_flying_machine;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="item_gor_dreks_ointment";
|
||||
newscript->pItemUse = ItemUse_item_gor_dreks_ointment;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="item_muiseks_vessel";
|
||||
newscript->pItemUse = ItemUse_item_muiseks_vessel;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="item_razorthorn_flayer_gland";
|
||||
newscript->pItemUse = ItemUse_item_razorthorn_flayer_gland;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="item_tame_beast_rods";
|
||||
newscript->pItemUse = ItemUse_item_tame_beast_rods;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="item_protovoltaic_magneto_collector";
|
||||
newscript->pItemUse = ItemUse_item_protovoltaic_magneto_collector;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="item_soul_cannon";
|
||||
newscript->pItemUse = ItemUse_item_soul_cannon;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="item_sparrowhawk_net";
|
||||
newscript->pItemUse = ItemUse_item_sparrowhawk_net;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="item_voodoo_charm";
|
||||
newscript->pItemUse = ItemUse_item_voodoo_charm;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="item_vorenthals_presence";
|
||||
newscript->pItemUse = ItemUse_item_vorenthals_presence;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="item_yehkinyas_bramble";
|
||||
newscript->pItemUse = ItemUse_item_yehkinyas_bramble;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="item_zezzaks_shard";
|
||||
newscript->pItemUse = ItemUse_item_zezzak_shard;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -38,5 +38,5 @@ void AddSC_item_test()
|
||||
newscript = new Script;
|
||||
newscript->Name="item_test";
|
||||
newscript->pItemUse = ItemUse_item_test;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -140,5 +140,5 @@ void AddSC_npc_innkeeper()
|
||||
newscript->Name="npc_innkeeper";
|
||||
newscript->pGossipHello = &GossipHello_npc_innkeeper;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_innkeeper;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -1177,29 +1177,29 @@ void AddSC_npc_professions()
|
||||
newscript->Name="npc_prof_alchemy";
|
||||
newscript->pGossipHello = &GossipHello_npc_prof_alchemy;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_prof_alchemy;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="npc_prof_blacksmith";
|
||||
newscript->pGossipHello = &GossipHello_npc_prof_blacksmith;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_prof_blacksmith;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="npc_prof_leather";
|
||||
newscript->pGossipHello = &GossipHello_npc_prof_leather;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_prof_leather;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="npc_prof_tailor";
|
||||
newscript->pGossipHello = &GossipHello_npc_prof_tailor;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_prof_tailor;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
/*newscript = new Script;
|
||||
newscript->Name="go_soothsaying_for_dummies";
|
||||
newscript->pGOHello = &GOHello_go_soothsaying_for_dummies;
|
||||
//newscript->pGossipSelect = &GossipSelect_go_soothsaying_for_dummies;
|
||||
m_scripts[nrscripts++] = newscript;*/
|
||||
newscript->RegisterSelf();*/
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -58,5 +58,5 @@ void AddSC_alterac_mountains()
|
||||
newscript = new Script;
|
||||
newscript->Name="npc_ravenholdt";
|
||||
newscript->GetAI = GetAI_npc_ravenholdt;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
+3
-3
@@ -348,15 +348,15 @@ void AddSC_boss_exarch_maladaar()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_exarch_maladaar";
|
||||
newscript->GetAI = GetAI_boss_exarch_maladaar;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="mob_avatar_of_martyred";
|
||||
newscript->GetAI = GetAI_mob_avatar_of_martyred;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="mob_stolen_soul";
|
||||
newscript->GetAI = GetAI_mob_stolen_soul;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
+2
-2
@@ -271,10 +271,10 @@ void AddSC_boss_nexusprince_shaffar()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_nexusprince_shaffar";
|
||||
newscript->GetAI = GetAI_boss_nexusprince_shaffar;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="mob_ethereal_beacon";
|
||||
newscript->GetAI = GetAI_mob_ethereal_beacon;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -134,5 +134,5 @@ void AddSC_boss_pandemonius()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_pandemonius";
|
||||
newscript->GetAI = GetAI_boss_pandemonius;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
+5
-5
@@ -392,25 +392,25 @@ void AddSC_boss_darkweaver_syth()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_darkweaver_syth";
|
||||
newscript->GetAI = GetAI_boss_darkweaver_syth;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="mob_syth_fire";
|
||||
newscript->GetAI = GetAI_mob_syth_arcane;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="mob_syth_arcane";
|
||||
newscript->GetAI = GetAI_mob_syth_arcane;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="mob_syth_frost";
|
||||
newscript->GetAI = GetAI_mob_syth_frost;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="mob_syth_shadow";
|
||||
newscript->GetAI = GetAI_mob_syth_shadow;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
+1
-1
@@ -219,5 +219,5 @@ void AddSC_boss_talon_king_ikiss()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_talon_king_ikiss";
|
||||
newscript->GetAI = GetAI_boss_talon_king_ikiss;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
+1
-1
@@ -70,5 +70,5 @@ void AddSC_instance_sethekk_halls()
|
||||
newscript = new Script;
|
||||
newscript->Name = "instance_sethekk_halls";
|
||||
newscript->GetInstanceData = GetInstanceData_instance_sethekk_halls;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
+1
-1
@@ -194,5 +194,5 @@ void AddSC_boss_ambassador_hellmaw()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_ambassador_hellmaw";
|
||||
newscript->GetAI = GetAI_boss_ambassador_hellmaw;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
+1
-1
@@ -173,5 +173,5 @@ void AddSC_boss_blackheart_the_inciter()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_blackheart_the_inciter";
|
||||
newscript->GetAI = GetAI_boss_blackheart_the_inciter;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
+3
-14
@@ -220,18 +220,7 @@ struct TRINITY_DLL_DECL boss_grandmaster_vorpilAI : public ScriptedAI
|
||||
|
||||
if ( DrawnShadows_Timer < diff)
|
||||
{
|
||||
Map *map = m_creature->GetMap();
|
||||
if(map->IsDungeon())
|
||||
{
|
||||
InstanceMap::PlayerList const &PlayerList = ((InstanceMap*)map)->GetPlayers();
|
||||
for (InstanceMap::PlayerList::const_iterator i = PlayerList.begin(); i != PlayerList.end(); ++i)
|
||||
{
|
||||
if((*i)->isAlive())
|
||||
{
|
||||
(*i)->TeleportTo(555,VorpilPosition[0][0],VorpilPosition[0][1],VorpilPosition[0][2],0);
|
||||
}
|
||||
}
|
||||
}
|
||||
DoTeleportAll(VorpilPosition[0][0],VorpilPosition[0][1],VorpilPosition[0][2],0);
|
||||
m_creature->Relocate(VorpilPosition[0][0],VorpilPosition[0][1],VorpilPosition[0][2],0);
|
||||
DoCast(m_creature,SPELL_DRAWN_SHADOWS,true);
|
||||
|
||||
@@ -374,10 +363,10 @@ void AddSC_boss_grandmaster_vorpil()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_grandmaster_vorpil";
|
||||
newscript->GetAI = GetAI_boss_grandmaster_vorpil;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="mob_voidtraveler";
|
||||
newscript->GetAI = GetAI_mob_voidtraveler;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -148,5 +148,5 @@ void AddSC_boss_murmur()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_murmur";
|
||||
newscript->GetAI = GetAI_boss_murmur;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
+1
-1
@@ -174,5 +174,5 @@ void AddSC_instance_shadow_labyrinth()
|
||||
newscript = new Script;
|
||||
newscript->Name = "instance_shadow_labyrinth";
|
||||
newscript->GetInstanceData = GetInstanceData_instance_shadow_labyrinth;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -492,23 +492,23 @@ void AddSC_azshara()
|
||||
newscript = new Script;
|
||||
newscript->Name="mobs_spitelashes";
|
||||
newscript->GetAI = GetAI_mobs_spitelashes;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="npc_loramus_thalipedes";
|
||||
newscript->pGossipHello = &GossipHello_npc_loramus_thalipedes;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_loramus_thalipedes;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="mob_rizzle_sprysprocket";
|
||||
newscript->GetAI = GetAI_mob_rizzle_sprysprocket;
|
||||
newscript->pGossipHello = &GossipHello_mob_rizzle_sprysprocket;
|
||||
newscript->pGossipSelect = &GossipSelect_mob_rizzle_sprysprocket;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="mob_depth_charge";
|
||||
newscript->GetAI = GetAI_mob_depth_charge;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -149,5 +149,5 @@ void AddSC_boss_azuregos()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_azuregos";
|
||||
newscript->GetAI = GetAI_boss_azuregos;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -350,23 +350,23 @@ void AddSC_azuremyst_isle()
|
||||
newscript = new Script;
|
||||
newscript->Name="npc_draenei_survivor";
|
||||
newscript->GetAI = GetAI_npc_draenei_survivor;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="npc_engineer_spark_overgrind";
|
||||
newscript->GetAI = GetAI_npc_engineer_spark_overgrind;
|
||||
newscript->pGossipHello = &GossipHello_npc_engineer_spark_overgrind;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_engineer_spark_overgrind;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="npc_injured_draenei";
|
||||
newscript->GetAI = GetAI_npc_injured_draenei;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="npc_susurrus";
|
||||
newscript->pGossipHello = &GossipHello_npc_susurrus;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_susurrus;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -369,22 +369,22 @@ void AddSC_the_barrens()
|
||||
newscript->Name="npc_beaten_corpse";
|
||||
newscript->pGossipHello = &GossipHello_npc_beaten_corpse;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_beaten_corpse;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="npc_sputtervalve";
|
||||
newscript->pGossipHello = &GossipHello_npc_sputtervalve;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_sputtervalve;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="npc_taskmaster_fizzule";
|
||||
newscript->GetAI = GetAI_npc_taskmaster_fizzule;
|
||||
newscript->pReceiveEmote = &ReciveEmote_npc_taskmaster_fizzule;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="npc_twiggy_flathead";
|
||||
newscript->GetAI = GetAI_npc_twiggy_flathead;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -64,5 +64,5 @@ void AddSC_black_temple()
|
||||
newscript->Name = "npc_spirit_of_olum";
|
||||
newscript->pGossipHello = GossipHello_npc_spirit_of_olum;
|
||||
newscript->pGossipSelect = GossipSelect_npc_spirit_of_olum;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -361,5 +361,5 @@ void AddSC_boss_gurtogg_bloodboil()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_gurtogg_bloodboil";
|
||||
newscript->GetAI = GetAI_boss_gurtogg_bloodboil;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -2247,52 +2247,52 @@ void AddSC_boss_illidan()
|
||||
newscript = new Script;
|
||||
newscript->Name = "boss_illidan_stormrage";
|
||||
newscript->GetAI = GetAI_boss_illidan_stormrage;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "npc_akama_illidan";
|
||||
newscript->GetAI = GetAI_npc_akama_at_illidan;
|
||||
newscript->pGossipHello = GossipHello_npc_akama_at_illidan;
|
||||
newscript->pGossipSelect = GossipSelect_npc_akama_at_illidan;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "boss_maiev_shadowsong";
|
||||
newscript->GetAI = GetAI_boss_maiev;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "mob_flame_of_azzinoth";
|
||||
newscript->GetAI = GetAI_mob_flame_of_azzinoth;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "mob_blade_of_azzinoth";
|
||||
newscript->GetAI = GetAI_blade_of_azzinoth;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "gameobject_cage_trap";
|
||||
newscript->pGOHello = GOHello_cage_trap;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="mob_cage_trap_trigger";
|
||||
newscript->GetAI = &GetAI_cage_trap_trigger;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "mob_shadow_demon";
|
||||
newscript->GetAI = GetAI_shadow_demon;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="mob_demon_fire";
|
||||
newscript->GetAI = GetAI_demonfire;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "mob_parasitic_shadowfiend";
|
||||
newscript->GetAI = GetAI_parasitic_shadowfiend;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -357,5 +357,5 @@ void AddSC_boss_mother_shahraz()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_mother_shahraz";
|
||||
newscript->GetAI = GetAI_boss_shahraz;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -723,25 +723,25 @@ void AddSC_boss_reliquary_of_souls()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_reliquary_of_souls";
|
||||
newscript->GetAI = GetAI_boss_reliquary_of_souls;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_essence_of_suffering";
|
||||
newscript->GetAI = GetAI_boss_essence_of_suffering;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_essence_of_desire";
|
||||
newscript->GetAI = GetAI_boss_essence_of_desire;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_essence_of_anger";
|
||||
newscript->GetAI = GetAI_boss_essence_of_anger;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="npc_enslaved_soul";
|
||||
newscript->GetAI = GetAI_npc_enslaved_soul;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -796,22 +796,22 @@ void AddSC_boss_shade_of_akama()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_shade_of_akama";
|
||||
newscript->GetAI = GetAI_boss_shade_of_akama;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="mob_ashtongue_channeler";
|
||||
newscript->GetAI = GetAI_mob_ashtongue_channeler;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="mob_ashtongue_sorcerer";
|
||||
newscript->GetAI = GetAI_mob_ashtongue_sorcerer;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="npc_akama_shade";
|
||||
newscript->GetAI = GetAI_npc_akama_shade;
|
||||
newscript->pGossipHello = &GossipHello_npc_akama;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_akama;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -236,10 +236,10 @@ void AddSC_boss_supremus()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_supremus";
|
||||
newscript->GetAI = GetAI_boss_supremus;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="molten_flame";
|
||||
newscript->GetAI = GetAI_molten_flame;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -575,15 +575,15 @@ void AddSC_boss_teron_gorefiend()
|
||||
newscript = new Script;
|
||||
newscript->Name = "mob_doom_blossom";
|
||||
newscript->GetAI = GetAI_mob_doom_blossom;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "mob_shadowy_construct";
|
||||
newscript->GetAI = GetAI_mob_shadowy_construct;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_teron_gorefiend";
|
||||
newscript->GetAI = GetAI_boss_teron_gorefiend;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -258,10 +258,10 @@ void AddSC_boss_najentus()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_najentus";
|
||||
newscript->GetAI = GetAI_boss_najentus;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "go_najentus_spine";
|
||||
newscript->pGOHello = &GOHello_go_najentus_spine;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -855,30 +855,30 @@ void AddSC_boss_illidari_council()
|
||||
newscript = new Script;
|
||||
newscript->Name="mob_illidari_council";
|
||||
newscript->GetAI = GetAI_mob_illidari_council;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "mob_blood_elf_council_voice_trigger";
|
||||
newscript->GetAI = GetAI_mob_blood_elf_council_voice_trigger;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_gathios_the_shatterer";
|
||||
newscript->GetAI = GetAI_boss_gathios_the_shatterer;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_lady_malande";
|
||||
newscript->GetAI = GetAI_boss_lady_malande;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_veras_darkshadow";
|
||||
newscript->GetAI = GetAI_boss_veras_darkshadow;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_high_nethermancer_zerevor";
|
||||
newscript->GetAI = GetAI_boss_high_nethermancer_zerevor;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -332,5 +332,5 @@ void AddSC_instance_black_temple()
|
||||
newscript = new Script;
|
||||
newscript->Name = "instance_black_temple";
|
||||
newscript->GetInstanceData = GetInstanceData_instance_black_temple;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -221,17 +221,17 @@ void AddSC_blackrock_depths()
|
||||
newscript = new Script;
|
||||
newscript->Name="phalanx";
|
||||
newscript->GetAI = GetAI_mob_phalanx;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="npc_kharan_mighthammer";
|
||||
newscript->pGossipHello = &GossipHello_npc_kharan_mighthammer;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_kharan_mighthammer;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="npc_lokhtos_darkbargainer";
|
||||
newscript->pGossipHello = &GossipHello_npc_lokhtos_darkbargainer;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_lokhtos_darkbargainer;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -102,5 +102,5 @@ void AddSC_boss_ambassador_flamelash()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_ambassador_flamelash";
|
||||
newscript->GetAI = GetAI_boss_ambassador_flamelash;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -87,5 +87,5 @@ void AddSC_boss_angerrel()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_angerrel";
|
||||
newscript->GetAI = GetAI_boss_angerrel;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -111,5 +111,5 @@ void AddSC_boss_anubshiah()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_anubshiah";
|
||||
newscript->GetAI = GetAI_boss_anubshiah;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -135,5 +135,5 @@ void AddSC_boss_doomrel()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_doomrel";
|
||||
newscript->GetAI = GetAI_boss_doomrel;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -87,5 +87,5 @@ void AddSC_boss_doperel()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_doperel";
|
||||
newscript->GetAI = GetAI_boss_doperel;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
+1
-1
@@ -100,5 +100,5 @@ void AddSC_boss_draganthaurissan()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_emperor_dagran_thaurissan";
|
||||
newscript->GetAI = GetAI_boss_draganthaurissan;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -163,5 +163,5 @@ void AddSC_boss_general_angerforge()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_general_angerforge";
|
||||
newscript->GetAI = GetAI_boss_general_angerforge;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -138,5 +138,5 @@ void AddSC_boss_gloomrel()
|
||||
newscript->GetAI = GetAI_boss_gloomrel;
|
||||
newscript->pGossipHello = &GossipHello_boss_gloomrel;
|
||||
newscript->pGossipSelect = &GossipSelect_boss_gloomrel;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -77,5 +77,5 @@ void AddSC_boss_gorosh_the_dervish()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_gorosh_the_dervish";
|
||||
newscript->GetAI = GetAI_boss_gorosh_the_dervish;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -82,5 +82,5 @@ void AddSC_boss_grizzle()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_grizzle";
|
||||
newscript->GetAI = GetAI_boss_grizzle;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -101,5 +101,5 @@ void AddSC_boss_haterel()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_haterel";
|
||||
newscript->GetAI = GetAI_boss_haterel;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
+1
-1
@@ -101,5 +101,5 @@ void AddSC_boss_high_interrogator_gerstahn()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_high_interrogator_gerstahn";
|
||||
newscript->GetAI = GetAI_boss_high_interrogator_gerstahn;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -80,5 +80,5 @@ void AddSC_boss_magmus()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_magmus";
|
||||
newscript->GetAI = GetAI_boss_magmus;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -95,5 +95,5 @@ void AddSC_boss_moira_bronzebeard()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_moira_bronzebeard";
|
||||
newscript->GetAI = GetAI_boss_moira_bronzebeard;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -111,5 +111,5 @@ void AddSC_boss_seethrel()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_seethrel";
|
||||
newscript->GetAI = GetAI_boss_seethrel;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -97,5 +97,5 @@ void AddSC_boss_vilerel()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_vilerel";
|
||||
newscript->GetAI = GetAI_boss_vilerel;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -97,5 +97,5 @@ void AddSC_boss_drakkisath()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_drakkisath";
|
||||
newscript->GetAI = GetAI_boss_drakkisath;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -201,5 +201,5 @@ void AddSC_boss_gyth()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_gyth";
|
||||
newscript->GetAI = GetAI_boss_gyth;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -91,5 +91,5 @@ void AddSC_boss_halycon()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_halycon";
|
||||
newscript->GetAI = GetAI_boss_halycon;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -127,5 +127,5 @@ void AddSC_boss_highlordomokk()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_highlord_omokk";
|
||||
newscript->GetAI = GetAI_boss_highlordomokk;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -82,5 +82,5 @@ void AddSC_boss_mothersmolderweb()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_mother_smolderweb";
|
||||
newscript->GetAI = GetAI_boss_mothersmolderweb;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -123,5 +123,5 @@ void AddSC_boss_overlordwyrmthalak()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_overlord_wyrmthalak";
|
||||
newscript->GetAI = GetAI_boss_overlordwyrmthalak;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -89,5 +89,5 @@ void AddSC_boss_pyroguard_emberseer()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_pyroguard_emberseer";
|
||||
newscript->GetAI = GetAI_boss_pyroguard_emberseer;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -81,5 +81,5 @@ void AddSC_boss_quatermasterzigris()
|
||||
newscript = new Script;
|
||||
newscript->Name="quartermaster_zigris";
|
||||
newscript->GetAI = GetAI_boss_quatermasterzigris;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -87,5 +87,5 @@ void AddSC_boss_rend_blackhand()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_rend_blackhand";
|
||||
newscript->GetAI = GetAI_boss_rend_blackhand;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -91,5 +91,5 @@ void AddSC_boss_shadowvosh()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_shadow_hunter_voshgajin";
|
||||
newscript->GetAI = GetAI_boss_shadowvosh;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -89,5 +89,5 @@ void AddSC_boss_thebeast()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_the_beast";
|
||||
newscript->GetAI = GetAI_boss_thebeast;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -117,5 +117,5 @@ void AddSC_boss_warmastervoone()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_warmaster_voone";
|
||||
newscript->GetAI = GetAI_boss_warmastervoone;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -124,5 +124,5 @@ void AddSC_boss_broodlord()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_broodlord";
|
||||
newscript->GetAI = GetAI_boss_broodlord;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -310,5 +310,5 @@ void AddSC_boss_chromaggus()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_chromaggus";
|
||||
newscript->GetAI = GetAI_boss_chromaggus;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -99,5 +99,5 @@ void AddSC_boss_ebonroc()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_ebonroc";
|
||||
newscript->GetAI = GetAI_boss_ebonroc;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -90,5 +90,5 @@ void AddSC_boss_firemaw()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_firemaw";
|
||||
newscript->GetAI = GetAI_boss_firemaw;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -90,5 +90,5 @@ void AddSC_boss_flamegor()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_flamegor";
|
||||
newscript->GetAI = GetAI_boss_flamegor;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -223,5 +223,5 @@ void AddSC_boss_nefarian()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_nefarian";
|
||||
newscript->GetAI = GetAI_boss_nefarian;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -127,5 +127,5 @@ void AddSC_boss_razorgore()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_razorgore";
|
||||
newscript->GetAI = GetAI_boss_razorgore;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -257,5 +257,5 @@ void AddSC_boss_vael()
|
||||
newscript->GetAI = GetAI_boss_vael;
|
||||
newscript->pGossipHello = &GossipHello_boss_vael;
|
||||
newscript->pGossipSelect = &GossipSelect_boss_vael;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -390,5 +390,5 @@ void AddSC_boss_victor_nefarius()
|
||||
newscript->GetAI = GetAI_boss_victor_nefarius;
|
||||
newscript->pGossipHello = &GossipHello_boss_victor_nefarius;
|
||||
newscript->pGossipSelect = &GossipSelect_boss_victor_nefarius;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -406,33 +406,33 @@ void AddSC_blades_edge_mountains()
|
||||
newscript = new Script;
|
||||
newscript->Name="mobs_bladespire_ogre";
|
||||
newscript->GetAI = GetAI_mobs_bladespire_ogre;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="mobs_nether_drake";
|
||||
newscript->GetAI = GetAI_mobs_nether_drake;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="npc_daranelle";
|
||||
newscript->GetAI = GetAI_npc_daranelle;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="npc_overseer_nuaar";
|
||||
newscript->pGossipHello = &GossipHello_npc_overseer_nuaar;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_overseer_nuaar;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="npc_saikkal_the_elder";
|
||||
newscript->pGossipHello = &GossipHello_npc_saikkal_the_elder;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_saikkal_the_elder;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="npc_skyguard_handler_irena";
|
||||
newscript->pGossipHello = &GossipHello_npc_skyguard_handler_irena;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_skyguard_handler_irena;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -149,11 +149,11 @@ void AddSC_blasted_lands()
|
||||
newscript->Name="npc_deathly_usher";
|
||||
newscript->pGossipHello = &GossipHello_npc_deathly_usher;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_deathly_usher;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="npc_fallen_hero_of_horde";
|
||||
newscript->pGossipHello = &GossipHello_npc_fallen_hero_of_horde;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_fallen_hero_of_horde;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -178,5 +178,5 @@ void AddSC_boss_kruul()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_kruul";
|
||||
newscript->GetAI = GetAI_boss_kruul;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -131,11 +131,11 @@ void AddSC_bloodmyst_isle()
|
||||
newscript = new Script;
|
||||
newscript->Name="mob_webbed_creature";
|
||||
newscript->GetAI = GetAI_mob_webbed_creature;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name="npc_captured_sunhawk_agent";
|
||||
newscript->pGossipHello = &GossipHello_npc_captured_sunhawk_agent;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_captured_sunhawk_agent;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -147,5 +147,5 @@ void AddSC_burning_steppes()
|
||||
newscript->GetAI = GetAI_npc_ragged_john;
|
||||
newscript->pGossipHello = &GossipHello_npc_ragged_john;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_ragged_john;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -117,5 +117,5 @@ void AddSC_boss_aeonus()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_aeonus";
|
||||
newscript->GetAI = GetAI_boss_aeonus;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
+1
-1
@@ -105,5 +105,5 @@ void AddSC_boss_chrono_lord_deja()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_chrono_lord_deja";
|
||||
newscript->GetAI = GetAI_boss_chrono_lord_deja;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -139,5 +139,5 @@ void AddSC_boss_temporus()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_temporus";
|
||||
newscript->GetAI = GetAI_boss_temporus;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -769,20 +769,20 @@ void AddSC_boss_archimonde()
|
||||
newscript = new Script;
|
||||
newscript->Name="boss_archimonde";
|
||||
newscript->GetAI = GetAI_boss_archimonde;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "mob_doomfire";
|
||||
newscript->GetAI = GetAI_mob_doomfire;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "mob_doomfire_targetting";
|
||||
newscript->GetAI = GetAI_mob_doomfire_targetting;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "mob_ancient_wisp";
|
||||
newscript->GetAI = GetAI_mob_ancient_wisp;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
@@ -200,18 +200,18 @@ void AddSC_hyjal()
|
||||
newscript->GetAI = GetAI_npc_jaina_proudmoore;
|
||||
newscript->pGossipHello = &GossipHello_npc_jaina_proudmoore;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_jaina_proudmoore;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "npc_thrall";
|
||||
newscript->GetAI = GetAI_npc_thrall;
|
||||
newscript->pGossipHello = &GossipHello_npc_thrall;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_thrall;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "npc_tyrande_whisperwind";
|
||||
newscript->pGossipHello = &GossipHello_npc_tyrande_whisperwind;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_tyrande_whisperwind;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user