• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[c++] custom boss script

Status
Not open for further replies.

YouarexD

Exalted Member
Hello together

I have a question and a problem.

question: what must you write so the summoned enemies at the dead go back away from the Summoner

problem: My summoned npc does not conjure up their magic. I don't know why the do I have it just as written as above for the boss

Here is the script

http://paste.emudevs.com/?paste=199
 

Tommy

Founder
Code:
                        switch (summoned->GetEntry())
                        {
                                Summons.Summon(summoned);
                        }

Not sure why you have that, surprised if it even compiles. Remove the switch statement since it doesn't make any sense at all to have it.

I'd also recommend removing the "Ä" and "ä" since I wouldn't think that would be too compiler friendly because they aren't normal characters (pointing it out just incase).

problem: My summoned npc does not conjure up their magic. I don't know why the do I have it just as written as above for the boss

You don't need SummonList for your summoned minion AI. You also need to call "events.Reset()" in "Reset()" in your minion AI so when they reset their events reset.

Does your spellId exist? Make your sure GM is turned off because npcs will not attack you and you have "if (!UpdateVictim()) return;" which means if they don't have a target it will return and it won't run any code below it. DoCast has a 3rd parameter "triggered" for instant casting, it sometimes matters depending on the spell.


question: what must you write so the summoned enemies at the dead go back away from the Summoner

What do you mean by "go back away?" Do you mean corpse despawn?
 

YouarexD

Exalted Member
Code:
                        switch (summoned->GetEntry())
                        {
                                Summons.Summon(summoned);
                        }

Not sure why you have that, surprised if it even compiles. Remove the switch statement since it doesn't make any sense at all to have it.

I'd also recommend removing the "Ä" and "ä" since I wouldn't think that would be too compiler friendly because they aren't normal characters (pointing it out just incase).



You don't need SummonList for your summoned minion AI. You also need to call "events.Reset()" in "Reset()" in your minion AI so when they reset their events reset.

Does your spellId exist? Make your sure GM is turned off because npcs will not attack you and you have "if (!UpdateVictim()) return;" which means if they don't have a target it will return and it won't run any code below it. DoCast has a 3rd parameter "triggered" for instant casting, it sometimes matters depending on the spell.




What do you mean by "go back away?" Do you mean corpse despawn?

I mean even the npc that he summoned if boss stribt and it live. that should then disappear so despawn

the spellid is in the script in this and gm is if I test it but it does nothing
 
Status
Not open for further replies.
Top