Spellflag_Targ_XYZ and Spellflag_Area - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Spellflag_Targ_XYZ and Spellflag_Area (/Thread-Spellflag-Targ-XYZ-and-Spellflag-Area) |
Spellflag_Targ_XYZ and Spellflag_Area - Gil Amarth - 03-29-2013 08:27 PM I´m trying to replicate some default spells, but scripting myself to have a better control about his functions. In my new teleport spell: Code: [Spell 1120] The strange thing is when i put only in FLAGS= SPELLFLAG_TARG_XYZ, the spell works correctly, but at the end, returns me a failed spell cast. ¿? When I put in FLAGS = SPELLFLAG_TARG_XYZ | SPELLFLAG_AREA, then there is no fail at the end. ¿? This only happens to me with SPELLFLAG_TARG_XYZ. SPELLFLAG_TARG_CHAR or SPELLFLAG_TARG_ITEM works fine without anything more. Anyone experienced this? Seems a bug, and I have to put always this two spellflags together. RE: Spellflag_Targ_XYZ and Spellflag_Area - darksun84 - 03-29-2013 08:51 PM SPELLFLAG_AREA is for area effect spells like meteor swarm, earthquake and so on. I think you have to add SPELLFLAG_SCRIPTED RE: Spellflag_Targ_XYZ and Spellflag_Area - Gil Amarth - 03-29-2013 09:11 PM Yep, you are right. The strange thing is with _TARG_CHAR and _TARG_ITEM I didn´t need to add _SCRIPTED. But if it works, perfect. Thank you! |