This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - cata123

Pages: [1]
1
Development and Presentation / Re: SharpWoW - An editor for WoW
« on: November 06, 2015, 10:01:12 pm »
Is there a link to download or a repository to compile ?
I have a repo from aug 2012 if I`m not mistaken. From what stage is that one ?
And I couldn't compile because of some MySQLconnector.cs

2
Serverside Modding / Re: [QUESTION:WotlK] Changes for custom pets
« on: October 10, 2015, 03:33:17 pm »
Well, looks like seems to work correctly now, stats seem fine for all non-hunter classes.

3
Serverside Modding / Re: [QUESTION:WotlK] Changes for custom pets
« on: October 09, 2015, 02:27:34 pm »
I don`t understand.
I removed the Hunter class check in pet.cpp :

Code: [Select]
if (GetOwner()->getClass() == CLASS_WARLOCK
            || GetOwner()->getClass() == CLASS_SHAMAN        // Fire Elemental
            || GetOwner()->getClass() == CLASS_DEATH_KNIGHT) // Risen Ghoul
        {
            petType = SUMMON_PET;
        }
        else
        {
            petType = HUNTER_PET;
            m_unitTypeMask |= UNIT_MASK_HUNTER_PET;
        }
    }
so that is any class have a pet, it`s a hunter pet.

4
Serverside Modding / Re: [QUESTION:WotlK] Changes for custom pets
« on: October 09, 2015, 11:01:30 am »
It`s part of beastmaster script:

Code: [Select]
   Creature *creatureTarget = m_creature->SummonCreature(entry, player->GetPositionX(), player->GetPositionY()+2, player->GetPositionZ(), player->GetOrientation(), TEMPSUMMON_CORPSE_TIMED_DESPAWN, 500);
    if(!creatureTarget) return;

    Pet* pet = player->CreateTamedPetFrom(creatureTarget, 0);

    if(!pet) return;

        // kill original creature
    creatureTarget->setDeathState(JUST_DIED);
    creatureTarget->RemoveCorpse();
    creatureTarget->SetHealth(0);

    pet->SetPower(POWER_HAPPINESS, 1048000);

    // prepare visual effect for levelup
    pet->SetUInt32Value(UNIT_FIELD_LEVEL, player->getLevel() - 1);
    pet->GetMap()->AddToMap((Creature*)pet);
        // visual effect for levelup
    pet->SetUInt32Value(UNIT_FIELD_LEVEL, player->getLevel());

    if(!pet->InitStatsForLevel(player->getLevel()))
        TC_LOG_ERROR("scripts", "Pet Create fail: no init stats for entry %u", entry);
        pet->UpdateAllStats();

    // caster have pet now
        player->SetMinion(pet, true);

        pet->SavePetToDB(PET_SAVE_AS_CURRENT);
        pet->InitTalentForLevel();
        player->PetSpellInitialize();

5
Serverside Modding / Re: [QUESTION:WotlK] Changes for custom pets
« on: October 07, 2015, 05:54:00 pm »
I have a custom beastmaster that adds pets to non hunter players, eventually to add custom ones, but i see the pets do not benefit for upgrades (HP, DPS, armors), that`s why i`m looking for the part where pet status is defined, or from where it comes from.
As for the code, i found in Pet.cpp from TrinityCore, at line 841:

Code: [Select]
   //Determine pet type
    PetType petType = MAX_PET_TYPE;
    if (IsPet() && GetOwner()->GetTypeId() == TYPEID_PLAYER)
    {
        if (GetOwner()->getClass() == CLASS_WARLOCK
            || GetOwner()->getClass() == CLASS_SHAMAN        // Fire Elemental
            || GetOwner()->getClass() == CLASS_DEATH_KNIGHT) // Risen Ghoul
        {
            petType = SUMMON_PET;
        }
        else if (GetOwner()->getClass() == CLASS_HUNTER)
        {
            petType = HUNTER_PET;
            m_unitTypeMask |= UNIT_MASK_HUNTER_PET;
        }
        else
        {
            TC_LOG_ERROR("entities.pet", "Unknown type pet %u is summoned by player class %u",
                           GetEntry(), GetOwner()->getClass());
        }
    }

6
Serverside Modding / Re: [QUESTION:WotlK] Changes for custom pets
« on: October 07, 2015, 12:56:01 am »
Thanks for answer. I`m looking for the code where it defines which class should have pets.
And pet default status I can`t find where is defined.

7
Serverside Modding / [QUESTION:WotlK] Changes for custom pets
« on: September 30, 2015, 09:40:41 pm »
Hello.
I wanted to ask if someone made this before : What changes must be done in order to add a custom pet.
Custom pet i mean hunter type pet (with spells, eventually talents, talents that also i need to find out how to make the scheme).
The pets i intend to make can be another class also (demon, humanoid, even player models).
For the pet it will automatically make use of its added spells in combat ?
And last question - Where can i find the default stats for a creature / pet (str,agi,int) ?

8
Resources and Tools / Re: [RELEASE] "Better" Procedural Water 3.3.5a
« on: August 03, 2015, 10:42:48 pm »
Here you go

Pages: [1]