[Release] Change Into A Monster NPC

10/19/2008 05:02 XxArcherMasterxX#1
hey my second release since i release "[Release] Real Broadcast (Same as in Real Co)" so i hope that this is a fun option for your server.

Requirements:
  • one of the lotf sources
  • eyes
  • hands

first open the project from your source and go to client.cs, then search for;
Code:
if (CurrentNPC == 6700)
You will see the npc stuff and then add above that;
Code:
                        if (CurrentNPC == 9950)
                        {
                            SendPacket(General.MyPackets.NPCSay("Do you want to have your size into a monster so that you can become much more cooler? Now here is a precious chance for you."));
                            SendPacket(General.MyPackets.NPCLink("I want to change my size.", 1));
                            SendPacket(General.MyPackets.NPCLink("I don`t want to change.", 255));
                            SendPacket(General.MyPackets.NPCSetFace(30));
                            SendPacket(General.MyPackets.NPCFinish());
                        }
Then search for
Code:
if (CurrentNPC == 6700)
again and then add above that;
Code:
                            if (CurrentNPC == 9950)
                            {
                                if (Control == 1)
                                {
                                    SendPacket(General.MyPackets.NPCSay("If you pay me one dragonball, I can have your size changed. You will become more attractive and start a fresh life. "));
                                    SendPacket(General.MyPackets.NPCSay("By the way, to avoid some unexpected things, make sure you are not in any disguise form."));
                                    SendPacket(General.MyPackets.NPCLink("Here is a dragonball.", 2));
                                    SendPacket(General.MyPackets.NPCLink("I have no dragonball.", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                                if (Control == 2)
                                {
                                    if (MyChar.InventoryContains(1088000, 1))
                                    {
                                        MyChar.RemoveItem(MyChar.ItemNext(1088000));

                                        if (MyChar.Model == 1004)
                                            MyChar.Model -= 749;
                                        else if (MyChar.Model == 1003)
                                            MyChar.Model -= 748;
                                        if (MyChar.Model == 2002)
                                            MyChar.Model -= 1691;
                                        else if (MyChar.Model == 2001)
                                            MyChar.Model += 1690;

                                        SendPacket(General.MyPackets.Vital(MyChar.UID, 12, ulong.Parse(MyChar.Avatar.ToString() + MyChar.Model.ToString())));
                                        World.UpdateSpawn(MyChar);
                                    }

                                    else
                                    {
                                        SendPacket(General.MyPackets.NPCSay("Sorry, you do not have a DragonBall."));
                                        SendPacket(General.MyPackets.NPCLink("OK, I Know.", 255));
                                        SendPacket(General.MyPackets.NPCSetFace(30));
                                        SendPacket(General.MyPackets.NPCFinish());
                                    }
                                }
                            }
the price to change into a monster is 1 dragonball, yes i know its easy to add to your server but its just a funny option ;)
(if you want that the monster look stays even after you relogged in then mail me and i will give you the code.
10/19/2008 07:21 !DeX!#2
Thanks
10/19/2008 09:55 lolex#3
thanks lol
10/19/2008 11:04 _Emme_#4
Isnt this a bit worthless? Since you cant move if you have equipment on you..
10/19/2008 11:55 µ~Xero~µ#5
Bleh then unequip lol nice to see an npc i just did transformiing commands^^
10/19/2008 14:15 XxArcherMasterxX#6
Quote:
Originally Posted by emildayan1 View Post
Isnt this a bit worthless? Since you cant move if you have equipment on you..
in the powerco source theres no problem with equiping but i didnt test it on all lotf sources
10/19/2008 15:39 tao4229#7
Quote:
Originally Posted by emildayan1 View Post
Isnt this a bit worthless? Since you cant move if you have equipment on you..
There's a semi-easy way to make it so you can move... It's nearly impossible to guess though x_x
10/22/2008 18:32 YukiXian#8
Set an timer on it for 30 minutes or something, and auto-Unequip the weapons, garements, armor's and things...