• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

Vanilla PvP Titles from NPC Vendor

Asbert75

Enthusiast
Edit: Sorry that I didn't add a tag to the thread, not used to that :)

So Rochet2 created this script for me like a year ago or so, I decided I wanted to fix it to work with the current revision, I had some help from LilleCarl, Rochet2 and JameyBoor to update it (as I just recently started C++ I could not do it myself).

Screenshots:
HNTDWgR.jpg

R7oIzm2.png


How to add ANY title:
This is the structure of the title option:
Code:
{IconID, Title Name (Not Title ID, this is what shows up on Gossip Menu), Honorable Kills Required, TitleID (This has to be the Id of the title taken from the DB)}

Example title:
Code:
{1, "of the Alliance", 50000, 126}


Script: Pastebin - No PvP Badges


Script: Pastebin - PvP Badges
 
Last edited:

frost

Banned
hey this script is epic and my friends love it but it had an issue though.

seems that it didn't like one line when i used it on my server.

here is the edit i did to make it work properly on my server on line 125:

Code:
 else if(Titles[i].HK > pPlayer->GetUInt32Value(PLAYER_FIELD_HONOR_CURRENCY))

this is what ur script had. it was not finding the honor kills even though my char had 26,254 honor.
the above edit fixed it for me :)

Code:
else if(Titles[i].HK > pPlayer->GetUInt32Value(PLAYER_FIELD_LIFETIME_HONORABLE_KILLS))
 
Last edited:

Tommy

Founder
I don't see "PLAYER_FIELD_HONOR_CURRENCY" being used in any of those scripts. o_O

All I see is:

Code:
else if(Titles[i].HK > pPlayer->GetUInt32Value([COLOR="#00FF00"]PLAYER_FIELD_LIFETIME_HONORABLE_KILLS[/COLOR]))
 

Neccta

Exalted Member
Can someone explain how I can apply this script to an NPC? Would be very thankful

Add 'Title_gossip_codebox' to ScriptName in creature_template.

Code:
UPDATE creature_template SET ScriptName = 'Title_gossip_codebox' WHERE entry = YourNPCEntry;

Your NPC will also need to have the gossip flag which is 1.

Code:
UPDATE creature_template SET npcflag = 1 WHERE entry = YourNPCEntry;
 
Last edited:

Pawsz

Emulation Addict
Brilliant, Thanks Dude
Add 'Title_gossip_codebox' to ScriptName in creature_template.

Code:
UPDATE creature_template SET ScriptName = 'Title_gossip_codebox' WHERE entry = YourNPCEntry;

Your NPC will also need to have the gossip flag which is 1.

Code:
UPDATE creature_template SET npcflag = 1 WHERE entry = YourNPCEntry;
 
Top