WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Detect game object interaction (https://www.wowinterface.com/forums/showthread.php?t=57600)

Retherz 10-13-19 07:34 PM

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.

Xrystal 10-13-19 09:55 PM

Quote:

Originally Posted by Retherz (Post 334239)
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.

Retherz 10-14-19 09:48 AM

Quote:

Originally Posted by Xrystal (Post 334240)
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.

SDPhantom 10-14-19 10:57 AM

That's when it's spawned, not used.

Seerah 10-14-19 12:27 PM

What exactly are you trying to accomplish?

Retherz 10-14-19 12:47 PM

Quote:

Originally Posted by Seerah (Post 334248)
What exactly are you trying to accomplish?

Trying to track people assisting summons.

Seerah 10-14-19 02:32 PM

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.

Retherz 10-14-19 03:49 PM

Quote:

Originally Posted by Seerah (Post 334252)
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.

JDoubleU00 10-14-19 05:52 PM

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

Xrystal 10-14-19 08:49 PM

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.

SDPhantom 10-15-19 11:23 AM

Quote:

Originally Posted by Xrystal (Post 334258)
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.

Seerah 10-15-19 12:29 PM

You could also try watching the tooltip when mousing over something to interact with.


All times are GMT -6. The time now is 08:43 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI