[HELP]Why won't this work?

07/24/2009 20:42 DePredaTe#1
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());
                                }
                            }
                        }
07/24/2009 21:14 DePredaTe#2
Nevermind, It works.
You just can't click him at level 1.
#Request close
07/24/2009 21:23 Arcotemple:)#3
just wondering
what char job is 137 lol
07/24/2009 21:38 DePredaTe#4
urgh. my mistake.
lol. it's meant to be 135.
lol. not my fault. i blame CoMy.
07/25/2009 00:55 tanelipe#5
#Closed as requested.