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: 246
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: 1 Guest(s)