Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Miscellaneous => Topic started by: Nupper on August 26, 2015, 04:57:25 pm

Title: [QUESTION:WotlK] Follower NPC
Post by: Nupper on August 26, 2015, 04:57:25 pm
I am trying to create a spell much like the warlocks void walker or a bodyguard type spell...
but all the spells i can find to copy either has limits or can be spawned more than once.....I am trying to see if there is a spell that i can copy that will allow me to summon an NPC to fight my side without the restriction and will only spawn once untill dismissed.

Much like the companion pet spells but for combat NPCS
Title: Re: [QUESTION:WotlK] Follower NPC
Post by: Nupper on August 27, 2015, 09:24:39 am
Bump
Title: Re: [QUESTION:WotlK] Follower NPC
Post by: madguy on August 27, 2015, 01:29:47 pm
Did you check existing NPC-Used spells? For exemple, i believe near booty bay there are pirate warlocks that summon a voidwalker pet, go check in smart_scripts the spell
Title: Re: [QUESTION:WotlK] Follower NPC
Post by: Kaev on August 27, 2015, 07:54:49 pm
Not sure, but i would bet that they aren't actually spells but spawned creatures with pet AI or something like that.
Title: Re: [QUESTION:WotlK] Follower NPC
Post by: Nupper on August 27, 2015, 08:59:03 pm
Quote from: "Kaev"
Not sure, but i would bet that they aren't actually spells but spawned creatures with pet AI or something like that.

 I know you must have database entry for the creatures your spawning but i don't need Pet AI...
Just able to summon and dismiss and will only spawn once until dismissed...Like chompanion pets just don't want it in the pets tab.
As i want the warlocks or hunters to be able to keep there pets as well.
Title: Re: [QUESTION:WotlK] Follower NPC
Post by: MountainLion on August 28, 2015, 03:21:04 am
Quote from: "Nupper"
I am trying to create a spell much like the warlocks void walker or a bodyguard type spell...
but all the spells i can find to copy either has limits or can be spawned more than once.....I am trying to see if there is a spell that i can copy that will allow me to summon an NPC to fight my side without the restriction and will only spawn once untill dismissed.

Much like the companion pet spells but for combat NPCS

You are looking for a "guardian npc". What I can think of is: Create a new spell that's based off another one similar to what you want it to do, script a creature guardian to summon/despawn manually. Good luck.
Title: Re: [QUESTION:WotlK] Follower NPC
Post by: Kaev on August 28, 2015, 08:04:10 am
Quote from: "Nupper"
Quote from: "Kaev"
Not sure, but i would bet that they aren't actually spells but spawned creatures with pet AI or something like that.

 I know you must have database entry for the creatures your spawning but i don't need Pet AI...
Just able to summon and dismiss and will only spawn once until dismissed...Like chompanion pets just don't want it in the pets tab.
As i want the warlocks or hunters to be able to keep there pets as well.
With pet AI i didn't ment the player pets which are just there to show off.

I actually ment that you should look how they did the pets - the ones who assist you in a fight and so on - on the server side code.
There are pet classes, e.g. PetHandler (https://github.com/TrinityCore/TrinityCore/blob/f45ae7af431402e6d9e4aff488a4cc64b9dfffd3/src/server/game/Handlers/PetHandler.cpp) (this will probably the main part of the pet AI that i ment) and so on.
Title: Re: [QUESTION:WotlK] Follower NPC
Post by: Nupper on August 29, 2015, 10:49:32 am
Quote from: "Kaev"
Quote from: "Nupper"
Quote from: "Kaev"
Not sure, but i would bet that they aren't actually spells but spawned creatures with pet AI or something like that.

 I know you must have database entry for the creatures your spawning but i don't need Pet AI...
Just able to summon and dismiss and will only spawn once until dismissed...Like chompanion pets just don't want it in the pets tab.
As i want the warlocks or hunters to be able to keep there pets as well.
With pet AI i didn't ment the player pets which are just there to show off.

I actually ment that you should look how they did the pets - the ones who assist you in a fight and so on - on the server side code.
There are pet classes, e.g. PetHandler (https://github.com/TrinityCore/TrinityCore/blob/f45ae7af431402e6d9e4aff488a4cc64b9dfffd3/src/server/game/Handlers/PetHandler.cpp) (this will probably the main part of the pet AI that i ment) and so on.

I really trying to figure how to prevent Multi-able spawns.. like One spawn and thats it.