[Release]For CoMy

11/16/2009 16:28 Arcо#1
A couple of people have asked me for this so I guess I'll just post it here.
I don't know if its really much of a release but here it is.
You know how on CoMy Source you can't pick Ninja?
It's only for GM's and PM's.
Well I mad a small little NPC to put in Birth Village so He will make you an InternNinja.
Code:
                            if (CurrentNPC == 4520)
                            {
                                SendPacket(General.MyPackets.NPCSay("Do you want to become a Ninja?"));
                                SendPacket(General.MyPackets.NPCLink("Yes", 1));
                                SendPacket(General.MyPackets.NPCSetFace(30));
                                SendPacket(General.MyPackets.NPCFinish());
                            }
Control:
Code:
                            if (CurrentNPC == 4520)
                            {
                                if (Control == 1)
                                {
                                     SendPacket(General.MyPackets.NPCSay("There you go. You're an InternNinja now.");
                                    SendPacket(General.MyPackets.NPCLink("Thanks!", 255);
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                    MyChar.Job = 50;
                                    SendPacket(General.MyPackets.Vital(MyChar.UID, 7, MyChar.Job));
                                }
                            }
Then the Database Info:
Code:
INSERT INTO `npcs` VALUES (315, 4520, 'BirthNinja', 2, 0, 86, 40, 1010, 0);
I tested it and it works.
Hope it helps some of you.
BTW: I don't use CoMy.
I just did this for those who asked me.
11/16/2009 16:34 Korvacs#2
Nice, neat and simple enough.

A nice little release :)

Although i cant see anything to stop this npc being used by everyone, and you might need to include the database entries ^_^
11/16/2009 16:45 Arcо#3
Quote:
Originally Posted by Korvacs View Post
Nice, neat and simple enough.

A nice little release :)

Although i cant see anything to stop this npc being used by everyone, and you might need to include the database entries ^_^

But putting him in Birth Village like I said would only let you talk to him at the beginning.
And what do you mean include database entries?
Like just the coordinates?
11/16/2009 16:49 Korvacs#4
Quote:
Originally Posted by Tiku View Post

But putting him in Birth Village like I said would only let you talk to him at the beginning.
And what do you mean include database entries?
Like just the coordinates?
Where do regular players start? Ive never seen the source.

And like the definition of the npc in the database, its cords, stuff like that. Unless its already in the database, again, ive never seen the source.
11/16/2009 16:52 Arcо#5
Quote:
Originally Posted by Korvacs View Post
Where do regular players start? Ive never seen the source.

And like the definition of the npc in the database, its cords, stuff like that. Unless its already in the database, again, ive never seen the source.
Lol I see what you're saying.
And yeah I'll do that right now.
And regular players usually start in Birth Village.
11/16/2009 16:55 Korvacs#6
Quote:
Originally Posted by Tiku View Post
Lol I see what you're saying.
And yeah I'll do that right now.
And regular players usually start in Birth Village.
I just realised what you meant by "Only Gms and Pms can use it", sorry i thought you meant that your npc is just for gms and pms, i understand now :)
11/16/2009 16:59 Arcо#7
Quote:
Originally Posted by Korvacs View Post
I just realised what you meant by "Only Gms and Pms can use it", sorry i thought you meant that your npc is just for gms and pms, i understand now :)
Haha alrighty then.
Well thanks for the input:]
11/16/2009 18:06 MexicanoCoder#8
Nice release keep it up :P
11/16/2009 22:11 #*=DarkAngeL=*##9
CoMy = Fail.........
Normal LOTF is better
But good work :D
11/16/2009 22:16 MexicanoCoder#10
Quote:
Originally Posted by #*=DarkAngeL=*# View Post
CoMy = Fail.........
Normal LOTF is better
But good work :D
Yeah CoMy does fail
11/16/2009 22:43 .Guru#11
you know man, instead you could (upon registering on the site) provide a character type selection option (ex. tro/war/arch/tao/nin) and just modify the php to insert it into the character table so that character creation isn't even needed.
11/16/2009 23:52 Arcо#12
Quote:
Originally Posted by Prot0type View Post
you know man, instead you could (upon registering on the site) provide a character type selection option (ex. tro/war/arch/tao/nin) and just modify the php to insert it into the character table so that character creation isn't even needed.
Yeah but I'm not gonna go through some work for something I'm never going to use. Lol especially since I don't know much about php.