NPC does not count other mob kill only the first monster is counted.
if (readpain2 >= 1) {
mes "[Pain]";
mes "Did you capture the tailed beast?";
menu "Yes", L_YES, "What are those again?", L_list;
L_YES:
if (AddaxKills < 2 || TGCKills < 2 || BHZKills < 2 || FabKills < 2) {
mes "[Pain]";
mes "I don't see them complete!!";
close;
}
if (AddaxKills >= 2 || TGCKills >= 2 || BHZKills >= 2 || FabKills >= 2 ) {
mes "[Pain]";
mes "This is it.....!";
next;
mes "Now,";
mes "Lets go to Uchiha Madara";
set donepain2, 1;
close;
warp "niflheim",304,76;
end;
}
L_list:
mes "[Pain]";
mes "Hmmm. You are missing...";
if (AddaxKills < 2) mes "^FF0000"+(2 - AddaxKills) +"^000000 Addax";
if (TGCKills < 2) mes "^FF0000"+(2 - TGCKills) +"^000000 Green Teen Chipmunks";
if (BHZKills < 2) mes "^FF0000"+(2 - BHZKills) +"^000000 Blue Hell Centaur";
if (FabKills < 2) mes "^FF0000"+(2 - FabKills) +"^000000 Fabilsag";
close;
}
mes "[Pain]";
mes "Yes?";
next;
mes "[" + strcharinfo(0) + "]";
mes "I want to meet";
next;
mes "[" + strcharinfo(0) + "]";
mes "Uchiha Madara";
next;
mes "[Pain]";
mes "meet Uchiha Madara huh?";
next;
mes "[Pain]";
mes "I'll let you meet him";
mes "but I need you to hunt/capture this beast";
next;
mes "2 Blue Hell Centaur";
mes "2 Green Teen chipmunks";
mes "2 Addax";
mes "1 fabilsag";
set npc, 1;
set readpain2, 1;
next;
menu "I will!",-,"Are you kidding me?",l_v;
mes "[Pain]";
mes "Go now!";
close;
l_v:
mes "[Pain]";
mes "Do I look like I am kidding?!!!";
next;
mes "[Pain]";
mes "Nimpu";
mes "Deva path!";
close2;
percentheal -100,0;
end;
OnNPCKillEvent:
if(killedrid == 3221) {
set AddaxKills,AddaxKills + 1;
if(AddaxKills == 2) {
announce ""+strcharinfo(0)+" has captured one tailed beast.",bc_all,0x00FF4C;
}
else if (killedrid == 3249) {
set TGCKills,TGCKills + 1;
if(TGCKills == 2) {
announce ""+strcharinfo(0)+" has captured one tailed beast.",bc_all,0x00FF4C;
}
else if (killedrid == 3218) {
set BHZKills,BHZKills + 1;
if(BHZKills == 2) {
announce ""+strcharinfo(0)+" has captured one tailed beast.",bc_all,0x00FF4C;
}
else if (killedrid == 3250) {
set FabKills,FabKills + 1;
if(FabKills == 2) {
announce ""+strcharinfo(0)+" has captured one tailed beast.",bc_all,0x00FF4C;
}
}
}
}
}
end;
}
Please Help me.
NPC does not count other mob kill
only the first monster is counted.
if (readpain2 >= 1) { mes "[Pain]"; mes "Did you capture the tailed beast?"; menu "Yes", L_YES, "What are those again?", L_list; L_YES: if (AddaxKills < 2 || TGCKills < 2 || BHZKills < 2 || FabKills < 2) { mes "[Pain]"; mes "I don't see them complete!!"; close; } if (AddaxKills >= 2 || TGCKills >= 2 || BHZKills >= 2 || FabKills >= 2 ) { mes "[Pain]"; mes "This is it.....!"; next; mes "Now,"; mes "Lets go to Uchiha Madara"; set donepain2, 1; close; warp "niflheim",304,76; end; } L_list: mes "[Pain]"; mes "Hmmm. You are missing..."; if (AddaxKills < 2) mes "^FF0000"+(2 - AddaxKills) +"^000000 Addax"; if (TGCKills < 2) mes "^FF0000"+(2 - TGCKills) +"^000000 Green Teen Chipmunks"; if (BHZKills < 2) mes "^FF0000"+(2 - BHZKills) +"^000000 Blue Hell Centaur"; if (FabKills < 2) mes "^FF0000"+(2 - FabKills) +"^000000 Fabilsag"; close; } mes "[Pain]"; mes "Yes?"; next; mes "[" + strcharinfo(0) + "]"; mes "I want to meet"; next; mes "[" + strcharinfo(0) + "]"; mes "Uchiha Madara"; next; mes "[Pain]"; mes "meet Uchiha Madara huh?"; next; mes "[Pain]"; mes "I'll let you meet him"; mes "but I need you to hunt/capture this beast"; next; mes "2 Blue Hell Centaur"; mes "2 Green Teen chipmunks"; mes "2 Addax"; mes "1 fabilsag"; set npc, 1; set readpain2, 1; next; menu "I will!",-,"Are you kidding me?",l_v; mes "[Pain]"; mes "Go now!"; close; l_v: mes "[Pain]"; mes "Do I look like I am kidding?!!!"; next; mes "[Pain]"; mes "Nimpu"; mes "Deva path!"; close2; percentheal -100,0; end; OnNPCKillEvent: if(killedrid == 3221) { set AddaxKills,AddaxKills + 1; if(AddaxKills == 2) { announce ""+strcharinfo(0)+" has captured one tailed beast.",bc_all,0x00FF4C; } else if (killedrid == 3249) { set TGCKills,TGCKills + 1; if(TGCKills == 2) { announce ""+strcharinfo(0)+" has captured one tailed beast.",bc_all,0x00FF4C; } else if (killedrid == 3218) { set BHZKills,BHZKills + 1; if(BHZKills == 2) { announce ""+strcharinfo(0)+" has captured one tailed beast.",bc_all,0x00FF4C; } else if (killedrid == 3250) { set FabKills,FabKills + 1; if(FabKills == 2) { announce ""+strcharinfo(0)+" has captured one tailed beast.",bc_all,0x00FF4C; } } } } } end; }Thanks !
bumpt
Edited by kitty14Link to comment
Share on other sites