Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
magic issue
|
Author |
Message |
zottolo
Journeyman
Posts: 87
Likes Given: 8
Likes Received: 12 in 11 posts
Joined: Dec 2015
Reputation: 0
|
magic issue
hello everyone!!
in spite of buffs spells, summoning etc spells are working fine...damage spells keep doing no damage...
i tried to flag magery skill by skf_magic and ranged but didn't work
i tried to check function "isdamagespell" but everything's correct
Code:
[function isdamagespell]
IF ((<ARGN1> == 5) || (<ARGN1> == 12) || (<ARGN1> == 18) || (<ARGN1> == 30) || (<ARGN1> == 42) || (<ARGN1> == 49) || (<ARGN1> == 51) || (<ARGN1> == 55))
RETURN 1
ENDIF
RETURN 0
same in sphere_combat_events
Code:
if <tag0.gothitbyspell>
if <def.scp.Combat_SpellBonus> == 1
local.damage = <r<serv.spell.<dtag.gothitbyspell>.effect>>
local.evalint = <eval (((<src.evaluatingintel>*3)/1000)+1)>
local.damageinc = <eval <src.int>/10> + <eval <src.modint>/10>
if <src.inscription> >= 100.0
local.damageinc += 10
endif
if <def.scp.ItemProp_SpellDamageIncrease> == 1
if <src.tag0.SpellDamageIncrease>
local.damageinc += <qval (<src.tag.SpellDamageIncrease> > 15) ? 15 : <src.tag.SpellDamageIncrease>>
endif
endif
argn1 = <eval <local.damage>*<local.evalint>>
argn1 += <eval ((<argn1>*<local.damageinc>)/100)+1>
endif
endif
if <tag0.spellhit>
if <def.scp.NewSkills_ResistingSpells> == 1
if <serv.spell.<tag.spellhit>.flags>&spellflag_resist
local.resist = <eval <magicresistance>-((<src.evaluatingintel>*<spellcircle <tag.spellhit>>)/20)>
if <local.resist> > (<r>)
sysmessage @,,2 501783 // You feel yourself resisting magical energy.
argn1 -= <r<eval <magicresistance>/6>,<eval <magicresistance>/4>>
else
argn1 -= <r<eval <magicresistance>/7>>
endif
endif
endif
endif
say damage <eval <argn1>>
tag.spellhit =
tag.hbcs =
tag.gothitbyspell =
i feel so newbie O_O any idea?
|
|
01-13-2016 06:40 PM |
|
The following 1 user Likes zottolo's post:1 user Likes zottolo's post
Sum (04-08-2016)
|
zottolo
Journeyman
Posts: 87
Likes Given: 8
Likes Received: 12 in 11 posts
Joined: Dec 2015
Reputation: 0
|
RE: magic issue
(01-13-2016 06:52 PM)Kanibal Wrote: wtf? O_o`
Code:
RETURN 1
ENDIF
RETURN 0
i didn't change that it was like that
looks like is not even looking for combat event...
(This post was last modified: 01-13-2016 07:20 PM by zottolo.)
|
|
01-13-2016 07:08 PM |
|
|
Artyk
Journeyman
Posts: 75
Likes Given: 43
Likes Received: 9 in 9 posts
Joined: Sep 2014
Reputation: 0
|
RE: magic issue
To check if the spell success and it's strength place this under one of the spell's code:
Code:
ON=@Success
say <ARGN2>
if it works check the target of the spell, maybe invulnerable or something else, try it without gm mode on an npc
|
|
01-13-2016 11:01 PM |
|
The following 1 user Likes Artyk's post:1 user Likes Artyk's post
zottolo (01-14-2016)
|
zottolo
Journeyman
Posts: 87
Likes Given: 8
Likes Received: 12 in 11 posts
Joined: Dec 2015
Reputation: 0
|
RE: magic issue
(01-13-2016 11:01 PM)Artyk Wrote: To check if the spell success and it's strength place this under one of the spell's code:
Code:
ON=@Success
say <ARGN2>
if it works check the target of the spell, maybe invulnerable or something else, try it without gm mode on an npc
sure i tried with normal players, none is invulnerable and i also tried upon a llama that looks healthier than me after take a flam...
-so i placed argn2 check like you said and also argn1 check under @spellsucces and i can get both values (but i assume argn1 is still a raw damage)
-i also placed checks in combat_event.scp and i can get values from @spelleffect but not from @gethit...so e_PlayerCombatEvent is called but @gethit trigger is not...
any idea? did i miss something?
(This post was last modified: 01-14-2016 02:31 AM by zottolo.)
|
|
01-14-2016 02:30 AM |
|
|
Khaos
Master
Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11
|
RE: magic issue
Well Kannibal sweetie, If it is those spells it returns 1. If not, it will end the if and then return 0. There is nothing wrong with that code.
(01-13-2016 06:52 PM)Kanibal Wrote: wtf? O_o`
Code:
RETURN 1
ENDIF
RETURN 0
Sum. Check your SpellFlags and make sure they are set to do damage. That sounded like it was the issue. Maybe, if Zottolo is stilll around he might be of some help. Will look more into in a bit or later. Have been up 36 hours now and running on fumes talking to N1ghtwish on Line and coding the new base packs; which I am in spells at the moment.
Actually, if you have a list of spells that aren't working; let me know what they are and I can take a look right now.
|
|
03-28-2016 05:29 AM |
|
The following 1 user Likes Khaos's post:1 user Likes Khaos's post
Sum (04-20-2016)
|
User(s) browsing this thread: 3 Guest(s)