Jump to content
  • 0

Command vip_status(2)


Question

2 answers to this question

Recommended Posts

  • 0
Posted
-	script	vip_info	-1,{
OnVIPInfo:
	if (!vip_status(VIP_STATUS_ACTIVE)) {
		dispbottom "You are not a VIP member. You may purchase one at Cash Shop.",0xff0000;
		end;
	}
	dispbottom "VIP Time Left: "+ Time2Str(vip_status(VIP_STATUS_REMAINING)+gettimetick(2)),0x5cdcff;
	end;
OnInit:
	bindatcmd "vipinfo", strnpcinfo(0)+"::OnVIPInfo";
}

 

  • 0
Posted

Doesn't work...
This is my full npc

 

// Portal saída
sec_in02,127,162,0	warp	quiz_0233783#prontera155183	2,2,prontera,155,183;

// Loja de Utilidades
sec_in02,130,166,5	shop	Utilidades	740,611:-1,1750:-1,1752:-1,1754:-1,1755:-1,1065:-1,717:-1,610:-1,514:-1



//*************\\
//  MAPFLAGS   \\
//=============\\

sec_in02.gat	mapflag	nosave SavePoint
sec_in02.gat	mapflag	noteleport
sec_in02.gat	mapflag	nowarpto
sec_in02.gat	mapflag	nowarp
sec_in02.gat	mapflag	noskill
sec_in02.gat	mapflag	noreturn
sec_in02.gat	mapflag	nodrop
sec_in02.gat	mapflag	novending


//*************\\
//   WARPER    \\
//=============\\

prontera,147,170,6	script	Porteiro VIP	720,{
	
	if(getgroupid() >= 1){
		set .@timer, vip_status(2);
		
		mes "[Porteiro VIP]";
		mes "Tempo de VIP restante: ";
		next;
		mes "Gostaria de entrar na Sala VIP?";
		next;
		switch(select("Sim:Não")) {
		case 1:
			mes "[Porteiro VIP]";
			mes "Vamos nessa...";
			next;
			warp "sec_in02", 146, 162;
			close2;
			break;
		case 2:
			mes "[Porteiro VIP]";
			mes "Certo!";
			mes "Até mais!";
			close2;
			break;
		}
	}else{
		mes "[Porteiro VIP]";
		mes "Desculpe, você não é VIP.";
	}
	
OnInit:
    waitingroom "Sala VIP", 0;
end;
}
 

 

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