Register for your free account! | Forgot your password?

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

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

Advertisement



Question on blackname and jail

Discussion on Question on blackname and jail within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
WHITELIONX's Avatar
 
elite*gold: 0
Join Date: Apr 2006
Posts: 534
Received Thanks: 66
Question on blackname and jail

#region Warden
case 42:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Do you want to leave jail?"));
GC.AddSend(Packets.NPCLink("Yes.", 1));
GC.AddSend(Packets.NPCLink("Just passing by.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (GC.MyChar.PKPoints < 100) ;



else if (Control == 1)
GC.MyChar.Teleport(1002, 514, 355);
break;
}
#endregion

Ok so this is what I have so far but it throws a warning "Possible mistaken empty statement" All I am attempting to do is to have it so that a blackname can not leave jail until he/she has paid cash. What am i missing if I am only getting one warning instead of an error?
WHITELIONX is offline  
Old 12/14/2009, 08:55   #2
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
Watch your brackets and if statements.
kinshi88 is offline  
Thanks
1 User
Old 12/14/2009, 10:09   #3


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Code:
if (GC.MyChar.PKPoints < 100) ;
Theres your problem.
Korvacs is offline  
Thanks
1 User
Old 12/14/2009, 18:58   #4
 
WHITELIONX's Avatar
 
elite*gold: 0
Join Date: Apr 2006
Posts: 534
Received Thanks: 66
#region Warden
case 42:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Do you want to leave jail?"));
GC.AddSend(Packets.NPCLink("Yes.", 1));
GC.AddSend(Packets.NPCLink("Just passing by.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You need 2.000Cps and all because you`re blacknamed"));
GC.AddSend(Packets.NPCLink("Yes i have", 2));
GC.AddSend(Packets.NPCLink("Sorry, That is to tough for me.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 2)
{
if (GC.MyChar.PKPoints >= 100)
{
if (GC.MyChar.CPs >= 2000)
{
GC.MyChar.CPs -= 2000;
GC.MyChar.Teleport(1002, 514, 355);
}
else
{
GC.AddSend(Packets.NPCSay("Sorry you dont have 2.000cps"));
GC.AddSend(Packets.NPCLink("See you again.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}


else if (Control == 1)
GC.MyChar.Teleport(1002, 514, 355);
break;
}
#endregion

And with this code? I knew I had several probs with the first code so decided to try to change it some what. Comes up with 303 errors but I know it is probably just due to one stupid bracket or something lol. I gave both of you thanks for taking time out to answer me
WHITELIONX is offline  
Old 12/14/2009, 20:01   #5
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
Again watch your brackets.
kinshi88 is offline  
Old 12/14/2009, 20:37   #6
 
WHITELIONX's Avatar
 
elite*gold: 0
Join Date: Apr 2006
Posts: 534
Received Thanks: 66
>.< I have been playing around and changing and deleting brackets and moving things around but am still having problems am I adding to many brackets OR not enough or are some the wrong way around? This is what I have so far.....

#region Warden
case 42:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Do you want to leave jail?"));
GC.AddSend(Packets.NPCLink("Yes.", 1));
GC.AddSend(Packets.NPCLink("Just passing by.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You need 2.000Cps and all because you`re blacknamed"));
GC.AddSend(Packets.NPCLink("Yes i have", 2));
GC.AddSend(Packets.NPCLink("Sorry, That is to tough for me.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());

if (Control == 1)
{
{
GC.MyChar.Teleport(1002, 514, 355);
{

GC.AddSend(Packets.NPCSay("Sorry you dont have 2.000cps"));
GC.AddSend(Packets.NPCLink("See you again.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());

if (Control == 2)
{
if (GC.MyChar.PKPoints >= 100)
{
if (GC.MyChar.CPs >= 2000)
{
GC.MyChar.CPs -= 2000;
GC.MyChar.Teleport(1002, 515, 355);
break;
}
}
#endregion
WHITELIONX is offline  
Old 12/14/2009, 20:40   #7
 
elite*gold: 0
Join Date: Dec 2009
Posts: 5
Received Thanks: 3
you use to need the code button pleese
Dormo is offline  
Old 12/14/2009, 20:47   #8

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
I switched around your code abit and it should work now.
Code:
#region Warden
                            case 42:
                                {
                                    if (Control == 0)
                                    {
                                        if (GC.MyChar.PKPoints >= 100)
                                        {
                                            GC.AddSend(Packets.NPCSay("You need 2.000Cps and all because you`re blacknamed"));
                                            GC.AddSend(Packets.NPCLink("Yes i have", 2));
                                            GC.AddSend(Packets.NPCLink("Sorry, That is to tough for me.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("Do you want to leave jail?"));
                                            GC.AddSend(Packets.NPCLink("Yes.", 1));
                                            GC.AddSend(Packets.NPCLink("Just passing by.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    else if (Control == 1)
                                    {
                                        GC.MyChar.Teleport(1002, 514, 355);
                                    }
                                    else if (Control == 2)
                                    {
                                        if (GC.MyChar.CPs >= 2000)
                                        {
                                            GC.MyChar.CPs -= 2000;
                                            GC.MyChar.Teleport(1002, 514, 355);
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("Sorry you dont have 2.000cps"));
                                            GC.AddSend(Packets.NPCLink("See you again.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    break;
                                }
                                #endregion
Kiyono is offline  
Thanks
1 User
Old 12/14/2009, 21:04   #9
 
WHITELIONX's Avatar
 
elite*gold: 0
Join Date: Apr 2006
Posts: 534
Received Thanks: 66
Thank you I was close sort of hehe Yes it works ))
WHITELIONX is offline  
Old 12/14/2009, 21:10   #10
 
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
whitelion when you put a code in don't use quotes use [ code ] paste the code [ / code ] but with no spaces
copz1337 is offline  
Reply


Similar Threads Similar Threads
AutoClic jail question ?!?!?!
09/15/2009 - Conquer Online 2 - 4 Replies
hi i use scriptvessel and everyone say's that conquer detect autoclic i want to know if i can modify a file of conquer directoy to make them dont detect the autoclic to use older version of scriptvessel(background) xD ??? can someone help mee?? thnxx
[Guide]Remove GM protction-send blackname to jail
11/08/2008 - CO2 PServer Guides & Releases - 30 Replies
# Update 1 Fix dieing into jail again - add message has killed by xx #Update 2 1-Add NPC To jail to let u out for 4kk or 54 Cps 2- Change points from 99 to 29(you must change code again) hi it is first help i make here
Bot jail question......
08/22/2006 - Conquer Online 2 - 1 Replies
You kbow that guy that takes you too bot jail. right? well yea and you can leave for free if you do that i wounder if you cud make it think that you took the guy into bot jail or something like a glich -=/?
Bot Jail question
07/11/2006 - Conquer Online 2 - 11 Replies
I've been sent to bot jail for the 2nd time and I've got 2 questions. 1st: How the hell do I get out? I only have 100k on me and this time I WASN'T BOTTING 2nd: How many times can you get there before ban? Thank You.
jail question..
01/17/2006 - World of Warcraft - 4 Replies
if GM put me in jail is there anyway to get out? try with BWH but without success any idea's? (private server)



All times are GMT +1. The time now is 08:40.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.