The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
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



Post: #1
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
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes zottolo's post
Post Reply 


Messages In This Thread
magic issue - zottolo - 01-13-2016 06:40 PM
RE: magic issue - Kanibal - 01-13-2016, 06:52 PM
RE: magic issue - zottolo - 01-13-2016, 07:08 PM
RE: magic issue - Khaos - 03-28-2016, 05:29 AM
RE: magic issue - Artyk - 01-13-2016, 11:01 PM
RE: magic issue - zottolo - 01-14-2016, 02:30 AM
RE: magic issue - rastrero - 01-14-2016, 03:05 AM
RE: magic issue - zottolo - 01-14-2016, 06:07 PM
RE: magic issue - Sum - 03-28-2016, 04:35 AM
RE: magic issue - Sum - 03-28-2016, 05:40 AM
RE: magic issue - Khaos - 03-28-2016, 06:14 AM
RE: magic issue - Sum - 03-28-2016, 06:19 AM
RE: magic issue - Khaos - 03-28-2016, 06:29 AM
RE: magic issue - Sum - 03-28-2016, 06:31 AM
RE: magic issue - Khaos - 03-28-2016, 06:32 AM
RE: magic issue - Sum - 03-28-2016, 06:37 AM
RE: magic issue - Khaos - 03-28-2016, 06:53 AM
RE: magic issue - Sum - 03-28-2016, 06:58 AM
RE: magic issue - Khaos - 03-28-2016, 07:21 AM
RE: magic issue - Sum - 03-28-2016, 07:36 AM
RE: magic issue - Khaos - 03-28-2016, 07:39 AM
RE: magic issue - Sum - 03-28-2016, 03:55 PM
RE: magic issue - Rostok - 03-28-2016, 10:38 AM
RE: magic issue - zottolo - 03-30-2016, 06:15 PM
RE: magic issue - Khaos - 03-31-2016, 12:05 PM
RE: magic issue - XuN - 04-01-2016, 01:51 AM
RE: magic issue - Sum - 04-08-2016, 03:22 PM

Forum Jump:


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