What's new

[C++] [TrinityCore] Profession NPC

lordpsyan

Verified Member
26
2014
5
This script vreates an NPC that checks to see if you have a profession, and if so, increase your skill by 10. Can be repeated until maxed. Config options for price setting, etc.

Code:
##########################################################
#
#       Profession NPC
#
# Enable or Disable Primary Professions
#         default = 1 (Enabled)
#                   = 0 (Disabled)

ProfessionNPC.EnableProfessions = 1

# Enable or Disable Secondary Professions
#         default = 1 (Enabled)
#                   = 0 (Disabled)

ProfessionNPC.EnableSecondarySkills = 1

# Number of Skill points
#         default = 10

SkillPoints = 10

# GM Only
#         default = 0 (Anyone can use)
#                   = 1 (GM only)

ProfessionNPC.OnlyGMs = 0

# Cost of skill points (in copper)
#         default = 10000 (10 gold)

SkillGoldCost = 10000

# Use Tokens instead of gold
#         default = 0 (Use Gold)
#                 = 1 (Use Tokens)

ProfessionNPC.UseTokens = 1

# Entry number of "token" Item
#         default = 0 (No item. ProfessionNPC.UseTokens must = 0)
#                 = n (n = entry number of item)

ProfessionNPC.ItemEntryNum = 99999

###################################################################################################


Example:

grab it at http://git.lordpsyan.com
More Info: http://lordpsyan.realmsofwarcraft.com
See it in action: http://www.realmsofwarcraft.com

- LordPsyan
 
Top