View Full Version : [SOLVED] Custom spell mechanics

03-11-2014, 11:01 AM
Hello emudevs.
I'm wanna script one spell in 3.3.5a arcemu with LUA.
The spell description is :
Combines all player casted over time debufs on the target and dealing additional 50% damage.
I made that part where it check which spell cast player and if on player is any debufs , but how to make that part where script combines that debufs to one?
Any ideas how to make it work?

03-11-2014, 12:32 PM
im sure you'd need to edit the .dbc's for this, all i know about making a spell.

03-11-2014, 01:01 PM
yea i know i need edit dbc to create that "debuf" but how about script part?

03-15-2014, 10:24 PM
yea i know i need edit dbc to create that "debuf" but how about script part?

you'd write it into the core via a C++ spellhook.

Spellcrafting is a part dbc edits to create the actual spell and whatnot, but you actually have to code it in C++ for complex mechanics that involve counting specific values and whatnot.

03-21-2014, 11:42 AM
Should be possible to create a spell in the DBC which applies various other spells, which would be these debuffs.
Combining all debuffs into one is not something you should do, there's a reason why WoW contains multiple debuffs instead of one big.
Script wise you can always cast another spell once the first spell has been hooked in Lua, and this way apply all the debuffs you need.