Jump to content
  • 0

npc i need some1 check my npc


oblinez

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   1
  • Joined:  02/23/14
  • Last Seen:  

-	script	hourlypoints	-1,{

OnPCLoginEvent:
	attachnpctimer();
	startnpctimer();
	end;
    
OnTimer3600000:
	if( checkidle() < .max_idle && checkvending() != 2) {
		query_sql "UPDATE `login` SET `globalpoints`=`globalpoints`+"+.point_amt+" WHERE `account_id` = '"+ getcharid(3) +"'";
		dispbottom "Voce Recebeu 1 Ponto M,M!RO Por Ficar Jogando Durante 1 hora";
	}
		if( checkidle() > .max_idle){
		dispbottom "Ganhar ponto M,M!RO ficando parado eh facil neh??";
		dispbottom "mas pra seu azar voce nao ira ganhar...";
		dispbottom "porque voce ficou 15 ou Mais AFK";
		}
		if( checkvending() == 2){
		dispbottom "Soh Para Informalo... Abrir Loja Ira Parar A contagem";
		dispbottom "De Pontos Por Hora";
		}
	attachnpctimer();
	initnpctimer();
	end;

OnInit:
	set .point_amt, 1; //ponto ganho por hora
	set .max_idle = 15 * 30;//valor de 15 minutos
}

can some1 check this npc??

Link to comment
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.   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...