Alright, i'm trying to make it where if you are below to level of 120, it will say you must be level 120 or above to reborn! and, he doesn't even bring up a dialog if you are below level 120. That's what i'm trying to fix.
Anyone know what i'm doing wrong?
Code:
if (CurrentNPC == 105026)
{
if (MyChar.RBCount >= 2)
{
SendPacket(General.MyPackets.NPCSay("You are already reborn. I cannot help you."));
SendPacket(General.MyPackets.NPCLink("I see.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
else
{
if (MyChar.Level >= 120)
{
SendPacket(General.MyPackets.NPCSay("I devote all my life to the research of eternity, finally I know the aranum of Second Rebirth."));
SendPacket(General.MyPackets.NPCLink("I would like to know it.", 1));
SendPacket(General.MyPackets.NPCLink("Just passing by.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
else if (MyChar.Level >= 110 && MyChar.Job == 137)
{
SendPacket(General.MyPackets.NPCSay("I devote all my life to the research of eternity, finally I know the aranum of Second Rebirth."));
SendPacket(General.MyPackets.NPCLink("I would like to know it.", 1));
SendPacket(General.MyPackets.NPCLink("Just passing by.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
else if (MyChar.Level <= 119)
{
SendPacket(General.MyPackets.NPCSay("You can only reborn if you are level 120 or over."));
SendPacket(General.MyPackets.NPCLink("I see.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
else if (MyChar.RBCount <= 0)
{
SendPacket(General.MyPackets.NPCSay("You must be first reborn to 2nd reborn!"));
SendPacket(General.MyPackets.NPCLink("I see.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
}