SphereCommunity
Magic does not damage anyone - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Magic does not damage anyone (/Thread-Magic-does-not-damage-anyone)

Pages: 1 2


Magic does not damage anyone - Russian - 12-28-2012 05:09 AM

Hello.
I am set latest release of Sphere server.
Now magic does not damage anyone.

In what may be the problem, what settings to change, to provide?


RE: Magic does not damage anyone - Ben - 12-28-2012 05:19 AM

http://forum.spherecommunity.net/Thread-Spells-don-t-hurt?highlight=Damage


RE: Magic does not damage anyone - Russian - 12-28-2012 05:37 AM

Code:
[SPELL 51]
DEFNAME=s_flamestrike
NAME=Flame strike
SOUND=SND_SPELL_FLAMESTRIKE
RUNES=KVF
CAST_TIME=56
RESOURCES=I_REAG_SPIDER_SILK,I_REAG_SULFUR_ASH
RUNE_ITEM=I_RUNE_FLAMESTRIKE
SCROLL_ITEM=I_SCROLL_FLAMESTRIKE
FLAGS=SPELLFLAG_TARG_CHAR| SPELLFLAG_FX_TARG| SPELLFLAG_RESIST | SPELLFLAG_DAMAGE
EFFECT_ID=03709
EFFECT=95,115
DURATION=0.0
MANAUSE=60
SKILLREQ=MAGERY 70.0
INTERRUPT=100.0,100.0

ERROR:(Sphere spells.scp,914)Undefined symbol 'SPELLFLAG_DAMAGE'

What is wrong? :{


RE: Magic does not damage anyone - Jaguar - 12-28-2012 05:51 AM

From Lates SCP:
Code:
[Spell 51]
DEFNAME=s_flamestrike
NAME=Flamestrike
SOUND=snd_spell_flamestrike
RUNES=KVF
CAST_TIME=2.0
RESOURCES=i_reag_spider_silk,i_reag_sulfur_ash
RUNE_ITEM=i_rune_flamestrike
SCROLL_ITEM=i_scroll_flamestrike
FLAGS=spellflag_dir_anim|spellflag_targ_obj|spellflag_harm|spellflag_fx_targ|spe​llflag_targ_noself
EFFECT_ID=i_fire_column
EFFECT=25,50
DURATION=0.0
MANAUSE=40
SKILLREQ=MAGERY 70.0
INTERRUPT=100.0,100.0

Download:


RE: Magic does not damage anyone - Oxtar - 12-30-2012 01:43 AM

I don't remember who gave me this.

Code:
on=@spelleffect
if (<serv.spell.<argn1>.defname>==s_heal) || (<serv.spell.<argn1>.defname>==s_greater_heal)
  if !(<tag0.tmp_heal>)
    tag.tmp_heal=1
    serv.spell.<argn1>.effect += <eval <eval <serv.spell.<argn1>.effect> *<tag0.bonus_heal>> /100> //assuming tag.bonus_heal if your 20% value (20)
    spelleffect <argn1> <argn2> <src.uid> //resend the heal spell with the new effect added
    serv.spell.<argn1>.effect -= <eval <eval <serv.spell.<argn1>.effect> *<tag0.bonus_heal>> /100> //remove the bonus resetting the effect
    tag.tmp_heal=
  endif
endif

Code:
on=@spelleffect
if ( <serv.spell.<argn1>.flags> & spellflag_damage )
  tag.spell_argn=<argn1>
  tag.spell_strength=<argn2>
endif

And you need to set the spellflag_damage


RE: Magic does not damage anyone - Onirim - 01-01-2013 08:15 PM

Where we must put this lines ?
And how setting the spellflag_damage ?
It's not an easy to understand script ^^


RE: Magic does not damage anyone - Jaguar - 01-02-2013 12:26 AM

Just read my previous post


RE: Magic does not damage anyone - Onirim - 01-02-2013 01:18 AM

I already have the latest SCP magery.scp, and latest SphereServer :/
I don't find where download latest trunk, the download link is outdated. So maybe I need another file from this latest trunk...


RE: Magic does not damage anyone - darksun84 - 01-02-2013 02:49 AM

25-07-2012, ShiryuX
- Updated: sphere_spells.scp, sphere_defs.scp with the new spells changes


RE: Magic does not damage anyone - Onirim - 01-02-2013 03:11 AM

Damn... I've the latest Sphere_spells_magery.scp and the latest sphere_defs.scp
I'm on UO:R combat system, and I've no damage on spells, and no error messages in the console.
What is the problem with that ? Actually for a new shard, the magic system of Sphere don't work :/
And no SCP to download...

Please, I have no solutions, I've tried to take newers scripts, to add Oxtar's scripts, and this doesn't work at all.
I'm okay to DL all the new SCP trunk, but I CAN'T !
Downloading some random scripts isn't usefull...