Jump to content

lecails

Members
  • Posts

    177
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by lecails

  1. try this:

    summon->addspell(*******l);

    summon-> ToggleAutocast(*******);

    may this solve it, I think

    I solved the conflict whith the correct synthax

    spawnCreature->learnSpell(****)

    spawnCreature->ToggleAutocast(***)

    But the spell dont work in game,the ghost spawn whith 1 hp and not cast spell .

  2. Whith latest revsion this party of code dont compile for me

    spawnCreature->InitStatsForLevel(level, m_caster);

    +if( pet_entry == 31216 )

    +{

    + spawnCreature->SetBonusDamage( int32( m_caster->SpellBaseDamageBonus( SPELL_SCHOOL_MASK_FROST ) * 0.33f ) );

    + spawnCreature->SetCreateMana(28 + 30 * level);

    + if (addSpell( 59637 ) )

    + ToggleAutocast( 59637, true );

    +

    + if (addSpell( 59638 ) )

    + ToggleAutocast( 59638, true );

    +}

    What is the correct synthax for addSpell and toggleAutocast plz ?

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use