Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 04:01

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

Advertisement



[TUTORIAL]Making a NPC

Discussion on [TUTORIAL]Making a NPC within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
[TUTORIAL]Making a NPC

Idk if this has been made already but i wanted to contribute to Epvpers...

k heres where we start

Code:
                            if (CurrentNPC == [COLOR="SeaGreen"]NPCID[/COLOR])
                            {
                                SendPacket(General.MyPackets.NPCSay("[COLOR="DarkOrchid"]Here's where you put the NPC dialog[/COLOR]"));
                                SendPacket(General.MyPackets.NPCLink("[COLOR="Red"]BlahBlah[/COLOR]", [COLOR="Blue"]1[/COLOR]));
                                SendPacket(General.MyPackets.NPCLink("[COLOR="Red"]BlahBlah[/COLOR]", [COLOR="Magenta"]255[/COLOR]));
                                SendPacket(General.MyPackets.NPCSetFace(30));
                                SendPacket(General.MyPackets.NPCFinish());
                            }
This is your basic way of setting up an NPC.
The Magenta is the exit control. Control 255 is always the exit NPC dialog.
The Green is where you choose the NPC Id, make sure the ID isn't taken.
The Purple is the NPC Dialog. You choose the dialog.
The Red is an option.
The Blue is a Control Option.

Right here is gonna be based on what you want the NPC to do.
For this example the Npc is gonna teleport you to a random spot of TC.

Code:
                            if (CurrentNPC == [COLOR="SeaGreen"]NPCID[/COLOR])
                            {                                
                                if (Control == 1)
                                    MyChar.Teleport([COLOR="Navy"]1002, 430, 380[/COLOR]);
                            }
See now this is a control. Meaning the activations of the options.
This is the activation of Control 1 which if you look back in the NPC setup is BlahBlah and these are what would pop up after you click the 1st option.
Navy is the coordinates. 1002 is the Map ID, 430 is the X coordinate and 380 is the Y coordinate.
This is how to make a basic way of making an NPC but it would be different depending on what you want the NPC to do.
This is kinda nooby but its really basic.
Well hope this helps somebody.
Arcotemple:) is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
Tutorial on making GM account
12/20/2012 - Silkroad Online - 24 Replies
Can someone write up a step by step on how to edit the pk2 file with a hex editor that will allow you to make a GM account. Any help is appreciated.
[Tutorial]Making No Recoil
12/12/2009 - Soldier Front Hacks, Bots, Cheats & Exploits - 11 Replies
Hello, before making you very own anti recoil, you will need a few items. 1. SFF unpacker/packer by Revenger 2. Scr_001.sff All right, so when you have those, run the unpacker and find your SFF file. http://i31.tinypic.com/5pnbcz.jpg
[TUTORIAL] Making you own PRIVATESERVER
05/16/2009 - MapleStory - 45 Replies
NOTE: CREDITS GOES TO azzybish in Odin MS Forum What you need: mySQL mySQL Query Browser OdinMS.rar WampServer localhost.exe Java JDK 6 Update 10
[Tutorial]Making my notepad app beter
11/14/2008 - CO2 Programming - 0 Replies
In this tutorial I will show you how to extend your notepad app we created in my tutorial We will add some Menu items to the MenuStrip. The first Item will we a new Menu Drop Down called Format. In the format Drop Down Menu add a menu item called Word Wrap. Set the Checked Property to true, set the CheckOnClick Property to true. Now select the TextBox(txtBox) and set the WordWrap property to true. Now go back to the Format menu and add one more menu item call it Font. Drag a FontDialog...



All times are GMT +1. The time now is 04:02.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.