Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SpellEffect
Author Message
Art
Journeyman
*

Posts: 118
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2012
Reputation: 0



Post: #1
SpellEffect
Code:
ON=@SpellEffect
...
if (<findid.i_rune_magic_reflection>) ....
findid.i_rune_magic_reflection.remove
effect=3,i_fx_glow,6,12,1
src.spelleffect <argn> <argn2>
return 1
endif
...

I have that script for my own magic reflection system. When i cast spell to target, damage blocked and spell going back like it should, but there is a problem, 'The spell fizzles' appears, also if both players have Magic Reflection, caster will take spell effect with that message 'The spell fizzles'. But in theory, target should take effect.
(This post was last modified: 05-13-2013 06:33 AM by Art.)
05-13-2013 06:31 AM
Find all posts by this user Like Post Quote this message in a reply
Wap
Journeyman
*

Posts: 138
Likes Given: 6
Likes Received: 7 in 6 posts
Joined: Mar 2012
Reputation: 3

UORPG.net

Post: #2
RE: SpellEffect
You want to make a possibility of double reflect?
05-13-2013 09:14 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #3
RE: SpellEffect
Sphere wiki Wrote:SPELLEFFECT spell_id, strength, source_character_uid, source_item_uid

Btw. are you sure you want situation like: PL1 and PL2 have reflextions, both. PL1 casts fire ball, it reflects from PL2 back to PL1 and from PL1 it reflexts again to PL2 who is finally hit by the spell?

Hope, I understood, what you ment.
(This post was last modified: 05-13-2013 09:26 AM by Alaric.)
05-13-2013 09:22 AM
Find all posts by this user Like Post Quote this message in a reply
Art
Journeyman
*

Posts: 118
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2012
Reputation: 0



Post: #4
RE: SpellEffect
PL2 will be hit by spell, because he doesn't have Magic Reflection anymore after first reflect.
05-13-2013 02:35 PM
Find all posts by this user Like Post Quote this message in a reply
Rattlehead
Master
**

Posts: 290
Likes Given: 3
Likes Received: 8 in 6 posts
Joined: Jun 2012
Reputation: 8



Post: #5
RE: SpellEffect
i may be wrong, but when u return 1 it will cause fizzle to display

[Image: matts_siggy.gif]
05-13-2013 02:43 PM
Find all posts by this user Like Post Quote this message in a reply
Art
Journeyman
*

Posts: 118
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2012
Reputation: 0



Post: #6
RE: SpellEffect
No, the fizzle caused by 'src.spelleffect' function back to caster. But seems like caster will have new spell effect before trigger @SpellEffect on target will be done. Target already reflected spell to caster, but caster still receive fizzle message and sound. I need correct solution =\
(This post was last modified: 05-13-2013 02:55 PM by Art.)
05-13-2013 02:53 PM
Find all posts by this user Like Post Quote this message in a reply
Rattlehead
Master
**

Posts: 290
Likes Given: 3
Likes Received: 8 in 6 posts
Joined: Jun 2012
Reputation: 8



Post: #7
RE: SpellEffect
what i mean, is that returning 1 cancels most things on triggers, spelleffect is kind of a twitchy trigger, so my comment meant that returning 1 on the targets spelleffect may make the server think the spell was canceled (as it should btw) and thus displaying the fizzle message on caster (as the server thinks the spell failed), of course i could be wrong as i have nvr tried it myself. since your trigger sends said effect back to caster when the trigger fires, then even tho the spelleffect was canceled via return 1, it still sends it back regardless, so everything will still function as intended.

an easy way to test this is to return 0 on spelleffect to see if the fizzle still occurs, but keep in mind that returning 0 will cause the target to receive the hit still and i know thats not what you intended but it will work for a test just to verify if the return is what is causing it, i dont know if return 2 will work as an alternative method but you could try it.

[Image: matts_siggy.gif]
05-14-2013 10:02 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)