PDA

View Full Version : [SOLVED] Rochet2 Transmog Vendor



Visa
07-12-2016, 10:13 PM
https://github.com/Rochet2/TrinityCore/tree/transmogvendor/src/server/scripts/Custom/TransmogDisplayVendor
Latest rev, as of right now. (Fresh Compiled 1hr ago to make sure i wasnt messing up).

The gossip menu works fine, the issue I'm having is...

[Head] -> [Epic] -> ??

After selecting the Quality of item you wish to transmog, the gossip menu closes without any errors, or err msgs. Nothing happens it simply closes.

did I miss something, is there a table I have to fill with the items I wish to use for transmogrification or is that pre-made and I didn't do something right? I have a fresh compile. Pulled rochet2 transmogvendor, no errors on patch apply. Compiled fine.

Item I'm using is custom, however I added a blizzlike Wrathful Helm and tried to transmog it to something and the menu closes as well after clicking [Epic] or whatever else, [Uncommon], [Common], etc..

Rochet2
07-13-2016, 05:58 PM
The items are taken directly from item_template.

I tested just now on https://github.com/TrinityCore/TrinityCore/commit/0b9854428657bd5c988e7aeda5b6e4df9a72131a
and the code works fine. Its not the latest source, but its recent. (5 days old atm)

The bug you describe sounds a lot like you missed some code from the vendor handling.
Did you install by git pull? Or by git diff / patch? How did you apply the diff/patch if you used that?
If you used diff/patch it is possible you missed some edit if you applied manually or used --reject

Is it possible for you to share the item code so I can test if the item is somehow affecting this?

Visa
07-13-2016, 06:31 PM
I installed by git remote pull. It gave no errors and it compiled fine. The entire NPC gossip script works fine the only thing that does not work is the vendor showing the items.

So I went a little further and did a git reset --hard (latestrev), and then re-applied it except this time using the .diff/patch. I applied it with --reject and it applied 100%, no rej files. Compiled fine. Same result in-game.

And what do you mean 'item' code?

Rochet2
07-13-2016, 06:35 PM
I meant the custom item's SQL.

Visa
07-13-2016, 06:39 PM
INSERT INTO `item_template` (`entry`, `class`, `subclass`, `SoundOverrideSubclass`, `name`, `displayid`, `Quality`, `Flags`, `FlagsExtra`, `BuyCount`, `BuyPrice`, `SellPrice`, `InventoryType`, `AllowableClass`, `AllowableRace`, `ItemLevel`, `RequiredLevel`, `RequiredSkill`, `RequiredSkillRank`, `requiredspell`, `requiredhonorrank`, `RequiredCityRank`, `RequiredReputationFaction`, `RequiredReputationRank`, `maxcount`, `stackable`, `ContainerSlots`, `StatsCount`, `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`, `ScalingStatDistribution`, `ScalingStatValue`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `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`, `duration`, `ItemLimitCategory`, `HolidayId`, `ScriptName`, `DisenchantID`, `FoodType`, `minMoneyLoot`, `maxMoneyLoot`, `flagsCustom`, `VerifiedBuild`) VALUES (100187, 4, 1, -1, '|cffFFFFFF|TIER4| Ancient Priest\'s Leggings of Mysteries', 44976, 4, 8, 0, 1, 0, 6750000, 7, 16, -1, 300, 255, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 7, 62184, 5, 60864, 6, 60864, 32, 680, 36, 425, 45, 80839, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 915, 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, 1, '', 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 1035, 300, 0, 0, 0, 0, 4, 0, 2, 0, 2, 0, 4015, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 1);


But I even tried to Transmog
Wrathful Gladiator's Silk Amice (http://www.wowhead.com/item=51467/wrathful-gladiators-silk-amice) - Wowhead

Rochet2
07-13-2016, 07:07 PM
I tested now on latest TC and a clean DB and everything works fine. d22569aababdc9eb09efaf558e0a1b262e3bfe79
Tried the custom item and the wowhead item as well but everything worked as intended.

Do you have any other modifications?
Can you try to debug?
What OS are you using?

Visa
07-13-2016, 07:55 PM
Okay literally compiled so many different latest rev's alternating the use of cmake, diff patching, git pulling, and only to find out the reason why it immediately closes the gossip after clicking the Quality of the item is because of the NPC that I was using.

I skipped ahead and didn't use the pre-defined creature that you gave in the SQL. I already made mine and its flags were 1. Where they needed to have 128 + 1. So it makes sense that the vendor closes after that because there is no vendor flag on the npc (129). Simply mistake haha the little things trip you up I guess. Thanks for your help though!

Rochet2
07-13-2016, 08:31 PM
ohaohoahohaohohohaoehaoheaohoaeh didnt even think about the NPC missing flags : |