Jump to content
  • 0

Question

I have problem..

Some players lose VIP in less than a day, others do the VIP right time, has an error that can cause this problem? I do not know what can be ... help pls

 

 

 

 

-	script	VIPServiceLogin	-1,{OnPCLoginEvent:	if((#VIPSERVICE == 1 && VIP_Lasttime + $VIP_Cooldown > gettimetick(2) && VIP_Lasttime < gettimetick(2)) || (#FREEVIPSERVICE == 1 && VIP_Lasttime + $FREE_VIP_Cooldown > gettimetick(2) && VIP_Lasttime < gettimetick(2))) {		dispbottom "Your VIP service is active!";		if (#FREEVIPSERVICE == 1) { set .@last,VIP_Lasttime + $FREE_VIP_Cooldown - gettimetick(2); } 		if (#VIPSERVICE == 1) { set .@last,VIP_Lasttime + $VIP_Cooldown - gettimetick(2); }		set .@days,.@last / 60 / 60 / 24;		set .@hours,.@last / 60 / 60 % 24;		set .@minutes,.@last / 60 % 60;		set .@seconds,.@last % 60;		dispbottom "You have: "+.@days+" days "+.@hours+" hours "+.@minutes+" minutes "+.@seconds+" seconds in your VIP service remaining.";				ModDrop = 140;		ModExp = 140;		ModDeath = 0;		close;	}	else {		ModDrop = 100;		ModExp = 100;		ModDeath = 100;		set #VIPSERVICE,0;		set #FREEVIPSERVICE,0;		close;	}}moc_para01,24,24,4	script	VIP Service#0::vipwarp	109,{	// Configs	//	//	set .itemID, 7608; // Set this number to the VIP ticket	//	set $FREE_VIP_Cooldown,604800;	set $VIP_Cooldown,2592000;			//	//	// 2592000 is the amount of milliseconds in 30 days.	// So the VIP ticket will last exactly 30 days.	//	// When a player logs in on any char on the account, they will get an item / exp drop rate buff.	// The buff lasts 24 hours, but it is given every single time they login, so it will never run out until the 30 days are up.	//	// After giving in a VIP ticket, the player can talk to the NPC to see how much longer they have till the 30 days are over.	//	//	if((#VIPSERVICE == 1 && VIP_Lasttime + $VIP_Cooldown > gettimetick(2) && VIP_Lasttime < gettimetick(2)) || (#FREEVIPSERVICE == 1 && VIP_Lasttime + $FREE_VIP_Cooldown > gettimetick(2) && VIP_Lasttime < gettimetick(2))) {		dispbottom "Your VIP service is active!";		if (#FREEVIPSERVICE == 1) { set .@last,VIP_Lasttime + $FREE_VIP_Cooldown - gettimetick(2); } else { set .@last,VIP_Lasttime + $VIP_Cooldown - gettimetick(2); }		set .@days,.@last / 60 / 60 / 24;		set .@hours,.@last / 60 / 60 % 24;		set .@minutes,.@last / 60 % 60;		set .@seconds,.@last % 60;		mes "You have: ";		mes ""+.@days+" days "+.@hours+" hours "+.@minutes+" minutes "+.@seconds+" seconds";		mes "in your VIP service remaining.";		next;		mes "Would you like Go to VIP Room!?";		switch(select("Yes!:No.:")) {			case 1:				mes "I hope you enjoy our services!";				next;				warp "vip",80,255;				end;			case 2:				mes "Very well, I shall be here if you change your mind.";				close;		}			}		mes "Hello!";	mes "Would you like to redeem your VIP Service ticket?";	switch(select("Yes!:No.:")) {	case 1:		if (countitem(.itemID) > 0) {		delitem .itemID,1;		set #VIPSERVICE,1;		mes "^000099Congrats, you now have VIP service!^000000";		mes "^990000 You must relog for it to take effect.^000000";		set VIP_Lasttime,gettimetick(2);		close;		}		else {		mes "You do not have a VIP ticket!";		mes "Come back when you get one.";		close;		}	case 2:		mes "Very well, I shall be here if you change your mind.";		close;	}	}prontera,165,168,3	duplicate(vipwarp)	VIP Service#1	109

 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

The VIP per account :P

 

try my script and tell me if it works, because using player variables is not a way to achieve what you want

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.