What is wrong with this script please?

12/11/2009 02:27 WHITELIONX#1
#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?
12/11/2009 02:29 Hitsugaya Toshiro#2
Your missing the break;
12/11/2009 02:35 WHITELIONX#3
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?
12/11/2009 02:42 Hitsugaya Toshiro#4
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
12/11/2009 02:58 WHITELIONX#5
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 :)
12/11/2009 02:59 airborne.#6
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; -.-
12/11/2009 03:01 Hitsugaya Toshiro#7
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
12/12/2009 02:17 WHITELIONX#8
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
12/12/2009 10:55 sawickas#9
And for full code Yuo Need add My char save and My char dc I will not tell yuo were yuo will find :D
12/12/2009 11:12 Basser#10
Quote:
Originally Posted by airborne. View Post
lol it's happened to me. stupid break; -.-
Break; is a very helpful thing.
12/12/2009 11:48 Korvacs#11
Quote:
Originally Posted by Smythe94 View Post
Break; is a very helpful thing.
Code:
return;
Would be better in this case.