[Release]enter/exit TG

04/23/2011 04:47 Jay10291#1
Adds Boxer in tc, adds script to BoxerHuang inside TG to let you out.
Paste code in NPCTalk.cs
Code:
#region TC Boxer
                    case 600076:
                        {
                            switch (LinkBack)
                            {
                                case 0:
                                    {
                                        Text("If you are level 20 or above you may train the the training ground. Would youlike me to teleport you there for 1000 silver?", Client);
                                        Link("Yes, please.", 1, Client);
                                        Link("No, thanks.", 255, Client);
                                        Finish(Client);
                                        return;
                                    }
                                case 1:
                                    {
                                        Teleport(Client, 217, 215, 1039);
                                    }
                                    return;
                            }
                            return;
                        }
                    #endregion
                #region Leave TG
                    case 600075:
                        {
                            switch (LinkBack)
                            {
                                case 0:
                                    {
                                        Text("Although nothing will be consumed here, you cannot level up as fast as slaying the monsters. Shall I teleport you out?", Client);
                                        Link("Yes, please.", 1, Client);
                                        Link("No, thanks.", 255, Client);
                                        Finish(Client);
                                        return;
                                    }
                                case 1:
                                    {
                                        Teleport(Client, 430, 380, 1002);
                                    }
                                    return;
                            }
                            return;
                        }
                    #endregion
Intert into database:
Code:
600076	600076	6440	Boxer	1002	350	335	1	2
kinda useless since im pretty sure tg dummies arent added but w.e its all I can do for practise atm.
04/23/2011 05:39 Sp!!ke#2
In my opinion that is a useless release and other people can do that.I'm sorry for this reply but that is true.. :)
04/23/2011 05:54 thesamuraivega#3
Quote:
Originally Posted by Jay10291 View Post
Adds Boxer in tc, adds script to BoxerHuang inside TG to let you out.
Paste code in NPCTalk.cs
Code:
#region TC Boxer
                    case 600076:
                        {
                            switch (LinkBack)
                            {
                                case 0:
                                    {
                                        Text("If you are level 20 or above you may train the the training ground. Would youlike me to teleport you there for 1000 silver?", Client);
                                        Link("Yes, please.", 1, Client);
                                        Link("No, thanks.", 255, Client);
                                        Finish(Client);
                                        return;
                                    }
                                case 1:
                                    {
                                        Teleport(Client, 217, 215, 1039);
                                    }
                                    return;
                            }
                            return;
                        }
                    #endregion
                #region Leave TG
                    case 600075:
                        {
                            switch (LinkBack)
                            {
                                case 0:
                                    {
                                        Text("Although nothing will be consumed here, you cannot level up as fast as slaying the monsters. Shall I teleport you out?", Client);
                                        Link("Yes, please.", 1, Client);
                                        Link("No, thanks.", 255, Client);
                                        Finish(Client);
                                        return;
                                    }
                                case 1:
                                    {
                                        Teleport(Client, 430, 380, 1002);
                                    }
                                    return;
                            }
                            return;
                        }
                    #endregion
Intert into database:
Code:
600076	600076	6440	Boxer	1002	350	335	1	2
kinda useless since im pretty sure tg dummies arent added but w.e its all I can do for practise atm.
only teleport? :facepalm:
04/23/2011 16:19 Secrets-man#4
Quote:
Originally Posted by thesamuraivega View Post
only teleport? :facepalm:
Why you are facepalming? "only teleport" At least he made something, just to get better at coding. And that ain't so bad as for his first attempt/release.

So, nice job, Jay.
04/23/2011 19:10 Secured#5
Quote:
Originally Posted by thesamuraivega View Post
only teleport? :facepalm:
Did you expect a quest before teleporting into TG?
04/27/2011 18:37 thesamuraivega#6
Quote:
Originally Posted by Secrets-man View Post
Why you are facepalming? "only teleport" At least he made something, just to get better at coding. And that ain't so bad as for his first attempt/release.

So, nice job, Jay.
Quote:
Originally Posted by Secured View Post
Did you expect a quest before teleporting into TG?
Code:
                                #region Enter TG NPCs
                                case 101602://TwinCity
                                case 101616://BirdMan
                                case 101614://DesertCity
                                case 101620://PheonixCity
                                case 101618://ApeCity
                                    {
                                        switch (LinkBack)
                                        {
                                            case 0:
                                                {

                                                    Text("Want to go to training grounds? You need to pay me 1000 silvers to do that.", Client);
                                                    Link("Yeah.", 1, Client);
                                                    Link("Just passing by", 255, Client);
                                                    Finish(Client);

                                                }
                                                return;
                                            case 1:
                                                {
                                                    if (Client.Money >= 1000)
                                                    {
                                                        Client.Money -= 1000;
                                                        Teleport(215, 215, 1039, Client);
                                                        Text("Ok. Here you are. You can only hit dummies that are of your level or lower.", Client);
                                                        Link("Ok then.", 255, Client);
                                                        Finish(Client);
                                                    }
                                                    else
                                                    {
                                                        Text("As i said... you need 1000 silvers. Why do i need to repeat myself?", Client);
                                                        Link("Alright alright.", 255, Client);
                                                        Finish(Client);

                                                    }
                                                }
                                                return;
                                        }
                                        return;
                                    }
                                #endregion
Leave TG:

Code:
                                #region Leave TG
                                case 600075:
                                    {
                                        switch (LinkBack)
                                        {
                                            case 0:
                                                {
                                                    Text("Do you want to leave this place?", Client);
                                                    Link("Yeah.", 1, Client);
                                                    Link("No, I'll stay here.", 255, Client);
                                                    Finish(Client);
                                                }
                                                return;
                                            case 1:
                                                {


                                                    if (Client.PrevMap == 1002) Teleport(Client, 430, 380, 1002);//TwinCity
                                                    else if (Client.PrevMap == 1015) Teleport(Client, 717, 571, 1015);//BirdMan
                                                    else if (Client.PrevMap == 1000) Teleport(Client, 500, 650, 1000);//DesertCity
                                                    else if (Client.PrevMap == 1011) Teleport(Client, 188, 264, 1011);//PheonixCity
                                                    else if (Client.PrevMap == 1020) Teleport(Client, 565, 562, 1020);//ApeCity
                                                }
                                                return;
                                        }
                                    }

                                    return;
                                #endregion