TC-Solo/allclass/totemfix.txt
Relintai 3ae797661e -Initial commit.
-Already done:
-Levelling to 61.
-Shaman gear 16-61.
-Mage gear to some degree, Some lock, druid items.
-Hunter gear up to ZG.
-Hopefully all MC spells are disabled in the 1-60 range.
-Added hacks to non working bosses.
-Vendors are spawned in, in instances.
-Basic gear vendor.
-Fix for the allclass patch.
2014-12-02 19:10:11 +01:00

33 lines
1.2 KiB
Plaintext

The "leecher" came to come and post a fix for your patch, this will fix the 0 display id for the new classes when you spawn totems with a shaman.
Totem fix: Here is simple and quick fix, delete this from your totem.cpp and presto you will have normal displays for your totems.
Code:
// set display id depending on caster's race
SetDisplayId(m_owner->GetModelForTotem(PlayerTotemType(m_Properties->Id)));
Alternative fix, so horde have proper display id's for their totems, not just alli ones. (Just copy the horde/alli display id's here and add a new field for each missing race and recompile your core.)
Code:
src\server\game\Entities\Unit\Unit.cpp
uint32 Unit::GetModelForTotem(PlayerTotemType totemType)
{
switch (getRace())
{
case RACE_ORC:
{
switch (totemType)
{
case SUMMON_TYPE_TOTEM_FIRE: // fire
return 30758;
case SUMMON_TYPE_TOTEM_EARTH: // earth
return 30757;
case SUMMON_TYPE_TOTEM_WATER: // water
return 30759;
case SUMMON_TYPE_TOTEM_AIR: // air
return 30756;
Enjoy!