anakawai Posted June 11, 2016 Posted June 11, 2016 (edited) I have one problem when I studied the script npc if( countitem(7420) < 1 ) { announce ""+strcharinfo(0)+" : "+@mensagem$+" ",bc_blue; } else if( countitem(7420) > 20 ){ announce "[ Legend ] "+strcharinfo(0)+" : "+@mensagem$+" ",bc,0xD20000; close; } else if( countitem(7420) > 50){ announce "[ Dewa ] "+strcharinfo(O)+" : "+@mensagem$+" ",0,0x000000; close; } else if( countitem(7420) > 100){ announce "[ Jendral ] "+strcharinfo(0)+" : "+@mensagem$+" ",0x33FF33; close; } i want to make : 1. if the player has a 7420 item 20 then broadcast the red2. if the player has a similar item but has more than 20 then the broadcast is blueand etc there anything you can solve my problem ? sory bad english ... bump bump Edited June 12, 2016 by anakawai Quote
0 Emistry Posted June 11, 2016 Posted June 11, 2016 if ( countitem(7420) >= 50 ) { announce "[ Legend ] "+strcharinfo(0)+" : "+@mensagem$+" ",bc_all,0x0055FF; // blue } else if ( countitem(7420) >= 20 ) { announce "[ Legend ] "+strcharinfo(0)+" : "+@mensagem$+" ",bc_all,0xFF0000; // red } Quote
0 anakawai Posted June 12, 2016 Author Posted June 12, 2016 if ( countitem(7420) >= 50 ) { announce "[ Legend ] "+strcharinfo(0)+" : "+@mensagem$+" ",bc_all,0x0055FF; // blue } else if ( countitem(7420) >= 20 ) { announce "[ Legend ] "+strcharinfo(0)+" : "+@mensagem$+" ",bc_all,0xFF0000; // red } big thanks emistry this work . gbu Quote
Question
anakawai
I have one problem when I studied the script npc
i want to make :
1. if the player has a 7420 item 20 then broadcast the red
2. if the player has a similar item but has more than 20 then the broadcast is blue
and etc
there anything you can solve my problem ? sory bad english ...
bump
bump
Edited by anakawai2 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.