mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
Scripts: Removed SEND_VENDORLIST and SEND_TRAINERLIST defines
This commit is contained in:
@@ -574,7 +574,7 @@ public:
|
||||
pPlayer->CastSpell(pPlayer, SPELL_CREATE_THORIUM_BROTHERHOOD_CONTRACT_DND, false);
|
||||
}
|
||||
if (uiAction == GOSSIP_ACTION_TRADE)
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendListInventory(pCreature->GetGUID());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ public:
|
||||
{
|
||||
pPlayer->PlayerTalkClass->ClearMenus();
|
||||
if (uiAction == GOSSIP_ACTION_TRADE)
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendListInventory(pCreature->GetGUID());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -121,7 +121,7 @@ public:
|
||||
{
|
||||
pPlayer->PlayerTalkClass->ClearMenus();
|
||||
if (uiAction == GOSSIP_ACTION_TRADE)
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendListInventory(pCreature->GetGUID());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ public:
|
||||
switch(uiAction)
|
||||
{
|
||||
case GOSSIP_ACTION_TRADE:
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendListInventory(pCreature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF+1:
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_SDA1, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+5);
|
||||
|
||||
@@ -381,7 +381,7 @@ public:
|
||||
{
|
||||
pPlayer->PlayerTalkClass->ClearMenus();
|
||||
if (uiAction == GOSSIP_ACTION_TRADE)
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendListInventory(pCreature->GetGUID());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ public:
|
||||
pPlayer->SEND_GOSSIP_MENU(2434, pCreature->GetGUID());
|
||||
}
|
||||
if (uiAction == GOSSIP_ACTION_TRADE)
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendListInventory(pCreature->GetGUID());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -248,7 +248,7 @@ public:
|
||||
{
|
||||
pPlayer->PlayerTalkClass->ClearMenus();
|
||||
if (uiAction == GOSSIP_ACTION_TRADE)
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendListInventory(pCreature->GetGUID());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -109,7 +109,7 @@ public:
|
||||
{
|
||||
pPlayer->PlayerTalkClass->ClearMenus();
|
||||
if (uiAction == GOSSIP_ACTION_TRADE)
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendListInventory(pCreature->GetGUID());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -2559,7 +2559,7 @@ public:
|
||||
}
|
||||
|
||||
if (uiAction == GOSSIP_ACTION_TRADE)
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendListInventory(pCreature->GetGUID());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -149,10 +149,10 @@ public:
|
||||
{
|
||||
pPlayer->PlayerTalkClass->ClearMenus();
|
||||
if (uiAction == GOSSIP_ACTION_TRAIN)
|
||||
pPlayer->SEND_TRAINERLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendTrainerList(pCreature->GetGUID());
|
||||
|
||||
if (uiAction == GOSSIP_ACTION_TRADE)
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendListInventory(pCreature->GetGUID());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -141,7 +141,7 @@ public:
|
||||
{
|
||||
pPlayer->PlayerTalkClass->ClearMenus();
|
||||
if (uiAction == GOSSIP_ACTION_TRADE)
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendListInventory(pCreature->GetGUID());
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -524,10 +524,10 @@ public:
|
||||
switch(action)
|
||||
{
|
||||
case GOSSIP_ACTION_TRAIN:
|
||||
pPlayer->SEND_TRAINERLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendTrainerList(pCreature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_TRADE:
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendListInventory(pCreature->GetGUID());
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -287,7 +287,7 @@ public:
|
||||
pPlayer->SEND_GOSSIP_MENU(pPlayer->GetGossipTextId(pCreature), pCreature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_TRADE:
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendListInventory(pCreature->GetGUID());
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -417,7 +417,7 @@ public:
|
||||
{
|
||||
pPlayer->PlayerTalkClass->ClearMenus();
|
||||
if (uiAction == GOSSIP_ACTION_TRADE)
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendListInventory(pCreature->GetGUID());
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -578,7 +578,7 @@ public:
|
||||
switch (uiAction)
|
||||
{
|
||||
case GOSSIP_ACTION_TRADE:
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendListInventory(pCreature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF:
|
||||
pPlayer->ADD_GOSSIP_ITEM(0, GOSSIP_ORONOK2, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
|
||||
|
||||
@@ -210,7 +210,7 @@ public:
|
||||
{
|
||||
pPlayer->PlayerTalkClass->ClearMenus();
|
||||
if (uiAction == GOSSIP_ACTION_TRADE)
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendListInventory(pCreature->GetGUID());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -610,7 +610,7 @@ public:
|
||||
{
|
||||
pPlayer->PlayerTalkClass->ClearMenus();
|
||||
if (uiAction == GOSSIP_ACTION_TRADE)
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendListInventory(pCreature->GetGUID());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -288,9 +288,7 @@ public:
|
||||
{
|
||||
pPlayer->PlayerTalkClass->ClearMenus();
|
||||
if (uiAction == GOSSIP_ACTION_TRADE)
|
||||
{
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
}
|
||||
pPlayer->GetSession()->SendListInventory(pCreature->GetGUID());
|
||||
return true;
|
||||
}
|
||||
};
|
||||
@@ -415,7 +413,7 @@ public:
|
||||
pPlayer->SEND_GOSSIP_MENU(GOSSIP_TEXTID_TIMOTHY_DANIELS1, pCreature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_TRADE:
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendListInventory(pCreature->GetGUID());
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ public:
|
||||
|
||||
switch (uiAction)
|
||||
{
|
||||
case GOSSIP_ACTION_TRADE: pPlayer->SEND_VENDORLIST(pCreature->GetGUID()); break;
|
||||
case GOSSIP_ACTION_TRADE: pPlayer->GetSession()->SendListInventory(pCreature->GetGUID()); break;
|
||||
case GOSSIP_ACTION_INN: pPlayer->SetBindPoint(pCreature->GetGUID()); break;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -401,10 +401,10 @@ public:
|
||||
switch(uiAction)
|
||||
{
|
||||
case GOSSIP_ACTION_TRADE:
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendListInventory(pCreature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_TRAIN:
|
||||
pPlayer->SEND_TRAINERLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendTrainerList(pCreature->GetGUID());
|
||||
break;
|
||||
//Learn Alchemy
|
||||
case GOSSIP_ACTION_INFO_DEF + 1:
|
||||
@@ -616,10 +616,10 @@ public:
|
||||
switch(uiAction)
|
||||
{
|
||||
case GOSSIP_ACTION_TRADE:
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendListInventory(pCreature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_TRAIN:
|
||||
pPlayer->SEND_TRAINERLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendTrainerList(pCreature->GetGUID());
|
||||
break;
|
||||
//Learn Armor/Weapon
|
||||
case GOSSIP_ACTION_INFO_DEF + 1:
|
||||
@@ -996,10 +996,10 @@ public:
|
||||
switch(uiAction)
|
||||
{
|
||||
case GOSSIP_ACTION_TRADE:
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendListInventory(pCreature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_TRAIN:
|
||||
pPlayer->SEND_TRAINERLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendTrainerList(pCreature->GetGUID());
|
||||
break;
|
||||
//Unlearn Leather
|
||||
case GOSSIP_ACTION_INFO_DEF + 1:
|
||||
@@ -1153,10 +1153,10 @@ public:
|
||||
switch(uiAction)
|
||||
{
|
||||
case GOSSIP_ACTION_TRADE:
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendListInventory(pCreature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_TRAIN:
|
||||
pPlayer->SEND_TRAINERLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendTrainerList(pCreature->GetGUID());
|
||||
break;
|
||||
//Learn Tailor
|
||||
case GOSSIP_ACTION_INFO_DEF + 1:
|
||||
|
||||
@@ -1250,7 +1250,7 @@ public:
|
||||
{
|
||||
pPlayer->PlayerTalkClass->ClearMenus();
|
||||
if (uiAction == GOSSIP_ACTION_TRADE)
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendListInventory(pCreature->GetGUID());
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -1303,7 +1303,7 @@ public:
|
||||
pPlayer->CastSpell(pPlayer, 21100, false);
|
||||
break;
|
||||
case GOSSIP_ACTION_TRAIN:
|
||||
pPlayer->SEND_TRAINERLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendTrainerList(pCreature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_OPTION_UNLEARNTALENTS:
|
||||
pPlayer->CLOSE_GOSSIP_MENU();
|
||||
@@ -2494,7 +2494,7 @@ public:
|
||||
pPlayer->SEND_GOSSIP_MENU(13583, pCreature->GetGUID());
|
||||
}
|
||||
else
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendListInventory(pCreature->GetGUID());
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -2505,7 +2505,7 @@ public:
|
||||
switch(uiAction)
|
||||
{
|
||||
case GOSSIP_ACTION_TRADE:
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
pPlayer->GetSession()->SendListInventory(pCreature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF+1:
|
||||
pPlayer->CLOSE_GOSSIP_MENU();
|
||||
|
||||
Reference in New Issue
Block a user