Kakaroto Posted May 15, 2016 Share Posted May 15, 2016 Hello...Could someone give me a quick little help?I like to check and delete multiple quests a player, but I can not make it work. Script: for([email protected] = 9285; [email protected] <= 9289; [email protected]++) { if(checkquest([email protected])) erasequest [email protected]; } map_server: Thank you in advance!! Quote Link to comment Share on other sites More sharing options...
0 Vykimo Posted May 16, 2016 Share Posted May 16, 2016 for([email protected] = 9285; [email protected] <= 9289; [email protected]++) { if(checkquest([email protected])>=0) erasequest [email protected]; } is better 1 Quote Link to comment Share on other sites More sharing options...
0 Promise Posted May 15, 2016 Share Posted May 15, 2016 (edited) for([email protected] = 9285; [email protected] <= 9289; [email protected]++) { if(checkquest([email protected])>=0) erasequest [email protected]; else { end; } } Edited May 15, 2016 by Promise 1 Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted May 16, 2016 Share Posted May 16, 2016 checkquest return -1 if the quest isn't started/given. So you have to add a checking for the value that returned. if ( checkquest( [email protected] ) >= 0 ) { erasequest [email protected]; } otherwise you could also use isbegin_quest if ( isbegin_quest( [email protected] ) > 0 ) { erasequest [email protected]; } 1 Quote Link to comment Share on other sites More sharing options...
0 Kakaroto Posted May 16, 2016 Author Share Posted May 16, 2016 for([email protected] = 9285; [email protected] <= 9289; [email protected]++) { if(checkquest([email protected])>=0) erasequest [email protected]; else { end; } } for([email protected] = 9285; [email protected] <= 9289; [email protected]++) { if(checkquest([email protected])>=0) erasequest [email protected]; } is better checkquest return -1 if the quest isn't started/given. So you have to add a checking for the value that returned. if ( checkquest( [email protected] ) >= 0 ) { erasequest [email protected]; } otherwise you could also use isbegin_quest if ( isbegin_quest( [email protected] ) > 0 ) { erasequest [email protected]; } Works perfectly, tnks guys! Quote Link to comment Share on other sites More sharing options...
Hello...
Could someone give me a quick little help?
I like to check and delete multiple quests a player, but I can not make it work.
Script:
map_server:
Thank you in advance!!
Link to comment
Share on other sites