Jade Posted May 19, 2018 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 33 Reputation: 0 Joined: 03/27/18 Last Seen: November 14, 2018 Share Posted May 19, 2018 (edited) Hi, Need help on how to make Automated "Shop". Edited August 16, 2018 by Jade Quote Link to comment Share on other sites More sharing options...
0 Zycron Posted May 19, 2018 Group: Members Topic Count: 14 Topics Per Day: 0.01 Content Count: 35 Reputation: 17 Joined: 04/25/18 Last Seen: May 3, 2021 Share Posted May 19, 2018 If you take a look at the recently posted rune-wars script it spawns on certain times and despawns Quote Link to comment Share on other sites More sharing options...
0 Jade Posted May 19, 2018 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 33 Reputation: 0 Joined: 03/27/18 Last Seen: November 14, 2018 Author Share Posted May 19, 2018 2 minutes ago, Zycron said: If you take a look at the recently posted rune-wars script it spawns on certain times and despawns sorry im a newbie, i don't know how to start a script .. @ all can someone help me with this ... thank you ... much appreciated .. Quote Link to comment Share on other sites More sharing options...
0 AnnieRuru Posted May 20, 2018 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted May 20, 2018 (edited) unit controller does the trick prontera,155,185,5 script skfshdfs 1_F_MARIA,{ mes "blah blah"; // main script here ... all lines below needs to be added close; OnInit: if ( gettime(DT_HOUR) != 8 && gettime(DT_HOUR) != 9 || gettime(DT_MINUTE) > 15 ) { hideonnpc strnpcinfo(0); end; } OnClock0800: OnClock0900: hideoffnpc strnpcinfo(0); while ( checkcell( .@map$ = F_Rand("prontera", "payon", "izlude","geffen"), .@x = rand(500), .@y = rand(500), cell_chknopass ) ); unitwarp getnpcid(0), .@map$, .@x, .@y; // announce "warp to "+ .@map$ +" "+ .@x +" "+ .@y, bc_all; sleep 15 * 60 * 1000; // 15 minutes hideonnpc strnpcinfo(0); end; } Edited May 20, 2018 by AnnieRuru Quote Link to comment Share on other sites More sharing options...
0 Jade Posted May 20, 2018 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 33 Reputation: 0 Joined: 03/27/18 Last Seen: November 14, 2018 Author Share Posted May 20, 2018 (edited) thank you @AnnieRuru ... a bit bug when i reload it with the clock changed ... it loads (warp in random) automatically even if it's not time yet ... after that, it goes to the script OnClock SMOOTHLY ... i set it at 1 minute for testing .... Edited August 16, 2018 by Jade Quote Link to comment Share on other sites More sharing options...
0 AnnieRuru Posted May 20, 2018 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted May 20, 2018 hmm ... do you know all woe/event controller only support weekday and hour setting, but omit the minute setting ? because let's say I want the woe go from Sunday 11:30pm until Monday 12:30 am, this is actually very complicated to do same thing happen here, the minute stuff is assuming the hour runs at 00 minute so yup, your minute condition is wrong if ( (gettime(DT_HOUR) != 12 && gettime(DT_HOUR) != 13) && gettime(DT_MINUTE) > 5 && gettime(DT_MINUTE) <= 6 ) { honestly, just stick to ... assume it runs on xx:00 , then don't need to consider all the complicated minute stuff Quote Link to comment Share on other sites More sharing options...
0 Jade Posted May 22, 2018 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 33 Reputation: 0 Joined: 03/27/18 Last Seen: November 14, 2018 Author Share Posted May 22, 2018 i see, my bad ... Thank you so much ~~Cute~Cute~Scripter~~ @AnnieRuru Quote Link to comment Share on other sites More sharing options...
Question
Jade
Hi, Need help on how to make Automated "Shop".
Edited by JadeLink to comment
Share on other sites
6 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.