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
ON=@HIT, Poison
Author Message
pinku
Journeyman
*

Posts: 118
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Apr 2013
Reputation: 4



Post: #1
ON=@HIT, Poison
Using the wiki, I got to this trigger:

Quote:@Hit - Fires when the character hits another in combat.

So, I wrote these lines in hope to get poisoned when the character hits me.

Code:
ON=@HIT
IF !(<SRC.FLAGS> &statf_poisoned)
SRC.SPELLEFFECT S_POISON,800,<UID>
ENDIF

This above does not work, however, if I use @GETHIT, for example:

Code:
ON=@GETHIT
IF !(<SRC.FLAGS> &statf_poisoned)
SRC.SPELLEFFECT S_POISON,800,<UID>
ENDIF

Works just fine.

Where am I going wrong?
Thanks!
(This post was last modified: 06-12-2013 05:17 PM by pinku.)
06-12-2013 05:14 PM
Find all posts by this user Like Post Quote this message in a reply
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #2
RE: ON=@HIT, Poison
Where do you use those triggers?

Look at this. http://wiki.sphere.torfo.org/index.php/How_Combat_Works
(This post was last modified: 06-12-2013 06:10 PM by Alaric.)
06-12-2013 06:10 PM
Find all posts by this user Like Post Quote this message in a reply
Monty
Apprentice
*

Posts: 40
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Jun 2012
Reputation: 1



Post: #3
RE: ON=@HIT, Poison
Code:
ON=@GETHIT
IF !(<SRC.FLAGS> &statf_poisoned)
SRC.SPELLEFFECT S_POISON,800,<UID>
ENDIF

It this triger:
I The character being damaged. (defender)
SRC The character responsible for the damage. (attacker)

why you check if is attacker poisoned?

C# application developer.
C/C++,SQL,PLSQL programming.
Oracle database / information system developer.
Cooperation for development of new shard.
(This post was last modified: 06-12-2013 06:20 PM by Monty.)
06-12-2013 06:17 PM
Find all posts by this user Like Post Quote this message in a reply
pinku
Journeyman
*

Posts: 118
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Apr 2013
Reputation: 4



Post: #4
RE: ON=@HIT, Poison
Thank you two!
This link was very useful.

@Monty

I'm SO used with checking that I thought I needed to check, but now, thinking of it..... hahaha.

Thanks again. Smile
06-13-2013 12:55 PM
Find all posts by this user Like Post Quote this message in a reply
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #5
RE: ON=@HIT, Poison
But I guess the poison can be reflected... you might find more issues. Poison is always problematical.
(This post was last modified: 06-13-2013 08:42 PM by Alaric.)
06-13-2013 08:42 PM
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)