Register for your free account! | Forgot your password?

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

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

Advertisement



[Help] Couple questions.. mostly about npcs

Discussion on [Help] Couple questions.. mostly about npcs within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
[Help] Couple questions.. mostly about npcs

Alright i got a couple questions for ya...

1. When you code npcs' you base the case number on their npc type which will make that code for every npc for w/ that type.

How do you make it so it's for only 1 npc of that kind.. Like im making 2 arena guards 1 for pk arena 2 for TC pk map and BI pk map... I need to make Number 2 seperate but still the same npc.

If you cant just tell me i need to look in the list and find another one...

2.How do you add new portals? I know that some portals are already in some maps but just dont have a location to teleport but i wanna add a whole new one..

3. what the code for npc adding items and please put how you add it... Its confusing for me x.x

That should be about it for right now I will add more later if i need to
n0mansland is offline  
Old 06/17/2009, 22:52   #2
 
elite*gold: 0
Join Date: Oct 2007
Posts: 116
Received Thanks: 16
idk
quadruple1 is offline  
Old 06/17/2009, 23:58   #3
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
I'm guessing this is for CoEmu v2...

1. All NPCs have their own unique ID. The case would be this unique ID.
I think you were thinking of the Mesh ID, which is what they look like.

2. In the database, go to the portals table. Add the correct values in.
(Note: This will not add a new blue portal thing on the map, this is just for existing ones)

3. Search around, this has been covered.
kinshi88 is offline  
Thanks
1 User
Old 06/17/2009, 23:58   #4
 
CIRASH's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 259
Received Thanks: 73
yes again im back. I'll try to help you. First off for jail npcs just make 2 number 2 npcs have a different case in your database. IDK if it works but i believe it will.

tell me what you want them to say or post what you have and ill try to make it work.
CIRASH is offline  
Thanks
1 User
Old 06/17/2009, 23:59   #5
 
CIRASH's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 259
Received Thanks: 73
yes again im back. I'll try to help you. First off for jail npcs just make 2 number 2 npcs have a different case in your database. IDK if it works but i believe it will.

tell me what you want them to say or post what you have and ill try to make it work.
CIRASH is offline  
Old 06/18/2009, 01:03   #6
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
#CIRASH Alright my pk arena dude already has text (ArenaGuard)

now im making another one to take players to Pk maps

I'll make the code and put it up here so it makes your life easier

Code:
                case 10021: // ArenaGuard 2
                    {
                        if (LinkBack == 0)
                        {
                            Text("I can take you to amazing PK maps of Twin City or Bird Island. In this area you will not lose", CSocket);
                            Text(" equipped items or get any PK Points. In there is an NPC that will supply you with Health and Mana Potions but I will have to fee 100,000 Gold.", CSocket);
                            Link("Take me to the Twin City PK Map!", 1, CSocket);
                            Link("Take me to the Bird Island PK Map!", 2, CSocket);
                            Link("I'm fine where I am.", 255, CSocket);
                            End(CSocket);
                        }
                        else if (LinkBack == 1)
                        {
                            if (CSocket.Client.Money >= 100000)
                            {
                                Teleport(1505, 163, 227, 0, CSocket);
                                Money(-100000, CSocket);
                            }
                            else if (LinkBack == 2)
                            {
                                if (CSocket.Client.Money >= 100000)
                                {
                                    Teleport(1507, 89, 113, 0, CSocket);
                                    Money(-100000, CSocket);
                                }
                            }
                            break;
                        }
                    }
#kinshi88

Thanks but I already know how to set coords for it i was wondering if it was possible to add the blue thing
n0mansland is offline  
Old 06/18/2009, 01:21   #7
 
CIRASH's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 259
Received Thanks: 73
Okay illwork on it now =]

edit: Where do you want this npc to be? gimme coords and everything
CIRASH is offline  
Old 06/18/2009, 01:34   #8
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
ok i want it to be

1002 427 257 (TC)

k once you have it done i will look at it and figure it out to use it for the npcs that give free pots
n0mansland is offline  
Old 06/18/2009, 01:44   #9
 
CIRASH's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 259
Received Thanks: 73
ok this shouldnt take long xD
CIRASH is offline  
Old 06/18/2009, 01:48   #10
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
ok thanks
n0mansland is offline  
Old 06/18/2009, 02:02   #11
 
CIRASH's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 259
Received Thanks: 73
Hmm, I actually couldnt get this working man. It's gonna annoy me. if i fix it ill be sure to tell you
CIRASH is offline  
Old 06/18/2009, 02:18   #12
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
alright thanks brb
n0mansland is offline  
Old 06/18/2009, 03:35   #13
 
CIRASH's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 259
Received Thanks: 73
Hey i fixed it =] something was wrong with your money statements or sumtin

use this

Code:
                case 956: // ArenaGuard
                    {
                        if (LinkBack == 0)
                        {
                            Text("I can take you to amazing PK maps of Twin City or Bird Island. In this area you will not lose", CSocket);
                            Text(" equipped items or get any PK Points. In there is an NPC that will supply you with Health and Mana Potions but I will have to fee 100,000 Gold.", CSocket);
                            Link("Take me to the Twin City PK Map!", 1, CSocket);
                            Link("Take me to the Bird Island PK Map!", 2, CSocket);
                            Link("I'm fine where I am.", 255, CSocket);
                            End(CSocket);
                        }
                        else if (LinkBack == 1)
                        {
                            Teleport(1505, 163, 227, 0, CSocket);
                        }
                        else if (LinkBack == 2)
                        {
                            {
                                Teleport(1507, 89, 113, 0, CSocket);
                            }

                        }
                        break;
                    }

you know how to add an npc since i h believe i helped you with it be4 xD
and just use 956 as npctype and 588 as your NPCid
CIRASH is offline  
Thanks
1 User
Old 06/18/2009, 05:01   #14
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
Thanks for fixing it but howd you get it as a seperate NPC? im looking at it and i dont see how you came up with it

EDIT what about subtype
n0mansland is offline  
Reply


Similar Threads Similar Threads
couple questions
11/04/2009 - EO PServer Hosting - 1 Replies
1. i got a pserver running. then i tried to run accserver again and it fails..... any idea on fixing that.. ive uninstalled everything to do with my server reinstalled and it still wont work..... 2. how do i get the totems working?cool to have 100 stars n be a king lol no totems for my demon tho so i cant level up legion.... 3.anybody know how i can get the god quests? like divine path.... thanks guys _________________
[Help] Couple questions.. about npcs..
07/02/2009 - CO2 Private Server - 3 Replies
Im using CoEmu Hey just a couple questions for some codes before I release a new source :) Just questions about the remaining npcs' 1. If I was making Guild Director, guy what would the line be for Save Guild... Also if you make someone Deputy what would you put to save that spot.. (Guild seems too much of a hassle and probably won't put it in) 2. Anyone know the furniture NPC's Sub Type numbers? Like what they look like, It's not in npc.ini. 3. What would you put to add socket...
[HELP]Just a couple of questions
05/21/2009 - CO2 Private Server - 5 Replies
what is a static ip and how do i get one? if i made a new item fo rmy server does the image have to be saved as dds? How ot make a Gold cup? like whats the UID for talismans? More to come*
Couple o Questions
12/05/2006 - Conquer Online 2 - 2 Replies
First of is it just a prob for me or every1 is experenceing it, did elitepvpers take out the conquer Hacks section or what \and secondly does any1 have a med lvlers? thanks for info
Couple of questions
01/20/2006 - Conquer Online 2 - 0 Replies
Are the memory address the same in CO2 for Stam, HP and Mana as they where in CO1.0? If not what are they, or do I have to fiund them myself >:o ? Has anyone found a way to find a player on the current screen (as in mouse co-ords)? Reason I ask is cause I am thinking of writing an app for my Miner, so when he gets PKed, it logs in my water and revs him, closes the client my water is logged into then continues mining on my Miner client. I could do it with a set mouse position, but then...



All times are GMT +1. The time now is 18:56.


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.