5165 lvl 110 promotion?

02/28/2010 23:41 Decker_#1
Has anyone fixed this yet?
If they have link me to it please.

If they haven't, can you help me fix it?
03/01/2010 00:02 CIRASH#2
post the code here and ill look at it. I dont feel like downloading a 5165 source. Also, tell me what the problem is.
03/01/2010 00:13 Decker_#3
The problem is you can't promote to lvl 110 from trojan god.
I don't know about the other classes though.

Code:
#region TrojanGod
                            case 10022:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Hi, i am Trojan God and i teach only warriors, the rest of you, beat it!"));
                                        GC.AddSend(Packets.NPCLink("Promote me.", 1));
                                        GC.AddSend(Packets.NPCLink("Learn Skills.", 2));
                                        GC.AddSend(Packets.NPCLink("Just passing by.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    #region Promote
                                    else if (GC.MyChar.Job >= 10 && GC.MyChar.Job <= 15)
                                    {
                                        if (GC.MyChar.Job <= 14 && (Control == 1 || Control == 10))
                                        {
                                            if (Control == 1)
                                            {
                                                GC.AddSend(Packets.NPCSay("You need to be level " + GC.MyChar.LevReqForPromote + " to promote to " + ((Game.Character.JobName)(GC.MyChar.Job + 1)).ToString()));
                                                if (GC.MyChar.Job == 12)
                                                    GC.AddSend(Packets.NPCSay("Also you will need an Emerald."));
                                                else if (GC.MyChar.Job == 13)
                                                    GC.AddSend(Packets.NPCSay("Also you will need a Meteor."));
                                                else if (GC.MyChar.Job == 14)
                                                    GC.AddSend(Packets.NPCSay("Also you will need a MoonBox."));
                                                else if (GC.MyChar.Job == 15)
                                                GC.AddSend(Packets.NPCLink("Promote me.", 10));
                                                GC.AddSend(Packets.NPCLink("Forget it.", 255));
                                                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                GC.AddSend(Packets.NPCFinish());
                                            }
                                            else if (Control == 10)
                                            {
                                                if (GC.MyChar.Level >= GC.MyChar.LevReqForPromote)
                                                {
                                                    byte Need = 1;
                                                    uint ID = GC.MyChar.PromoteItems;
                                                    if (ID == 1072031) Need = 5;
                                                    if (GC.MyChar.InventoryContains(ID, Need) || ID == 1)
                                                    {
                                                        for (byte i = 0; i < Need; i++)
                                                            GC.MyChar.RemoveItem(GC.MyChar.NextItem(ID));
                                                        GC.MyChar.Job++;
                                                        if (GC.MyChar.Job == 11)
                                                            GC.MyChar.AddItem(130205);
                                                        else if (GC.MyChar.Job == 12)
                                                            GC.MyChar.AddItem(480077);
                                                        else if (GC.MyChar.Job == 13)
                                                            GC.MyChar.AddItem(130267);
                                                        else if (GC.MyChar.Job == 14)
                                                            GC.MyChar.AddItem(700032);
                                                        else if (GC.MyChar.Job == 15)
                                                            GC.MyChar.AddItem(1088000);

                                                        GC.AddSend(Packets.NPCSay("Congratulations! You are now " + ((Game.Character.JobName)GC.MyChar.Job).ToString() + " and received a gift."));
                                                        GC.AddSend(Packets.NPCLink("Thanks.", 255));
                                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                        GC.AddSend(Packets.NPCFinish());
                                                    }
                                                    else
                                                    {
                                                        GC.AddSend(Packets.NPCSay("You don't have the required materials."));
                                                        GC.AddSend(Packets.NPCLink("I'll go get em.", 255));
                                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                        GC.AddSend(Packets.NPCFinish());
                                                    }
                                                }
                                                else
                                                {
                                                    GC.AddSend(Packets.NPCSay("You are not qualified yet. Your level is too low."));
                                                    GC.AddSend(Packets.NPCLink("I see.", 255));
                                                    GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                    GC.AddSend(Packets.NPCFinish());
                                                }
                                            }
                                        }
                                        else if (Control == 1 || Control == 10)
                                        {
                                            GC.AddSend(Packets.NPCSay("You are already TrojanMaster, i cannot promote you anymore."));
                                            GC.AddSend(Packets.NPCLink("I see.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    #endregion
                                        else if (Control == 2)
                                        {
                                            GC.AddSend(Packets.NPCSay("Choose from the skills listed below."));
                                            ArrayList Skills = (ArrayList)Database.SkillForLearning[(byte)1];
                                            if (Skills.Count < 8)
                                            {
                                                for (byte i = 0; i < Skills.Count; i++)
                                                    GC.AddSend(Packets.NPCLink(((Extra.SkillIDs)(((SkillLearn)Skills[i]).ID)).ToString() + "(Lv " + ((SkillLearn)Skills[i]).LevelReq.ToString() + " )", (byte)(20 + i)));
                                            }
                                            else
                                            {
                                                for (byte i = 0; i < 7; i++)
                                                    GC.AddSend(Packets.NPCLink(((Extra.SkillIDs)(((SkillLearn)Skills[i]).ID)).ToString() + "(Lv " + ((SkillLearn)Skills[i]).LevelReq.ToString() + " )", (byte)(20 + i)));
                                                GC.AddSend(Packets.NPCLink("Next", 100));
                                            }
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                        else if (Control == 100)
                                        {
                                            GC.AddSend(Packets.NPCSay("Choose from the skills listed below."));
                                            ArrayList Skills = (ArrayList)Database.SkillForLearning[(byte)1];
                                            for (byte i = 7; i < Skills.Count; i++)
                                                GC.AddSend(Packets.NPCLink(((Extra.SkillIDs)(((SkillLearn)Skills[i]).ID)).ToString() + "(Lv " + ((SkillLearn)Skills[i]).LevelReq.ToString() + " )", (byte)(20 + i)));
                                            GC.AddSend(Packets.NPCLink("Previous", 2));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                        else if (Control >= 20 && Control <= 34)
                                        {
                                            ArrayList Skills = (ArrayList)Database.SkillForLearning[(byte)1];
                                            SkillLearn S = (SkillLearn)Skills[(byte)(Control - 20)];
                                            if (GC.MyChar.Level >= S.LevelReq)
                                                GC.MyChar.NewSkill(S.ToSkill());
                                            else
                                            {
                                                GC.AddSend(Packets.NPCSay("You are not high level enough."));
                                                GC.AddSend(Packets.NPCLink("I see.", 255));
                                                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                GC.AddSend(Packets.NPCFinish());
                                            }
                                        }
                                    }
                                    else
                                    {
                                        GC.AddSend(Packets.NPCSay("You are not a trojan, so get lost, will you?"));
                                        GC.AddSend(Packets.NPCLink("Sorry.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    break;
                                }
                            #endregion
03/01/2010 00:30 killersub#4
same problem im facing =/...would really love help now...
03/01/2010 01:37 -Shunsui-#5
Do You Have a MoonBox . ?
03/01/2010 01:45 Arcо#6
Decker learn to read.
The ItemID he is asking for is 721080, the item you are prolly spawning or selling (since you like to make so many npcs :facepalm:) is not 721080.
03/01/2010 02:19 Decker_#7
There is like 4 different moonbox ids.
How can I tell which one I am spawning in game and how can i spawn items by the id?
03/01/2010 02:40 Arcо#8
Quote:
Originally Posted by Decker_ View Post
There is like 4 different moonbox ids.
How can I tell which one I am spawning in game and how can i spawn items by the id?
Use the command /mb?
04/24/2010 14:39 greasontim#9
Hope this isnt necro-posting but heres a easy fix for this
make a NPC Shop just at the enterance of Job Center that sells MoonBox and Emeralds
04/26/2010 08:49 Fish*#10
Quote:
Originally Posted by greasontim View Post
Hope this isnt necro-posting but heres a easy fix for this
make a NPC Shop just at the enterance of Job Center that sells MoonBox and Emeralds
fail, decker is a banned person here.
04/26/2010 09:16 Huseby#11
Quote:
Originally Posted by grillmad View Post
fail, decker is a banned person here.
^
That.

#Closed