Jump to content
  • 0

Queing, and randomizing BG


Question

Posted

ok heres the thing. i tried to modify my BG script for both emperium and PVP but it seems there are still alot of things for me to learn.

 

i need a BG that:

 

1. Clicking the NPC at the waiting room will set you to a random team.

2. the teams only requires a minimum of 2v2 to 5v5.

3. entering the room while a battle is going on is allowed but requires to be by 2 or equal numbers

4. rewards are based on:

 

x = default score

y = winning score

z = kill score

 

x = 100

y = 200

z = 2

 

reward = (100+y+(z*kills))/3

 

thanks.

3 answers to this question

Recommended Posts

Posted

Hey dude, try this, it worked on my server..

lol..

I just tried making one and, boom!..

 

 

invek,115,216,4    script    Battleground Official    728,{

    set .@name$,"[Flauvia Marolle]";    
    mes .@name$;
    if(BaseJob==Job_Novice || BaseLevel<254) {
    mes .@name$;
    mes "You're too weak for this.";
    mes "I don't think you can handle this quest. Go kill more Porings.";
    close;
}
mes .@name$;
mes "Do you want to enter Battleground?";
next;
switch(select("Yes:No")){
case 1:
mes .@name$;
mes "Okay brave one, goodluck!";
next;
    set .@rand,rand(1,10);
    if (.@rand == 1) {
    warp "bat_room",253,78;
    close;
    }
    else if (.@rand == 2) {
    warp "bat_room",253,93;
    close;
    }
    else if (.@rand == 3) {
    warp "bat_room",253,78;
    close;
    }
    else if (.@rand == 4) {
    warp "bat_room",253,93;
    close;
    }
    else if (.@rand == 5) {
    warp "bat_room",253,78;
    close;
    }
    else if (.@rand == 6) {
    warp "bat_room",253,93;
    close;
    }
    else if (.@rand == 7) {
    warp "bat_room",253,78;
    close;
    }
    else if (.@rand == 8) {
    warp "bat_room",253,93;
    close;
    }
    else if (.@rand == 9) {
    warp "bat_room",253,78;
    close;
    }
    else if (.@rand == 10) {
    warp "bat_room",253,93;
}
close;break;

case 2:
mes .@name$;
mes "Ok, comeback anytime.";
close;
    }
}

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