Jump to content
  • 0

npc reminder


luizinhomt

Question


  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  111
  • Reputation:   1
  • Joined:  01/05/13
  • Last Seen:  

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.
 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.01
  • Content Count:  62
  • Reputation:   4
  • Joined:  06/11/23
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  245
  • Reputation:   93
  • Joined:  06/30/18
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  111
  • Reputation:   1
  • Joined:  01/05/13
  • Last Seen:  

thank you all very much for the answers

Link to comment
Share on other sites

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.

×
×
  • Create New...