Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: MR. Farrare on August 27, 2014, 07:14:09 am

Title: [QUESTION] how to let the npc use 2 blades? 335
Post by: MR. Farrare on August 27, 2014, 07:14:09 am
like rouges use the ofhand weapon as a sword ,axe etc.. fight with it becuase when I equip the npc with  2 weapons he attack with the main hand only but the ofhand weapon he only use it as a sheild and is their any way else than smartAI or eventAI without spell? and im using 335a trinitycore

and sorry for my english
Title: Re: [QUESTION] how to let the npc use 2 blades? 335
Post by: Filipsons on August 28, 2014, 10:28:48 am
Without spell? I dont know, but you can try learn "Dual Wield"
Title: Re: [QUESTION] how to let the npc use 2 blades? 335
Post by: MR. Farrare on August 28, 2014, 12:18:36 pm
Quote from: "Filipsons"
Without spell? I dont know, but you can try learn "Dual Wield"
npc (mobs) not the player
Title: Re: [QUESTION] how to let the npc use 2 blades? 335
Post by: Amaroth on August 29, 2014, 02:05:47 am
Encountered similiar problem with Titan's Grip, while I wasn't able to force NPC carry 2 two-handed weapons at once/two-handed weapon with shield. Learning a spel, adding an aura and so on didn't help at all and I don't know if it actually can be done without some coding in core.

The easiest idea which comes to my mind is creating custom spell, which causes caster to attack for weapon damage with off-hand weapon while playing emote for off-hand attack and placing this spell to event/smartAI with about 2-3s cooldown.
Title: Re: [QUESTION] how to let the npc use 2 blades? 335
Post by: MR. Farrare on August 29, 2014, 09:47:07 am
Quote from: "Amaroth"
Encountered similiar problem with Titan's Grip, while I wasn't able to force NPC carry 2 two-handed weapons at once/two-handed weapon with shield. Learning a spel, adding an aura and so on didn't help at all and I don't know if it actually can be done without some coding in core.

The easiest idea which comes to my mind is creating custom spell, which causes caster to attack for weapon damage with off-hand weapon while playing emote for off-hand attack and placing this spell to event/smartAI with about 2-3s cooldown.
I thought the same but their is no faster way than this
Title: Re: [QUESTION] how to let the npc use 2 blades? 335
Post by: Filipsons on August 30, 2014, 02:05:20 pm
Yes I know. NPC, but you can try create new NPC with this spell (dual wield)
Title: Re: [QUESTION] how to let the npc use 2 blades? 335
Post by: MR. Farrare on August 30, 2014, 03:53:10 pm
Quote from: "Filipsons"
Yes I know. NPC, but you can try create new NPC with this spell (dual wield)
you mean smart ai or as an aura in the creature template addon ?
and by the way nice to see you back to madcraft Filipsons
Title: Re: [QUESTION] how to let the npc use 2 blades? 335
Post by: phantomx on August 30, 2014, 07:29:36 pm
There are a number of npc's that dual wield in 3.3.5 I.E.

 http://www.wowhead.com/npc=21315/ruul-the-darkener

http://www.wowhead.com/npc=30596/the-ebon-watcher

I had it done for some custom guards but I can't remember the flags right now used to have the left hand to attack as well instead of just being there.

(http://i.imgur.com/rEfbut6.jpg)

P.S.

If I remember I'll let you know.
Title: Re: [QUESTION] how to let the npc use 2 blades? 335
Post by: MR. Farrare on August 31, 2014, 04:19:45 am
Quote from: "phantomx"
There are a number of npc's that dual wield in 3.3.5 I.E.

 http://www.wowhead.com/npc=21315/ruul-the-darkener

http://www.wowhead.com/npc=30596/the-ebon-watcher

I had it done for some custom guards but I can't remember the flags right now used to have the left hand to attack as well instead of just being there.

(http://i.imgur.com/rEfbut6.jpg)

P.S.

If I remember I'll let you know.
thanks and I spawn them but they didn't use the offhand weapon so I went to check the creature template to see the flag
but there is nothing so if you can check them you will see the flag or check your cutom gaurd in the creature template to see the flagg
Title: Re: [QUESTION] how to let the npc use 2 blades? 335
Post by: Filipsons on August 31, 2014, 08:49:52 am
Do you have Mang or TC2? Or others.
Title: Re: [QUESTION] how to let the npc use 2 blades? 335
Post by: MR. Farrare on August 31, 2014, 05:32:18 pm
Quote from: "Filipsons"
Do you have Mang or TC2? Or others.
if your asking me TC2
Title: Re: [QUESTION] how to let the npc use 2 blades? 335
Post by: kojak488 on August 31, 2014, 09:45:05 pm
Quote from: "MR. Farrare"
like rouges use the ofhand weapon as a sword ,axe etc.. fight with it becuase when I equip the npc with  2 weapons he attack with the main hand only but the ofhand weapon he only use it as a sheild and is their any way else than smartAI or eventAI without spell?

No, there isn't another way other than SmartAI or EventAI.  phantomx is not remembering correctly.  There isn't a flag to let creatures use an off-hand attack.  That can only be done via scripting it.
Title: Re: [QUESTION] how to let the npc use 2 blades? 335
Post by: phantomx on August 31, 2014, 10:15:22 pm
Quote from: "kojak488"
Quote from: "MR. Farrare"
like rouges use the ofhand weapon as a sword ,axe etc.. fight with it becuase when I equip the npc with  2 weapons he attack with the main hand only but the ofhand weapon he only use it as a sheild and is their any way else than smartAI or eventAI without spell?

No, there isn't another way other than SmartAI or EventAI.  phantomx is not remembering correctly.  There isn't a flag to let creatures use an off-hand attack.  That can only be done via scripting it.

I probably did script it in the core I don't remember was like 5 months ago or so... however you can just add a spell to the creature so it does a cast that attacks with both hands a very simple thing to do.
Title: Re: [QUESTION] how to let the npc use 2 blades? 335
Post by: MR. Farrare on September 01, 2014, 05:25:32 am
Quote from: "phantomx"
Quote from: "kojak488"
Quote from: "MR. Farrare"
like rouges use the ofhand weapon as a sword ,axe etc.. fight with it becuase when I equip the npc with  2 weapons he attack with the main hand only but the ofhand weapon he only use it as a sheild and is their any way else than smartAI or eventAI without spell?

No, there isn't another way other than SmartAI or EventAI.  phantomx is not remembering correctly.  There isn't a flag to let creatures use an off-hand attack.  That can only be done via scripting it.

I probably did script it in the core I don't remember was like 5 months ago or so... however you can just add a spell to the creature so it does a cast that attacks with both hands a very simple thing to do.
I thought of that too but I thought it will be better to have a flagg or something
Title: Re: [QUESTION] how to let the npc use 2 blades? 335
Post by: kojak488 on September 01, 2014, 09:07:58 pm
There's no such flag for it and never will be.
Title: Re: [QUESTION] how to let the npc use 2 blades? 335
Post by: MR. Farrare on September 01, 2014, 10:54:12 pm
Quote from: "kojak488"
There's no such flag for it and never will be.
so it will be only SmartAI and EventAI