anakawai Posted June 11, 2016 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 15 Reputation: 0 Joined: 09/08/15 Last Seen: June 27, 2016 Share 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 Link to comment Share on other sites More sharing options...
0 Emistry Posted June 11, 2016 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Yesterday at 05:32 PM Share 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 Link to comment Share on other sites More sharing options...
0 anakawai Posted June 12, 2016 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 15 Reputation: 0 Joined: 09/08/15 Last Seen: June 27, 2016 Author Share 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 Link to comment Share on other sites More sharing options...
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 anakawaiLink to comment
Share on other sites
2 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.