Ok not sure why but....

08/09/2009 03:44 hunterman01#1
Alright i am trying to get this npc to check if someone is reborn or not this is what i got
Code:
if (CurrentNPC == 618)
                            {
                                if (Control == 1)
                                {
                                    if (MyChar.RBCount <= 1)
                                    {
                                        MyChar.Teleport(2024, 156, 145);
                                    }
                                    else
                                    {
                                        SendPacket(General.MyPackets.NPCSay("I am Sorry but you Are not reborn!"));
                                        SendPacket(General.MyPackets.NPCLink("Well you never Said anything about that", 255));
                                        SendPacket(General.MyPackets.NPCSetFace(30));
                                        SendPacket(General.MyPackets.NPCFinish());
                                    }
                                }
                            }
For some reason it isnt checking anyone no why?
08/09/2009 03:45 TehPwnzor#2
it should be
if (MyChar.RBCount >= 1)

bcuz
if (MyChar.RBCount <= 1)
is saying that they're reborn count is lless than or equal to 1
you want it equal to or greater than 1
08/09/2009 03:49 hunterman01#3
Wow such a simple mistake i appreciate it though
08/09/2009 03:58 TehPwnzor#4
lol no prob bro
08/09/2009 04:54 _Emme_#5
Problem solved.

#closed