Jump to content
  • 0

PvP Death Point


MukkiesftKies

Question


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  123
  • Reputation:   7
  • Joined:  03/13/12
  • Last Seen:  

This point is used to OnPCDieEvent.
every time a player dies, they will get a point until player die 3 times in a row. players will be able to sc_start.

Farebury,146,139,5    script    Arena Master    808,{


    if( select("PvP Colosseum [ "+getmapusers("arena01")+"/50 ]:PvP Deathmatch [ "+getmapusers("arena02")+"/30 ]") == 1 ) {
        
        if( getmapusers("arena01") >= 50 ) {
            mes "[Arena Master]", "I'm sorry but the PVP Room is already full!";
            close;
        }
        warp "arena01",49,24;
        percentheal 100,100;
        close;
    }
        if( getmapusers("arena02") >= 30 ) {
            mes "[Arena Master]", "I'm sorry but the PVP Room is already full!";
            close;
        }
        addtimer 300000,"Arena Master::OnTimeout";
        set points,0;
        warp "arena02",0,0;
        percentheal 100,100;
        sc_end SC_ALL;
        close;




OnPCDieEvent:
    set points,points+1;
    getmapxy .@map$, .@x, .@y, 0;
    if( .@map$ != "arena02" ) end;
    sleep2 2;
    dispbottom "You will respawn in 5 Seconds.";
    cutin "respawn",4;
    sleep2 5000;
    warp .@map$, .@x, .@y;
    percentheal 100,100;
if(points > 2) {     
    sc_start SC_BLESSING,360000,10;
if(points > 3) { 
    sc_start SC_EDP,360000,5;
    sc_start SC_ENDURE,360000,10;
    sc_start SC_ANGELUS,360000,10;
if(points > 4) {
sc_start SC_MAGNIFICAT,360000,5;
    sc_start SC_GLORIA,360000,5;
    sc_start SC_ADRENALINE2,360000,1;
    sc_start SC_IMPOSITIO,360000,5;
    sc_start SC_SUFFRAGIUM,360000,3;
    sc_start SC_BLESSING,360000,10;
    sc_start SC_INCREASEAGI,360000,10;
    sc_start SC_WEAPONPERFECTION,360000,10;
    sc_start SC_OVERTHRUST,360000,5;
    end;


OnTimeout:
dispbottom "5 minutes has been elapsed.";
warp "SavePoint",0,0;
end; }     

 
 
When I do like this, it only works on if(points > 2) {

if(points > 2) {     
    sc_start SC_BLESSING,360000,10;
if(points > 3) { 
    sc_start SC_EDP,360000,5;
    sc_start SC_ENDURE,360000,10;
    sc_start SC_ANGELUS,360000,10;
if(points > 4) {
sc_start SC_MAGNIFICAT,360000,5;
    sc_start SC_GLORIA,360000,5;
    sc_start SC_ADRENALINE2,360000,1;
    sc_start SC_IMPOSITIO,360000,5;
    sc_start SC_SUFFRAGIUM,360000,3;
    sc_start SC_BLESSING,360000,10;
    sc_start SC_INCREASEAGI,360000,10;
    sc_start SC_WEAPONPERFECTION,360000,10;
    sc_start SC_OVERTHRUST,360000,5;
    end;

 

 

 

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2350
  • Joined:  10/28/11
  • Last Seen:  

if(points > 2) {     
	sc_start SC_BLESSING,360000,10;
}
if(points > 3) { 
	sc_start SC_EDP,360000,5;
	sc_start SC_ENDURE,360000,10;
	sc_start SC_ANGELUS,360000,10;
}
if(points > 4) {
	sc_start SC_MAGNIFICAT,360000,5;
	sc_start SC_GLORIA,360000,5;
	sc_start SC_ADRENALINE2,360000,1;
	sc_start SC_IMPOSITIO,360000,5;
	sc_start SC_SUFFRAGIUM,360000,3;
	sc_start SC_BLESSING,360000,10;
	sc_start SC_INCREASEAGI,360000,10;
	sc_start SC_WEAPONPERFECTION,360000,10;
	sc_start SC_OVERTHRUST,360000,5;
}
end;

 

dont use the "else" if you want to give all these buff ....

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  


if(points > 2) {

sc_start SC_BLESSING,360000,10;

}

else if(points > 3) {

sc_start SC_EDP,360000,5;

sc_start SC_ENDURE,360000,10;

sc_start SC_ANGELUS,360000,10;

}

else if(points > 4) {

sc_start SC_MAGNIFICAT,360000,5;

sc_start SC_GLORIA,360000,5;

sc_start SC_ADRENALINE2,360000,1;

sc_start SC_IMPOSITIO,360000,5;

sc_start SC_SUFFRAGIUM,360000,3;

sc_start SC_BLESSING,360000,10;

sc_start SC_INCREASEAGI,360000,10;

sc_start SC_WEAPONPERFECTION,360000,10;

sc_start SC_OVERTHRUST,360000,5;

end;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  123
  • Reputation:   7
  • Joined:  03/13/12
  • Last Seen:  

if(points > 2) {     
sc_start SC_BLESSING,360000,10;
}
else if(points > 3) { 
sc_start SC_EDP,360000,5;
sc_start SC_ENDURE,360000,10;
sc_start SC_ANGELUS,360000,10;
}
else if(points > 4) {
sc_start SC_MAGNIFICAT,360000,5;
sc_start SC_GLORIA,360000,5;
sc_start SC_ADRENALINE2,360000,1;
sc_start SC_IMPOSITIO,360000,5;
sc_start SC_SUFFRAGIUM,360000,3;
sc_start SC_BLESSING,360000,10;
sc_start SC_INCREASEAGI,360000,10;
sc_start SC_WEAPONPERFECTION,360000,10;
sc_start SC_OVERTHRUST,360000,5;
end;
}

 

still did not work. it's still the same. only works on if(point> 2)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  123
  • Reputation:   7
  • Joined:  03/13/12
  • Last Seen:  

if(points > 2) {     
	sc_start SC_BLESSING,360000,10;
}
if(points > 3) { 
	sc_start SC_EDP,360000,5;
	sc_start SC_ENDURE,360000,10;
	sc_start SC_ANGELUS,360000,10;
}
if(points > 4) {
	sc_start SC_MAGNIFICAT,360000,5;
	sc_start SC_GLORIA,360000,5;
	sc_start SC_ADRENALINE2,360000,1;
	sc_start SC_IMPOSITIO,360000,5;
	sc_start SC_SUFFRAGIUM,360000,3;
	sc_start SC_BLESSING,360000,10;
	sc_start SC_INCREASEAGI,360000,10;
	sc_start SC_WEAPONPERFECTION,360000,10;
	sc_start SC_OVERTHRUST,360000,5;
}
end;

 

dont use the "else" if you want to give all these buff ....

it work Emistry ! Thanks Emistry and Anakid for help me :3  /kis2  /kis2

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