• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[Add-On]Cashshop enable/disable.

Joined
Apr 10, 2008
Messages
4,087
Reaction score
1,264
Hi. There is a short thing to add GMS-like. If you're doing a CashShop patch, or anything,
Just change this to false.
Anyway, ServerConstants;
Code:
public static final boolean CASHSHOPSTATUS = true;
And ofcourse EnterCashshopHandler.java.
Code:
if (ServerConstants.CASHSHOPSTATUS == false) {
	c.getSession().write(MaplePacketCreator.serverNotice(1, "The cash shop is unavaiable. Please try again later."));
	return;
}

Have fun lol.
 
Last edited by a moderator:
Joined
Apr 10, 2008
Messages
4,087
Reaction score
1,264
Re: Cashshop enable/disable.

Yeah. I guess you can add this when your Cashshop has a bug
or anything, So people won't need to use 'dispose' everytime o-o.

By the way, I'll quote something.
Code:
If you want to say thank you to a member for a good post, then just beneath their thread, you will find the thanks button. 

Simply click that.
 
Last edited:
Newbie Spellweaver
Joined
Sep 27, 2010
Messages
28
Reaction score
1
Re: Cashshop enable/disable.

Are you telling me that I should just press the thanks button instead of replying to your thread? Well ok I'll delete my post and press the button instead.
 
Legendary Battlemage
Loyal Member
Joined
Sep 28, 2008
Messages
600
Reaction score
291
Re: Cashshop enable/disable.

This has been released before.
 
Joined
Feb 23, 2008
Messages
507
Reaction score
361
Re: Cashshop enable/disable.

Something that would be better would be a command that would disable/re-enable it at will.

'Cause this has been released countless times over the last two years.
 
Junior Spellweaver
Joined
Nov 19, 2010
Messages
110
Reaction score
52
Re: Cashshop enable/disable.

Agree to kevin.
 
Joined
Apr 10, 2008
Messages
4,087
Reaction score
1,264
Re: Cashshop enable/disable.

I really didn't know if it's used there, Just made it. Yeah, CashShop should be an acutal server it self, and when you quit the batch file (Like the login), It disables it. That's how Nexon does it (I'm sure), and done in Vana.
 
Custom Title Activated
Loyal Member
Joined
Jun 30, 2008
Messages
3,451
Reaction score
1,616
Re: Cashshop enable/disable.

I really didn't know if it's used there, Just made it. Yeah, CashShop should be an acutal server it self, and when you quit the batch file (Like the login), It disables it. That's how Nexon does it (I'm sure), and done in Vana.
So you think nexon uses .bat files? :3
 
Infraction Baɴɴed
Loyal Member
Joined
Apr 9, 2008
Messages
1,416
Reaction score
169
Re: Cashshop enable/disable.

its still a start
 
Mythic Archon
Loyal Member
Joined
May 11, 2008
Messages
722
Reaction score
50
Re: Cashshop enable/disable.

Hi. There is a short thing to add GMS-like. If you're doing a CashShop patch, or anything,
Just change this to false.
Anyway, ServerConstants;
Code:
public static final boolean CASHSHOPSTATUS = true;
And ofcourse EnterCashshopHandler.java.
Code:
if (ServerConstants.CASHSHOPSTATUS[COLOR="Red"]()[/COLOR] == false) {
	c.getSession().write(MaplePacketCreator.serverNotice(1, "The cash shop is unavaiable. Please try again later."));
	return;
}
Have fun lol.

Suprised no one pointed out the error yet o_____o;
 
Legendary Battlemage
Loyal Member
Joined
Sep 28, 2008
Messages
600
Reaction score
291
Re: Cashshop enable/disable.

Lol

He can just do this
Code:
if (!ServerConstants.CASHSHOPSTATUS) {
	c.getSession().write(MaplePacketCreator.serverNotice(1, "The cash shop is unavaiable. Please try again later."));
	return;
}
 
Back
Top