[Release] Much more advanced skill command LOTF

09/17/2010 19:07 jackpotsvr#1
RELEASE

This is for LOTF,, 5017.
Sooo lets get started :)
I made a much more advanced skill command today.
What do it do? Simply you can just learn all skills or all skills for a type of class with just one code instead of lots ;)

Search for
PHP Code:
                                            if (Splitter[0] == "/skill")
                                            {
                                                
MyChar.LearnSkill2(short.Parse(Splitter[1]), byte.Parse(Splitter[2]));
                                            } 
simply remove this and where it was add this. (Yup its bit long code :rolleyes: )

PHP Code:



                                            
if (Splitter[0] == "/skill")
                                            {
                                                
#region TrojanSkills
                                                
if (Splitter[1] == "trojan")
                                                    {
                                                        
MyChar.LearnSkill2(short.Parse("1190"), byte.Parse("2"));
                                                        
MyChar.LearnSkill2(short.Parse("1115"), byte.Parse("4"));
                                                        
MyChar.LearnSkill2(short.Parse("1110"), byte.Parse("0"));
                                                        
MyChar.LearnSkill2(short.Parse("1015"), byte.Parse("0"));
                                                        
MyChar.LearnSkill2(short.Parse("1045"), byte.Parse("4"));
                                                        
MyChar.LearnSkill2(short.Parse("1046"), byte.Parse("4"));
                                                        
MyChar.LearnSkill2(short.Parse("5030"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("1250"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("5050"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("5010"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("1260"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("5020"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("1290"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("5040"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("1300"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("7000"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("7010"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("7020"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("7030"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("7040"), byte.Parse("9"));
                                                    }

                                                
#endregion
                                                
                                                #region WarriorSkills

                                                
if (Splitter[1] == "warrior")
                                                    {
                                                        
MyChar.LearnSkill2(short.Parse("1015"), byte.Parse("0"));
                                                        
MyChar.LearnSkill2(short.Parse("1020"), byte.Parse("0"));
                                                        
MyChar.LearnSkill2(short.Parse("1025"), byte.Parse("0"));
                                                        
MyChar.LearnSkill2(short.Parse("1040"), byte.Parse("0"));
                                                        
MyChar.LearnSkill2(short.Parse("1051"), byte.Parse("0"));
                                                        
MyChar.LearnSkill2(short.Parse("1320"), byte.Parse("2"));
                                                        
MyChar.LearnSkill2(short.Parse("1045"), byte.Parse("4"));
                                                        
MyChar.LearnSkill2(short.Parse("1046"), byte.Parse("4"));
                                                        
MyChar.LearnSkill2(short.Parse("5030"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("1250"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("5050"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("5010"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("1260"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("5020"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("1290"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("5040"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("1300"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("7000"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("7010"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("7020"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("7030"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("7040"), byte.Parse("9"));
                                                    }

                                                
#endregion

                                                #region Archer Skills
                                                
if (Splitter[1] == "archer")
                                                    {
                                                        
MyChar.LearnSkill2(short.Parse("8001"), byte.Parse("5"));
                                                        
MyChar.LearnSkill2(short.Parse("8000"), byte.Parse("5"));
                                                        
MyChar.LearnSkill2(short.Parse("8003"), byte.Parse("1"));
                                                        
MyChar.LearnSkill2(short.Parse("8002"), byte.Parse("0"));
                                                        
MyChar.LearnSkill2(short.Parse("8030"), byte.Parse("0"));

                                                    }

                                                
#endregion
                                                #region FireSkills
                                                
if (Splitter[1] == "fire")
                                                    {
                                                        
MyChar.LearnSkill2(short.Parse("1002"), byte.Parse("3"));
                                                        
MyChar.LearnSkill2(short.Parse("1005"), byte.Parse("4"));
                                                        
MyChar.LearnSkill2(short.Parse("1010"), byte.Parse("0"));
                                                        
MyChar.LearnSkill2(short.Parse("1120"), byte.Parse("3"));
                                                        
MyChar.LearnSkill2(short.Parse("1125"), byte.Parse("0"));
                                                        
MyChar.LearnSkill2(short.Parse("1150"), byte.Parse("7"));
                                                        
MyChar.LearnSkill2(short.Parse("1160"), byte.Parse("3"));
                                                        
MyChar.LearnSkill2(short.Parse("1165"), byte.Parse("3"));
                                                        
MyChar.LearnSkill2(short.Parse("1180"), byte.Parse("7"));
                                                        
MyChar.LearnSkill2(short.Parse("1195"), byte.Parse("2"));
                                                        
MyChar.LearnSkill2(short.Parse("5001"), byte.Parse("0"));

                                                    }
                                                
#endregion

                                                #region WaterSkills
                                                
if (Splitter[1] == "water")
                                                    {
                                                        
MyChar.LearnSkill2(short.Parse("5001"), byte.Parse("0"));
                                                        
MyChar.LearnSkill2(short.Parse("1001"), byte.Parse("3"));
                                                        
MyChar.LearnSkill2(short.Parse("1005"), byte.Parse("4"));
                                                        
MyChar.LearnSkill2(short.Parse("1010"), byte.Parse("0"));
                                                        
MyChar.LearnSkill2(short.Parse("1075"), byte.Parse("4"));
                                                        
MyChar.LearnSkill2(short.Parse("1095"), byte.Parse("4"));
                                                        
MyChar.LearnSkill2(short.Parse("1090"), byte.Parse("4"));
                                                        
MyChar.LearnSkill2(short.Parse("1085"), byte.Parse("4"));
                                                        
MyChar.LearnSkill2(short.Parse("1100"), byte.Parse("0"));
                                                        
MyChar.LearnSkill2(short.Parse("1170"), byte.Parse("4"));
                                                        
MyChar.LearnSkill2(short.Parse("1175"), byte.Parse("4"));
                                                        
MyChar.LearnSkill2(short.Parse("1195"), byte.Parse("2"));
                                                        
MyChar.LearnSkill2(short.Parse("1260"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("1510"), byte.Parse("9"));
                                                    }
                                                
#endregion
                                                #region allskills
                                                
if (Splitter[1] == "all")
                                                    {
                                                        
MyChar.LearnSkill2(short.Parse("1190"), byte.Parse("2"));
                                                        
MyChar.LearnSkill2(short.Parse("1115"), byte.Parse("4"));
                                                        
MyChar.LearnSkill2(short.Parse("1110"), byte.Parse("0"));
                                                        
MyChar.LearnSkill2(short.Parse("1015"), byte.Parse("0"));
                                                        
MyChar.LearnSkill2(short.Parse("1045"), byte.Parse("4"));
                                                        
MyChar.LearnSkill2(short.Parse("1046"), byte.Parse("4"));
                                                        
MyChar.LearnSkill2(short.Parse("1015"), byte.Parse("0"));
                                                        
MyChar.LearnSkill2(short.Parse("1020"), byte.Parse("0"));
                                                        
MyChar.LearnSkill2(short.Parse("1025"), byte.Parse("0"));
                                                        
MyChar.LearnSkill2(short.Parse("1040"), byte.Parse("0"));
                                                        
MyChar.LearnSkill2(short.Parse("1051"), byte.Parse("0"));
                                                        
MyChar.LearnSkill2(short.Parse("1320"), byte.Parse("2"));
                                                        
MyChar.LearnSkill2(short.Parse("1045"), byte.Parse("4"));
                                                        
MyChar.LearnSkill2(short.Parse("1046"), byte.Parse("4"));
                                                        
MyChar.LearnSkill2(short.Parse("5030"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("1250"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("5050"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("5010"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("1260"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("5020"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("1290"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("5040"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("1300"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("7000"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("7010"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("7020"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("7030"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("7040"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("8001"), byte.Parse("5"));
                                                        
MyChar.LearnSkill2(short.Parse("8000"), byte.Parse("5"));
                                                        
MyChar.LearnSkill2(short.Parse("8003"), byte.Parse("1"));
                                                        
MyChar.LearnSkill2(short.Parse("8002"), byte.Parse("0"));
                                                        
MyChar.LearnSkill2(short.Parse("8030"), byte.Parse("0"));
                                                        
MyChar.LearnSkill2(short.Parse("1002"), byte.Parse("3"));
                                                        
MyChar.LearnSkill2(short.Parse("1005"), byte.Parse("4"));
                                                        
MyChar.LearnSkill2(short.Parse("1010"), byte.Parse("0"));
                                                        
MyChar.LearnSkill2(short.Parse("1120"), byte.Parse("3"));
                                                        
MyChar.LearnSkill2(short.Parse("1125"), byte.Parse("0"));
                                                        
MyChar.LearnSkill2(short.Parse("1150"), byte.Parse("7"));
                                                        
MyChar.LearnSkill2(short.Parse("1160"), byte.Parse("3"));
                                                        
MyChar.LearnSkill2(short.Parse("1165"), byte.Parse("3"));
                                                        
MyChar.LearnSkill2(short.Parse("1180"), byte.Parse("7"));
                                                        
MyChar.LearnSkill2(short.Parse("1195"), byte.Parse("2"));
                                                        
MyChar.LearnSkill2(short.Parse("5001"), byte.Parse("0"));
                                                        
MyChar.LearnSkill2(short.Parse("5001"), byte.Parse("0"));
                                                        
MyChar.LearnSkill2(short.Parse("1001"), byte.Parse("3"));
                                                        
MyChar.LearnSkill2(short.Parse("1005"), byte.Parse("4"));
                                                        
MyChar.LearnSkill2(short.Parse("1010"), byte.Parse("0"));
                                                        
MyChar.LearnSkill2(short.Parse("1075"), byte.Parse("4"));
                                                        
MyChar.LearnSkill2(short.Parse("1095"), byte.Parse("4"));
                                                        
MyChar.LearnSkill2(short.Parse("1090"), byte.Parse("4"));
                                                        
MyChar.LearnSkill2(short.Parse("1085"), byte.Parse("4"));
                                                        
MyChar.LearnSkill2(short.Parse("1100"), byte.Parse("0"));
                                                        
MyChar.LearnSkill2(short.Parse("1170"), byte.Parse("4"));
                                                        
MyChar.LearnSkill2(short.Parse("1175"), byte.Parse("4"));
                                                        
MyChar.LearnSkill2(short.Parse("1195"), byte.Parse("2"));
                                                        
MyChar.LearnSkill2(short.Parse("1260"), byte.Parse("9"));
                                                        
MyChar.LearnSkill2(short.Parse("1510"), byte.Parse("9"));
                                                    }
                                                
#endregion
                                                
else
                                                        {
                                                            
MyChar.LearnSkill2(short.Parse(Splitter[1]), byte.Parse(Splitter[2]));
                                                        }
                                            } 




type this in chat to use them :)
Code:
/skill trojan
/skill warrior
/skill archer
/skill fire
/skill water
/skill all
/skill 9876 0 <== just like your old /skill command
Screenshots

Good luck with your more advanced skill command :D,,

Thanks me if i helped
09/17/2010 19:17 dowhatuwant#2
u could put it in regions so it aint that long.

#region TrojanSkills
//Code here
#endregion
09/17/2010 19:29 jackpotsvr#3
Quote:
Originally Posted by ☆★Zuper★☆ View Post
u could put it in regions so it aint that long.

#region TrojanSkills
//Code here
#endregion
I actually did that in my source but not in this thread,, i think im going change it cause i just have to do some other final changes ;)

Off-Topic
(may i ask how you login with that strange stars in your name)?
09/18/2010 16:55 .Beatz#4
Quote:
Originally Posted by jackpotsvr View Post
I actually did that in my source but not in this thread,, i think im going change it cause i just have to do some other final changes ;)

Off-Topic
(may i ask how you login with that strange stars in your name)?
I believe you can login with your email address as well as your user name. I might be wrong though.
09/18/2010 17:29 jackpotsvr#5
Quote:
Originally Posted by .Beatz View Post
I believe you can login with your email address as well as your user name. I might be wrong though.
Ah okay ;)
09/19/2010 16:44 dowhatuwant#6
Emm, is alt codes.
Im just writing them before i login, but i got name on save so i can just choose it.
09/19/2010 18:08 jackpotsvr#7
Quote:
Originally Posted by ☆★Zuper★☆ View Post
Emm, is alt codes.
Im just writing them before i login, but i got name on save so i can just choose it.
This is still faster.
09/19/2010 18:11 dowhatuwant#8
Quote:
Originally Posted by jackpotsvr View Post
This is still faster.
what is faster?
09/19/2010 20:00 jackpotsvr#9
Quote:
Originally Posted by ☆★Zuper★☆ View Post
what is faster?
Sorry wrong intrepretation :)
Didn't know it was possible ;P
04/26/2011 17:13 JobvdH#10
Nice work, whats the skill or command for your piglet GM thing?