|
You last visited: Today at 18:55
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.
06/17/2009, 22:39
|
#1
|
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
|
|
|
06/17/2009, 22:52
|
#2
|
elite*gold: 0
Join Date: Oct 2007
Posts: 116
Received Thanks: 16
|
idk
|
|
|
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.
|
|
|
06/17/2009, 23:58
|
#4
|
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.
|
|
|
06/17/2009, 23:59
|
#5
|
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.
|
|
|
06/18/2009, 01:03
|
#6
|
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
|
|
|
06/18/2009, 01:21
|
#7
|
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
|
|
|
06/18/2009, 01:34
|
#8
|
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
|
|
|
06/18/2009, 01:44
|
#9
|
elite*gold: 0
Join Date: Jul 2008
Posts: 259
Received Thanks: 73
|
ok this shouldnt take long xD
|
|
|
06/18/2009, 01:48
|
#10
|
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
|
ok thanks
|
|
|
06/18/2009, 02:02
|
#11
|
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
|
|
|
06/18/2009, 02:18
|
#12
|
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
|
alright thanks brb
|
|
|
06/18/2009, 03:35
|
#13
|
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
|
|
|
06/18/2009, 05:01
|
#14
|
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
|
|
|
 |
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.
|
|