Jump to content
  • 0

Help, vip system


oxe1

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  03/03/18
  • Last Seen:  

Hi everyone, good afternoon, well, I'm here to ask for your help,


How do I get all accounts to come with 7 days vips automatically?


Example: When creating the account it already comes with 7 days vips automatically without needing a ticket.


I have seen this system on several servers and would like to learn, to apply to mine and I count with your help, Thanks

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  86
  • Reputation:   21
  • Joined:  10/02/13
  • Last Seen:  

prontera,147,175,5	script	Vip Giver	52,{

OnInit:
	hideonnpc "Vip Giver";

OnPCLoginEvent:
	if (#freeviptime == 0) {
		vip_time 60*24*7, strcharinfo(0);
		set #freeviptime,1;
	}
	end;

}

As TheDerpySupport said, it's pretty straightforward.

Spoiler

Please note that you must have compiled your emulator with VIP support (src/config/core.h)


/// Uncomment to enable VIP system.
//#define VIP_ENABLE

 

Edited by Tyrfing
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.01
  • Content Count:  208
  • Reputation:   60
  • Joined:  09/23/17
  • Last Seen:  

51 minutes ago, oxe1 said:

Hi everyone, good afternoon, well, I'm here to ask for your help,


How do I get all accounts to come with 7 days vips automatically?


Example: When creating the account it already comes with 7 days vips automatically without needing a ticket.


I have seen this system on several servers and would like to learn, to apply to mine and I count with your help, Thanks

They do this using an OnPcLogin script that checks for an account variable to see if they got their free VIP status or not; If not it changes the account variable and give it to them, if they have the variable, the script ends

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  03/03/18
  • Last Seen:  

3 hours ago, TheDerpySupport said:

Eles fazem isso usando um script OnPcLogin que verifica uma variável de conta para ver se eles obtiveram seu status VIP gratuito ou não; Se não mudar a variável da conta e dar a eles, se eles tiverem a variável, o script termina

Could you get me this script?

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...