Jump to content
  • 0

Ask with script


jacky

Question


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  51
  • Reputation:   0
  • Joined:  05/23/14
  • Last Seen:  

10501432_10201274339940108_554779214_n.j

 

arena_room,102,100,5    script    3vs3Party    822,{

    //npctalk getpartymembercount(getcharid(1));

    mes "[Arena Guide]";
    mes "Welcome to the 3 vs 3 Party Arena!!!";
    mes "Would you like to compete?";
    next;
    menu "Oooh Yeeaahh!!!",L_Yes, "Nuuu", L_No;
    close;

L_Yes:
        if(@ra_map$ != "ra_in01") {//Honor, house system
            if($@antibot_active==0) {//Honor, activate with @quest
                if(callfunc("botcheck")==0){//Jason
                    close;
                }
            }
        }

    if (BaseLevel < 250 || Class==Job_Novice || Class==Job_Baby || Class==Job_Novice_High) goto L_Level;
    if (getpartymembercount(getcharid(1)) == 3 && getpartycount(getcharid(1)) == 3){
        set .@myparty, getcharid(1);
        if(.@myparty==$PP1_Team1_id || .@myparty==$PP1_Team2_id || .@myparty==$PP2_Team1_id || .@myparty==$PP2_Team2_id){
            mes "[Arena Guide]";
            mes "Your party is already playing...";
            close;
        }

        getmapxy(@PRTYPRTY_city$, @PRTYPRTY_x, @PRTYPRTY_y, 0);
        set .@pos, arena_queue_add(2); //sets @PRTYPRTY_active=1 as well

        mes "[Arena Guide]";
        if(.@pos==0){
            mes "The queue is full. Please wait a while and try again.";
        }else if(.@pos==-2){
            mes "Sorry, you and your Party need to be at least level 200. No Novices allowed either.";
        }else if(.@pos==-1){
            mes "You / your party already are on a waiting line...";
        }else if(.@pos==2){
            if($@PP1_running==0){
                set $@PP1_running, 1;
                donpcevent "PARTYVSPARTY_WINR::OnStart1";
            }else if($@PP2_running==0){
                set $@PP2_running, 1;
                donpcevent "PARTYVSPARTY_WINR::OnStart2";
            }else{
                mes "Congratulations, you are now on the waiting line for 3vs3 Party!";
                mes "Your position is: ^FF0000"+(.@pos-1)+"^000000";
                next;
                mes "[Arena Guide]";
                mes "^0000FFWhen it's your turn, you will be taken to the Arena even if you moved away from this map!";
                mes "^FF0000But if you logout, you will be put out of the queue.";
            }
        }else{
            mes "Congratulations, you are now on the waiting line for 3vs3 Party!";
            mes "Your position is: ^FF0000"+(.@pos-1)+"^000000";
            next;
            mes "[Arena Guide]";
            mes "^0000FFWhen it's your turn, you will be taken to the Arena even if you moved away from this map!";
            mes "^FF0000But if you logout, you will be put out of the queue.";
            close;
        }



 

help please

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.02
  • Content Count:  180
  • Reputation:   7
  • Joined:  12/19/12
  • Last Seen:  

You nedd part in source code! script.c and other!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

Lol my old nickname is right there //honor, just like brunoshp said, you need a few other mods on the source to be able to have that script working. I think I have a version working on rAthena, because the one made for this script was eAthena and it was a revision from like 05~06.

 

But honestly with the new script party commands added here on rAthena you can easily replicate the queue system Xilero used back then.

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