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
enum eRanks | |
{ | |
/* Alliance */ | |
PRIVATE = 1 | |
}; | |
enum eKills | |
{ | |
KILLS_1 = 50 | |
}; |
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
case KILLS_2: | |
if(killer->HasAchieved(399) | |
killer->SetTitle(sCharTitlesStore.LookupEntry(VANQUISHER)); | |
break; |
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
/******************************************************************************************* | |
* _ _ __ _ * | |
* | \ | | ___ _ __ ___ ___ ___ / _| | |_ * | |
* | \| | / _ \ | '_ ` _ \ / __| / _ \ | |_ | __| * | |
* | |\ | | (_) | | | | | | | \__ \ | (_) | | _| | |_ * | |
* |_| \_| \___/ |_| |_| |_| |___/ \___/ |_| \__| * | |
* The policy of Nomsoftware states: Releasing our software * | |
* or any other files are protected. You cannot re-release * | |
* anywhere unless you were given permission. * | |
* (C) Nomsoftware 2011-2012. All rights reserved. * |
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
std::ostringstream ss; | |
ss << Titles[i].name << " - " << Titles[i].HK << " HKs"; | |
std::string showcoolshit = ss.str(); | |
ss.clear(); | |
ss << "Are you sure?\nYou will be granted the title: " << Titles[i].name; | |
std::string showcoolshit2 = ss.str(); | |
// ADD_GOSSIP_ITEM_EXTENDED Parameters: (icon, label, GOSSIP_SENDER_MAIN (Sender), Title ID ? (action), popup, coppercost, code (false)) | |
pPlayer->ADD_GOSSIP_ITEM_EXTENDED(Titles[i].icon, showcoolshit.c_str(), GOSSIP_SENDER_MAIN, i, showcoolshit2, 0, false); |
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
#include "ScriptPCH.h" | |
enum eRanks | |
{ | |
PRIVATE = 1, | |
CORPORAL = 2, | |
SERGEANT = 3, | |
MASTER_SERGEANT = 4, | |
SERGEANT_MAJOR = 5, | |
KNIGHT = 6, |
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
case KILLS_14: | |
if(killer->GetTeam() == ALLIANCE) | |
killer->SetTitle(sCharTitlesStore.LookupEntry(GRAND_MARSHAL)); | |
void Player::SetTitle(CharTitlesEntry const* title, bool lost) | |
{ | |
killer->SetTitle(sCharTitlesStore.LookupEntry(FIELD_MARSHAL), true); | |
} | |
else if(killer->GetTeam() == HORDE) | |
killer->SetTitle(sCharTitlesStore.LookupEntry(HIGH_WARLORD)); | |
break; |
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
std::ostringstream ss; | |
ss << Titles[i].name << " - " << Titles[i].HK << " HKs"; | |
std::string showcoolshit = ss.str(); | |
ss.clear(); | |
ss << "Are you sure?\nYou will be granted the title: " << Titles[i].name; | |
std::string showcoolshit2 = ss.str(); | |
// ADD_GOSSIP_ITEM_EXTENDED Parameters: (icon, label, GOSSIP_SENDER_MAIN (Sender), Title ID ? (action), popup, coppercost, code (false)) | |
pPlayer->ADD_GOSSIP_ITEM_EXTENDED(Titles[i].icon, showcoolshit.c_str(), GOSSIP_SENDER_MAIN, i, showcoolshit2, 0, false); |
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
case KILLS_6: | |
if(killer->GetTeam() == ALLIANCE) | |
killer->SetTitle(sCharTitlesStore.LookupEntry(KNIGHT), false); | |
killer->SetTitle(sCharTitlesStore.LookupEntry(SERGEANT_MAJOR), true); | |
else | |
killer->SetTitle(sCharTitlesStore.LookupEntry(STONE_GUARD), false); | |
killer->SetTitle(sCharTitlesStore.LookupEntry(FIRST_SERGEANT), true); | |
break; |
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
Vendor vendor_1(700000, GOSSIP_ICON_VENDOR, "Rank 1 Armor"); | |
ItemList items_1(&vendor_1); | |
items_1.AddItem(18582); // Azzinoth | |
items_1.AddItem(13262); // Ashbringer | |
itemlists.push_back(items_1); | |
Vendor vendor_2(700001, GOSSIP_ICON_VENDOR, "Rank 1 Weapons"); | |
ItemList items_2(&vendor_2); | |
items_2.AddItem(42949); // Polished Spaulders of Valor | |
items_2.AddItem(48685); // Polished Breastplate of Valor |
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
6>C:\Users\Joakim\Desktop\Source\src\server\scripts\Custom\npc_multivendor.cpp(117): warning C4018: '<' : signed/unsigned mismatch | |
6>C:\Users\Joakim\Desktop\Source\src\server\scripts\Custom\npc_multivendor.cpp(162): warning C4018: '<' : signed/unsigned mismatch | |
6>C:\Users\Joakim\Desktop\Source\src\server\scripts\Custom\npc_multivendor.cpp(167): warning C4018: '<' : signed/unsigned mismatch | |
6>C:\Users\Joakim\Desktop\Source\src\server\scripts\Custom\npc_multivendor.cpp(174): warning C4018: '<' : signed/unsigned mismatch | |
6>C:\Users\Joakim\Desktop\Source\src\server\scripts\Custom\npc_multivendor.cpp(219): warning C4018: '<' : signed/unsigned mismatch | |
6>C:\Users\Joakim\Desktop\Source\src\server\scripts\Custom\npc_multivendor.cpp(378): warning C4018: '<' : signed/unsigned mismatch | |
6>C:\Users\Joakim\Desktop\Source\src\server\scripts\Custom\npc_multivendor.cpp(408): warning C4018: '<' : signed/unsigned mismatch |
OlderNewer