r/SinglePlayerProject • • Apr 09 '26

Database Tips & Tricks learned over the last 12+ Months

Hello Redditians,

I play with three other people and were on WoW Classic proper, four manning all content. Then we decided that free is much cheaper than four subscriptions.

We are using the precompiled executable, running on Windows 11 Home. I compiled a Classic, probably eight years ago, and was a great learning experience - I highly recommend doing a self compile at least once.

Even with the precompiled and just the database, you have a lot of power at your hands for tuning the game to fit your design. Most of these can be applied to Classic. DBeaver is my DB editor.

  1. GM Commands

tbcmangos.command that is all your . commands as a GM. This is a nice list of everything you can do and a explanation.

GM Commands

Some of my top usages:

.bank = access to your bank from anywhere - extra bag space!
.appear [playername] = I play with three other humans
.summon = This will summon your bots to you. [There is a config value to enable summoning anywhere.]
.tele [destination] = Takes you to specified location, .tele orgr will take you to Orgrimmar while .tele org takes you to Ironforge
.revive [name] = As long as you live, you can bring bots/players back to life
.die = This is pretty obvious, especially if you ever do Black Morass.........

You can respawn bosses to farm them for loot. You can delete trash from dungeons to make it easier. Spawn items in your inventory

2) Boss / Loot Modification

Classic is completely different than TBC. Classic items are attached to the bosses directly. TBC items are in a group which is associated with the boss.

tbcmangos.creature_template

tbcmangos.creature_loot_template
tbcmangos.reference_loot_template_names
reference_loot_template

Once you have identified the entry (40030) in this example, you can start tuning reference_loot_template.

Change mincountOrRef to 0 stops an item from dropping. This will generate errors on start up in mangos.exe, you can ignore them.

3) Making your gear work for you!

Tabards and shirts... offer no combat or survivability boost. But what if they did?

Custom Tabard Stat Testing
Stat_0 = mana, Stat_7 = Stamina

The mana regen is spellid_1 = 35903. I recently added Shadowfury (warlock aoe/stun) to a shirt for our shadow priest who needed more AoE abilities. 20 second cooldown, no mana. Shadowfury is 30,414 and you can find these inside tbcmangos.spell_template

4) Making your own items

INSERT INTO tbcmangos.item_template
(entry, class, subclass, unk0, name, displayid, Quality, Flags, BuyCount, BuyPrice, SellPrice, InventoryType, AllowableClass, AllowableRace, ItemLevel, RequiredLevel, RequiredSkill, RequiredSkillRank, requiredspell, requiredhonorrank, RequiredCityRank, RequiredReputationFaction, RequiredReputationRank, maxcount, stackable, ContainerSlots, stat_type1, stat_value1, stat_type2, stat_value2, stat_type3, stat_value3, stat_type4, stat_value4, stat_type5, stat_value5, stat_type6, stat_value6, stat_type7, stat_value7, stat_type8, stat_value8, stat_type9, stat_value9, stat_type10, stat_value10, dmg_min1, dmg_max1, dmg_type1, dmg_min2, dmg_max2, dmg_type2, dmg_min3, dmg_max3, dmg_type3, dmg_min4, dmg_max4, dmg_type4, dmg_min5, dmg_max5, dmg_type5, armor, holy_res, fire_res, nature_res, frost_res, shadow_res, arcane_res, delay, ammo_type, RangedModRange, spellid_1, spelltrigger_1, spellcharges_1, spellppmRate_1, spellcooldown_1, spellcategory_1, spellcategorycooldown_1, spellid_2, spelltrigger_2, spellcharges_2, spellppmRate_2, spellcooldown_2, spellcategory_2, spellcategorycooldown_2, spellid_3, spelltrigger_3, spellcharges_3, spellppmRate_3, spellcooldown_3, spellcategory_3, spellcategorycooldown_3, spellid_4, spelltrigger_4, spellcharges_4, spellppmRate_4, spellcooldown_4, spellcategory_4, spellcategorycooldown_4, spellid_5, spelltrigger_5, spellcharges_5, spellppmRate_5, spellcooldown_5, spellcategory_5, spellcategorycooldown_5, bonding, description, PageText, LanguageID, PageMaterial, startquest, lockid, Material, sheath, RandomProperty, RandomSuffix, block, itemset, MaxDurability, area, `Map`, BagFamily, TotemCategory, socketColor_1, socketContent_1, socketColor_2, socketContent_2, socketColor_3, socketContent_3, socketBonus, GemProperties, RequiredDisenchantSkill, ArmorDamageModifier, ScriptName, DisenchantID, FoodType, minMoneyLoot, maxMoneyLoot, Duration, ExtraFlags)
VALUES(92025, 4, 0, -1, 'Twenty-Five Winters, Twenty Summers', 31616, 4, 524288, 1, 241024, 60256, 11, -1, 32767, 159, 18 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 7, 27, 5, 28, 30, 30, 18, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.0, 0.0, 0, 0.0, 0.0, 0, 0.0, 0.0, 0, 0.0, 0.0, 0, 0.0, 0.0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.0, 18052, 1, 0, 0.0, -1, 0, -1, 0, 1, 0, 0.0, -1, 0, -1, 0, 0, 0, 0.0, -1, 0, -1, 0, 0, 0, 0.0, -1, 0, -1, 0, 0, 0, 0.0, -1, 0, -1, 2, '', 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300, 0.0, '', 67, 0, 0, 0, 0, 0);

This is the first item I ever made and it is a ring for my wife. Everything in this has a special meaning. Item ID 92025. We were married in September. Ring was for our 20/25 anniversary. We are married 20 years and together 25 years. Which matches the name. Item level is 18 because we met when she was 18 years old.

In DBeaver, right click on an item and choose Generate SQL and then Insert. This copies that entire item as an insert SQL string. Change the item ID, at a minimum, and insert that new item into the DB. You can change the values in the insert, but that is not intuitive.

NOTE: Items made this way will always appear as a ? in your bag. The item's appearance is correct when worn. To change this, you will need to modify the code and compile the server yourself.

5) OMG there is a fire! Ain't nobody got time for that: or How I learned stop worrying and learned to love the [flying in tbc at level 60].

tbccharacters.character_spell

My paladin is guid 9911 - from tbccharacters.characters - and spell 34091 is fast flight.

NOTE: There are four values associated with flying in TBC.
NOTE#2: You will need to modify mount requirements and/or vendor purchase level requirements. Otherwise you still have to wait to 70.

6) Important links

https://wowdev.wiki/EnumeratedString#BonusStatIndex

The entire wowdev.wiki is valuable, but the EnumeratedStrings allow you to know what each value presents. Ex: Stat_Type1 = 0 means mana in the above example.

https://github.com/celguar/mangos-tbc/blob/master/src/game/Spells/SpellEffectDefines.h

This will allow you to modify how spells work. Warning: I have not fully tested this and am not sure it will cause instability.

All of this is available with the windows installer. You do not need to build your WoW instance and self deploy.

* You can not fly in Classic zones unless you change the code itself and compile.
* Run speed defaults to 1.0 unless you change the code itself and compile.

7) Remote access

Two of my players are not in my house and have to connect remotely. Tested several different methods and the first that worked and is easy to setup is RADMIN VPN. Your users will put your public vpn ip as their realmlist IP.

8) Classic / LK

There are only small differences for Classic and I have no experience with LK. My team leveled 1 - 50 in Classic. Then rerolled 1 - 70 and unlocked Karazhan two weeks ago.

16 Upvotes

4 comments sorted by

1

u/O_oBetrayedHeretic Apr 09 '26

Excellent post

1

u/MaximumJones Aug 25 '26

This is fantastic!