Blue Jem Posted November 12, 2013 Posted November 12, 2013 example in pvp arena point specific map i killed 2 players i got arenapoint 10point and if i die 5 times i got again arenapoint 10 points - script pvppoints -1,{ OnPCKillEvent: if ( strcharinfo(3) == "morocc" ){ set arenapoint,arenapoint+5; dispbottom "You have gained 5 Arena Points. Total is "+arenapoint+" Arena Points."; end; } } or how can improve this? Quote
Patskie Posted November 12, 2013 Posted November 12, 2013 Try this one : - script pvppoints -1,{ OnPCKillEvent: if ( strcharinfo(3) == "morocc" ) { if ( kill >= 2 ) { set arenapoint,arenapoint+10; dispbottom "You have gained 10 Arena Points. Total is "+arenapoint+" Arena Points."; set kill, 0; } set kill, kill + 1; } end; OnPCDieEvent: if ( strcharinfo(3) == "morocc" ) { if ( death >= 5 ) { set arenapoint,arenapoint+10; dispbottom "You have gained 10 Arena Points. Total is "+arenapoint+" Arena Points."; set death, 0; } set death, death + 1; } end; } Quote
Blue Jem Posted November 21, 2013 Author Posted November 21, 2013 - script pvppoints -1,{ OnPCKillEvent: if ( strcharinfo(3) == "morocc" ) { if ( kill >= 2 ) { set arenapoint,arenapoint+10; specialeffect 88; dispbottom "You have gained 10 Arena Points. Total is "+arenapoint+" Arena Points."; set kill, 0; } set kill, kill + 1; } end; OnPCDieEvent: if ( strcharinfo(3) == "morocc" ) { if ( death >= 5 ) { set arenapoint,arenapoint+10; dispbottom "You have gained 10 Arena Points. Total is "+arenapoint+" Arena Points."; set death, 0; } set death, death + 1; } end; } the special effect is not working every time i killed 2 player not showing the effect of special effect Quote
Patskie Posted November 21, 2013 Posted November 21, 2013 - specialeffect 88; + specialeffect2 88; Quote
nanakiwurtz Posted November 25, 2013 Posted November 25, 2013 Try this one : - script pvppoints -1,{ OnPCKillEvent: if ( strcharinfo(3) == "morocc" ) { if ( kill >= 2 ) { set arenapoint,arenapoint+10; dispbottom "You have gained 10 Arena Points. Total is "+arenapoint+" Arena Points."; set kill, 0; } set kill, kill + 1; } end; OnPCDieEvent: if ( strcharinfo(3) == "morocc" ) { if ( death >= 5 ) { set arenapoint,arenapoint+10; dispbottom "You have gained 10 Arena Points. Total is "+arenapoint+" Arena Points."; set death, 0; } set death, death + 1; } end; } Well I think it should be: - script pvppoints -1,{ OnPCKillEvent: if ( strcharinfo(3) == "morocc" ) { if ( kill >= 2 ) { set arenapoint,arenapoint+10; dispbottom "You have gained 10 Arena Points. Total is "+arenapoint+" Arena Points."; set kill, 0; } else { set kill, kill + 1;} } end; OnPCDieEvent: if ( strcharinfo(3) == "morocc" ) { if ( death >= 5 ) { set arenapoint,arenapoint+10; dispbottom "You have gained 10 Arena Points. Total is "+arenapoint+" Arena Points."; set death, 0; } else { set death, death + 1; } } end; } Otherwise it will be a free point given after clearing the var, so only 1 kill needed because of that 'free point'.. Quote
Capuche Posted November 27, 2013 Posted November 27, 2013 Load the script, first kill : kill == 0 if ( kill >= 2 ) not true kill set to 1 Second kill : kill == 1 if ( kill >= 2 ) not true (so there is a mistake) kill set to 2 Third : kill == 2 if ( kill >= 2 ) true, give the reward kill set to 0 kill set to 1 First new kill : kill == 1 if ( kill >= 2 ) not true kill set to 2 Second new kill : kill == 2 if ( kill >= 2 ) true, reward kill set to 0 kill set to 1 - script pvppoints -1,{ OnPCKillEvent: if ( strcharinfo(3) == "morocc" ) { set kill, kill + 1; if ( kill == 2 ) { set arenapoint,arenapoint+10; dispbottom "You have gained 10 Arena Points. Total is "+arenapoint+" Arena Points."; set kill, 0; } } end; OnPCDieEvent: if ( strcharinfo(3) == "morocc" ) { set death, death + 1; if ( death == 5 ) { set arenapoint,arenapoint+10; dispbottom "You have gained 10 Arena Points. Total is "+arenapoint+" Arena Points."; set death, 0; } } end; } Quote
nanakiwurtz Posted November 27, 2013 Posted November 27, 2013 What happen if the player kill 3 players in an instant? For example by using a Comet? Wouldn't the kill var set to 3, and will mess the script...? Quote
Blue Jem Posted December 7, 2013 Author Posted December 7, 2013 - script pvppoints -1,{ OnPCKillEvent: if ( strcharinfo(3) == "morocc" ) { if ( kill >= 2 ) { set arenapoint,arenapoint+10; specialeffect 88; dispbottom "You have gained 10 Arena Points. Total is "+arenapoint+" Arena Points."; set kill, 0; } set kill, kill + 1; } end; OnPCDieEvent: if ( strcharinfo(3) == "morocc" ) { if ( death >= 5 ) { set arenapoint,arenapoint+10; dispbottom "You have gained 10 Arena Points. Total is "+arenapoint+" Arena Points."; set death, 0; } set death, death + 1; } end; } how can change this 2 killed have 10 point 3 killed have 15 point 4 killed have 20 point 5 killed have 25 point 6 killed have 30 point Quote
Question
Blue Jem
example in pvp arena point specific map
i killed 2 players i got arenapoint 10point and if i die 5 times i got again arenapoint 10 points
or how can improve this?
8 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.