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
Object when attacking
Author Message
Tastaran
Apprentice
*

Posts: 18
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Dec 2015
Reputation: 0



Post: #1
Object when attacking
Hi,

If I attack somebody (clasically doubleclick on target with warmode), what is the object as my target ? Tried act,argo Smile ...

need it to my pvp functions.

Cause my only solution is this :
on=@Attack
tag.lasttarget=<src>
(This post was last modified: 05-12-2017 11:45 PM by Tastaran.)
05-12-2017 11:32 PM
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: Object when attacking
05-13-2017 12:22 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: Object when attacking
I've gotten a lot of help the last week so I'll try my best to pay it forward. Can you tell me more about what you are trying to do? The code below will function and might help point you in the direction you are trying to go.

On=@HitTry
say My target is <src.name>
if ( <src.isplayer> )
say My target is also a player
endif
05-13-2017 03:20 AM
Find all posts by this user Like Post Quote this message in a reply
pointhz
Journeyman
*

Posts: 148
Likes Given: 1
Likes Received: 55 in 28 posts
Joined: Oct 2013
Reputation: 1



Post: #4
RE: Object when attacking
as darksun84 posted, SRC is the victim
05-13-2017 05:23 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: #5
RE: Object when attacking
Then I'm confused about what you're looking for. Is the object of your target not the victim?
05-13-2017 08:08 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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