Jump to content
  • 0

eathena script to rathena


Ninjamon

Question


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.02
  • Content Count:  295
  • Reputation:   2
  • Joined:  03/06/12
  • Last Seen:  

Is this possible? Can anyone add a tweak about this? Like you need 10 TCG In order to request a song.

The song will play globally. http://www.eathena.ws/board/index.php?showtopic=172961

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   616
  • Joined:  07/05/12
  • Last Seen:  

Is this possible? Can anyone add a tweak about this? Like you need 10 TCG In order to request a song.

The song will play globally. http://www.eathena.ws/board/index.php?showtopic=172961

 

itemmall,170,80,2    script    Jukebox#nw    858,{

    set .@item_req, 7227 ;// item ID
    set .@item_num, 10; // number required

    mes .@item_num +" "+ getitemname( .@item_req ) +"  the sound";
    if( countitem( .@item_req ) < .@item_num ) {
        mes "you don't have enough "+ getitemname( .@item_req );
        close;
    }
    mes "select the sound";
    switch( select("Into the Abyss","Assassin Cross of Sunset","Eternal Chaos","Ring of Nibelungen","Cancel") ) {
        case 1:
            soundeffectall "in_to_the_abyss.wav",0; break;
        case 2:
            soundeffectall "assassin_of_sunset.wav",0; break;
        case 3:
            soundeffectall "chaos_of_eternity.wav",0; break;
        case 4:
            soundeffectall "ring_of_nibelungen.wav",0; break;
        case 5:
            close;
    }
    delitem .@item_req, .@item_num;
    close;
}

This one should work on eA too

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   79
  • Joined:  12/04/12
  • Last Seen:  

erm. may i ask, when user request a song , this song will be play for just the user who request ? or will be a main music for a town ?

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   616
  • Joined:  07/05/12
  • Last Seen:  

erm. may i ask, when user request a song , this song will be play for just the user who request ? or will be a main music for a town ?

The song will be play for all players in the server. (Tantrums's request : The song will play globally)

 

But the song can be play only on a map/an area if you want.

Just replace all

soundeffectall "<effect filename>",<type>;

to

soundeffectall "<effect filename>",<type>,{,"<map name>"}{,<x0>,<y0>,<x1>,<y1>};

 

Example

soundeffectall "in_to_the_abyss.wav",0;

to

soundeffectall "in_to_the_abyss.wav",0,"prontera",150,150,160,160;

to play the song in the area of prontera (x,y)

 

(150,160)        (160,160)

        ##########

        ##########

        ##########

        ##########

        ##########

(150,150)        (160,150)

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...