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
explosion potion
Author Message
Art
Journeyman
*

Posts: 118
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2012
Reputation: 0



Post: #1
explosion potion
Hello. How can i check that damage was from explosion potion? ON=@SpellEffect not working, seems it's physical damage, but in trigger ON=@Hit i not found any reference to item in wiki.
10-07-2015 10:14 AM
Find all posts by this user Like Post Quote this message in a reply
Kanibal
Master
**

Posts: 255
Likes Given: 6
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 0



Post: #2
RE: explosion potion
(10-07-2015 10:14 AM)Art Wrote:  Hello. How can i check that damage was from explosion potion? ON=@SpellEffect not working, seems it's physical damage, but in trigger ON=@Hit i not found any reference to item in wiki.

http://wiki.sphere.torfo.org/index.php/@GetHit

Grandmaster Localhost Admin
10-07-2015 12:56 PM
Visit this user's website 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: #3
RE: explosion potion
explosion potion uses the same damage as the explosion spell
you can change the potion strength using the MORE2 value on the item

eg: using MORE2=80.0 is like cast explosion potion with 80.0 magery skill
10-07-2015 01:09 PM
Find all posts by this user Like Post Quote this message in a reply
Art
Journeyman
*

Posts: 118
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2012
Reputation: 0



Post: #4
RE: explosion potion
Sorry, i wrote mistake, i meant i used @GETHIT instead of @HIT. Seems you not understand my question. I want to track that damage was done by explosion potion, not by other way. Trigger @SpellEffect does not react, so then @GetHit, but how to check source of damage (explosion potion)?
(This post was last modified: 10-08-2015 02:30 AM by Art.)
10-08-2015 02:30 AM
Find all posts by this user Like Post Quote this message in a reply
Kanibal
Master
**

Posts: 255
Likes Given: 6
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 0



Post: #5
RE: explosion potion
(10-08-2015 02:30 AM)Art Wrote:  ...but how to check source of damage (explosion potion)?
Code:
I   >> The character being damaged.
SRC >> The character responsible for the damage.

ARGN1 >> The amount of damage being applied.
ARGN2 >> The type of damage being applied.

Grandmaster Localhost Admin
(This post was last modified: 10-08-2015 02:58 AM by Kanibal.)
10-08-2015 02:57 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Art
Journeyman
*

Posts: 118
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2012
Reputation: 0



Post: #6
RE: explosion potion
SRC refers to character, not to item (explosion potion), and argn2 contains flags of damage type as i understood. I had read flags in sphere_defs.scp, there nothing about explosion potions.
10-08-2015 04:07 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)