Register for your free account! | Forgot your password?

You last visited: Today at 12:22

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

Advertisement



Will this work

Discussion on Will this work within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
Will this work

Will this work because i just have feeling it wount havent tested it.
what i think it wount work is like the else statements are they set correct ? are they set well ?
Code:
#region SecondStageNPC DIS /// SET THE NPC IN GAME
                            case 4546:
                                {
                                    if (Linkback == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("You Must go Kill The Mobs That Are needed to Go Into Stage 3, You Need 1000 Mobs if You Are a Trojan Also for Ninjas. 800 For Warriors 500 For Taoist's And Archers"));
                                        GC.AddSend(Packets.NPCLink("I Killed them", 1));
                                        GC.AddSend(Packets.NPCLink("Dam, I Have to Keep Going", 255));
                                        GC.AddSend(Packets.NPCSetFace(30));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    if (Linkback == 1)
                                    {
                                        if (GC.MyChar.DisCity2 >= 1000 && GC.MyChar.Job >= 10 || GC.MyChar.Job <= 15)//Trojans)
                                        {
                                            GC.MyChar.Teleport(1002, 200, 210);//Set Correct Cords To Send to DisCity Stage 3
                                            //Also Set Awarding Exp
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You need to kill 1000 Mobs since Your a Trojan Please return"));
                                            GC.AddSend(Packets.NPCLink("Dam, I Have to Keep Going", 255));
                                            GC.AddSend(Packets.NPCSetFace(30));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                        if (GC.MyChar.DisCity2 >= 1000 && GC.MyChar.Job >= 50 || GC.MyChar.Job <= 55)//Ninjas)
                                        {
                                            GC.MyChar.Teleport(1002, 200, 210);//Set Correct Cords To Send to DisCity Stage 3
                                            //Also Set Awarding Exp
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You need to kill 800 Mobs since Your a Ninja Please return"));
                                            GC.AddSend(Packets.NPCLink("Dam, I Have to Keep Going", 255));
                                            GC.AddSend(Packets.NPCSetFace(30));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                        if (GC.MyChar.DisCity2 >= 800 && GC.MyChar.Job >= 20 || GC.MyChar.Job <= 25)//Warriors)
                                        {
                                            GC.MyChar.Teleport(1002, 200, 210);//Set Correct Cords To Send to DisCity Stage 3
                                            //Also Set Awarding Exp
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You need to kill 800 Mobs since Your a Warrior Please return"));
                                            GC.AddSend(Packets.NPCLink("Dam, I Have to Keep Going", 255));
                                            GC.AddSend(Packets.NPCSetFace(30));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                        if (GC.MyChar.DisCity2 >= 500 && GC.MyChar.Job >= 100 || GC.MyChar.Job <= 145)//Taoist)
                                        {
                                            GC.MyChar.Teleport(1002, 200, 210);//Set Correct Cords To Send to DisCity Stage 3
                                            //Also Set Awarding Exp
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You need to kill 500 Mobs since Your a Taoist Please return"));
                                            GC.AddSend(Packets.NPCLink("Dam, I Have to Keep Going", 255));
                                            GC.AddSend(Packets.NPCSetFace(30));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                        if (GC.MyChar.DisCity2 >= 500 && GC.MyChar.Job >= 40 || GC.MyChar.Job <= 45)//Trojans)
                                        {
                                            GC.MyChar.Teleport(1002, 200, 210);//Set Correct Cords To Send to DisCity Stage 3
                                            //Also Set Awarding Exp
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You need to kill 500 Mobs since Your a Archer Please return"));
                                            GC.AddSend(Packets.NPCLink("Dam, I Have to Keep Going", 255));
                                            GC.AddSend(Packets.NPCSetFace(30));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    break;
                                }
                            #endregion
-Shunsui- is offline  
Old 02/22/2010, 02:36   #2
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
use "esle if" instead of "if" again
PHP Code:
#region SecondStageNPC DIS /// SET THE NPC IN GAME
                            
case 4546:
                                {
                                    if (
Linkback == 0)
                                    {
                                        
GC.AddSend(Packets.NPCSay("You Must go Kill The Mobs That Are needed to Go Into Stage 3, You Need 1000 Mobs if You Are a Trojan Also for Ninjas. 800 For Warriors 500 For Taoist's And Archers"));
                                        
GC.AddSend(Packets.NPCLink("I Killed them"1));
                                        
GC.AddSend(Packets.NPCLink("Dam, I Have to Keep Going"255));
                                        
GC.AddSend(Packets.NPCSetFace(30));
                                        
GC.AddSend(Packets.NPCFinish());
                                    }
                                    if (
Linkback == 1)
                                    {
                                        if (
GC.MyChar.DisCity2 >= 1000 && GC.MyChar.Job >= 10 || GC.MyChar.Job <= 15)//Trojans)
                                        
{
                                            
GC.MyChar.Teleport(1002200210);//Set Correct Cords To Send to DisCity Stage 3
                                            //Also Set Awarding Exp
                                        
}
                                        else
                                        {
                                            
GC.AddSend(Packets.NPCSay("You need to kill 1000 Mobs since Your a Trojan Please return"));
                                            
GC.AddSend(Packets.NPCLink("Dam, I Have to Keep Going"255));
                                            
GC.AddSend(Packets.NPCSetFace(30));
                                            
GC.AddSend(Packets.NPCFinish());
                                        }
                                       else if (
GC.MyChar.DisCity2 >= 1000 && GC.MyChar.Job >= 50 || GC.MyChar.Job <= 55)//Ninjas)
                                        
{
                                            
GC.MyChar.Teleport(1002200210);//Set Correct Cords To Send to DisCity Stage 3
                                            //Also Set Awarding Exp
                                        
}
                                        else
                                        {
                                            
GC.AddSend(Packets.NPCSay("You need to kill 800 Mobs since Your a Ninja Please return"));
                                            
GC.AddSend(Packets.NPCLink("Dam, I Have to Keep Going"255));
                                            
GC.AddSend(Packets.NPCSetFace(30));
                                            
GC.AddSend(Packets.NPCFinish());
                                        }
                                       else if (
GC.MyChar.DisCity2 >= 800 && GC.MyChar.Job >= 20 || GC.MyChar.Job <= 25)//Warriors)
                                        
{
                                            
GC.MyChar.Teleport(1002200210);//Set Correct Cords To Send to DisCity Stage 3
                                            //Also Set Awarding Exp
                                        
}
                                        else
                                        {
                                            
GC.AddSend(Packets.NPCSay("You need to kill 800 Mobs since Your a Warrior Please return"));
                                            
GC.AddSend(Packets.NPCLink("Dam, I Have to Keep Going"255));
                                            
GC.AddSend(Packets.NPCSetFace(30));
                                            
GC.AddSend(Packets.NPCFinish());
                                        }
                                       else if (
GC.MyChar.DisCity2 >= 500 && GC.MyChar.Job >= 100 || GC.MyChar.Job <= 145)//Taoist)
                                        
{
                                            
GC.MyChar.Teleport(1002200210);//Set Correct Cords To Send to DisCity Stage 3
                                            //Also Set Awarding Exp
                                        
}
                                        else
                                        {
                                            
GC.AddSend(Packets.NPCSay("You need to kill 500 Mobs since Your a Taoist Please return"));
                                            
GC.AddSend(Packets.NPCLink("Dam, I Have to Keep Going"255));
                                            
GC.AddSend(Packets.NPCSetFace(30));
                                            
GC.AddSend(Packets.NPCFinish());
                                        }
                                       else if (
GC.MyChar.DisCity2 >= 500 && GC.MyChar.Job >= 40 || GC.MyChar.Job <= 45)//Trojans)
                                        
{
                                            
GC.MyChar.Teleport(1002200210);//Set Correct Cords To Send to DisCity Stage 3
                                            //Also Set Awarding Exp
                                        
}
                                        else
                                        {
                                            
GC.AddSend(Packets.NPCSay("You need to kill 500 Mobs since Your a Archer Please return"));
                                            
GC.AddSend(Packets.NPCLink("Dam, I Have to Keep Going"255));
                                            
GC.AddSend(Packets.NPCSetFace(30));
                                            
GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    break;
                                }
                            
#endregion 
~Yuki~ is offline  
Thanks
1 User
Old 02/22/2010, 03:09   #3
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
But. Still my Question will it Work ?
-Shunsui- is offline  
Old 02/22/2010, 03:16   #4
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by -Shunsui- View Post
But. Still my Question will it Work ?
Only one way to find out.
T&E.
Arcо is offline  
Thanks
1 User
Old 02/22/2010, 05:11   #5
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
Tested - Works
~Yuki~ is offline  
Thanks
1 User
Old 02/22/2010, 11:30   #6
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
no you guys are failure with your else ifs and else

you have

if { } // FIRST
else { } // OVERRIDES ALL
else if { }
else { }
PeTe Ninja is offline  
Old 02/22/2010, 12:49   #7
 
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
Quote:
Originally Posted by PeTe Ninja View Post
no you guys are failure with your else ifs and else

you have

if { } // FIRST
else { } // OVERRIDES ALL
else if { }
else { }
Why two of them?
Decker_ is offline  
Old 02/22/2010, 12:52   #8
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by Decker_ View Post
Why two of them?
An else for each if.
Arcо is offline  
Thanks
1 User
Old 02/22/2010, 12:54   #9
 
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
Ahh ok ok.
Decker_ is offline  
Old 02/22/2010, 21:05   #10
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
Quote:
Originally Posted by .Arco View Post
An else for each if.
no im saying what they did is wrong

you cant do


if (Box == blue)
{
}
else
{
}
else if (Box == red)
{
}
else
{
}
else if (Box == green)
{
}

you have to do

if (Box == blue)
{
}
else if (Box == red)
{
}
else if (Box == green)
{
}
else
{
}
PeTe Ninja is offline  
Old 02/23/2010, 02:39   #11
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
Quote:
Originally Posted by PeTe Ninja View Post
no im saying what they did is wrong

you cant do


if (Box == blue)
{
}
else
{
}
else if (Box == red)
{
}
else
{
}
else if (Box == green)
{
}

you have to do

if (Box == blue)
{
}
else if (Box == red)
{
}
else if (Box == green)
{
}
else
{
}
So Its like

Code:
[COLOR="Blue"]if (Box == blue)[/COLOR]
{
}
[COLOR="Red"]else if (Box == red)[/COLOR]
{
}
[COLOR="Lime"]else if (Box == green)[/COLOR]
{
}
[COLOR="blue"]else[/COLOR]
{
}
[COLOR="red"]else[/COLOR]
{
}
[COLOR="lime"]else[/COLOR]
{
}
The Color that its the If its what it goes with the else ?
-Shunsui- is offline  
Old 02/23/2010, 02:41   #12
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by -Shunsui- View Post
So Its like

Code:
[COLOR="Blue"]if (Box == blue)[/COLOR]
{
}
[COLOR="Red"]else if (Box == red)[/COLOR]
{
}
[COLOR="Lime"]else if (Box == green)[/COLOR]
{
}
[COLOR="blue"]else[/COLOR]
{
}
[COLOR="red"]else[/COLOR]
{
}
[COLOR="lime"]else[/COLOR]
{
}
The Color that its the If its what it goes with the else ?
No it would be:
Code:
[COLOR="Blue"]if (Box == blue)[/COLOR]
{
}
[COLOR="Red"]else if (Box == red)[/COLOR]
{
}
[COLOR="Lime"]else if (Box == green)[/COLOR]
{
}
[COLOR="blue"]else[/COLOR]
{
}
Arcо is offline  
Old 02/23/2010, 02:50   #13
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
Quote:
Originally Posted by .Arco View Post
No it would be:
Code:
[COLOR="Blue"]if (Box == blue)[/COLOR]
{
}
[COLOR="Red"]else if (Box == red)[/COLOR]
{
}
[COLOR="Lime"]else if (Box == green)[/COLOR]
{
}
[COLOR="blue"]else[/COLOR]
{
}
>.< So its 1 Else for all the If ?
-Shunsui- is offline  
Old 02/23/2010, 10:06   #14


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Correct.

If you want to do more things you should probably use a switch, you can handle all possibilities and use default: for everything else.
Korvacs is offline  
Old 02/23/2010, 15:18   #15
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
and: Switches are faster since they dun loop throu all if statements
~Yuki~ is offline  
Reply


Similar Threads Similar Threads
how to make DSEEG work with dragonica (THQ/ICE) work for vista 32 bit users
10/16/2010 - Dragonica - 4 Replies
ok after 3 hours of messing around with dragonica i found a way to make it work with DSEEG for those who got the memory edit error firstly within the 1 minture the game is open with dseeg remove all hotkeys and delete all bot settings and click save leave the patcher.exe filepath as it is, select THQ and close everything, make sure that you set DSEEG to run as admin from the compatibility tab in properties. now delete engine.ini from both c: drive and the dragonica release folder ...
[Release] ReXIGNation (Anti-Xigncode+CRC Bypass) spam here work/no work
07/19/2010 - Dekaron - 9 Replies
F>Y>I the bypass still work for me reinstall the game and run the bypasss with Cheat engine only, no winhex or any other way will make you DC right away when log in, am a vista user and i testes 3 different way and only CE work now hope this help u guy :mofo:
opk hacks work 09-01-2010 work slot
01/14/2010 - WarRock Hacks, Bots, Cheats & Exploits - 26 Replies
http://i47.tinypic.com/211j4g5.jpg virüs total Virustotal. MD5: abc818059ccbd0f5b1f10dc507e6a43a Heuristic.BehavesLike.Win32.CodeInjection.P W32/Heuristic-KPP!Eldorado W32/Heuristic-KPP!Eldorado link vakitharcama09ocak.zip ... at uploaded.to - Free File Hosting, Free Image Hosting, Free Music Hosting, Free Video Hosting, ...



All times are GMT +2. The time now is 12:22.


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