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:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
poison disturb
Author Message
jexnico
Journeyman
*

Posts: 191
Likes Given: 114
Likes Received: 3 in 3 posts
Joined: Jan 2014
Reputation: 0



Post: #1
poison disturb
i need the hit of my poison (s_poison) cancel the target's magic if hes trying to use some magic, how do i do that?
my poison script

Quote:[Spell 20]
DEFNAME=s_poison
NAME=Poison
SOUND=snd_spell_poison
RUNES=IN
CAST_TIME=3.0
RESOURCES=i_reag_nightshade
RUNE_ITEM=i_rune_poison
SCROLL_ITEM=i_scroll_poison
FLAGS=spellflag_nounparalyze | SPELLFLAG_TARG_CHAR | spellflag_resist | SPELLFLAG_HARM | spellflag_targ_noself
EFFECT_ID=i_fx_curse
EFFECT=100,750
DURATION=3.0
LAYER=layer_flag_poison
MANAUSE=7
SKILLREQ=MAGERY 30.0
INTERRUPT=100.0,100.0

ON=@Effect
damage 1,dam_poison,<src.uid>,0,0,0,100,0
effect 3,i_fx_glow_spike,6,15,0
timerf 0,updatex

i was thinking of leaving the player in warmode with each poisons hit, so the spells would be disturbed, but i can not do, some help?
(This post was last modified: 03-23-2018 08:30 AM by jexnico.)
03-23-2018 08:22 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
jexnico
Journeyman
*

Posts: 191
Likes Given: 114
Likes Received: 3 in 3 posts
Joined: Jan 2014
Reputation: 0



Post: #2
RE: poison disturb
i was thinking of creating a trigger, maybe
ON=@GetHit

but i can not seem to make the player stay warmode

sry, im noob :c
03-23-2018 01:10 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
jexnico
Journeyman
*

Posts: 191
Likes Given: 114
Likes Received: 3 in 3 posts
Joined: Jan 2014
Reputation: 0



Post: #3
RE: poison disturb
it will be like this

ON=@GetHit
if (<action> == skill_magery) !(<uid> = <src.uid>)
message @0790,1,1 You fail!
effect 3 i_fx_smoke_small 1 40 0
sound 92
action -1
endif
04-07-2018 01:11 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
azmanomer
Journeyman
*

Posts: 139
Likes Given: 4
Likes Received: 18 in 16 posts
Joined: Nov 2013
Reputation: 1



Post: #4
RE: poison disturb
04-07-2018 07:41 PM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #5
RE: poison disturb
poison spell uses damage type 'dam_nodisturb' set oby default, so you must remove this damage type manually on your script

maybe something like
Code:
[Spell 20]
DEFNAME=s_poison
...

ON=@Effect
LOCAL.DamageType &= ~dam_nodisturb
PS: LOCAL.DamageType is used by internal code, so you just need to set the value and let the internal code execute it
04-12-2018 04:32 AM
Find all posts by this user Like Post Quote this message in a reply
kduzera
Apprentice
*

Posts: 15
Likes Given: 5
Likes Received: 1 in 1 posts
Joined: Aug 2018
Reputation: 0



Post: #6
RE: poison disturb
I have same problem here...

ON=@Effect
LOCAL.DamageType &= ~dam_nodisturb

i've try

ON=@Effect
LOCAL.DamageType &= ~dam_nodisturb

didn't work.

My Script.
[SPELL 20]
DEFNAME=s_poison
NAME=Poison
SOUND=snd_spell_poison
RUNES=IN
CAST_TIME=3.3
RESOURCES=i_reag_nightshade
RUNE_ITEM=i_rune_poison
SCROLL_ITEM=i_scroll_poison
FLAGS=spellflag_dir_anim|spellflag_targ_obj|spellflag_harm|spellflag_fx_targ|spe​llflag_resist|
EFFECT_ID=i_fx_curse
EFFECT=100,750 //Only used without Magicf_OsiFormulas
LAYER=layer_flag_poison
DURATION=1.0,15.0
MANAUSE=9
SKILLREQ=MAGERY 30.0
INTERRUPT=100.0,100.0

on=@effect
damage 0
(This post was last modified: 08-29-2018 08:30 AM by kduzera.)
08-29-2018 08:29 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: #7
RE: poison disturb
You have to set it in a @getHit trigger in a character event:

Code:
[EVENTS e_test]
ON=@GetHit

if <argn2>&dam_poison|dam_magic|dam_nodisturb
argn2 &= ~dam_nodisturb

endif
08-29-2018 10:12 PM
Find all posts by this user Like Post Quote this message in a reply
kduzera
Apprentice
*

Posts: 15
Likes Given: 5
Likes Received: 1 in 1 posts
Joined: Aug 2018
Reputation: 0



Post: #8
RE: poison disturb
Thank U my friend!!
08-29-2018 11:05 PM
Find all posts by this user Like Post Quote this message in a reply
kduzera
Apprentice
*

Posts: 15
Likes Given: 5
Likes Received: 1 in 1 posts
Joined: Aug 2018
Reputation: 0



Post: #9
RE: poison disturb
Very thak u darksun84. Its Working. =D

Just one more little thing...

whats is the best way to put event on char?

I'm using the skill class_undeclared.

something like that.

ON=@Login
SRC.EVENTS +e_test

ON=@LogOut
SRC.EVENTS -e_test
08-30-2018 01:07 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: #10
RE: poison disturb
All the skillclass are considered events
08-30-2018 01:39 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)