Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 16:36

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Ok not sure why but....

Discussion on Ok not sure why but.... within the CO2 Private Server forum part of the Conquer Online 2 category.

Closed Thread
 
Old   #1
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
Ok not sure why but....

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?
hunterman01 is offline  
Old 08/09/2009, 03:45   #2
 
elite*gold: 0
Join Date: Jul 2009
Posts: 289
Received Thanks: 425
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
TehPwnzor is offline  
Thanks
2 Users
Old 08/09/2009, 03:49   #3
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
Wow such a simple mistake i appreciate it though
hunterman01 is offline  
Old 08/09/2009, 03:58   #4
 
elite*gold: 0
Join Date: Jul 2009
Posts: 289
Received Thanks: 425
lol no prob bro
TehPwnzor is offline  
Old 08/09/2009, 04:54   #5
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
Problem solved.

#closed
_Emme_ is offline  
Closed Thread




All times are GMT +1. The time now is 16:37.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.