Jump to content

Ayuda con Script


insidious

Recommended Posts


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  08/03/16
  • Last Seen:  

Buenas, si pudieran ayudarme con este script soy un poco nuevo en esto y no encuentro donde cambiarle las horas de inicio del npc, si pudieran decirme en que parte modificarlo para que inicie cada 2 hrs.. Gracias !!

bandera1.txt

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  40
  • Reputation:   4
  • Joined:  01/13/13
  • Last Seen:  

OnTimer90100000:
stopnpctimer;
set $@Aqua_Repeat,rand(1000);
if ($@Aqua_Repeat <= 1000) goto Aqua1; // Posibilidades de que se reactive el evento en cada hora. (Por defecto 1/1000)
setnpctimer 86500000;
startnpctimer;
end;
}
ay dice 90100000 (milisegundos) si esta activo aqua_repeat tiene posibilidad de activarse cada 1h
luego pone el timer a 86500000

90100000 -  86500000 = 3600000 milisegundos (1h)

por ende si ponemos el timer a 

setnpctimer 82900000; 

serian 2 horas

fijate bien en la parte tambien de :

OnTimer86480000:
disablenpc "Señor de Amatsu";
if ($Aqua_Auto == 0) stopnpctimer;
end;

porque eso se ejecutaría al poner el timer mas bajo y desconosco su función (no lei el script completo, solo busque directo lo de la hora)

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