SphereCommunity
Spell Back into PLayer cast - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Spell Back into PLayer cast (/Thread-Spell-Back-into-PLayer-cast)



Spell Back into PLayer cast - Paulo_BR - 01-22-2013 11:03 AM

Hi, I have a two problem on my server, first, which n players cast some spell and use a potion before spell out, the magic back into the player. This also happens when using the skill healing.

And second problem, the spell paralize is passing the magic reflection spell,How had he not with cast magic reflection, and the second spell you cast, the spell come back to you. Because the player cast the magic reflection Spell.

How i fix that problem?

Thanks you very much, and sorry my bad english!


RE: Spell Back into PLayer cast - Wap - 01-23-2013 07:04 AM

1) I think, your potions change ACT on a character...
2) Have you added SPELLFLAG_RESIST flag to paralyze spell?


RE: Spell Back into PLayer cast - Paulo_BR - 01-23-2013 03:03 PM

Thanks man, the problem of the paralyze is ok!

But, this potion not, whats problem in my script, Look this:

Code:
ON=@DCLICK
if ! (<src.targ.cont>==<src.findlayer(21).UID>)
Src.sysmessage Use a pocao na bag.
return 1
endif

If !(<Src.hits><<Src.str>)
  Src.sysmessage Voce ja esta com Hits Full.
return 1
endif

If (<src.tag0.potiontimer> > <serv.time>)
   Src.message [<eval (<serv.time> - <src.tag0.potiontimer>)/-10> Segs]
return 1
endif

Src.anim 33
SOUND=48
Src.hits=<src.hits>+15
Src.consume i_potion_healless
Src.Newitem i_bottle_empty
Src.act.bounce
src.message @009fb Lesser Heal
SRC.TAG.POTIONTIMER=<SERV.TIME> +150
//Src.newitem i_delay_potion
//Src.act.equip
If (<Src.hits>><Src.str>)
Src.hits=<Src.str>
return 1
endif
RETURN 1



RE: Spell Back into PLayer cast - Paulo_BR - 01-24-2013 03:55 AM

This problem also accours when use skill healing Shock


RE: Spell Back into PLayer cast - Paulo_BR - 01-27-2013 05:16 PM

PLaease! I need help!


RE: Spell Back into PLayer cast - Shaklaban - 01-27-2013 08:45 PM

(01-23-2013 03:03 PM)Paulo_BR Wrote:  Thanks man, the problem of the paralyze is ok!

But, this potion not, whats problem in my script, Look this:

Code:
ON=@DCLICK
if ! (<src.targ.cont>==<src.findlayer(21).UID>)
Src.sysmessage Use a pocao na bag.
return 1
endif

If !(<Src.hits><<Src.str>)
  Src.sysmessage Voce ja esta com Hits Full.
return 1
endif

If (<src.tag0.potiontimer> > <serv.time>)
   Src.message [<eval (<serv.time> - <src.tag0.potiontimer>)/-10> Segs]
return 1
endif

Src.anim 33
SOUND=48
Src.hits=<src.hits>+15
Src.consume i_potion_healless
Src.Newitem i_bottle_empty
Src.act.bounce
src.message @009fb Lesser Heal
SRC.TAG.POTIONTIMER=<SERV.TIME> +150
//Src.newitem i_delay_potion
//Src.act.equip
If (<Src.hits>><Src.str>)
Src.hits=<Src.str>
return 1
endif
RETURN 1

i don't know is it related or not but this script contains following errors about act and targ:


if ! (<src.targ.cont>==<src.findlayer(21).UID>)

no need to use targ, you can use cont directly because i=potion on dclick trigger.

Src.Newitem i_bottle_empty
Src.act.bounce

this sould be:

serv.newitem i_bottle_empty
src.bounce <new> or "new.bounce" but "src.bounce <new>" is more clear, because bounce always works when called on character and argn1=item.


RE: Spell Back into PLayer cast - Paulo_BR - 01-28-2013 06:40 AM

Man, its WORKS!!!! Thank you SO MUCH!!!!!!!!!!!!!!!!!!