Skip to content

Instantly share code, notes, and snippets.

enum eRanks
{
/* Alliance */
PRIVATE = 1
};
enum eKills
{
KILLS_1 = 50
};
case KILLS_2:
if(killer->HasAchieved(399)
killer->SetTitle(sCharTitlesStore.LookupEntry(VANQUISHER));
break;
/*******************************************************************************************
* _ _ __ _ *
* | \ | | ___ _ __ ___ ___ ___ / _| | |_ *
* | \| | / _ \ | '_ ` _ \ / __| / _ \ | |_ | __| *
* | |\ | | (_) | | | | | | | \__ \ | (_) | | _| | |_ *
* |_| \_| \___/ |_| |_| |_| |___/ \___/ |_| \__| *
* 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. *
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);
#include "ScriptPCH.h"
enum eRanks
{
PRIVATE = 1,
CORPORAL = 2,
SERGEANT = 3,
MASTER_SERGEANT = 4,
SERGEANT_MAJOR = 5,
KNIGHT = 6,
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;
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);
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;
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
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