Jump to content
  • 0

Question

Posted

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.

11 answers to this question

Recommended Posts

Posted

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
Posted

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
Posted

+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

Posted

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

Posted

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? ;)

Posted (edited)

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

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