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
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
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: Diminishing Poison
Interesting, but how about removing said immunity after say 5 mins?
Otherwise you could conceivably end up with a bunch of monsters that are all immune if a player doesn't bother to kill them, or is killed themselves.

[Image: 2nis46r.jpg]
02-15-2013 12:19 AM
Visit this user's website 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: #3
RE: Diminishing Poison
good point mordaunt good point
02-15-2013 12:35 AM
Find all posts by this user Like Post Quote this message in a reply
Soulless
Super Moderator
****

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

Ye Olde Sphere

Post: #4
RE: Diminishing Poison
good idea. i will do that now Smile
02-15-2013 03:21 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
amonvangrell
Banned

Posts: 337
Likes Given: 17
Likes Received: 32 in 20 posts
Joined: Aug 2012

britannia shard

Post: #5
RE: Diminishing Poison
can you post the code with Mordaunt suggestion ?
thanks!
02-17-2014 10:28 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Anarch Cassius
Master
**

Posts: 273
Likes Given: 19
Likes Received: 10 in 9 posts
Joined: Mar 2012
Reputation: 2



Post: #6
RE: Diminishing Poison
Hehe nice one.

I use a mix of straight poison res and magic users curing themselves and allies. Also using cure pots. Still that's mostly on my SMART NPCs, this would be great for a dumb boss type.

Current Projects: Necromancy SCP overhaul. Custom Faction AI/System. Imbuing.
02-18-2014 06:40 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)