omimo Posted March 27, 2012 Group: Members Topic Count: 32 Topics Per Day: 0.01 Content Count: 97 Reputation: 0 Joined: 03/03/12 Last Seen: May 18, 2023 Share Posted March 27, 2012 ahm i want to make my npc appears every 3hrs how can do that? thank you Quote Link to comment Share on other sites More sharing options...
Emistry Posted March 27, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted March 27, 2012 try this [ Pastebin ] Hide NPC Quote Link to comment Share on other sites More sharing options...
omimo Posted March 27, 2012 Group: Members Topic Count: 32 Topics Per Day: 0.01 Content Count: 97 Reputation: 0 Joined: 03/03/12 Last Seen: May 18, 2023 Author Share Posted March 27, 2012 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? Quote Link to comment Share on other sites More sharing options...
Emistry Posted March 27, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted March 27, 2012 sleep ( 60 * 60000 ); // How long before hide again edit the number 60 ( 60 = 60 minutes ) Quote Link to comment Share on other sites More sharing options...
omimo Posted March 27, 2012 Group: Members Topic Count: 32 Topics Per Day: 0.01 Content Count: 97 Reputation: 0 Joined: 03/03/12 Last Seen: May 18, 2023 Author Share Posted March 27, 2012 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? Quote Link to comment Share on other sites More sharing options...
Emistry Posted March 27, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted March 27, 2012 hideonnpc Bossnia Staff; should be hideonnpc "Bossnia Staff"; Quote Link to comment Share on other sites More sharing options...
Nameless2you Posted March 27, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 351 Reputation: 52 Joined: 11/15/11 Last Seen: June 15, 2015 Share Posted March 27, 2012 prontera,157,197,4 script Bossnia Staff#prt::bossn 908,{ hideonnpc "bossn"; hideoffnpc "bossn"; Quote Link to comment Share on other sites More sharing options...
omimo Posted March 27, 2012 Group: Members Topic Count: 32 Topics Per Day: 0.01 Content Count: 97 Reputation: 0 Joined: 03/03/12 Last Seen: May 18, 2023 Author Share Posted March 27, 2012 (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 March 27, 2012 by omimo Quote Link to comment Share on other sites More sharing options...
Nameless2you Posted March 27, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 351 Reputation: 52 Joined: 11/15/11 Last Seen: June 15, 2015 Share Posted March 27, 2012 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 ); Quote Link to comment Share on other sites More sharing options...
omimo Posted March 28, 2012 Group: Members Topic Count: 32 Topics Per Day: 0.01 Content Count: 97 Reputation: 0 Joined: 03/03/12 Last Seen: May 18, 2023 Author Share Posted March 28, 2012 ah ok, hmmm sir last thing its been 30 minutes past but still the npc is visible. Quote Link to comment Share on other sites More sharing options...
Emistry Posted March 28, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted March 28, 2012 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 Quote Link to comment Share on other sites More sharing options...
Question
omimo
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.