Jump to content
  • 0

Premium Service


WorldSeed

Question


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  56
  • Reputation:   0
  • Joined:  02/19/16
  • Last Seen:  

Good evening to everyone. I'm just wondering if someone could help me with this Script. It is working but i would like to do it for the whole account instead of 1 character per account, and how would i be able to lower the death rate % when you're a premium/vip members? thanks in advance.

prontera,97,85,5	script	Sample	757,{

mes "Want to be Premium Users for 1 week ?";

mes "Then give me "+1+" x "+getitemname(7608);

if( countitem( 7608 ) >= 1 ){

        if( select("YES:NO") == 1 ){

                delitem 7608,1;

                set #PremiumUser,gettimetick(2) + ( .Day * 3600 * 24 );

                sc_start SC_ITEMBOOST,( #PremiumUser * 1000 ),200;

                sc_start SC_EXPBOOST,( #PremiumUser * 1000 ),200;

                mes "Done. enjoy your Premium Services for 1 Week.";

        }

}

close;



OnPCLoginEvent:

if( #PremiumUser > gettimetick(2) ){

        sc_start SC_ITEMBOOST,( ( #PremiumUser - gettimetick(2) ) * 1000 ),200;

        sc_start SC_EXPBOOST,( ( #PremiumUser - gettimetick(2) ) * 1000 ),200;

}

end;
Edited by Radian
please use code box instead of the quote thanks!
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  56
  • Reputation:   0
  • Joined:  02/19/16
  • Last Seen:  

anyone??

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  88
  • Reputation:   10
  • Joined:  01/15/16
  • Last Seen:  

Hi WorldSeed, the variable "#PremiumUser" its already a permanent local account integer variable, so for that part its done... 

but, what do you mean with "to lower the death rate %"?

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   431
  • Joined:  01/26/16
  • Last Seen:  

In src/config/core.h
Uncomment this line.

//#define VIP_ENABLE

You may also want to adjust some of VIP's feature below that line.
Then, recompile your server.
For death penalty, you can adjust features like exp/zeny lost in conf/battle/player.conf.
Search for:

// VIP system

You can also check for a player's VIP status using vip_status script command.
Example:

if(vip_status(1)) {
	mes "You are a VIP!";
} else {
	mes "lol random pleb.";
}
close;

Read more about the VIP system here: https://rathena.org/board/topic/89848-official-vip-system/

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