Jump to content

Question

Posted (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 by weckel51

5 answers to this question

Recommended Posts

Posted

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

}

Posted

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

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...