Jump to content
  • 0

auto event for every 3 hrs


omimo

Question


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  97
  • Reputation:   0
  • Joined:  03/03/12
  • Last Seen:  

ahm i want to make my npc appears every 3hrs how can do that?

thank you

Link to comment
Share on other sites

10 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  97
  • Reputation:   0
  • Joined:  03/03/12
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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

edit the number 60 ( 60 = 60 minutes )

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  97
  • Reputation:   0
  • Joined:  03/03/12
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

hideonnpc Bossnia Staff;

should be

hideonnpc "Bossnia Staff";
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   52
  • Joined:  11/15/11
  • Last Seen:  

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

hideonnpc "bossn";

hideoffnpc "bossn";

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  97
  • Reputation:   0
  • Joined:  03/03/12
  • Last Seen:  

- 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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   52
  • Joined:  11/15/11
  • Last Seen:  

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 );

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  97
  • Reputation:   0
  • Joined:  03/03/12
  • Last Seen:  

ah ok, hmmm sir last thing its been 30 minutes past but still the npc is visible.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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

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