[svn] * Updated to 6743 and 685
Moved language id used by Arena to a higher place to solve conflicts Added the empty script folders --HG-- branch : trunk rename : 6731-680 => 6743-685
This commit is contained in:
+2135
-2105
File diff suppressed because it is too large
Load Diff
@@ -1,94 +1,88 @@
|
||||
/* Copyright (C) 2006 - 2008 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
|
||||
* This program is free software licensed under GPL version 2
|
||||
* Please see the included DOCS/LICENSE.TXT for more information */
|
||||
|
||||
#ifndef SCRIPTMGR_H
|
||||
#define SCRIPTMGR_H
|
||||
|
||||
#include "Common.h"
|
||||
#include "Platform/CompilerDefs.h"
|
||||
#include "Database/DBCStructure.h"
|
||||
|
||||
class Player;
|
||||
class Creature;
|
||||
class CreatureAI;
|
||||
class InstanceData;
|
||||
class Quest;
|
||||
class Item;
|
||||
class GameObject;
|
||||
class SpellCastTargets;
|
||||
class Map;
|
||||
class Unit;
|
||||
class WorldObject;
|
||||
|
||||
#define MAX_SCRIPTS 1000 //72 bytes each (approx 71kb)
|
||||
|
||||
//MAX visible range (size of grid)
|
||||
#define VISIBLE_RANGE (166.0f)
|
||||
|
||||
#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)
|
||||
{}
|
||||
|
||||
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& );
|
||||
|
||||
CreatureAI* (*GetAI)(Creature*);
|
||||
InstanceData* (*GetInstanceData)(Map*);
|
||||
// -----------------------------------------
|
||||
};
|
||||
|
||||
extern int nrscripts;
|
||||
extern Script *m_scripts[MAX_SCRIPTS];
|
||||
|
||||
// Localized Text function
|
||||
const char* GetEventAILocalizedText(uint32 entry);
|
||||
const char* GetScriptLocalizedText(uint32 entry);
|
||||
|
||||
//EventAI text function
|
||||
const char* GetEventAIText(uint32 entry); // TODO: Locales
|
||||
|
||||
// Script Text function
|
||||
void ProcessScriptText(uint32 id, WorldObject* pSource, Unit* target = NULL); // TODO: Locales
|
||||
|
||||
#if COMPILER == COMPILER_GNU
|
||||
#define FUNC_PTR(name,callconvention,returntype,parameters) typedef returntype(*name)parameters __attribute__ ((callconvention));
|
||||
#else
|
||||
#define FUNC_PTR(name, callconvention, returntype, parameters) typedef returntype(callconvention *name)parameters;
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
#define MANGOS_DLL_EXPORT extern "C" __declspec(dllexport)
|
||||
#elif defined( __GNUC__ )
|
||||
#define MANGOS_DLL_EXPORT extern "C"
|
||||
#else
|
||||
#define MANGOS_DLL_EXPORT extern "C" export
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/* Copyright (C) 2006 - 2008 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
|
||||
* This program is free software licensed under GPL version 2
|
||||
* Please see the included DOCS/LICENSE.TXT for more information */
|
||||
|
||||
#ifndef SCRIPTMGR_H
|
||||
#define SCRIPTMGR_H
|
||||
|
||||
#include "Common.h"
|
||||
#include "Platform/CompilerDefs.h"
|
||||
#include "Database/DBCStructure.h"
|
||||
|
||||
class Player;
|
||||
class Creature;
|
||||
class CreatureAI;
|
||||
class InstanceData;
|
||||
class Quest;
|
||||
class Item;
|
||||
class GameObject;
|
||||
class SpellCastTargets;
|
||||
class Map;
|
||||
class Unit;
|
||||
class WorldObject;
|
||||
|
||||
#define MAX_SCRIPTS 1000 //72 bytes each (approx 71kb)
|
||||
#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)
|
||||
{}
|
||||
|
||||
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& );
|
||||
|
||||
CreatureAI* (*GetAI)(Creature*);
|
||||
InstanceData* (*GetInstanceData)(Map*);
|
||||
};
|
||||
|
||||
extern int nrscripts;
|
||||
extern Script *m_scripts[MAX_SCRIPTS];
|
||||
|
||||
// Localized Text function
|
||||
const char* GetEventAILocalizedText(uint32 entry);
|
||||
|
||||
//EventAI text function
|
||||
const char* GetEventAIText(uint32 entry); // TODO: Locales
|
||||
|
||||
//Generic scripting text function
|
||||
void DoScriptText(int32 textEntry, WorldObject* pSource, Unit* target = NULL);
|
||||
|
||||
#if COMPILER == COMPILER_GNU
|
||||
#define FUNC_PTR(name,callconvention,returntype,parameters) typedef returntype(*name)parameters __attribute__ ((callconvention));
|
||||
#else
|
||||
#define FUNC_PTR(name, callconvention, returntype, parameters) typedef returntype(callconvention *name)parameters;
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
#define MANGOS_DLL_EXPORT extern "C" __declspec(dllexport)
|
||||
#elif defined( __GNUC__ )
|
||||
#define MANGOS_DLL_EXPORT extern "C"
|
||||
#else
|
||||
#define MANGOS_DLL_EXPORT extern "C" export
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -399,7 +399,7 @@ struct MANGOS_DLL_DECL boss_malchezaarAI : public ScriptedAI
|
||||
EnfeebleResetTimer=0;
|
||||
}else EnfeebleResetTimer -= diff;
|
||||
|
||||
if(m_creature->hasUnitState(UNIT_STAT_STUNDED)) //While shifting to phase 2 malchezaar stuns himself
|
||||
if(m_creature->hasUnitState(UNIT_STAT_STUNNED)) //While shifting to phase 2 malchezaar stuns himself
|
||||
return;
|
||||
|
||||
if(m_creature->GetUInt64Value(UNIT_FIELD_TARGET)!=m_creature->getVictim()->GetGUID())
|
||||
|
||||
@@ -1002,7 +1002,7 @@ struct MANGOS_DLL_DECL boss_garaxxasAI : public boss_priestess_guestAI
|
||||
Freezing_Trap_Timer = 30000;
|
||||
}else Freezing_Trap_Timer -= diff;
|
||||
|
||||
if(!m_creature->getVictim()->hasUnitState(UNIT_STAT_STUNDED | UNIT_STAT_ROOT | UNIT_STAT_CONFUSED | UNIT_STAT_DISTRACTED))
|
||||
if(!m_creature->getVictim()->hasUnitState(UNIT_STAT_STUNNED | UNIT_STAT_ROOT | UNIT_STAT_CONFUSED | UNIT_STAT_DISTRACTED))
|
||||
DoMeleeAttackIfReady();
|
||||
}else
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
/* ScriptData
|
||||
SDName: Boss_Selin_Fireheart
|
||||
SD%Complete: 99
|
||||
SD%Complete: 90
|
||||
SDComment: Heroic and Normal Support. Needs further testing.
|
||||
SDCategory: Magister's Terrace
|
||||
EndScriptData */
|
||||
@@ -73,7 +73,7 @@ struct MANGOS_DLL_DECL boss_selin_fireheartAI : public ScriptedAI
|
||||
for(uint8 i = 0; i < size; ++i)
|
||||
{
|
||||
uint64 guid = pInstance->GetData64(DATA_FEL_CRYSTAL);
|
||||
outstring_log("Selin: Adding Fel Crystal %u to list", guid);
|
||||
debug_log("SD2: Selin: Adding Fel Crystal %u to list", guid);
|
||||
Crystals.push_back(guid);
|
||||
}
|
||||
}
|
||||
@@ -116,9 +116,9 @@ struct MANGOS_DLL_DECL boss_selin_fireheartAI : public ScriptedAI
|
||||
}
|
||||
|
||||
GameObject* Door = GameObject::GetGameObject(*m_creature, pInstance->GetData64(DATA_SELIN_ENCOUNTER_DOOR));
|
||||
if(Door)
|
||||
Door->SetGoState(0); // Close the door. Open it only in JustDied.
|
||||
|
||||
if( Door )
|
||||
Door->SetGoState(0); // Open the big encounter door. Close it in Aggro and open it only in JustDied(and here)
|
||||
// Small door opened after event are expected to be closed by default
|
||||
// Set Inst data for encounter
|
||||
pInstance->SetData(DATA_SELIN_EVENT, NOT_STARTED);
|
||||
}else error_log(ERROR_INST_DATA);
|
||||
@@ -160,10 +160,11 @@ struct MANGOS_DLL_DECL boss_selin_fireheartAI : public ScriptedAI
|
||||
}
|
||||
}
|
||||
}
|
||||
if(CrystalChosen)
|
||||
if( CrystalChosen )
|
||||
{
|
||||
DoYell(SAY_ENERGY, LANG_UNIVERSAL, NULL);
|
||||
DoPlaySoundToSet(m_creature, SOUND_ENERGY);
|
||||
|
||||
CrystalChosen->CastSpell(CrystalChosen, SPELL_FEL_CRYSTAL_COSMETIC, true);
|
||||
|
||||
float x, y, z; // coords that we move to, close to the crystal.
|
||||
@@ -185,7 +186,7 @@ struct MANGOS_DLL_DECL boss_selin_fireheartAI : public ScriptedAI
|
||||
{
|
||||
//Creature* pCrystal = ((Creature*)Unit::GetUnit(*m_creature, FelCrystals[i]));
|
||||
Creature* pCrystal = ((Creature*)Unit::GetUnit(*m_creature, *itr));
|
||||
if(pCrystal && pCrystal->isAlive())
|
||||
if( pCrystal && pCrystal->isAlive())
|
||||
pCrystal->DealDamage(pCrystal, pCrystal->GetHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false);
|
||||
}
|
||||
}
|
||||
@@ -194,6 +195,13 @@ struct MANGOS_DLL_DECL boss_selin_fireheartAI : public ScriptedAI
|
||||
{
|
||||
DoYell(SAY_AGGRO, LANG_UNIVERSAL, NULL);
|
||||
DoPlaySoundToSet(m_creature, SOUND_AGGRO);
|
||||
|
||||
if( pInstance )
|
||||
{
|
||||
GameObject* EncounterDoor = GameObject::GetGameObject(*m_creature, pInstance->GetData64(DATA_SELIN_ENCOUNTER_DOOR));
|
||||
if( EncounterDoor )
|
||||
EncounterDoor->SetGoState(1); //Close the encounter door, open it in JustDied/Reset
|
||||
}
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* victim)
|
||||
@@ -245,9 +253,14 @@ struct MANGOS_DLL_DECL boss_selin_fireheartAI : public ScriptedAI
|
||||
}
|
||||
|
||||
pInstance->SetData(DATA_SELIN_EVENT, DONE); // Encounter complete!
|
||||
|
||||
GameObject* EncounterDoor = GameObject::GetGameObject((*m_creature), pInstance->GetData64(DATA_SELIN_ENCOUNTER_DOOR));
|
||||
if(EncounterDoor)
|
||||
EncounterDoor->SetGoState(1); // Open the door
|
||||
if( EncounterDoor )
|
||||
EncounterDoor->SetGoState(0); // Open the encounter door
|
||||
|
||||
GameObject* ContinueDoor = GameObject::GetGameObject(*m_creature, pInstance->GetData64(DATA_SELIN_DOOR));
|
||||
if( ContinueDoor )
|
||||
ContinueDoor->SetGoState(0); // Open the door leading further in
|
||||
|
||||
ShatterRemainingCrystals();
|
||||
}
|
||||
@@ -302,23 +315,27 @@ struct MANGOS_DLL_DECL boss_selin_fireheartAI : public ScriptedAI
|
||||
|
||||
}else
|
||||
{
|
||||
if(IsDraining)
|
||||
if(EmpowerTimer < diff)
|
||||
if( IsDraining )
|
||||
{
|
||||
IsDraining = false;
|
||||
DrainingCrystal = false;
|
||||
DoYell(SAY_EMPOWERED, LANG_UNIVERSAL, NULL);
|
||||
DoPlaySoundToSet(m_creature, SOUND_EMPOWERED);
|
||||
Unit* CrystalChosen = Unit::GetUnit(*m_creature, CrystalGUID);
|
||||
if(CrystalChosen && CrystalChosen->isAlive())
|
||||
// Use Deal Damage to kill it, not setDeathState.
|
||||
CrystalChosen->DealDamage(CrystalChosen, CrystalChosen->GetHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false);
|
||||
if( EmpowerTimer < diff )
|
||||
{
|
||||
IsDraining = false;
|
||||
DrainingCrystal = false;
|
||||
|
||||
CrystalGUID = 0;
|
||||
DoYell(SAY_EMPOWERED, LANG_UNIVERSAL, NULL);
|
||||
DoPlaySoundToSet(m_creature, SOUND_EMPOWERED);
|
||||
|
||||
m_creature->GetMotionMaster()->Clear();
|
||||
m_creature->GetMotionMaster()->MoveChase(m_creature->getVictim());
|
||||
}else EmpowerTimer -= diff;
|
||||
Unit* CrystalChosen = Unit::GetUnit(*m_creature, CrystalGUID);
|
||||
if( CrystalChosen && CrystalChosen->isAlive() )
|
||||
// Use Deal Damage to kill it, not setDeathState.
|
||||
CrystalChosen->DealDamage(CrystalChosen, CrystalChosen->GetHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false);
|
||||
|
||||
CrystalGUID = 0;
|
||||
|
||||
m_creature->GetMotionMaster()->Clear();
|
||||
m_creature->GetMotionMaster()->MoveChase(m_creature->getVictim());
|
||||
}else EmpowerTimer -= diff;
|
||||
}
|
||||
}
|
||||
|
||||
DoMeleeAttackIfReady(); // No need to check if we are draining crystal here, as the spell has a stun.
|
||||
|
||||
+19
-23
@@ -16,7 +16,7 @@
|
||||
|
||||
/* ScriptData
|
||||
SDName: Instance_Magisters_Terrace
|
||||
SD%Complete: 100
|
||||
SD%Complete: 60
|
||||
SDComment: Designed only for Selin Fireheart
|
||||
SDCategory: Magister's Terrace
|
||||
EndScriptData */
|
||||
@@ -118,15 +118,24 @@ struct MANGOS_DLL_DECL instance_magisters_terrace : public ScriptedInstance
|
||||
{
|
||||
switch(entry)
|
||||
{
|
||||
case 24723:
|
||||
SelinGUID = creature->GetGUID();
|
||||
break;
|
||||
case 24560:
|
||||
DelrissaGUID = creature->GetGUID();
|
||||
break;
|
||||
case 24722:
|
||||
FelCrystals.push_back(creature->GetGUID());
|
||||
break;
|
||||
case 24723: SelinGUID = creature->GetGUID(); break;
|
||||
case 24560: DelrissaGUID = creature->GetGUID(); break;
|
||||
case 24722: FelCrystals.push_back(creature->GetGUID()); break;
|
||||
}
|
||||
}
|
||||
|
||||
void OnObjectCreate(GameObject* go)
|
||||
{
|
||||
switch(go->GetEntry())
|
||||
{
|
||||
case 187896: VexallusDoorGUID = go->GetGUID(); break;
|
||||
//SunwellRaid Gate 02
|
||||
case 187979: SelinDoorGUID = go->GetGUID(); break;
|
||||
//Assembly Chamber Door
|
||||
case 188065: SelinEncounterDoorGUID = go->GetGUID(); break;
|
||||
case 187770: DelrissaDoorGUID = go->GetGUID(); break;
|
||||
case 188165: KaelStatue[0] = go->GetGUID(); break;
|
||||
case 188166: KaelStatue[1] = go->GetGUID(); break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -164,19 +173,6 @@ struct MANGOS_DLL_DECL instance_magisters_terrace : public ScriptedInstance
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void OnObjectCreate(GameObject* go)
|
||||
{
|
||||
switch(go->GetEntry())
|
||||
{
|
||||
case 187896: VexallusDoorGUID = go->GetGUID(); break;
|
||||
case 187979: SelinDoorGUID = go->GetGUID(); break;
|
||||
case 188118: SelinEncounterDoorGUID = go->GetGUID(); break;
|
||||
case 187770: DelrissaDoorGUID = go->GetGUID(); break;
|
||||
case 188165: KaelStatue[0] = go->GetGUID(); break;
|
||||
case 188166: KaelStatue[1] = go->GetGUID(); break;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
InstanceData* GetInstanceData_instance_magisters_terrace(Map* map)
|
||||
|
||||
@@ -87,7 +87,7 @@ struct MANGOS_DLL_DECL boss_twinemperorsAI : public ScriptedAI
|
||||
AfterTeleportTimer = 0;
|
||||
Abuse_Bug_Timer = 10000 + rand()%7000;
|
||||
BugsTimer = 2000;
|
||||
m_creature->clearUnitState(UNIT_STAT_STUNDED);
|
||||
m_creature->clearUnitState(UNIT_STAT_STUNNED);
|
||||
DontYellWhenDead = false;
|
||||
EnrageTimer = 15*60000;
|
||||
}
|
||||
@@ -290,7 +290,7 @@ struct MANGOS_DLL_DECL boss_twinemperorsAI : public ScriptedAI
|
||||
DoStopAttack();
|
||||
DoResetThreat();
|
||||
DoCast(m_creature, SPELL_TWIN_TELEPORT_VISUAL);
|
||||
m_creature->addUnitState(UNIT_STAT_STUNDED);
|
||||
m_creature->addUnitState(UNIT_STAT_STUNNED);
|
||||
AfterTeleport = true;
|
||||
AfterTeleportTimer = 2000;
|
||||
tspellcasted = false;
|
||||
@@ -302,9 +302,9 @@ struct MANGOS_DLL_DECL boss_twinemperorsAI : public ScriptedAI
|
||||
{
|
||||
if (!tspellcasted)
|
||||
{
|
||||
m_creature->clearUnitState(UNIT_STAT_STUNDED);
|
||||
m_creature->clearUnitState(UNIT_STAT_STUNNED);
|
||||
DoCast(m_creature, SPELL_TWIN_TELEPORT);
|
||||
m_creature->addUnitState(UNIT_STAT_STUNDED);
|
||||
m_creature->addUnitState(UNIT_STAT_STUNNED);
|
||||
}
|
||||
|
||||
tspellcasted = true;
|
||||
@@ -312,7 +312,7 @@ struct MANGOS_DLL_DECL boss_twinemperorsAI : public ScriptedAI
|
||||
if (AfterTeleportTimer < diff)
|
||||
{
|
||||
AfterTeleport = false;
|
||||
m_creature->clearUnitState(UNIT_STAT_STUNDED);
|
||||
m_creature->clearUnitState(UNIT_STAT_STUNNED);
|
||||
Unit *nearu = PickNearestPlayer();
|
||||
//DoYell(nearu->GetName(), LANG_UNIVERSAL, 0);
|
||||
AttackStart(nearu);
|
||||
|
||||
@@ -73,31 +73,41 @@ PRIMARY KEY (`id`)
|
||||
|
||||
DROP TABLE IF EXISTS `script_texts`;
|
||||
CREATE TABLE `script_texts` (
|
||||
`id` int(11) unsigned NOT NULL auto_increment COMMENT 'Identifier',
|
||||
`sound` int(11) unsigned NOT NULL default '0',
|
||||
`type` int(11) unsigned NOT NULL default '0',
|
||||
`language` int(11) unsigned NOT NULL default '0',
|
||||
`text` varchar(255) NOT NULL default '',
|
||||
`comment` varchar(255) NOT NULL default '',
|
||||
PRIMARY KEY (`id`)
|
||||
`entry` mediumint(8) NOT NULL,
|
||||
`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,
|
||||
`sound` mediumint(8) unsigned NOT NULL default '0',
|
||||
`type` tinyint unsigned NOT NULL default '0',
|
||||
`language` tinyint unsigned NOT NULL default '0',
|
||||
`comment` text,
|
||||
PRIMARY KEY (`entry`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Script Texts';
|
||||
|
||||
|
||||
DROP TABLE IF EXISTS `script_localized_texts`;
|
||||
CREATE TABLE `script_localized_texts` (
|
||||
`id` int(11) unsigned NOT NULL auto_increment COMMENT 'Identifier',
|
||||
`locale_1` varchar(255) NOT NULL default '',
|
||||
`locale_2` varchar(255) NOT NULL default '',
|
||||
`locale_3` varchar(255) NOT NULL default '',
|
||||
`locale_4` varchar(255) NOT NULL default '',
|
||||
`locale_5` varchar(255) NOT NULL default '',
|
||||
`locale_6` varchar(255) NOT NULL default '',
|
||||
`locale_7` varchar(255) NOT NULL default '',
|
||||
`locale_8` varchar(255) NOT NULL default '',
|
||||
`comment` varchar(255) NOT NULL default '' COMMENT 'Text Comment',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Localized Script Text';
|
||||
|
||||
DROP TABLE IF EXISTS `custom_texts`;
|
||||
CREATE TABLE `custom_texts` (
|
||||
`entry` mediumint(8) NOT NULL,
|
||||
`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,
|
||||
`sound` mediumint(8) unsigned NOT NULL default '0',
|
||||
`type` tinyint unsigned NOT NULL default '0',
|
||||
`language` tinyint unsigned NOT NULL default '0',
|
||||
`comment` text,
|
||||
PRIMARY KEY (`entry`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Custom Texts';
|
||||
|
||||
DROP TABLE IF EXISTS `script_db_version`;
|
||||
CREATE TABLE `script_db_version` (
|
||||
|
||||
Reference in New Issue
Block a user