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
parry on=@usequick. how to get attacker?
Author Message
bmanny
Apprentice
*

Posts: 25
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: May 2017
Reputation: 0



Post: #1
parry on=@usequick. how to get attacker?
I want to get the attacker that I parried.

ex:

ON=@UseQuick
IF (<ARGN3>)

ATTACKER.say was parried

ENDIF
05-12-2017 03:48 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: #2
RE: parry on=@usequick. how to get attacker?
Do you know that i have the same issue Big Grin ?

I don't know a good way to solve that, i tried by using both <attacker.last> and saving the attacker's UID inside a tag.
The main problem is when there more than one attacker, sometimes it happens that you get the wrong attacker by using the methods above.
05-12-2017 04:10 AM
Find all posts by this user Like Post Quote this message in a reply
bmanny
Apprentice
*

Posts: 25
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: May 2017
Reputation: 0



Post: #3
RE: parry on=@usequick. how to get attacker?
say <src.ATTACKER.LAST> attacker

Gives me the serial of the mob hitting me. How do I use the serial to get the name, str, ect from the mob?

My other idea... can I disable ON=@UseQuick and simply call the parry in my combat math?
05-12-2017 04:13 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: #4
RE: parry on=@usequick. how to get attacker?
Attacker.last return the uid, so you can use:
Code:
ref1 = <attacker.last>
say <ref1.name>
OR
Code:
say <uid.<attacker.last>.name>

You can disable the ON=@UseQuick for parrying by adding FLAGS=SKF_SCRIPTED in the parryking skill block (then resync,restart server)
05-12-2017 04:35 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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