Jump to content

Question

Posted

Good evening, could someone help me make a script when the player enters the server and is not a VIP, a message will appear for him if he wants to buy the VIP, if he doesn't want to buy it now he can put it as a reminder in 7 days, if he doesn't do nothing the next day the message appears again when logging in if you are a vip the npc will not start when entering the server.
 

3 answers to this question

Recommended Posts

  • 0
Posted (edited)
On 5/26/2024 at 7:39 AM, luizinhomt said:

Good evening, could someone help me make a script when the player enters the server and is not a VIP, a message will appear for him if he wants to buy the VIP, if he doesn't want to buy it now he can put it as a reminder in 7 days, if he doesn't do nothing the next day the message appears again when logging in if you are a vip the npc will not start when entering the server.
 

 

-	script	Char Information	-1,{
	OnPCLoginEvent:
if(vip_status(VIP_STATUS_ACTIVE)){
dispbottom "Your Premium Status ACTIVE",0x66FFFF;
} else {
dispbottom "Your Premium Status NOT ACTIVE",0x66FFFF;
dispbottom "Please use premiums service to get other benefits",0x66FFFF;
} 
end;
}

 

Edited by Akbare-2nd
  • Love 1
  • 0
Posted (edited)
On 5/28/2024 at 2:09 PM, Akbare-2nd said:

 

-	script	Char Information	-1,{
	OnPCLoginEvent:
if(vip_status(VIP_STATUS_ACTIVE)){
dispbottom "Your Premium Status ACTIVE",0x66FFFF;
} else {
dispbottom "Your Premium Status NOT ACTIVE",0x66FFFF;
dispbottom "Please use premiums service to get other benefits",0x66FFFF;
} 
end;
}

 

You missed the part with the pausing of the reminder.
 

-	script	VIP_REMINDER	-1,{
	OnInit:
		.pause_days = 7;
		end;

	OnPCLoginEvent:
		if(vip_status(VIP_STATUS_ACTIVE) || #REMINDER_COOLDOWN > gettimetick(2)) end;
	
		mes "[Premium Reminder Service]";
		mes "Your Premium Status is NOT ACTIVE";
		mes "Please consider using our premium service to get more benefits.";
		mes "Do you want to pause this reminder for 7 days?";
		next;
		if(select("Yes.:No." == 2) {
			mes "[Premium Reminder Service]";
			mes "You will get a reminder on next login.";
			end;
		}

		#REMINDER_COOLDOWN = gettimetick(2) + 86400 * .pause_days;

		mes "[Premium Reminder Service]";
		mes "The reminder has been paused until " + gettimestr("%Y-%m/%d %H:%M:%S", 21, #REMINDER_COOLDOWN);
		close;
}

 

Edited by Winterfox
  • Love 2

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...