Trying to get this NPC to check if your a trojan. If your not its supposed to say "Only trojans can buy this blah blah" But it doesn't. It wont sell you anything if your not trojan but it doesnt say what i want it to. Whats wrong with my code? To me it looks right but I SUCK AT THIS SHIT -.-
P.S I already tried if (GC.MyChar.CPs >= 2000000 || GC.MyChar.Job == 15) Didn't work
Code:
if (Control == 1)
{
if (GC.MyChar.Job == 15)
{
if (GC.MyChar.CPs >= 2000000)
{
GC.MyChar.CPs -= 2000000;
GC.MyChar.StatEff.Add(StatusEffectEn.TopTrojan);
GC.Message(2005, GC.MyChar.Name + " has bought the Top Trojan Halo");
}
else
{
GC.AddSend(Packets.NPCSay("Only Trojans can buy the Top Trojan Halo"));
GC.AddSend(Packets.NPCLink("Oops", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
}