Jump to content
  • 0

please help this


weckel51

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   0
  • Joined:  01/08/12
  • Last Seen:  

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
Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  193
  • Reputation:   14
  • Joined:  12/02/11
  • Last Seen:  

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

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   0
  • Joined:  01/08/12
  • Last Seen:  

sir i try your script but when i click it don't talk. maybe some code are wrong?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  193
  • Reputation:   14
  • Joined:  12/02/11
  • Last Seen:  

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);
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  193
  • Reputation:   14
  • Joined:  12/02/11
  • Last Seen:  

oh yeah thanks for the fix, I'm not used to rAthena language yet :P

Link to comment
Share on other sites

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.

×
×
  • Create New...