Thread Tools Display Modes
10-13-19, 07:34 PM   #1
Retherz
A Murloc Raider
 
Retherz's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2019
Posts: 4
Question Detect game object interaction

Is it possible to detect unit/player interaction with a game object such as a portal? I've tried combat log without success.
__________________
My Projects.
  Reply With Quote
10-13-19, 09:55 PM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,892
Originally Posted by Retherz View Post
Is it possible to detect unit/player interaction with a game object such as a portal? I've tried combat log without success.
I suspect the portal system outside of the mage portals is outside the realm of addons. I don't recall seeing any functionality that could be used for that purpose.
__________________
  Reply With Quote
10-14-19, 09:48 AM   #3
Retherz
A Murloc Raider
 
Retherz's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2019
Posts: 4
Originally Posted by Xrystal View Post
I suspect the portal system outside of the mage portals is outside the realm of addons. I don't recall seeing any functionality that could be used for that purpose.
There is SPELL_CREATE which is called whenever an object like this is spawned.
__________________
My Projects.
  Reply With Quote
10-14-19, 10:57 AM   #4
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,313
That's when it's spawned, not used.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote
10-14-19, 12:27 PM   #5
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
What exactly are you trying to accomplish?
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
10-14-19, 12:47 PM   #6
Retherz
A Murloc Raider
 
Retherz's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2019
Posts: 4
Originally Posted by Seerah View Post
What exactly are you trying to accomplish?
Trying to track people assisting summons.
__________________
My Projects.
  Reply With Quote
10-14-19, 02:32 PM   #7
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
This might not even be something you can track for other people. They'd likely need an addon to do the legwork and then send the data to a parent addon. Which means you'd have to make other people install a specific addon to track if they are participating up to your standards.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
10-14-19, 03:49 PM   #8
Retherz
A Murloc Raider
 
Retherz's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2019
Posts: 4
Originally Posted by Seerah View Post
This might not even be something you can track for other people. They'd likely need an addon to do the legwork and then send the data to a parent addon. Which means you'd have to make other people install a specific addon to track if they are participating up to your standards.
Using addon messages would be fine, however I haven't been able to find a way to track it. Assisting doesn't seem to give any aura, no spell cast nor channel.
__________________
My Projects.
  Reply With Quote
10-14-19, 05:52 PM   #9
JDoubleU00
A Firelord
 
JDoubleU00's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 463
Have you looked at the event log to see if any special events occur when the portal is used? I thought you can do this with /eventtrace https://wow.gamepedia.com/MACRO_eventtrace
__________________
Author of JWExpBar and JWRepBar.
  Reply With Quote
10-14-19, 08:49 PM   #10
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,892
Looking through the api the following jumped out at me as possible systems to look at ..

In Retail you should be able to use this for target/focus/mouseover .. theoretically
https://wowwiki.fandom.com/wiki/API_UnitChannelInfo

CancelSummon() - Rejects a summon request.
ConfirmSummon() - Accepts a summon request.
https://wowwiki.fandom.com/wiki/API_ConfirmSummon
GetSummonConfirmAreaName() - Returns the name of the area you're being summoned to.
GetSummonConfirmSummoner() - Returns the name of the player summoning you.
https://wowwiki.fandom.com/wiki/API_...onfirmSummoner
GetSummonConfirmTimeLeft() - Returns the amount of time left before the pending summon expires.


Events:
"CANCEL_SUMMON"
"CONFIRM_SUMMON"
"UNIT_SPELLCAST_CHANNEL_START"
"UNIT_SPELLCAST_CHANNEL_STOP"
"UNIT_SPELLCAST_CHANNEL_UPDATE"

"CURSOR_UPDATE"

Fired when the player right-clicks terrain, and on mouseover before UPDATE_MOUSEOVER_UNIT and on mouseout after UPDATE_MOUSEOVER_UNIT. This excludes doodads, player characters, and NPCs that lack interaction.


I doubt these will do anything remotely connected to what you want but it may lead you into a direction that may help you .. but ..

I have a sneaking feeling that the information regarding the assitant summoners and the summoning portal itself is not accessible in any way by addons. However, you the person being summoned can identify who is trying to summon them ( probably the warlock casting the spell ). The Channel Update even may have information relevant to how many people are needed .. IE there may be a numeric field that changes as people interact with the portal and if so you could use that to monitor how many .. but not necessarily who.

Most of these however, will probably only work in Retail due to the restriction in Classic of the UNIT_ events and unit related functions.

The warlock would probably be the best person to test these ideas out in case there is information only available to the caster of the spell.

As has been pointed out you may have to monitor the event system and see if anything of relevance is noted.
__________________
  Reply With Quote
10-15-19, 11:23 AM   #11
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,313
Originally Posted by Xrystal View Post
CancelSummon() - Rejects a summon request.
ConfirmSummon() - Accepts a summon request.
https://wowwiki.fandom.com/wiki/API_ConfirmSummon
GetSummonConfirmAreaName() - Returns the name of the area you're being summoned to.
GetSummonConfirmSummoner() - Returns the name of the player summoning you.
https://wowwiki.fandom.com/wiki/API_...onfirmSummoner
GetSummonConfirmTimeLeft() - Returns the amount of time left before the pending summon expires.
These are for the popup that shows to the player being summoned after the ritual has been successfully completed.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote
10-15-19, 12:29 PM   #12
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
You could also try watching the tooltip when mousing over something to interact with.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Detect game object interaction

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off