Jump to content
  • 0
Sign in to follow this  
Snaehild

SC_CASH_* Stacking

Question

I tried this VIP system from Diconfrost VaNz. Is it possible to make it stack with the default item modifiers like bubble gum and field manuals?

 

function	script	getPremium	{	set .@ticks, getarg(0);	if (.@ticks <= 0)	{		debugmes "getPremium - tried to set a timer in the past";		end;	}	set prmm, ((prmm > gettimetick(2)) ? prmm : gettimetick(2)) + .@ticks;	doevent "login::OnPCLoginEvent";	return;}-	script	login	-1,{OnPCLoginEvent:	if (prmm > gettimetick(2)) {		dispbottom "Your Premium Service will expire after " + callfunc("Time2Str",premium);		sc_start SC_CASH_PLUSEXP,(( prmm - gettimetick(2) ) * 1000 ),150;		sc_start SC_CASH_PLUSONLYJOBEXP,(( prmm - gettimetick(2) ) * 1000 ),150;		sc_start SC_CASH_RECEIVEITEM,(( prmm - gettimetick(2) ) * 1000 ),150;		atcommand "@adjgroup 1 "+strcharinfo(0);		deltimer strnpcinfo(3)+"::OnPCLoginEvent";		if ((prmm - gettimetick(2)) < 2147483)		{			addtimer (prmm - gettimetick(2)) *1000, strnpcinfo(3)+"::OnPCLoginEvent";		}		else		{			addtimer 2147483000, strnpcinfo(3)+"::OnPCLoginEvent";		}	} else if (prmm) {		atcommand "@adjgroup 0 "+strcharinfo(0);		sc_end SC_CASH_PLUSEXP;		sc_end SC_CASH_PLUSONLYJOBEXP;		sc_end SC_CASH_RECEIVEITEM;		set prmm, 0;		dispbottom "Premium Services has ended.";	}end;

 

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.