Thread Tools Display Modes
09-24-15, 09:28 AM   #1
Nikita S. Doroshenko
A Cyclonian
 
Nikita S. Doroshenko's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2015
Posts: 45
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?
  Reply With Quote
09-24-15, 06:58 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
I'm 99.999% sure that there is no way for an addon to get this information.
__________________
"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
09-24-15, 09:37 PM   #3
VincentSDSH
Non-Canadian Luzer!
 
VincentSDSH's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2006
Posts: 350
Originally Posted by Seerah View Post
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.
  Reply With Quote
09-25-15, 02:23 AM   #4
TOM_RUS
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 95
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.

Last edited by TOM_RUS : 09-25-15 at 02:33 AM.
  Reply With Quote
09-25-15, 06:55 AM   #5
Maidgirl
A Murloc Raider
 
Maidgirl's Avatar
Join Date: Sep 2015
Posts: 5
Just look at time remaining on the launcher??
  Reply With Quote
09-25-15, 07:11 PM   #6
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 554
Originally Posted by Maidgirl View Post
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?
__________________
Grab your sword and fight the Horde!
  Reply With Quote
09-26-15, 05:19 PM   #7
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
Maybe just before it runs out, but I guess then it's too late
  Reply With Quote
09-26-15, 07:27 PM   #8
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Maidgirl View Post
Just look at time remaining on the launcher??
Originally Posted by Lombra View Post
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.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
09-26-15, 07:55 PM   #9
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Or it could just be that English is not their first language.
__________________
"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
09-26-15, 08:03 PM   #10
Maidgirl
A Murloc Raider
 
Maidgirl's Avatar
Join Date: Sep 2015
Posts: 5
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?
  Reply With Quote
09-26-15, 09:03 PM   #11
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
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.
__________________
"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
09-27-15, 03:50 AM   #12
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Maidgirl View Post
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.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
09-27-15, 06:52 AM   #13
jeruku
A Cobalt Mageweaver
 
jeruku's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 223
I would like to point out that you are all getting off topic.

"Can't we all just get along?" - Warlock Imp
__________________
"I have not failed, I simply found 10,000 ways that did not work." - Thomas Edison
  Reply With Quote
09-27-15, 12:12 PM   #14
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Originally Posted by jeruku View Post
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.
__________________
"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
09-27-15, 01:33 PM   #15
Nikita S. Doroshenko
A Cyclonian
 
Nikita S. Doroshenko's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2015
Posts: 45
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.

Last edited by Nikita S. Doroshenko : 09-27-15 at 01:35 PM.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Any way to get subscription time left for an account?


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