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 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