Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/06/24 in all areas

  1. Add simple gallery in blog, npc, quest shop and cash shop to manage your banned or cover note : the file that you upload to ypanel will not have an extension which means there is only a name, but don't worry, the file will still be opened by your site.
    1 point
  2. well, I might add some costum database for this including database settings to ensure the theme is easily customisable, but still advanced customisation requires the user to edit the php file.
    1 point
  3. Try this let me know if it works . But i read some other comments and i think you already found what you need . I just want to put my entry - script RandomBGM -1,{ OnInit: // Define the map where the BGM should be randomized set .map$, "prontera"; // Define the list of BGMs setarray .bgms$[0], "BGM/01.mp3", "BGM/02.mp3", "BGM/03.mp3", "BGM/04.mp3"; // Initialize an array to track played BGMs set .played[0], 0, 0, 0, 0; set .totalPlayed, 0; // Define a global label to set BGM on map load OnPCLoadMapEvent: // Check if the player has loaded the specific map if (strcharinfo(3) == .map$) { // Check if all BGMs have been played if (.totalPlayed >= getarraysize(.bgms$)) { // Reset the played array set .totalPlayed, 0; for (set .i, 0; .i < getarraysize(.bgms$); set .i, .i + 1) { set .played[.i], 0; } } // Find a BGM that hasn't been played yet do { set .randomIndex, rand(getarraysize(.bgms$)); } while (.played[.randomIndex]); // Mark the BGM as played set .played[.randomIndex], 1; set .totalPlayed, .totalPlayed + 1; // Play the random BGM playbgm .bgms$[.randomIndex]; } end; } // Define the map to trigger the OnPCLoadMapEvent label prontera mapflag loadevent;
    1 point
×
×
  • Create New...