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!

Menu

Author Topic: [SOLVED] Impale effect on NPCs  (Read 1807 times)

Nassal

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 5
    • View Profile
[SOLVED] Impale effect on NPCs
« on: November 08, 2011, 12:26:09 pm »
Hi there, I'm working on Trinity Force, and I've got a little problem. Maybe it's easy, but I totally have no idea how to do it. I'd like to set some NPCs to be impaled by this: http://www.wowhead.com/spell=69057
I guess setting the spell on them should be easy, but having them 1HP all the time without losing of it, and not attacking when someone comes closer? :P Thanks for any help
« Last Edit: November 10, 2011, 06:29:16 pm by Admin »

Avicii

  • Registred Member
  • Race Changer
  • *****
  • Posts: 32
    • View Profile
Re: [QUESTION] Impale effect on NPCs
« Reply #1 on: November 08, 2011, 12:40:13 pm »
Firstly; check if the spell works. Learn the spell and cast it on someone/something.

Secondly; go into Creature_Template (writing with uppercase letters for easier view)
Find a column with the name; SpellId1 or similar and add the spell there. The probability of this spell beign casted is not changable, however; you may also try to setup a script in; Smart_Scripts to cast the spell at a cooldown of maybe 1 minute, and also a probability rating of let's say 50% upon triggering combat.

All the necessary information about this can be found on their Wiki :)

Good luck,
Avicii
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Map Editor, born and proud of it!

4 years experienced Staff Administrator, Owner, Co-Owner and Chief Executive Officer both IRL and in-game.
Experienced trinity user/compiler

Avicii

  • Registred Member
  • Race Changer
  • *****
  • Posts: 32
    • View Profile
Re: [QUESTION] Impale effect on NPCs
« Reply #2 on: November 08, 2011, 12:41:13 pm »
If you have any questions, PM me with your Patch, DB and core revision and I'll try to figure something out from there.
I'm mainly guessing here, that you've got the latest DB Rev as well as the latest patch + TC2 ^^
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Map Editor, born and proud of it!

4 years experienced Staff Administrator, Owner, Co-Owner and Chief Executive Officer both IRL and in-game.
Experienced trinity user/compiler

-Dave

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 46
    • View Profile
Re: [QUESTION] Impale effect on NPCs
« Reply #3 on: November 09, 2011, 11:05:03 pm »
I think the question was the other way round, not for the NPC to cast the spell on players but for it to be permanently in that impaled state? I could be wrong :3
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Skype: Sharkeh-

Professional audio engineer & hobbyist tinkerer.

Keta

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 210
    • View Profile
Re: [QUESTION] Impale effect on NPCs
« Reply #4 on: November 10, 2011, 12:26:44 am »
Here's how I think you ought to make it:
Make the NPC (spike) mountable.
Make the NPC neutral.
Make the NPC unselectable.
Make the NPC un-agro-able or w/e.

And then make it so the player which this spell will be cast on, will be forced onto the spike, just as if it was a mount. Only, they can't control it or cast anything and shizz. You get what I mean :p
If I find time, Ill try scripting it in Lua tomorrow on my ArcEmu server. Yes, ArcEmu. Start flaming, idc.

Thanks
Keta
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Nassal

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 5
    • View Profile
Re: [QUESTION] Impale effect on NPCs
« Reply #5 on: November 10, 2011, 02:19:57 pm »
Thanks guys, Keta - that's exactly what I was in need of ;D Thank you very much, I will try it later :)
About ArcEmu - I like ArcEmu more too, more editable and stuff... :P Tho I  use Trinity Core anyway :P
« Last Edit: January 01, 1970, 01:00:00 am by Admin »