Register for your free account! | Forgot your password?

You last visited: Today at 09:00

  • Please register to post and access all features, it's quick, easy and FREE!


Npc adding and Coding

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2010
Posts: 258
Received Thanks: 102
Npc adding and Coding

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:


please help me, and here is my email too:




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



sohaib is offline  
Old 06/06/2010, 21:41   #2
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,740
Received Thanks: 5,268
Check the 5165 faq thread.
Alot of questions can be answered there.


Arcо is offline  
Thanks
1 User
Old 06/07/2010, 08:55   #3
 
elite*gold: 0
Join Date: Jun 2010
Posts: 258
Received Thanks: 102
okay thank you
sohaib is offline  
Reply



« Help: to make new effect | [Request] How to make a wishes tree »

Similar Threads
*NEW CODING ART!!!..........:::::~WhiteLight D3D~:::::..........*NEW CODING ART!!!
09/21/2010 - WarRock Hacks, Bots, Cheats & Exploits - 25 Replies
http://250kb.de/u/100911/p/m4buevNCZhoQ.PNG Download: Multiupload.com - upload your files to multiple file hosting sites! VirusScan: VirusTotal - Free Online Virus, Malware and URL Scanner Funktionen: SuperJump Teleport NoSpread NoRecoil
Uce Coding+ winhex coding
03/05/2009 - Dekaron - 8 Replies
i was just wondering is it true if u do coding with winhex is it less dc?? tats all cuz uce coding dcs me alot



All times are GMT +2. The time now is 09:00.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.