Register for your free account! | Forgot your password?

You last visited: Today at 08:59

  • 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   #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   #3
 
elite*gold: 0
Join Date: Jun 2010
Posts: 258
Received Thanks: 102
okay thank you
sohaib is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
*NEW CODING ART!!!..........:::::~WhiteLight D3D~:::::..........*NEW CODING ART!!!
http://250kb.de/u/100911/p/m4buevNCZhoQ.PNG Download: Multiupload.com - upload your files to multiple file hosting sites! VirusScan: VirusTotal -...
25 Replies - WarRock Hacks, Bots, Cheats & Exploits
Uce Coding+ winhex coding
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
8 Replies - Dekaron



All times are GMT +1. The time now is 08:59.


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

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