WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Any way to get subscription time left for an account? (https://www.wowinterface.com/forums/showthread.php?t=52770)

Nikita S. Doroshenko 09-24-15 09:28 AM

Any way to get subscription time left for an account?
 
I spend lot's of time searching for solution, but didn't found anything, so I think it's not possible, but maybe...
I would like to get information about how much game time left for subscription or time till next payment.
Any suggestions? :)

Seerah 09-24-15 06:58 PM

I'm 99.999% sure that there is no way for an addon to get this information.

VincentSDSH 09-24-15 09:37 PM

Quote:

Originally Posted by Seerah (Post 311158)
I'm 99.999% sure that there is no way for an addon to get this information.

There's no reason for this information to be even sent to the game client, it's strictly an issue for the login server.

TOM_RUS 09-25-15 02:23 AM

This information is available in client's memory, and even lua, but only from GlueXML environment:
Code:

GetBillingPlan
GetBillingTimeRemaining

There's no legit way to get it from FrameXML env.

Maidgirl 09-25-15 06:55 AM

Just look at time remaining on the launcher??

Lombra 09-25-15 07:11 PM

Quote:

Originally Posted by Maidgirl (Post 311164)
Just look at time remaining on the launcher??

That is probably beside the point.

No offence, but are you aware what this forum is all about?

Ketho 09-26-15 05:19 PM

Maybe just before it runs out, but I guess then it's too late :)

Phanx 09-26-15 07:27 PM

Quote:

Originally Posted by Maidgirl (Post 311164)
Just look at time remaining on the launcher??

Quote:

Originally Posted by Lombra (Post 311175)
No offence, but are you aware what this forum is all about?

Looking at his/her other posts, they don't seem to have a good understanding of what this forum is about, and don't seem to have much interest in actually reading posts before replying with a "helpful" answer. Considering it's a brand new account, and all the posts are borderline off-topic, I'd guess it's probably a spammer trying to be clever and make a few legit-ish posts before starting the spam.

Seerah 09-26-15 07:55 PM

Or it could just be that English is not their first language.

Maidgirl 09-26-15 08:03 PM

Or I could be wondering why an addon is needed for something not really in game related, and very trivial as it says everytime you start your launcher?

Seerah 09-26-15 09:03 PM

Since this is in the authoring discussion section of the forums, I assume that the OP was asking how to get this information to display in an addon. :)

Phanx 09-27-15 03:50 AM

Quote:

Originally Posted by Maidgirl (Post 311188)
Or I could be wondering why an addon is needed for something not really in game related, and very trivial as it says everytime you start your launcher?

Why are you even posting on an addon authoring forum? By your logic, we should all just live on spam and wonder bread, because burgers and ice cream and truffles aren't really needed, and it's trivial to just scoop some spam out of the can, plop it on a slice of wonder bread, and call it a meal. :rolleyes:

jeruku 09-27-15 06:52 AM

I would like to point out that you are all getting off topic.

"Can't we all just get along?" - Warlock Imp

Seerah 09-27-15 12:12 PM

Quote:

Originally Posted by jeruku (Post 311194)
I would like to point out that you are all getting off topic.

"Can't we all just get along?" - Warlock Imp

This. ^^ Knock it off.

Nikita S. Doroshenko 09-27-15 01:33 PM

Yea, it loot's like it's not possible to get this information at that moment.
Only thing i found in FrameXML/UIParent.lua is this:
Lua Code:
  1. -- ...
  2.     elseif ( event == "BILLING_NAG_DIALOG" ) then
  3.         StaticPopup_Show("BILLING_NAG", arg1); -- arg1 = minutes left till the end of subscription
  4.     elseif ( event == "IGR_BILLING_NAG_DIALOG" ) then
  5.         StaticPopup_Show("IGR_BILLING_NAG");
  6. -- ...
FrameXML/StaticPopup.lua:
Lua Code:
  1. StaticPopupDialogs["BILLING_NAG"] = {
  2.     text = BILLING_NAG_DIALOG;
  3.     button1 = OKAY,
  4.     timeout = 0,
  5.     showAlert = 1
  6. };
  7. StaticPopupDialogs["IGR_BILLING_NAG"] = {
  8.     text = IGR_BILLING_NAG_DIALOG;
  9.     button1 = OKAY,
  10.     timeout = 0,
  11.     showAlert = 1
  12. };
This code triggers with BILLING_NAG_DIALOG or IGR_BILLING_NAG_DIALOG. I don't think we could manually trigger BILLING_NAG_DIALOG event to grab it's argument.


All times are GMT -6. The time now is 07:26 PM.

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