Blue Jem Posted November 12, 2013 Group: Members Topic Count: 151 Topics Per Day: 0.04 Content Count: 393 Reputation: 3 Joined: 09/16/13 Last Seen: June 4, 2014 Share 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 Link to comment Share on other sites More sharing options...
Patskie Posted November 12, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 7 hours ago Share 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 Link to comment Share on other sites More sharing options...
Blue Jem Posted November 21, 2013 Group: Members Topic Count: 151 Topics Per Day: 0.04 Content Count: 393 Reputation: 3 Joined: 09/16/13 Last Seen: June 4, 2014 Author Share 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 Link to comment Share on other sites More sharing options...
Patskie Posted November 21, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 7 hours ago Share Posted November 21, 2013 - specialeffect 88; + specialeffect2 88; Quote Link to comment Share on other sites More sharing options...
nanakiwurtz Posted November 25, 2013 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 1654 Reputation: 583 Joined: 08/09/12 Last Seen: January 14, 2020 Share 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 Link to comment Share on other sites More sharing options...
Capuche Posted November 27, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share 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 Link to comment Share on other sites More sharing options...
nanakiwurtz Posted November 27, 2013 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 1654 Reputation: 583 Joined: 08/09/12 Last Seen: January 14, 2020 Share 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 Link to comment Share on other sites More sharing options...
Capuche Posted November 28, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted November 28, 2013 I don't think so.. Quote Link to comment Share on other sites More sharing options...
Blue Jem Posted December 7, 2013 Group: Members Topic Count: 151 Topics Per Day: 0.04 Content Count: 393 Reputation: 3 Joined: 09/16/13 Last Seen: June 4, 2014 Author Share 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 Link to comment Share on other sites More sharing options...
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?
Link to comment
Share on other sites
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.