weckel51 Posted July 29, 2013 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 21 Reputation: 0 Joined: 01/08/12 Last Seen: August 31, 2015 Share Posted July 29, 2013 (edited) anyone can help please this script i want to make delay time for 5mins for every bgm player to the player with timer delay time prontera,148,176,4 script DJ Test 671,{ mes "What Song Would you like to play?"; switch(select("song1:song2:song3:song4:song 5:song6:None")) { case 1: playBGMall "573","prontera"; close; case 2: playBGMall "574","prontera"; close; case 3: playBGMall "575","prontera"; close; case 4: playBGMall "576","prontera"; close; case 5: playBGMall "577","prontera"; close; case 6: playBGMall "578","prontera"; close; case 7: mes "Okay Bye Cya Later"; close; } } Edited July 29, 2013 by weckel51 Quote Link to comment Share on other sites More sharing options...
whitesn Posted July 29, 2013 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 193 Reputation: 14 Joined: 12/02/11 Last Seen: October 30, 2018 Share Posted July 29, 2013 Assuming those are correct files - script autodj -,{ OnInit: set .start$[0],"573","574","575","576","577","578"; //You can add more song here do { for (set .i,0; .i <= getarraysize(.start$); set .i,.i+1); playBGMall .start$[.i],"prontera"; sleep 300000; //5 Minute Delay } } while(true); } Quote Link to comment Share on other sites More sharing options...
weckel51 Posted July 29, 2013 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 21 Reputation: 0 Joined: 01/08/12 Last Seen: August 31, 2015 Author Share Posted July 29, 2013 sir i try your script but when i click it don't talk. maybe some code are wrong? Quote Link to comment Share on other sites More sharing options...
whitesn Posted July 29, 2013 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 193 Reputation: 14 Joined: 12/02/11 Last Seen: October 30, 2018 Share Posted July 29, 2013 Oh I thought you want it to Auto Play? It will autoplay BGM's on @reloadscript or Server Start every 5 minute. For AutoPlay on GM Click Note: After a GM Account click the NPC, it will automatically start the BGM on prontera. Then it will loop forever (after 578 it will go back to 573). - script autodj -,{ if(getgmlevel() == 0) end; if (.bgmstart == 1) end; set .start$[0],"573","574","575","576","577","578"; //You can add more song here set .bgmstart,1; do { for (set .i,0; .i <= getarraysize(.start$); set .i,.i+1); playBGMall .start$[.i],"prontera"; sleep 300000; //5 Minute Delay } } while(true); } Quote Link to comment Share on other sites More sharing options...
Patskie Posted July 29, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 12 hours ago Share Posted July 29, 2013 This is not an array : set .start$[0],"573","574","575","576","577","578"; //You can add more song here Should be : setarray .start$[0],"573","574","575","576","577","578"; //You can add more song here Quote Link to comment Share on other sites More sharing options...
whitesn Posted July 29, 2013 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 193 Reputation: 14 Joined: 12/02/11 Last Seen: October 30, 2018 Share Posted July 29, 2013 oh yeah thanks for the fix, I'm not used to rAthena language yet Quote Link to comment Share on other sites More sharing options...
Question
weckel51
anyone can help please this script i want to make delay time for 5mins for every bgm player to the player with timer delay time
Edited by weckel51Link to comment
Share on other sites
5 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.