Jump to content
  • 0

auto event for every 3 hrs


Question

10 answers to this question

Recommended Posts

Posted

OnClock0300:

OnClock0600:

OnClock0900:

hideoffnpc Bossnia Staff;

sleep ( 60 * 60000 ); // How long before hide again.

ahm i want to test it if its working, i want to make it 1 min thank you

should i change 3600*60000?

Posted

script Sample -1,{

OnInit:

hideonnpc Bossnia Staff;

end;

OnClock0300:

OnClock0600:

OnClock0900:

hideoffnpc Bossnia Staff;

sleep ( 1 * 60000 ); // How long before hide again.

hideonnpc Bossnia Staff;

end;

}

prontera,157,197,4 script Bossnia Staff#prt::bossn 908,{

i tried it but it seems the npc is not showing on, is this correct?

Posted (edited)

- script Bossnia -1,{

OnInit:

hideonnpc "Bossnia";

end;

OnClock0300:

OnClock0600:

OnClock0900:

hideoffnpc "Bossnia";

sleep ( 1 * 1 ); // How long before hide again.

hideonnpc "Bossnia";

end;

}

prontera,157,197,4 script MonLunatix::Bossnia 908,{

i did everything and changing the sleep time but still it doesn't work T__T

@nameless: yes i already figure that out. thank u

Edited by omimo
Posted

You incorrectly changed the sleep time..

now it's 1x1 sleep time is counted in milliseconds so it's 1 millisecond that's 1/1000th of a second that the npc appeared and then disappeared again.. you have to raise it.

3600000 = 1 hour

the reason Emistry did 1 * 60000 was to make the 1 from 1 * 60000 be displayed in minutes, so 30 would be 30 minutes.

change sleep back to sleep( 1 * 60000 );

Posted

do you remember what you have requested ?

an auto event for every 3 hour to hide a npc

do you know how to calculate / differnet between 3 hours and 30 minutes ? O.O

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