Npc adding and Coding

06/06/2010 21:39 sohaib#1
hi, i made a conquer private server version 5165, but i'm trying to add new npcs and edit them work

i added a new npc in npc.txt

183 1086 16 0 1036 230 181

i found him in the server, but he hassn't a work, so i haveto code him

i found some guids in the forum like this:

PHP Code:
#region TestNPC
                            
case 300007:
                                {
                                    if (
Control == 0)
                                    {
                                        
GC.AddSend(Packets.NPCSay("Hi Would You Like To Turn Your CPs To Silvers?"));
                                        
GC.AddSend(Packets.NPCLink("Yes Please!"1));
                                        
GC.AddSend(Packets.NPCLink("No Thanks."255));
                                        
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        
GC.AddSend(Packets.NPCFinish());
                                    }
                                    if (
Control == 1)
                                    {
                                        if (
GC.MyChar.CPs >= 1)
                                        {
                                            
GC.MyChar.CPs -= 1;
                                            
GC.MyChar.Silvers += 1000000;
                                            
GC.AddSend(Packets.NPCSay("There Hapy Now?"));
                                            
GC.AddSend(Packets.NPCLink("Yes, Very."255));
                                            
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            
GC.AddSend(Packets.NPCFinish());
                                        } 
                                        else
                                        {
                                            
GC.AddSend(Packets.NPCSay("Ok Maybe Next Time!"));
                                            
GC.AddSend(Packets.NPCLink("Alright alright."255));
                                            
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            
GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    break;
                                }
                            
#endregion 


but i don't know what to do with this, or where i put it

here is my source to know more: [Only registered and activated users can see links. Click Here To Register...]


please help me, and here is my email too: [Only registered and activated users can see links. Click Here To Register...]




please guys,i have some scripts and scripts are not a problem, i want only to know what i do with those scripte and where i put them


thank you
06/06/2010 21:41 Arcо#2
Check the 5165 faq thread.
Alot of questions can be answered there.
06/07/2010 08:55 sohaib#3
okay thank you