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






Post Reply 
 
Thread Rating:
  • 1 Votes - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Magic does not damage anyone
Author Message
Oxtar
Apprentice
*

Posts: 48
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jul 2012
Reputation: 0



Post: #5
RE: Magic does not damage anyone
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
(This post was last modified: 12-30-2012 01:45 AM by Oxtar.)
12-30-2012 01:43 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Magic does not damage anyone - Russian - 12-28-2012, 05:09 AM
RE: Magic does not damage anyone - Ben - 12-28-2012, 05:19 AM
RE: Magic does not damage anyone - Russian - 12-28-2012, 05:37 AM
RE: Magic does not damage anyone - Jaguar - 12-28-2012, 05:51 AM
RE: Magic does not damage anyone - Oxtar - 12-30-2012 01:43 AM
RE: Magic does not damage anyone - Onirim - 01-01-2013, 08:15 PM
RE: Magic does not damage anyone - Jaguar - 01-02-2013, 12:26 AM
RE: Magic does not damage anyone - Onirim - 01-02-2013, 01:18 AM
RE: Magic does not damage anyone - Onirim - 01-02-2013, 03:11 AM
RE: Magic does not damage anyone - Onirim - 01-02-2013, 07:48 AM
RE: Magic does not damage anyone - Ben - 01-02-2013, 09:11 AM
RE: Magic does not damage anyone - Onirim - 01-02-2013, 09:32 AM

Forum Jump:


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