Last active
August 29, 2015 13:56
-
-
Save irancore/9228363 to your computer and use it in GitHub Desktop.
Npc Welcomer OregonCore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Orginal Code By : ?? | |
Conversion From Trinity To Oregon By WwW.IranCore.Ir | |
*/ | |
#include "ScriptPCH.h" | |
#include "ObjectMgr.h" | |
enum eIcons | |
{ | |
CHAT_ICON = 0, | |
VENDOR_ICON = 1, | |
FLIGHT_ICON = 2, | |
TRAINER_ICON = 3, | |
GEAR_ICON = 4, | |
GEAR_ICON_2 = 5, | |
BANK_ICON = 6, | |
CHAT_DOTS_ICON = 7, | |
TABARD_ICON = 8, | |
SWORDS_ICON = 9, | |
GOLD_DOT_ICON = 10 | |
}; | |
bool GossipHello_npc_welcome(Player *player, Creature* creature) | |
{ | |
if (player->isInCombat())// combat check shavad . | |
{ | |
player->GetSession()->SendNotification("You are in combat."); | |
return false; | |
} | |
{ | |
player->PrepareQuestMenu(creature->GetGUID()); | |
player->SendPreparedQuest(creature->GetGUID()); | |
} | |
player->ADD_GOSSIP_ITEM(TRAINER_ICON, ">>", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1); | |
player->SEND_GOSSIP_MENU(1, creature->GetGUID()); | |
return true; | |
} | |
bool GossipSelect_npc_welcome(Player* player, Creature* creature, uint32 sender, uint32 action) | |
{ | |
player->CastSpell(player,63680,true,NULL,NULL,player->GetGUID()); | |
player->CastSpell(player,63624,true,NULL,NULL,player->GetGUID()); | |
switch(player->getClass()) | |
{ | |
case CLASS_WARRIOR: | |
switch(action) | |
{ | |
case GOSSIP_ACTION_INFO_DEF+1: | |
player->learnSpell(7384), | |
player->learnSpell(47436), | |
player->learnSpell(47450), | |
player->learnSpell(11578), | |
player->learnSpell(47465), | |
player->learnSpell(47502), | |
player->learnSpell(34428), | |
player->learnSpell(1715), | |
player->learnSpell(2687), | |
player->learnSpell(71), | |
player->learnSpell(7386), | |
player->learnSpell(355), | |
player->learnSpell(72), | |
player->learnSpell(47437), | |
player->learnSpell(57823), | |
player->learnSpell(694), | |
player->learnSpell(2565), | |
player->learnSpell(676), | |
player->learnSpell(47520), | |
player->learnSpell(20230), | |
player->learnSpell(12678), | |
player->learnSpell(47471), | |
player->learnSpell(1161), | |
player->learnSpell(871), | |
player->learnSpell(2458), | |
player->learnSpell(20252), | |
player->learnSpell(47475), | |
player->learnSpell(18499), | |
player->learnSpell(1680), | |
player->learnSpell(6552), | |
player->learnSpell(47488), | |
player->learnSpell(1719), | |
player->learnSpell(23920), | |
player->learnSpell(47440), | |
player->learnSpell(3411), | |
player->learnSpell(64382), | |
player->learnSpell(55694), | |
player->learnSpell(57755), | |
player->learnSpell(42459), | |
player->learnSpell(750), | |
player->learnSpell(5246); | |
player->learnSpell(3127); | |
player->SaveToDB(); | |
player->learnSpell(34093); | |
player->learnSpell(33392); | |
player->learnSpell(54197); | |
player->learnSpell(668); | |
player->learnSpell(669); | |
player->learnSpell(670); | |
player->learnSpell(671); | |
player->learnSpell(672); | |
player->learnSpell(813); | |
player->learnSpell(814); | |
player->learnSpell(815); | |
player->learnSpell(816); | |
player->learnSpell(817); | |
player->learnSpell(2457); | |
player->SaveToDB(); | |
/////////ARRMES///////////// | |
player->learnSpell(750); | |
player->learnSpell(196); | |
player->learnSpell(197); | |
player->learnSpell(198); | |
player->learnSpell(199); | |
player->learnSpell(200); | |
player->learnSpell(201); | |
player->learnSpell(202); | |
player->learnSpell(264); | |
player->learnSpell(5011); | |
player->learnSpell(266); | |
player->learnSpell(2567); | |
player->SaveToDB(); | |
} | |
//////////////Restriction///////////////// | |
if(player->HasSpell(12294)) | |
{ | |
player->learnSpell(47486); | |
} | |
//////////////Vengeur//////////////////// | |
if(player->HasSpell(20243)) | |
{ | |
player->learnSpell(47498); | |
} | |
player->UpdateSkillsToMaxSkillsForLevel(); | |
player->SaveToDB(); | |
player->SEND_GOSSIP_MENU(1, creature->GetGUID()); | |
player->PlayerTalkClass->CloseGossip(); | |
break; | |
/////////////////////////////////////////////////////////////////////////////////////////////// | |
case CLASS_PALADIN: | |
switch(action) | |
{ | |
case GOSSIP_ACTION_INFO_DEF+1: | |
player->learnSpell(3127); | |
player->learnSpell(19746); | |
player->learnSpell(19752); | |
player->learnSpell(750); | |
player->learnSpell(48942); | |
player->learnSpell(48782); | |
player->learnSpell(48932); | |
player->learnSpell(20271); | |
player->learnSpell(498); | |
player->learnSpell(10308); | |
player->learnSpell(1152); | |
player->learnSpell(10278); | |
player->learnSpell(48788); | |
player->learnSpell(53408); | |
player->learnSpell(48950); | |
player->learnSpell(48936); | |
player->learnSpell(31789); | |
player->learnSpell(62124); | |
player->learnSpell(54043); | |
player->learnSpell(25780); | |
player->learnSpell(1044); | |
player->learnSpell(20217); | |
player->learnSpell(48819); | |
player->learnSpell(48801); | |
player->learnSpell(48785); | |
player->learnSpell(5502); | |
player->learnSpell(20164); | |
player->learnSpell(10326); | |
player->learnSpell(1038); | |
player->learnSpell(53407); | |
player->learnSpell(48943); | |
player->learnSpell(20165); | |
player->learnSpell(48945); | |
player->learnSpell(642); | |
player->learnSpell(48947); | |
player->learnSpell(20166); | |
player->learnSpell(4987); | |
player->learnSpell(48806); | |
player->learnSpell(6940); | |
player->learnSpell(48817); | |
player->learnSpell(48934); | |
player->learnSpell(48938); | |
player->learnSpell(25898); | |
player->learnSpell(32223); | |
player->learnSpell(31884); | |
player->learnSpell(54428); | |
player->learnSpell(61411); | |
player->learnSpell(53601); | |
player->learnSpell(33388); | |
player->learnSpell(33391); | |
player->learnSpell(34093); | |
player->learnSpell(33392); | |
player->learnSpell(54197); | |
player->learnSpell(668); | |
player->learnSpell(669); | |
player->learnSpell(670); | |
player->learnSpell(671); | |
player->learnSpell(672); | |
player->learnSpell(813); | |
player->learnSpell(814); | |
player->learnSpell(815); | |
player->learnSpell(816); | |
player->learnSpell(817); | |
player->SaveToDB(); | |
/////////ARRMES///////////// | |
player->learnSpell(750); | |
player->learnSpell(196); | |
player->learnSpell(197); | |
player->learnSpell(198); | |
player->learnSpell(199); | |
player->learnSpell(200); | |
player->learnSpell(201); | |
player->learnSpell(202); | |
player->SaveToDB(); | |
} | |
//////////////Restriction///////////////// | |
if(player->HasSpell(20925)) | |
{ | |
player->learnSpell(48952); | |
} | |
//////////////Vengeur//////////////////// | |
if(player->HasSpell(12294)) | |
{ | |
player->learnSpell(48827); | |
} | |
//////////////Bene///////////////////// | |
if(player->HasSpell(20911)) | |
{ | |
player->learnSpell(25899); | |
} | |
/////////////Horion///////////////////// | |
if(player->HasSpell(20473)) | |
{ | |
player->learnSpell(48825); | |
} | |
//////////////////////////////////////// | |
if(player->GetTeam() == ALLIANCE){ | |
player->learnSpell(31801); | |
player->learnSpell(13819); | |
player->learnSpell(23214); | |
} | |
else | |
{ | |
player->learnSpell(53736); | |
player->learnSpell(34769); | |
player->learnSpell(34767); | |
} | |
player->UpdateSkillsToMaxSkillsForLevel(); | |
player->SaveToDB(); | |
player->SEND_GOSSIP_MENU(1, creature->GetGUID()); | |
player->PlayerTalkClass->CloseGossip(); | |
break; | |
/////////////////////////////////////////////////////////////////////////////////////////////// | |
case CLASS_HUNTER: | |
switch(action) | |
{ | |
case GOSSIP_ACTION_INFO_DEF+1: | |
player->learnSpell(3043); | |
player->learnSpell(3127); | |
player->learnSpell(3045); | |
player->learnSpell(3034); | |
player->learnSpell(8737); | |
player->learnSpell(1494); | |
player->learnSpell(13163); | |
player->learnSpell(48996); | |
player->learnSpell(49001); | |
player->learnSpell(49045); | |
player->learnSpell(53338); | |
player->learnSpell(5116); | |
player->learnSpell(27044); | |
player->learnSpell(883); | |
player->learnSpell(2641); | |
player->learnSpell(6991); | |
player->learnSpell(982); | |
player->learnSpell(1515); | |
player->learnSpell(19883); | |
player->learnSpell(20736); | |
player->learnSpell(48990); | |
player->learnSpell(2974); | |
player->learnSpell(6197); | |
player->learnSpell(1002); | |
player->learnSpell(14327); | |
player->learnSpell(5118); | |
player->learnSpell(49056); | |
player->learnSpell(53339); | |
player->learnSpell(49048); | |
player->learnSpell(19884); | |
player->learnSpell(34074); | |
player->learnSpell(781); | |
player->learnSpell(14311); | |
player->learnSpell(1462); | |
player->learnSpell(19885); | |
player->learnSpell(19880); | |
player->learnSpell(13809); | |
player->learnSpell(13161); | |
player->learnSpell(5384); | |
player->learnSpell(1543); | |
player->learnSpell(19878); | |
player->learnSpell(49067); | |
player->learnSpell(3034); | |
player->learnSpell(13159); | |
player->learnSpell(19882); | |
player->learnSpell(58434); | |
player->learnSpell(49071); | |
player->learnSpell(49052); | |
player->learnSpell(19879); | |
player->learnSpell(19263); | |
player->learnSpell(19801); | |
player->learnSpell(34026); | |
player->learnSpell(34600); | |
player->learnSpell(34477); | |
player->learnSpell(61006); | |
player->learnSpell(61847); | |
player->learnSpell(53271); | |
player->learnSpell(60192); | |
player->learnSpell(62757); | |
player->learnSpell(34093); | |
player->learnSpell(33392); | |
player->learnSpell(54197); | |
player->learnSpell(668); | |
player->learnSpell(669); | |
player->learnSpell(670); | |
player->learnSpell(671); | |
player->learnSpell(672); | |
player->learnSpell(813); | |
player->learnSpell(814); | |
player->learnSpell(815); | |
player->learnSpell(816); | |
player->learnSpell(817); | |
player->SaveToDB(); | |
/////////ARRMES///////////// | |
player->learnSpell(15590); | |
player->learnSpell(8737); | |
player->learnSpell(196); | |
player->learnSpell(197); | |
player->learnSpell(200); | |
player->learnSpell(201); | |
player->learnSpell(202); | |
player->learnSpell(264); | |
player->learnSpell(266); | |
player->learnSpell(5011); | |
player->learnSpell(42459); | |
player->SaveToDB(); | |
} | |
//////////////Restriction///////////////// | |
if(player->HasSpell(19386)) | |
{ | |
player->learnSpell(49012); | |
} | |
////////////////////////////////// | |
if(player->HasSpell(53301)) | |
{ | |
player->learnSpell(60053); | |
} | |
/////////////////////////////////// | |
if(player->HasSpell(19306)) | |
{ | |
player->learnSpell(48999); | |
} | |
////////////////////////////////// | |
if(player->HasSpell(19434)) | |
{ | |
player->learnSpell(49050); | |
} | |
player->UpdateSkillsToMaxSkillsForLevel(); | |
player->SaveToDB(); | |
player->SEND_GOSSIP_MENU(1, creature->GetGUID()); | |
player->PlayerTalkClass->CloseGossip(); | |
break; | |
/////////////////////////////////////////////////////////////////////// | |
case CLASS_MAGE: | |
switch(action) | |
{ | |
case GOSSIP_ACTION_INFO_DEF+1: | |
player->learnSpell(42921); | |
player->learnSpell(42842); | |
player->learnSpell(42995); | |
player->learnSpell(42833); | |
player->learnSpell(27090); | |
player->learnSpell(33717); | |
player->learnSpell(42873); | |
player->learnSpell(42846); | |
player->learnSpell(12826); | |
player->learnSpell(28271); | |
player->learnSpell(61780); | |
player->learnSpell(61721); | |
player->learnSpell(28272); | |
player->learnSpell(42917); | |
player->learnSpell(43015); | |
player->learnSpell(130); | |
player->learnSpell(42926); | |
player->learnSpell(43017); | |
player->learnSpell(475); | |
player->learnSpell(1953); | |
player->learnSpell(42940); | |
player->learnSpell(12051); | |
player->learnSpell(43010); | |
player->learnSpell(43020); | |
player->learnSpell(43012); | |
player->learnSpell(42859); | |
player->learnSpell(2139); | |
player->learnSpell(42931); | |
player->learnSpell(42985); | |
player->learnSpell(43008); | |
player->learnSpell(45438); | |
player->learnSpell(43024); | |
player->learnSpell(43002); | |
player->learnSpell(43046); | |
player->learnSpell(42897); | |
player->learnSpell(42914); | |
player->learnSpell(66); | |
player->learnSpell(58659); | |
player->learnSpell(30449); | |
player->learnSpell(42956); | |
player->learnSpell(47610); | |
player->learnSpell(61316); | |
player->learnSpell(61024); | |
player->learnSpell(55342); | |
player->learnSpell(53142); | |
player->learnSpell(7301); | |
player->learnSpell(34093); | |
player->learnSpell(33392); | |
player->learnSpell(54197); | |
player->learnSpell(668); | |
player->learnSpell(669); | |
player->learnSpell(670); | |
player->learnSpell(671); | |
player->learnSpell(672); | |
player->learnSpell(813); | |
player->learnSpell(814); | |
player->learnSpell(815); | |
player->learnSpell(816); | |
player->learnSpell(817); | |
player->SaveToDB(); | |
/////////ARRMES///////////// | |
player->learnSpell(201); | |
player->learnSpell(196); | |
player->learnSpell(227); | |
player->learnSpell(1180); | |
player->SaveToDB(); | |
} | |
//////////////Restriction///////////////// | |
if(player->GetTeam() == ALLIANCE){ | |
player->learnSpell(32271); | |
player->learnSpell(49359); | |
player->learnSpell(3565); | |
player->learnSpell(33690); | |
player->learnSpell(3562); | |
player->learnSpell(3561); | |
player->learnSpell(11419); | |
player->learnSpell(32266); | |
player->learnSpell(11416); | |
player->learnSpell(33691); | |
player->learnSpell(49360); | |
} | |
else | |
{ | |
player->learnSpell(3567); | |
player->learnSpell(35715); | |
player->learnSpell(3566); | |
player->learnSpell(49358); | |
player->learnSpell(32272); | |
player->learnSpell(3563); | |
player->learnSpell(11417); | |
player->learnSpell(35717); | |
player->learnSpell(32267); | |
player->learnSpell(49361); | |
player->learnSpell(11420); | |
player->learnSpell(11418); | |
} | |
if(player->HasSpell(11366)) | |
{ | |
player->learnSpell(42891); | |
} | |
////////////////////////////////// | |
if(player->HasSpell(11426)) | |
{ | |
player->learnSpell(43039); | |
} | |
/////////////////////////////////// | |
if(player->HasSpell(44457)) | |
{ | |
player->learnSpell(55360); | |
} | |
////////////////////////////////// | |
if(player->HasSpell(31661)) | |
{ | |
player->learnSpell(42950); | |
} | |
////////////////////////////////// | |
if(player->HasSpell(11113)) | |
{ | |
player->learnSpell(42945); | |
} | |
////////////////////////////////// | |
if(player->HasSpell(44425)) | |
{ | |
player->learnSpell(44781); | |
} | |
player->UpdateSkillsToMaxSkillsForLevel(); | |
player->SaveToDB(); | |
player->SEND_GOSSIP_MENU(1, creature->GetGUID()); | |
player->PlayerTalkClass->CloseGossip(); | |
break; | |
////////////////////////////////////////////////////////////////////////////////////////////////////// | |
case CLASS_WARLOCK: | |
switch(action) | |
{ | |
case GOSSIP_ACTION_INFO_DEF+1: | |
player->learnSpell(696); | |
player->learnSpell(47811); | |
player->learnSpell(47809); | |
player->learnSpell(688); | |
player->learnSpell(47813); | |
player->learnSpell(50511); | |
player->learnSpell(57946); | |
player->learnSpell(47864); | |
player->learnSpell(6215); | |
player->learnSpell(47878); | |
player->learnSpell(47855); | |
player->learnSpell(697); | |
player->learnSpell(47856); | |
player->learnSpell(47857); | |
player->learnSpell(5697); | |
player->learnSpell(47884); | |
player->learnSpell(47815); | |
player->learnSpell(47889); | |
player->learnSpell(47820); | |
player->learnSpell(698); | |
player->learnSpell(712); | |
player->learnSpell(126); | |
player->learnSpell(5138); | |
player->learnSpell(5500); | |
player->learnSpell(11719); | |
player->learnSpell(132); | |
player->learnSpell(60220); | |
player->learnSpell(18647); | |
player->learnSpell(61191); | |
player->learnSpell(47823); | |
player->learnSpell(691); | |
player->learnSpell(47865); | |
player->learnSpell(47891); | |
player->learnSpell(47888); | |
player->learnSpell(17928); | |
player->learnSpell(47860); | |
player->learnSpell(47825); | |
player->learnSpell(1122); | |
player->learnSpell(47867); | |
player->learnSpell(18540); | |
player->learnSpell(47893); | |
player->learnSpell(47838); | |
player->learnSpell(29858); | |
player->learnSpell(58887); | |
player->learnSpell(47836); | |
player->learnSpell(61290); | |
player->learnSpell(48018); | |
player->learnSpell(48020); | |
player->learnSpell(33388); | |
player->learnSpell(33391); | |
player->learnSpell(23161); | |
player->learnSpell(34093); | |
player->learnSpell(33392); | |
player->learnSpell(54197); | |
player->learnSpell(668); | |
player->learnSpell(669); | |
player->learnSpell(670); | |
player->learnSpell(671); | |
player->learnSpell(672); | |
player->learnSpell(813); | |
player->learnSpell(814); | |
player->learnSpell(815); | |
player->learnSpell(816); | |
player->learnSpell(817); | |
player->SaveToDB(); | |
///////////ARMES///////////// | |
player->learnSpell(196); | |
player->learnSpell(227); | |
player->learnSpell(1180); | |
player->SaveToDB(); | |
} | |
//////////////Restriction///////////////// | |
if(player->HasSpell(17877)) | |
{ | |
player->learnSpell(47827); | |
} | |
////////////////////////////////// | |
if(player->HasSpell(30283)) | |
{ | |
player->learnSpell(47847); | |
} | |
/////////////////////////////////// | |
if(player->HasSpell(30108)) | |
{ | |
player->learnSpell(47843); | |
} | |
////////////////////////////////// | |
if(player->HasSpell(50796)) | |
{ | |
player->learnSpell(59172); | |
} | |
////////////////////////////////// | |
if(player->HasSpell(48181)) | |
{ | |
player->learnSpell(59164); | |
} | |
////////////////////////////////// | |
if(player->HasSpell(18220)) | |
{ | |
player->learnSpell(59092); | |
} | |
player->UpdateSkillsToMaxSkillsForLevel(); | |
player->SaveToDB(); | |
player->SEND_GOSSIP_MENU(1, creature->GetGUID()); | |
player->PlayerTalkClass->CloseGossip(); | |
break; | |
//////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
case CLASS_ROGUE: | |
switch(action) | |
{ | |
case GOSSIP_ACTION_INFO_DEF+1: | |
player->learnSpell(3127); | |
player->learnSpell(42459); | |
player->learnSpell(48668); | |
player->learnSpell(48638); | |
player->learnSpell(1784); | |
player->learnSpell(48657); | |
player->learnSpell(921); | |
player->learnSpell(1776); | |
player->learnSpell(26669); | |
player->learnSpell(51724); | |
player->learnSpell(6774); | |
player->learnSpell(11305); | |
player->learnSpell(1766); | |
player->learnSpell(48676); | |
player->learnSpell(48659); | |
player->learnSpell(1804); | |
player->learnSpell(8647); | |
player->learnSpell(48691); | |
player->learnSpell(51722); | |
player->learnSpell(48672); | |
player->learnSpell(1725); | |
player->learnSpell(26889); | |
player->learnSpell(2836); | |
player->learnSpell(1833); | |
player->learnSpell(1842); | |
player->learnSpell(8643); | |
player->learnSpell(2094); | |
player->learnSpell(1860); | |
player->learnSpell(57993); | |
player->learnSpell(48674); | |
player->learnSpell(31224); | |
player->learnSpell(5938); | |
player->learnSpell(57934); | |
player->learnSpell(51723); | |
player->learnSpell(34093); | |
player->learnSpell(33392); | |
player->learnSpell(54197); | |
player->learnSpell(668); | |
player->learnSpell(669); | |
player->learnSpell(670); | |
player->learnSpell(671); | |
player->learnSpell(672); | |
player->learnSpell(813); | |
player->learnSpell(814); | |
player->learnSpell(815); | |
player->learnSpell(816); | |
player->learnSpell(817); | |
player->SaveToDB(); | |
///////////ARMES///////////// | |
player->learnSpell(196); | |
player->learnSpell(198); | |
player->learnSpell(201); | |
player->learnSpell(1180); | |
player->learnSpell(2567); | |
player->learnSpell(264); | |
player->learnSpell(266); | |
player->learnSpell(5011); | |
player->learnSpell(15590); | |
player->SaveToDB(); | |
} | |
//////////////Restriction/////////// | |
if(player->HasSpell(16511)) | |
{ | |
player->learnSpell(48660); | |
} | |
////////////////////////////////// | |
if(player->HasSpell(1329)) | |
{ | |
player->learnSpell(48666); | |
} | |
player->UpdateSkillsToMaxSkillsForLevel(); | |
player->SaveToDB(); | |
player->SEND_GOSSIP_MENU(1, creature->GetGUID()); | |
player->PlayerTalkClass->CloseGossip(); | |
break; | |
//////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
case CLASS_PRIEST: | |
switch(action) | |
{ | |
case GOSSIP_ACTION_INFO_DEF+1: | |
player->learnSpell(528); | |
player->learnSpell(2053); | |
player->learnSpell(48161); | |
player->learnSpell(48123); | |
player->learnSpell(48125); | |
player->learnSpell(48066); | |
player->learnSpell(586); | |
player->learnSpell(48068); | |
player->learnSpell(48127); | |
player->learnSpell(48171); | |
player->learnSpell(48168); | |
player->learnSpell(10890); | |
player->learnSpell(6064); | |
player->learnSpell(988); | |
player->learnSpell(48300); | |
player->learnSpell(6346); | |
player->learnSpell(48071); | |
player->learnSpell(48135); | |
player->learnSpell(48078); | |
player->learnSpell(453); | |
player->learnSpell(10955); | |
player->learnSpell(10909); | |
player->learnSpell(8129); | |
player->learnSpell(48073); | |
player->learnSpell(605); | |
player->learnSpell(48072); | |
player->learnSpell(48169); | |
player->learnSpell(552); | |
player->learnSpell(1706); | |
player->learnSpell(48063); | |
player->learnSpell(48162); | |
player->learnSpell(48170); | |
player->learnSpell(48074); | |
player->learnSpell(48158); | |
player->learnSpell(48120); | |
player->learnSpell(34433); | |
player->learnSpell(48113); | |
player->learnSpell(32375); | |
player->learnSpell(64843); | |
player->learnSpell(64901); | |
player->learnSpell(53023); | |
player->learnSpell(34093); | |
player->learnSpell(33392); | |
player->learnSpell(54197); | |
player->learnSpell(668); | |
player->learnSpell(669); | |
player->learnSpell(670); | |
player->learnSpell(671); | |
player->learnSpell(672); | |
player->learnSpell(813); | |
player->learnSpell(814); | |
player->learnSpell(815); | |
player->learnSpell(816); | |
player->learnSpell(817); | |
player->SaveToDB(); | |
///////////ARMES///////////// | |
player->learnSpell(196); | |
player->learnSpell(198); | |
player->learnSpell(227); | |
player->learnSpell(1180); | |
player->SaveToDB(); | |
} | |
//////////////Restriction/////////// | |
if(player->HasSpell(34914)) | |
{ | |
player->learnSpell(48160); | |
} | |
////////////////////////////////// | |
if(player->HasSpell(47540)) | |
{ | |
player->learnSpell(53007); | |
} | |
////////////////////////////////// | |
if(player->HasSpell(724)) | |
{ | |
player->learnSpell(48087); | |
} | |
////////////////////////////////// | |
if(player->HasSpell(19236)) | |
{ | |
player->learnSpell(48173); | |
} | |
////////////////////////////////// | |
{ | |
player->learnSpell(48089); | |
} | |
////////////////////////////////// | |
if(player->HasSpell(15407)) | |
{ | |
player->learnSpell(48156); | |
} | |
player->UpdateSkillsToMaxSkillsForLevel(); | |
player->SaveToDB(); | |
player->SEND_GOSSIP_MENU(1, creature->GetGUID()); | |
player->PlayerTalkClass->CloseGossip(); | |
break; | |
case CLASS_SHAMAN: | |
switch(action) | |
{ | |
case GOSSIP_ACTION_INFO_DEF+1: | |
player->learnSpell(2062); | |
player->learnSpell(8737); | |
player->learnSpell(49273); | |
player->learnSpell(49238); | |
player->learnSpell(10399); | |
player->learnSpell(49231); | |
player->learnSpell(58753); | |
player->learnSpell(2484); | |
player->learnSpell(49281); | |
player->learnSpell(58582); | |
player->learnSpell(49233); | |
player->learnSpell(58790); | |
player->learnSpell(58704); | |
player->learnSpell(58643); | |
player->learnSpell(49277); | |
player->learnSpell(61657); | |
player->learnSpell(8012); | |
player->learnSpell(526); | |
player->learnSpell(2645); | |
player->learnSpell(57994); | |
player->learnSpell(8143); | |
player->learnSpell(49236); | |
player->learnSpell(58796); | |
player->learnSpell(58757); | |
player->learnSpell(49276); | |
player->learnSpell(57960); | |
player->learnSpell(131); | |
player->learnSpell(58745); | |
player->learnSpell(6196); | |
player->learnSpell(58734); | |
player->learnSpell(58774); | |
player->learnSpell(58739); | |
player->learnSpell(58656); | |
player->learnSpell(546); | |
player->learnSpell(556); | |
player->learnSpell(66842); | |
player->learnSpell(51994); | |
player->learnSpell(8177); | |
player->learnSpell(58749); | |
player->learnSpell(20608); | |
player->learnSpell(36936); | |
player->learnSpell(36936); | |
player->learnSpell(58804); | |
player->learnSpell(49271); | |
player->learnSpell(8512); | |
player->learnSpell(6495); | |
player->learnSpell(8170); | |
player->learnSpell(66843); | |
player->learnSpell(55459); | |
player->learnSpell(66844); | |
player->learnSpell(3738); | |
player->learnSpell(2894); | |
player->learnSpell(60043); | |
player->learnSpell(51514); | |
player->learnSpell(34093); | |
player->learnSpell(33392); | |
player->learnSpell(54197); | |
player->learnSpell(668); | |
player->learnSpell(669); | |
player->learnSpell(670); | |
player->learnSpell(671); | |
player->learnSpell(672); | |
player->learnSpell(813); | |
player->learnSpell(814); | |
player->learnSpell(815); | |
player->learnSpell(816); | |
player->learnSpell(817); | |
player->SaveToDB(); | |
///////////ARMES///////////// | |
player->learnSpell(8737); | |
player->learnSpell(196); | |
player->learnSpell(197); | |
player->learnSpell(198); | |
player->learnSpell(199); | |
player->learnSpell(227); | |
player->learnSpell(15590); | |
player->SaveToDB(); | |
} | |
//////////////Restriction/////////// | |
//Faction | |
if(player->GetTeam() == ALLIANCE){ | |
player->learnSpell(32182); | |
} | |
else | |
{ | |
player->learnSpell(2825); | |
} | |
////////////////////////////////// | |
if(player->HasSpell(61295)) | |
{ | |
player->learnSpell(61301); | |
} | |
////////////////////////////////// | |
if(player->HasSpell(974)) | |
{ | |
player->learnSpell(49284); | |
} | |
////////////////////////////////// | |
if(player->HasSpell(30706)) | |
{ | |
player->learnSpell(57722); | |
} | |
////////////////////////////////// | |
if(player->HasSpell(51490)) | |
{ | |
player->learnSpell(59159); | |
} | |
player->UpdateSkillsToMaxSkillsForLevel(); | |
player->SaveToDB(); | |
player->PlayerTalkClass->CloseGossip(); | |
break; | |
///////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
case CLASS_DRUID: | |
switch(action) | |
{ | |
case GOSSIP_ACTION_INFO_DEF+1: | |
player->learnSpell(48378); | |
player->learnSpell(48469); | |
player->learnSpell(48461); | |
player->learnSpell(48463); | |
player->learnSpell(48441); | |
player->learnSpell(53307); | |
player->learnSpell(53308); | |
player->learnSpell(5487); | |
player->learnSpell(48560); | |
player->learnSpell(6795); | |
player->learnSpell(48480); | |
player->learnSpell(53312); | |
player->learnSpell(18960); | |
player->learnSpell(5229); | |
player->learnSpell(48443); | |
player->learnSpell(50763); | |
player->learnSpell(8983); | |
player->learnSpell(8946); | |
player->learnSpell(1066); | |
player->learnSpell(48562); | |
player->learnSpell(783); | |
player->learnSpell(770); | |
player->learnSpell(16857); | |
player->learnSpell(18658); | |
player->learnSpell(768); | |
player->learnSpell(1082); | |
player->learnSpell(16979); | |
player->learnSpell(49376); | |
player->learnSpell(5215); | |
player->learnSpell(48477); | |
player->learnSpell(49800); | |
player->learnSpell(48465); | |
player->learnSpell(48572); | |
player->learnSpell(26995); | |
player->learnSpell(48574); | |
player->learnSpell(2782); | |
player->learnSpell(50213); | |
player->learnSpell(2893); | |
player->learnSpell(33357); | |
player->learnSpell(5209); | |
player->learnSpell(48575); | |
player->learnSpell(48447); | |
player->learnSpell(48577); | |
player->learnSpell(48579); | |
player->learnSpell(5225); | |
player->learnSpell(22842); | |
player->learnSpell(49803); | |
player->learnSpell(9634); | |
player->learnSpell(20719); | |
player->learnSpell(48467); | |
player->learnSpell(29166); | |
player->learnSpell(62600); | |
player->learnSpell(22812); | |
player->learnSpell(48470); | |
player->learnSpell(48564); | |
player->learnSpell(48566); | |
player->learnSpell(33943); | |
player->learnSpell(49802); | |
player->learnSpell(48451); | |
player->learnSpell(48568); | |
player->learnSpell(33786); | |
player->learnSpell(40120); | |
player->learnSpell(62078); | |
player->learnSpell(52610); | |
player->learnSpell(50464); | |
player->learnSpell(48570); | |
player->learnSpell(34093); | |
player->learnSpell(33392); | |
player->learnSpell(54197); | |
player->learnSpell(668); | |
player->learnSpell(669); | |
player->learnSpell(670); | |
player->learnSpell(671); | |
player->learnSpell(672); | |
player->learnSpell(813); | |
player->learnSpell(814); | |
player->learnSpell(815); | |
player->learnSpell(816); | |
player->learnSpell(817); | |
player->SaveToDB(); | |
///////////ARMES///////////// | |
player->learnSpell(198); | |
player->learnSpell(199); | |
player->learnSpell(200); | |
player->learnSpell(227); | |
player->SaveToDB(); | |
} | |
//////////////Restriction/////////// | |
if(player->HasSpell(50516)) | |
{ | |
player->learnSpell(61384); | |
} | |
////////////////////////////////// | |
if(player->HasSpell(48505)) | |
{ | |
player->learnSpell(53201); | |
} | |
////////////////////////////////// | |
if(player->HasSpell(48438)) | |
{ | |
player->learnSpell(53251); | |
} | |
////////////////////////////////// | |
if(player->HasSpell(5570)) | |
{ | |
player->learnSpell(48468); | |
} | |
player->UpdateSkillsToMaxSkillsForLevel(); | |
player->SaveToDB(); | |
player->PlayerTalkClass->CloseGossip(); | |
break; | |
case 15: | |
player->PlayerTalkClass->CloseGossip(); | |
break; | |
///////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
} | |
return true; | |
} | |
void AddSC_npc_welcome() | |
{ | |
Script *newscript; | |
newscript = new Script; | |
newscript->Name = "npc_welcome"; | |
newscript->pGossipHello = &GossipHello_npc_welcome; | |
newscript->pGossipSelect = &GossipSelect_npc_welcome; | |
newscript->RegisterSelf(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment