MukkiesftKies Posted May 30, 2013 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 123 Reputation: 7 Joined: 03/13/12 Last Seen: January 2, 2019 Share Posted May 30, 2013 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; Quote Link to comment Share on other sites More sharing options...
Emistry Posted May 30, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2371 Joined: 10/28/11 Last Seen: 4 hours ago Share Posted May 30, 2013 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 .... Quote Link to comment Share on other sites More sharing options...
Jaburak Posted May 30, 2013 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 1125 Reputation: 237 Joined: 07/30/12 Last Seen: Friday at 07:19 PM Share Posted May 30, 2013 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; } Quote Link to comment Share on other sites More sharing options...
MukkiesftKies Posted May 30, 2013 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 123 Reputation: 7 Joined: 03/13/12 Last Seen: January 2, 2019 Author Share Posted May 30, 2013 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) Quote Link to comment Share on other sites More sharing options...
MukkiesftKies Posted May 30, 2013 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 123 Reputation: 7 Joined: 03/13/12 Last Seen: January 2, 2019 Author Share Posted May 30, 2013 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 Quote Link to comment Share on other sites More sharing options...
Question
MukkiesftKies
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.