Jump to content
  • 0

VIP System


AdventLyn

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  05/13/12
  • Last Seen:  

Anyone can script a npc like this with query sql and sql.file please.

A npc that can change your gm level from gmlvl 0 to gmlvl 1 for 1 month with query_sql so even the server was down the time of his being gmlvl 1 are still running.

Also have feature  if gm level 1 OnPCLogin showing how many days left until his gmlvl 1 will expire.

Link to comment
Share on other sites

11 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

Is it possible to make your Premium System add a script that makes your premium user Level 1 GM Which is Super Player? Thanks.

Since the script checks their VIP time every time they login (and adjusts their GM level to 1 if they still have VIP time left), it's not necessary to edit their `group_id` in SQL.

But if you really want the script to do that, find these lines (line 32 and 40)

		atcommand "@adjgroup 1 "+strcharinfo(0);
		atcommand "@adjgroup 0 "+strcharinfo(0);
and right after each of those lines, you can add query_sql to change their group_id in SQL.
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Search VIP system in this forum I'm sure you will find something like your request

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

Here's one example: vip_rental.txt

Usage: (can be used in an item script or NPC script)

{ callfunc "F_VIPstart", <ticks>; }
ticks = how long their VIP will last, in seconds
  • 1 day = 86400
  • 7 days = 604800
  • 14 days = 1209600

    etc.

Example item script:
55555,VIP_7day,VIP Membership (7 days),2,2,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "F_VIPstart", 604800; },{},{}
  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  974
  • Reputation:   41
  • Joined:  11/13/11
  • Last Seen:  

+1 for Brian

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   2
  • Joined:  03/06/12
  • Last Seen:  

+1 for Brian

Is it possible to make your Premium System add a script that makes your premium user Level 1 GM Which is Super Player? Thanks.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  974
  • Reputation:   41
  • Joined:  11/13/11
  • Last Seen:  

+1 for Brian

Is it possible to make your Premium System add a script that makes your premium user Level 1 GM Which is Super Player? Thanks.

 

Yes it is now :) i already updated it :D

 

and

 

 

please reply on my thread :D not here please

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  399
  • Reputation:   198
  • Joined:  11/09/11
  • Last Seen:  

Here's one example: vip_rental.txt

Usage: (can be used in an item script or NPC script)

{ callfunc "F_VIPstart", <ticks>; }
ticks = how long their VIP will last, in seconds
  • 1 day = 86400
  • 7 days = 604800
  • 14 days = 1209600

    etc.

Example item script:
55555,VIP_7day,VIP Membership (7 days),2,2,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "F_VIPstart", 604800; },{},{}

Damn near spot on for how I handle my VIP system on my server, haha. Highly recommended and easy to handle. :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

OOT: Just my 0.02

A +1 without a +1?

28wcxnd.jpg

Brian may not ask for it, but it's a nice habit if you do so. It's like a point of gratitude and to encourage the helper

Afterall, it doesn't even cost a thing, right? ;)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  974
  • Reputation:   41
  • Joined:  11/13/11
  • Last Seen:  

OOT: Just my 0.02

A +1 without a +1?

28wcxnd.jpg

Brian may not ask for it, but it's a nice habit if you do so. It's like a point of gratitude and to encourage the helper

Afterall, it doesn't even cost a thing, right? ;)

 

 

what do you mean by that? /swt

 

i think you're talking about rep up? /swt

 

and i'm just telling that "+1 for brian" because that script is more easy to use. /swt

 

And just to look on your signature, rep_up.png = Thanks button 

 

you said that is for "Thanks". /heh

 

and i'm saying is "+1 for Brian" means "use it"

Edited by Diconfrost VaNz
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  05/13/12
  • Last Seen:  

Thanks for Brian

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  08/07/12
  • Last Seen:  

nice work sir brian! 

Edited by edwedw
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...