Jump to content
  • 0

Can someone finish this script? Thanks in advance!


Meister

Question


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

Can someone finish this premium account script? I'm noob at scripting.. Thanks

Please finish the following:

1. The premium account - What is it?

- Player will talk to the NPC and there's an option if he/she wants to become a premium player or wants to have a premium account. And if he wants then he'll need to pay cash points..

What is premium account? -

- an account that will give him/her an advantage to other players like boosting his/her exp, drop, and discount rates..

Also, when the player acquire premium account status he/she will know when his premium account will last. It will be displayed when he/she will login. Example..

Player A log-on.. A message will welcome him/her saying "Your premium account status will end in +time, seconds, day"

That's all. Edited

/// Premium Account

// Users can come to this script to pay for Premium Time. This mode runs only in the current Account, and expires when the Premium Time is over.
// You can configure bonus experience, discounts in cash shops, and @commands available for Premium Account only.

// Premium Account conf/battle settings ( see eAmod.conf )

// Extra experience Bonus when killing mobs. Value is from 0 to 100, as a Percent. Example 5 = 5%
//premium_bonusexp: 100

// Discount when using Cash Shops. Value is from 0 to 100, as a Percent. Example 5 = 5%
//premium_discount: 20

// Drop boost for Premium account users. Value is %, where 5 become 5%.
// The bonus drop increases the normal drop rate just like Bubble Gum does.
// If normal drop is 30% and premium_dropboost is 10. The final drop rate will be 33%, not 40%.
//premium_dropboost: 100

prontera,145,171,5	script	Premium Account	864,{
// Settings: -----------------------------
set .@Cost, 10000; // Cash Points required
set .@Time, 4 * 7 * 24 * 60 * 60; // Time in Seconds = 4 weeks, 7 days per week, 24 hours per day, 60 minutes per day, 60 seconds per minute. = 1 month in this sample.
set .@Time$, "1 month";
// ---------------------------------------

mes "[Premium Account]";
mes "I am the Premium Account seller.";
if( isPremium == 1 )
	mes "Your Premium Account expires in ^FF0000" + callfunc("Time2Str",#Premium_Tick) + "^000000.";
mes "What can I do for you?";
next;

// isPremium() returns 1 if the current user Account is Premium and it have not expired.
// It works together with #Premium_Tick, which is a Account Var set with a Unix Time value, representing when the Premium Account expires.
// isPremium() is the same as #Premium_Tick > gettimetick(2)

switch( select("Pay for Premium Time:About Premium Account") )
{
case 1:
	mes "[Premium Account]";
	if( isPremium == 1 )
		mes "Do you really want to extend your Premium Time?";
	else
		mes "You do really want to convert your account to premium?";

	mes "Premium Time is ^FF0000" + .@Time$ + "^000000";
	mes "Value is ^FF0000" + .@Cost + "^000000 Cash Points.";
	next;
	if( select("Yes:No") == 2 )
	{
		mes "[Premium Account]";
		mes "Come back if you change your mind.";
		close;
	}

	if( #CASHPOINTS < .@Cost )
	{
		mes "[Premium Account]";
		mes "You don't have enough Cash Points.";
		close;
	}

	if( isPremium == 1 )
		set #Premium_Tick, #Premium_Tick + .@Time; // Time Extension
	else
		set #Premium_Tick, gettimetick(2) + .@Time; // New Premium Account
	set #CASHPOINTS, #CASHPOINTS - .@Cost;

	mes "[Premium Account]";
	mes "Congratulations!!..";
	mes "Remember your Premium Account expires in ^FF0000" + callfunc("Time2Str",#Premium_Tick) + "^000000.";
	close;

case 2:

	// Edit this messages to explain your Users about the Premium Account in your server.
	// ----------------------------------------------------------------------------------

	mes "[Premium Account]";
	mes "";
	mes "";
	mes "";
	close;
}
}

Edited by emong
Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

you can try this if you want. made this not long ago.

http://pastebin.com/raw.php?i=z8tt9Qy4

Link to comment
Share on other sites

  • -1

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  154
  • Reputation:   1
  • Joined:  05/02/12
  • Last Seen:  

idea stolen from eamod. lolololol

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  87
  • Reputation:   13
  • Joined:  02/15/12
  • Last Seen:  

I'm pretty sure this need some source modification, anyways....

// Premium Account conf/battle settings ( see eAmod.conf )

If you've just "taken" the script from eAmod without using their source edits it won't help you much. Correct me if i'm wrong.

Anyways, i would suggest you to just use stati ~aka status effects~ (the ones from bubble gum SC_ITEMBOOST and the one from battle manual SC_EXPBOOST), those stati are already existing and will deduct the "premium time" = ingame time.

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

I really don't know what eamod source looks like. I just browse the net for some scripts and my findings led mo to that script. So don't have idea that it also needs src modification.. Anyways, if this isn't possible. I would like to request mods to just close the topic. thanks!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  87
  • Reputation:   13
  • Joined:  02/15/12
  • Last Seen:  

It is possible, i just suggested you something. Do you have msn by chance? Yahoo would do too, give me your contact detail and i help you out.

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:  

It is possible, i just suggested you something. Do you have msn by chance? Yahoo would do too, give me your contact detail and i help you out.

I have.. I'll message you with it. Thanks!

you can try this if you want. made this not long ago.

http://pastebin.com/raw.php?i=z8tt9Qy4

Will this work if I still use Bubble Gum and Battle Manual?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  87
  • Reputation:   13
  • Joined:  02/15/12
  • Last Seen:  

you can try this if you want. made this not long ago.

http://pastebin.com/raw.php?i=z8tt9Qy4

Will this work if I still use Bubble Gum and Battle Manual?

It won't no, it will overwrite the bubble / battle manual. And if "premium" was active before, you just can't use the bubble gum / battle manual.

Give me your contact details and i'll tell you how to add a new buff to your client & server.

*EDIT*

Added you, accept the invite please.

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

you can try this if you want. made this not long ago.

http://pastebin.com/raw.php?i=z8tt9Qy4

Will this work if I still use Bubble Gum and Battle Manual?

It won't no, it will overwrite the bubble / battle manual. And if "premium" was active before, you just can't use the bubble gum / battle manual.

Give me your contact details and i'll tell you how to add a new buff to your client & server.

*EDIT*

Added you, accept the invite please.

Edited.

Solved! Kindly close this topic! Special thanks to shadowseph! A great tutor and a friend! wooot!

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