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
Diminishing Poison
Author Message
Soulless
Super Moderator
****

Posts: 335
Likes Given: 29
Likes Received: 49 in 27 posts
Joined: Jun 2012
Reputation: 12

Ye Olde Sphere

Post: #1
Diminishing Poison
I thought some people might like this script, to prevent people from just easily walking around and poisoning monsters till they die, thats by far the most annoying thing to see on my server. This will add 3% immunity to the npc per tick on the poison damage. once they get to 100% they take no damage and alert the player the npc has become immune to poison damage.

Code:
[events e_diminishing_poison]
on=@gethit
if (<ARGN2> & dam_poison)
if (<tag0.poison_resist> >= 100)
flags &= ~statf_poisoned
findid.i_rune_poison.remove
src.sysmessage @0482 <name> has become immune to poison.
endif
local.poisoned=<eval {3 5}>
tag0.poison_resist += <local.poisoned>
timerf 300,tag0.poison_resist -= <local.poisoned>
argn1 -= <eval ((<tag0.poison_resist>*<argn1>)/100)>
endif

How about them apples players...Sick
(This post was last modified: 02-18-2013 07:53 PM by Soulless.)
02-14-2013 07:02 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Diminishing Poison - Soulless - 02-14-2013 07:02 PM
RE: Diminishing Poison - Mordaunt - 02-15-2013, 12:19 AM
RE: Diminishing Poison - darksun84 - 02-15-2013, 12:35 AM
RE: Diminishing Poison - Soulless - 02-15-2013, 03:21 AM
RE: Diminishing Poison - amonvangrell - 02-17-2014, 10:28 AM
RE: Diminishing Poison - Anarch Cassius - 02-18-2014, 06:40 AM

Forum Jump:


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