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-nmm6 (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-nmm6 (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-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Combat %
Author Message
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #11
RE: Combat %
Read the notes and comments.

Code:
ON=@SpellEffect
if (<serv.spell.<argn>.flags>&spellflag_harm)    //this line checks for harmfull spells, so only these would pass to calculations
    IF (<ARGN>==18)
        src.tag.spellstrenght = 20
    elif (<ARGN>==30)&&(<ARGN>==42)&&(<ARGN>==49)
        src.tag.spellstrenght = 10
    else
        src.tag.spellstrenght = 5
    endif
    damage=0,dam_god,<src>    //We make the char receiving the spell to receive real damage, so the @GetHit trigger is being fired
endif

ON=@GetHit
IF (<SRC.ISPLAYER>) && (<tag0.spellstrenght>)    //if we are receiving damage marked (with the tag) as magic, we run the code
    //note that you made a IsPlayer check, so this will be run only if the attacker is a player, if the caster is a npc this won't be executed.
    src.tag.warskillproc = <eval(<src.tag.warskill>/50)>
    src.tag.DamPercent = <eval((<src.tag.magicPower_firelord_book>) + (<src.tag.ArmorbonusDam>)>
    src.tag.argn1 = (<src.tag.DamPercent>+<src.tag.warskillproc>+<src.tag.spellstrenght>)//Note: tag.DamPercent is doing a sum here, not really a percentaje
    ARGN1 += <src.tag.argn1>
    tag.spellstrenght    //we clear the tag
ENDIF
01-26-2014 03:37 AM
Find all posts by this user Like Post Quote this message in a reply
Pidrila
Apprentice
*

Posts: 36
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2013
Reputation: 0



Post: #12
RE: Combat %
XuN thanks for help, at now i am through phone, when i will be at home i will test this and reply for results Smile

Sent from my PAP4055DUO using Tapatalk
01-26-2014 05:47 AM
Find all posts by this user Like Post Quote this message in a reply
Pidrila
Apprentice
*

Posts: 36
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2013
Reputation: 0



Post: #13
RE: Combat %
thanks its working Wink but now how i can take effect when someone is stepping on fire field then player book who set the filed makes -1 charge for every step..

i tryed
if argn2damfire nothing happened..
(This post was last modified: 01-26-2014 10:28 AM by Pidrila.)
01-26-2014 08:10 AM
Find all posts by this user Like Post Quote this message in a reply
Pidrila
Apprentice
*

Posts: 36
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2013
Reputation: 0



Post: #14
Re: RE: Combat %
Okey thanks everything is okey for now

Sent from my PAP4055DUO using Tapatalk
01-27-2014 01:11 AM
Find all posts by this user Like Post Quote this message in a reply
Pidrila
Apprentice
*

Posts: 36
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2013
Reputation: 0



Post: #15
Re: RE: Combat %
Okey thanks everything is okey for now

Sent from my PAP4055DUO using Tapatalk
01-27-2014 01:11 AM
Find all posts by this user Like Post Quote this message in a reply
Pidrila
Apprentice
*

Posts: 36
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2013
Reputation: 0



Post: #16
RE: Combat %
How i can set a TAG on @HIT when player hit, then use a function that locates the skill that is using to hit.. like if i am warrior class with weapon Club then set Tag .... tactics + macefighting if warrior with sword then tactics + swordsmanship ??, i tried with simple function if <action>=macefighting
Src.tag.skillbonus = <macefighting> and so for all skills, but the problem is that if i do this check then it takes all skills bonus, not that is used by hitting..

Sent from my PAP4055DUO using Tapatalk
01-27-2014 07:44 PM
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: #17
RE: Combat %
1. Don't use tag for that but direct calculation
2. in trigger @hit - <argo.skill> is skill equiped weapon is using. and <<argo.skill>> is its value.
(This post was last modified: 01-27-2014 08:42 PM by Alaric.)
01-27-2014 08:18 PM
Find all posts by this user Like Post Quote this message in a reply
Pidrila
Apprentice
*

Posts: 36
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2013
Reputation: 0



Post: #18
RE: Combat %
(01-27-2014 08:18 PM)Alaric Wrote:  1. Don't use tag for that but direct calculation
2. in trigger @hit - <argo.skill> is skill equiped weapon is using. and <<argo.skill>> is its value.

thank you Smile
01-28-2014 12:37 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #19
RE: Combat %
Remember to add a check for wrestling !
01-28-2014 12:52 AM
Find all posts by this user Like Post Quote this message in a reply
Pidrila
Apprentice
*

Posts: 36
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2013
Reputation: 0



Post: #20
RE: Combat %
(01-28-2014 12:52 AM)darksun84 Wrote:  Remember to add a check for wrestling !

already checked Smile
01-28-2014 01: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)