Register for your free account! | Forgot your password?

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

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

Advertisement



What is wrong with this script please?

Discussion on What is wrong with this script please? 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
What is wrong with this script please?

#region Alex
case 3600:
{
if (Control == 0)
{

GC.AddSend(Packets.NPCSay("So you feel like getting 2nd reborn? Well then you came to the right place. In order to get 2nd reborn you need to be level 120 and have a Exemption Token"));
GC.AddSend(Packets.NPCLink("I want 2nd reborn", 1));
GC.AddSend(Packets.NPCLink("Nope, you're mistaken.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());

}
else if (Control == 1)
{
if (GC.MyChar.Reborns < 2 && GC.MyChar.Reborns > 0)
{
GC.AddSend(Packets.NPCSay("Well lets get this reborning on its way."));
GC.AddSend(Packets.NPCLink("Im ready", 2));
GC.AddSend(Packets.NPCLink("I have changed my mind.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You are allready 2nd reborn, How dare you fool me."));
GC.AddSend(Packets.NPCLink("I shall leave.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else if (Control == 2)
{
if (GC.MyChar.Level >= 120 || GC.MyChar.Job == 135 && GC.MyChar.Level >= 120)
{
if (GC.MyChar.Job % 10 == 5)
{
if (GC.MyChar.InventoryContains(723701, 1))
{
GC.AddSend(Packets.NPCSay("Do you want me to have a go at the quest or do you have Exemption Token?"));
GC.AddSend(Packets.NPCLink("Quest please", 30));
GC.AddSend(Packets.NPCLink("I have the token", 31));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("All you need is an Exemption Token, How sad."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else
{
GC.AddSend(Packets.NPCSay("You must be a Master in your class or i will nto be able to help you on your journey"));
GC.AddSend(Packets.NPCLink("Damnit", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else
{
GC.AddSend(Packets.NPCSay("You are not high enough level, Please go do some leveling and when you are ready you may come see me again"));
GC.AddSend(Packets.NPCLink("You got it. ", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}

else if (Control == 30)
{
GC.MyChar.Teleport(1700, 596, 652);
break;
}
else if (Control == 31)
{
if (Control == 31)
{
GC.AddSend(Packets.NPCSay("Choose your profession"));
GC.AddSend(Packets.NPCLink("Watertao", 43));
GC.AddSend(Packets.NPCLink("Firetao", 33));
GC.AddSend(Packets.NPCLink("Archer", 53));
GC.AddSend(Packets.NPCLink("Warrior", 93));
GC.AddSend(Packets.NPCLink("Trojan", 63));
GC.AddSend(Packets.NPCLink("Ninja", 64));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}

}
#endregion

Ok so I have been playing around again but this brings up 303 errors I think? This is for the 5165 source and all it is supposed to do the same as what Alex is supposed to do such as check your lvl and whether you have Exemption token and if you do not have token then it is supposed to put you into 2nd rb map. This used to be an older script which had supergems and bless but I do not want any of that in this so can somebody take a quick look and tell me where I have gone wrong. I am not a coder or programmer and I am trying my hardest to work these things out myself and sometimes I fail and other times I succeed so please can anybody help?
WHITELIONX is offline  
Old 12/11/2009, 02:29   #2
 
Hitsugaya Toshiro's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 116
Received Thanks: 42
Your missing the break;
Hitsugaya Toshiro is offline  
Old 12/11/2009, 02:35   #3
 
WHITELIONX's Avatar
 
elite*gold: 0
Join Date: Apr 2006
Posts: 534
Received Thanks: 66
When you say break I know what you mean but how many am I missing? And would it be going at the end of say

GC.AddSend(Packets.NPCSay("So you feel like getting 2nd reborn? Well then you came to the right place. In order to get 2nd reborn you need to be level 120 and have a Exemption Token"));
GC.AddSend(Packets.NPCLink("I want 2nd reborn", 1));
GC.AddSend(Packets.NPCLink("Nope, you're mistaken.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
#break;<<<<------like there and likewise for the rest of the script?
WHITELIONX is offline  
Old 12/11/2009, 02:42   #4
 
Hitsugaya Toshiro's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 116
Received Thanks: 42
Quote:
Originally Posted by WHITELIONX View Post
When you say break I know what you mean but how many am I missing? And would it be going at the end of say

GC.AddSend(Packets.NPCSay("So you feel like getting 2nd reborn? Well then you came to the right place. In order to get 2nd reborn you need to be level 120 and have a Exemption Token"));
GC.AddSend(Packets.NPCLink("I want 2nd reborn", 1));
GC.AddSend(Packets.NPCLink("Nope, you're mistaken.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
#break;<<<<------like there and likewise for the rest of the script?
Well not like this

Code:
  GC.AddSend(Packets.NPCFinish());
                                    }

                                    break;
                                }
                            #endregion
=P
Hitsugaya Toshiro is offline  
Thanks
1 User
Old 12/11/2009, 02:58   #5
 
WHITELIONX's Avatar
 
elite*gold: 0
Join Date: Apr 2006
Posts: 534
Received Thanks: 66
Thank you It has no errors now I just need to test it to make sure it works hehe. Only problem I did have before was a non rb char was told it was already 2nd rb >.< I will check that though but thank you again
WHITELIONX is offline  
Old 12/11/2009, 02:59   #6
 
airborne.'s Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 256
Received Thanks: 63
Quote:
Originally Posted by WHITELIONX View Post
Thank you It has no errors now I just need to test it to make sure it works hehe. Only problem I did have before was a non rb char was told it was already 2nd rb >.< I will check that though but thank you again
lol it's happened to me. stupid break; -.-
airborne. is offline  
Old 12/11/2009, 03:01   #7
 
Hitsugaya Toshiro's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 116
Received Thanks: 42
Quote:
Originally Posted by WHITELIONX View Post
Thank you It has no errors now I just need to test it to make sure it works hehe. Only problem I did have before was a non rb char was told it was already 2nd rb >.< I will check that though but thank you again
Np anytime you need help lemme know =P
Hitsugaya Toshiro is offline  
Old 12/12/2009, 02:17   #8
 
WHITELIONX's Avatar
 
elite*gold: 0
Join Date: Apr 2006
Posts: 534
Received Thanks: 66
And yes I know why it says about the char is already 2nd rb even if the char is not even 1st rb 120+ lol It is how it is actually written and I guess I need to add a little something :P
WHITELIONX is offline  
Old 12/12/2009, 10:55   #9
 
sawickas's Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 617
Received Thanks: 38
And for full code Yuo Need add My char save and My char dc I will not tell yuo were yuo will find
sawickas is offline  
Old 12/12/2009, 11:12   #10
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 506
Quote:
Originally Posted by airborne. View Post
lol it's happened to me. stupid break; -.-
Break; is a very helpful thing.
Basser is offline  
Old 12/12/2009, 11:48   #11


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Quote:
Originally Posted by Smythe94 View Post
Break; is a very helpful thing.
Code:
return;
Would be better in this case.
Korvacs is offline  
Reply


Similar Threads Similar Threads
Whats wrong with this script?
12/19/2009 - CO2 Private Server - 3 Replies
public class Halo { private Character C; public ulong Donation; public int ListHalo; private Ranks HaloID; public Halo(Character c) { C = c; }
What the heck is wrong with this script, everything looks right :S
02/08/2009 - Silkroad Online - 2 Replies
He runs to the first set of coordinates i give him.. right near storage.... He stops.. He stores storage....and then he just sits there and does nothing.. "cmd","","" "cmd","","" "cmd","","" "cmd","","" "cmd","","" "-5143","2816","0" "cmd","","" "store open","0104000000","Storage-Ke eper Saesa"
What is wrong in this script?
10/18/2008 - Silkroad Online - 5 Replies
"//","..............^^............. ................^^..............","//&qu ot; "//",".......................... AgDev ..........................","//" "//","........ The agbot-Scripts Constructor ........","//" "//","........... Coded by: Hussert & KillaH ..........","//" "//",".......................Versi on 3.2 ....................","//" "//","............................ ....................................."," //" "//","Town: Hotan","//" "//","Monster: (Roc) ----- Wing Tribe Attacker 4 by...



All times are GMT +1. The time now is 05:50.


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.