diff options
author | Blaymoira <none@none> | 2009-01-22 20:24:32 +0100 |
---|---|---|
committer | Blaymoira <none@none> | 2009-01-22 20:24:32 +0100 |
commit | 405b07855cc221c96fd910157acf19fbb9fc586e (patch) | |
tree | 7b1284affa55a1d283f6403a42819c6a514aded4 | |
parent | 8849fe2d65cb25b73d89aef7186ec076eef361ee (diff) |
*Converted texto to database in azshara
--HG--
branch : trunk
-rw-r--r-- | sql/updates/948_world_scripts.sql | 5 | ||||
-rw-r--r-- | sql/updates/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/bindings/scripts/scripts/zone/azshara/azshara.cpp | 21 |
3 files changed, 18 insertions, 9 deletions
diff --git a/sql/updates/948_world_scripts.sql b/sql/updates/948_world_scripts.sql new file mode 100644 index 00000000000..5f8f74cb5c0 --- /dev/null +++ b/sql/updates/948_world_scripts.sql @@ -0,0 +1,5 @@ +DELETE FROM script_texts WHERE entry BETWEEN -1000247 and -1000245; +INSERT INTO script_texts (entry, content_default, type, comment) VALUES +(-1000245, 'You, there! Hand over that moonstone and nobody gets hurt!', 1, 'SAY_RIZZLE_START'), +(-1000246, 'Just chill!', 4, 'SAY_RIZZLE_GRENADE'), +(-1000247, 'All right, you win! I surrender! Just don\'t hurt me!', 1, 'SAY_RIZZLE_FINAL');
\ No newline at end of file diff --git a/sql/updates/CMakeLists.txt b/sql/updates/CMakeLists.txt index c8bee248382..0fdd0e7640c 100644 --- a/sql/updates/CMakeLists.txt +++ b/sql/updates/CMakeLists.txt @@ -148,4 +148,5 @@ INSTALL(FILES 940_world_scripts.sql 945_world_scripts.sql 947_world_scripts.sql +948_world_scripts.sql DESTINATION share/trinity/sql/updates) diff --git a/src/bindings/scripts/scripts/zone/azshara/azshara.cpp b/src/bindings/scripts/scripts/zone/azshara/azshara.cpp index 972bb2b81d5..262754a0f92 100644 --- a/src/bindings/scripts/scripts/zone/azshara/azshara.cpp +++ b/src/bindings/scripts/scripts/zone/azshara/azshara.cpp @@ -154,6 +154,7 @@ bool GossipSelect_npc_loramus_thalipedes(Player *player, Creature *_Creature, ui /*#### # mob_rizzle_sprysprocket ####*/ + #define MOB_DEPTH_CHARGE 23025 #define SPELL_RIZZLE_BLACKJACK 39865 #define SPELL_RIZZLE_ESCAPE 39871 @@ -162,9 +163,12 @@ bool GossipSelect_npc_loramus_thalipedes(Player *player, Creature *_Creature, ui #define SPELL_PERIODIC_DEPTH_CHARGE 39912 #define SPELL_GIVE_SOUTHFURY_MOONSTONE 39886 -#define SAY_RIZZLE_START "You, there! Hand over that moonstone and nobody gets hurt!" -#define SAY_RIZZLE_GRENADE "Just chill!" -#define SAY_RIZZLE_FINAL "All right, you win! I surrender! Just don't hurt me!" +#define SAY_RIZZLE_START -1000245 +#define SAY_RIZZLE_GRENADE -1000246 +#define SAY_RIZZLE_FINAL -1000247 + +#define GOSSIP_GET_MOONSTONE "Hand over the Southfury moonstone and I'll let you go." + //next message must be send to player when Rizzle jump into river, not implemented #define MSG_ESCAPE_NOTICE "Rizzle Sprysprocket takes the Southfury moonstone and escapes into the river. Follow her!" @@ -231,7 +235,6 @@ float WPs[58][4] = {1873.57, -3695.32, 33.9118, 3.44} }; - struct TRINITY_DLL_DECL mob_rizzle_sprysprocketAI : public ScriptedAI { mob_rizzle_sprysprocketAI(Creature *c) : ScriptedAI(c) {Reset();} @@ -327,7 +330,7 @@ struct TRINITY_DLL_DECL mob_rizzle_sprysprocketAI : public ScriptedAI Player *player = (Player *)Unit::GetUnit((*m_creature), PlayerGUID); if(player) { - DoWhisper(SAY_RIZZLE_GRENADE, player); + DoScriptText(SAY_RIZZLE_GRENADE, m_creature, player); DoCast(player, SPELL_RIZZLE_FROST_GRENADE, true); } Grenade_Timer = 30000; @@ -344,7 +347,7 @@ struct TRINITY_DLL_DECL mob_rizzle_sprysprocketAI : public ScriptedAI float dist = m_creature->GetDistance(player); if(dist < 10 && m_creature->GetPositionX() > player->GetPositionX() && !Reached) { - DoYell(SAY_RIZZLE_FINAL, LANG_UNIVERSAL, NULL); + DoScriptText(SAY_RIZZLE_FINAL, m_creature); m_creature->SetUInt32Value(UNIT_NPC_FLAGS, 1); m_creature->setFaction(35); m_creature->StopMoving(); @@ -375,7 +378,7 @@ struct TRINITY_DLL_DECL mob_rizzle_sprysprocketAI : public ScriptedAI if(who->GetTypeId() == TYPEID_PLAYER && ((Player *)who)->GetQuestStatus(10994) == QUEST_STATUS_INCOMPLETE) { PlayerGUID = who->GetGUID(); - DoYell(SAY_RIZZLE_START, LANG_UNIVERSAL, NULL); + DoScriptText(SAY_RIZZLE_START, m_creature); DoCast(who, SPELL_RIZZLE_BLACKJACK, false); return; } @@ -394,7 +397,7 @@ struct TRINITY_DLL_DECL mob_rizzle_sprysprocketAI : public ScriptedAI return; } - CurrWP++; + ++CurrWP; ContinueWP = true; } @@ -404,7 +407,7 @@ bool GossipHello_mob_rizzle_sprysprocket(Player *player, Creature *_Creature) { if(player->GetQuestStatus(10994) != QUEST_STATUS_INCOMPLETE) return true; - player->ADD_GOSSIP_ITEM( 0, "Hand over the Southfury moonstone and I'll let you go.", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); + player->ADD_GOSSIP_ITEM( 0, GOSSIP_GET_MOONSTONE, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); player->SEND_GOSSIP_MENU(10811,_Creature->GetGUID()); return true; } |