weckel51 Posted July 29, 2013 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
whitesn Posted July 29, 2013 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
weckel51 Posted July 29, 2013 Author Posted July 29, 2013 sir i try your script but when i click it don't talk. maybe some code are wrong? Quote
whitesn Posted July 29, 2013 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
Patskie Posted July 29, 2013 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
whitesn Posted July 29, 2013 Posted July 29, 2013 oh yeah thanks for the fix, I'm not used to rAthena language yet Quote
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 weckel515 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.