Jump to content

[v2.0]Basic Premium System


Recommended Posts


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

Reference: http://rathena.org/board/topic/79116-helppremium-system/?view=getnewpost

 

 

I've made a basic premium system.

It will give exp/drop boost to all vip/premium users and even change your group_id.

How to use it:

1st) make a custom item that will serve as "VIP Ticket". must be a usable item.
item script:

 

 callfunc "getPremium", <# of Days> * 24 * 3600; 

 

2nd) Install the npc script in your svn.

 

http://upaste.me/9a5e54350fc1eb32

 

 

3rd) Try it :D

 

 

2.0 Feature Added: @premium command

 

 

 

Special Thanks to Jezu, clydelion and Dastgr

vip.txt

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


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

good work

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:  

i thought i will be in a funeral tonight after doing this HAHA xD i'd die if i do this alone. Thankfully some ppl helped me.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   0
  • Joined:  05/09/12
  • Last Seen:  

how does it work?

can you explain detail.

 

i already make the custom vip card

 

18103,VIP Ticket,Vip Ticket,2,2,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ set #Premium,#Premium + ( <# of days> * 24 * 3600 ); },{},{}

 

Thanks

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  83
  • Reputation:   8
  • Joined:  12/27/11
  • Last Seen:  

how does it work?

can you explain detail.

 

i already make the custom vip card

18103,VIP Ticket,Vip Ticket,2,2,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ set #Premium,#Premium + ( <# of days> * 24 * 3600 ); },{},{}
 

Thanks

 

You have to set the number of days in order for the item to work. The example below will make you a Premium user for 7 days once you use it.

 

{ set #Premium,#Premium + ( 7 * 24 * 3600 ); }
This example is also the same thing as above except it doesn't use the mathematical formula.
{ set #Premium,#Premium + 604800; }
Edited by arzzzae
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:  

{ set #Premium,#Premium + ( 7 * 24 * 3600 ); }  <<<this was set for 7 days :D

 

 

 

the format was like this

 

7 days * 24hours a day * 3600 secondes per hour



v1.3 released

 

thread updated*

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  271
  • Reputation:   7
  • Joined:  01/06/12
  • Last Seen:  

just a question, if you use 1 vip ticket you will have 7 days right, what if your vip ticket is not yet expired then you use another one, will it stack? will it add more days?

Edited by Thanna
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  218
  • Reputation:   16
  • Joined:  01/24/12
  • Last Seen:  

just a question, if you use 1 vip ticket you will have 7 days right, what if your vip ticket is not yet expired then you use another one, will it stack? will it add more days?

Yup, it'll stack because the set command is adding more time to the 'Premium' variable.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

set #Premium, (#Premium > gettimetick(2)? #Premium : gettimetick(2)) + ( 30 * 24 * 3600 );

This will add days if the premium is still active.

  • 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:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  32
  • Reputation:   2
  • Joined:  11/22/11
  • Last Seen:  

[suggestions]

 

This would be cool if you add a status icon and an aura determining that you are a premium user

 

For the aura features you can use the auraset mod... /no1

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:  

Well, this is just a basic premium system, if you want to set it like that, well you can do it yourself :)

 

But any suggestions are welcome :D

 

If you wanna help me on adding or optimizing the script, you're more than welcome :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

Is it possible to add in this script wherein you can use bindatcmd to call the getpremiumtime function?

 

like for example.

 

@premium = shows how much time you still have before the premium expires..

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:  

you can talk to the npc :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

Yeah. What if the player isn't near on the NPC. like for example to a different map and wants to know the duration of the activated premium.. by using @command he/she can know immediately. :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

OnAtcommand:
dispbottom "Your Premium Time Left : "+getPremiumTime( #Premium );
end;

OnInit:	bindatcmd "premium",strnpcinfo(3)+"::OnAtcommand"; end; 

Add this somewhere inside that script. Probably at the bottom.

 

You can use @premium then.

 

  • Upvote 1
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:  

2.0 Feature Added: @premium command - thanks to clydelion

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  6
  • Reputation:   0
  • Joined:  02/19/13
  • Last Seen:  

This script does not use battle manual.

Help me VIP Member increase x1.5 EXP + Battle Manual.

VIP member increase drop 50% + GUM

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:  

you mean the two of them gonna stack up?

 

it is not a little bit imbalance?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  6
  • Reputation:   0
  • Joined:  02/19/13
  • Last Seen:  

Example:

Normal Member rate EXP/JOB: 1.0 (Group = 0)

VIP Member defaults are increasing EXP/JOB rate EXP/JOB: 2.0 (Group = 1)

 

Use Battle Manual:

Normal Member rate EXP/JOB: 1.5

VIP Member defaults are increasing EXP/JOB rate EXP/JOB: 3.5

 

You can help me. Thx

Edited by maxROVN
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:  

i think this is possible but in src modification way i think? or another way around, i'm gonna research about this.

 

Sorry i'm just a begginer xD

 

i'll post it right away after i discovered about it.

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:  

updated*

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

EDIT : Solved :D No ERROR

Edited by SlashGeeGee
Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  90
  • Topics Per Day:  0.02
  • Content Count:  361
  • Reputation:   18
  • Joined:  01/09/13
  • Last Seen:  

I'm Looking for this. but it's seems not working on latest revisions. would you please update it ?



Any solution for this? 

[Error]:
script error on npc/vips.txt line 63
    expect ';' or '{' at function syntax
    58 : mes "[^FF0000Clahador^000000]";
    59 : mes "Thank you!";
    60 : mes "Come Again!";
    61 : close;
    62 :
*   63 : function       script' 'getPremium     {
    64 :        set .@ticks, getarg(0);
    65 :        if (.@ticks <= 0) {
    66 :                debugmes "getPremium - tried to set a timer in the past"
;
    67 :                end;
    68 :        }
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  67
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   1
  • Joined:  05/01/13
  • Last Seen:  

how to add commands into VIP exmaple the was enable to use @aura @font etc ..

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
Reply to this topic...

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