mirror of
https://github.com/Relintai/TC-Solo.git
synced 2024-11-21 23:47:25 +01:00
Relintai
3ae797661e
-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.
33 lines
1.2 KiB
Plaintext
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! |