Jump to content

How do I put this npc to open every 3 hours ??


Recommended Posts


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   0
  • Joined:  02/01/17
  • Last Seen:  

thana_boss,136,127,5    script    test    811,{

mes " ^339966 [invocador] ^000000 ";

mes "Olá "+Strcharinfo(0)+", Gostaria de fazer a quest do Thanatos ?";

mes "------------------------";

mes " Requerimentos..";

mes "1X "+getitemname(7436);

mes "1X "+getitemname(7437);

mes "1X "+getitemname(7438);

mes "1X "+getitemname(7439);

mes "------------------------";

menu "Sim",sim,"Não",nao;

close;



sim:

next;

mes " ^339966 [invocador] ^000000 ";

mes "^FF9900Lembrando que a quest será bloqueada por 3 Horas^000000";

next;

menu "Sim",sim2,"Não",nao2;

close;



sim2:

next;

mes " ^339966 [invocador] ^000000 ";

mes "Vou verificar seus items";

if(countitem(7436)<1)goto l_semitem;

if(countitem(7437)<1)goto l_semitem;

if(countitem(7438)<1)goto l_semitem;

if(countitem(7439)<1)goto l_semitem;

next;

mes " ^339966 [invocador] ^000000 ";

mes "Voce tem todos os items";

mes "Farei a invocação agora";

delitem 7436,1;

delitem 7437,1;

delitem 7438,1;

delitem 7439,1;

atcommand "@monster 1708";

close;



OnNPCKillEvent:

if (killedrid == 1708){

hideonnpc "Invocador";

addtimer 10800000,"Invocador::OnTempo";

announce "O Sangue maldito derramado impede que a invocação seja feita novamente!",2;

end;

}



OnTempo:

hideoffnpc "Invocador";

announce "O Sangue derramado foi purificado, tudo volta ao seu normal!",18;

end;



l_semitem:

next;

mes " ^339966 [invocador] ^000000";

mes "Você não tem todos os itens necessario";

mes "para fazer está quest, volte quando tiver.";

close;



nao:

next;

mes " ^339966 [invocador] ^000000 ";

mes " Volte quando quizer";

close;



nao2:

next;

mes " ^339966 [invocador] ^000000 ";

mes " Volte quando quizer";

close;

}

 

Edited by Cyro
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L855-L857

 

 

 

ps- use codec box when you pasting some code

  • Upvote 1
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
Reply to this topic...

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