|
You last visited: Today at 12:22
Advertisement
Will this work
Discussion on Will this work within the CO2 Private Server forum part of the Conquer Online 2 category.
02/22/2010, 02:32
|
#1
|
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
|
|
|
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(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()); } else 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()); } else 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()); } else 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()); } else 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
|
|
|
02/22/2010, 03:09
|
#3
|
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
|
But. Still my Question will it Work ?
|
|
|
02/22/2010, 03:16
|
#4
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by -Shunsui-
But. Still my Question will it Work ?
|
Only one way to find out.
T&E.
|
|
|
02/22/2010, 05:11
|
#5
|
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
|
Tested - Works
|
|
|
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 { }
|
|
|
02/22/2010, 12:49
|
#7
|
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
|
Quote:
Originally Posted by PeTe Ninja
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?
|
|
|
02/22/2010, 12:52
|
#8
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by Decker_
Why two of them?
|
An else for each if.
|
|
|
02/22/2010, 12:54
|
#9
|
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
|
Ahh ok ok.
|
|
|
02/22/2010, 21:05
|
#10
|
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
|
Quote:
Originally Posted by .Arco
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
{
}
|
|
|
02/23/2010, 02:39
|
#11
|
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
|
Quote:
Originally Posted by PeTe Ninja
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 ?
|
|
|
02/23/2010, 02:41
|
#12
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by -Shunsui-
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]
{
}
|
|
|
02/23/2010, 02:50
|
#13
|
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
|
Quote:
Originally Posted by .Arco
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 ?
|
|
|
02/23/2010, 10:06
|
#14
|
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.
|
|
|
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
|
|
|
|
|
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.
|
|