DB/Scripts: Rivern Frostwind
This commit is contained in:
1 parent
ecf2c70872
commit
296d22540c
2 files changed
+12
-36
No files matched your search
@@ -19,55 +19,21 @@
|
||||
/* ScriptData
|
||||
SDName: Winterspring
|
||||
SD%Complete: Almost Completely Emptied
|
||||
SDComment: Vendor Rivern Frostwind. Quest Support 4901
|
||||
SDComment: Quest Support 4901
|
||||
SDCategory: Winterspring
|
||||
EndScriptData */
|
||||
|
||||
/* ContentData
|
||||
npc_rivern_frostwind
|
||||
npc_ranshalla
|
||||
go_elune_fire
|
||||
EndContentData */
|
||||
|
||||
#include "ScriptMgr.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "ScriptedGossip.h"
|
||||
#include "ScriptedEscortAI.h"
|
||||
#include "Player.h"
|
||||
#include "WorldSession.h"
|
||||
|
||||
/*######
|
||||
## npc_rivern_frostwind
|
||||
######*/
|
||||
|
||||
class npc_rivern_frostwind : public CreatureScript
|
||||
{
|
||||
public:
|
||||
npc_rivern_frostwind() : CreatureScript("npc_rivern_frostwind") { }
|
||||
|
||||
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) override
|
||||
{
|
||||
ClearGossipMenuFor(player);
|
||||
if (action == GOSSIP_ACTION_TRADE)
|
||||
player->GetSession()->SendListInventory(creature->GetGUID());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool OnGossipHello(Player* player, Creature* creature) override
|
||||
{
|
||||
if (creature->IsQuestGiver())
|
||||
player->PrepareQuestMenu(creature->GetGUID());
|
||||
|
||||
if (creature->IsVendor() && player->GetReputationRank(589) == REP_EXALTED)
|
||||
AddGossipItemFor(player, GOSSIP_ICON_VENDOR, GOSSIP_TEXT_BROWSE_GOODS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_TRADE);
|
||||
|
||||
SendGossipMenuFor(player, player->GetGossipTextId(creature), creature->GetGUID());
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
enum Says
|
||||
{
|
||||
// Escort texts
|
||||
@@ -622,7 +588,6 @@ public:
|
||||
|
||||
void AddSC_winterspring()
|
||||
{
|
||||
new npc_rivern_frostwind();
|
||||
new npc_ranshalla();
|
||||
new go_elune_fire();
|
||||
}
|
||||
Reference in new issue
Block a user