Register for your free account! | Forgot your password?

You last visited: Today at 11:50

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

Advertisement



[Help] Npc

Discussion on [Help] Npc within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2007
Posts: 69
Received Thanks: 3
[Help] Npc

This isnt a post saying can someone do all my work for me, in regards to the database for npc adding. Any chance someone can post a link or post a tutorial on how to do that, maybe not saying here just duplicate what ive done, but possibly giving definitions so to speak for each aspect we'd need to do so.

For instance we all know MapID in the database is for determining which map it goes on, the x y coordinates and such, and to some extent NPCType, Subtype etc, etc. Pretty much something to LEARN rather than duplicate. So the ones who want to learn how to do things can, rather than having to mooch off society.
Illustria is offline  
Old 09/22/2009, 04:00   #2
 
elite*gold: 20
Join Date: Jul 2007
Posts: 613
Received Thanks: 486
Source? and do u just need the NPC table vars or the whole DB tables?
samehvan is offline  
Old 09/22/2009, 12:32   #3
 
elite*gold: 0
Join Date: Sep 2009
Posts: 249
Received Thanks: 17
I see this might be for LOTF

Code:
  	UID  	= A number that defines the NPC, NO NPC CAN HAVE THE SAME UID THIS WILL CAUSE MAJOR PROBLEMS AND THE SQL WILL MOST LIKELY NOT ALLOW IT!
	Type = A number that defines the NPCs Model, I will not go to what part of the number means what but lest just say the whole number is the model of the NPC
	Name = A string that defines the NPCs Name, This is not the name you see in game, that is defined in npc.ini in your client.	
	Flags = This is in your source defined what each flag does most times its 2 for normal , 1 for shop and some others for different things such as shopflags, poles and non-talkable npcs.
	Direction = The direction that your NPC faces.
	X = The x coordinate on the map you chose your npc to be.
	Y = The y coordinate on the map you chose your npc to be.
	Map = The map your npc will be on. ( MUST BE A NUMBER SUCH AS 1002 )
	SobType = This is defined in your source, I will add on a list of sobtypes which you put the type for that and put sobtype 1 and they will appear on your server.
Here is the list
Code:
Lamp- 10
Furniture1- 20
Closet- 30
Furniture2 - 40
Drawer- 50
Closet2- 60
Closet3- 70
Frame- 80
MirrorDesk- 90
MiniToilet- 100
Chair- 110
Table- 120
Weee- 130
HugeRock- 140
SoldierStatue- 150
SabertoothStatue- 160
GreenDragonStatue- 170
TurtleDragonStatue- 180
WingedDragonStatue- 190
Greenball- 200
DragonFountain- 210
Swing- 220
PoweredFan- 230
RightGate- 240
LeftGate- 250
LeftGate2- 270
RightGate2- 280
PumpkinCarl- 360
PumpkinLina- 370
ChristmasTree- 380
ChristmasTree2- 390
ChristmasTree3- 400
SnowMan- 410
PumpkinYork- 420
PumpkinBelaid- 430
PumpkinEvan- 440
PumpkinBill- 450
PumpkinEric- 460
PumpkinLarry- 470
PumpkinLazear- 480
PumpkinLucky- 490
PumpkinMars- 500
PumpkinHaddon- 510
PumpkinLena- 520
PumpkinBurke- 530
ColorfulChristmasTree- 540
MiniTree- 550
MediumTree- 560
Wreath- 570
Wreath2- 580
Wreath3- 590
Wreath4- 600
Jack-o-Lantern- 610
Empty Project is offline  
Old 09/23/2009, 02:08   #4
 
elite*gold: 0
Join Date: Apr 2007
Posts: 69
Received Thanks: 3
Sorry i was away for a few days, coemu v2 nano.

Basically theres the tables for tqnpc's and npcs and another i cant recall at the moment through those i managed to place the npc on the map however they dont respond when clicked, i figure i need to learn the table functions and purposes to properly place the npcs and have them functioning, i have their codes already.
Illustria is offline  
Old 09/23/2009, 03:12   #5
 
12tails's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 773
Received Thanks: 441
Code:
Flags = 0, 1, 2
if i'm not wrong Flags = 1 is for Shop npcs and Flags = 2 is for talk npcs.... try it!
12tails is offline  
Old 09/23/2009, 03:49   #6
 
elite*gold: 0
Join Date: Apr 2007
Posts: 69
Received Thanks: 3
Quote:
Originally Posted by samehvan View Post
Source? and do u just need the NPC table vars or the whole DB tables?
Quote:
Originally Posted by 12tails View Post
Code:
Flags = 0, 1, 2
if i'm not wrong Flags = 1 is for Shop npcs and Flags = 2 is for talk npcs.... try it!
Ahhhh awesome thanks, that will come in handy but for some odd reason even if i set the flag as 2 a shop tries to appear.

Anyone also happen to know the map id for meteor zone... or atleast the name so i could find it myself ^_^
Illustria is offline  
Old 09/23/2009, 08:30   #7
 
elite*gold: 20
Join Date: Jul 2007
Posts: 613
Received Thanks: 486
just edit the defaults for flags =0 and Direction=2 and u r done

Meteor zone=1210
samehvan is offline  
Reply




All times are GMT +2. The time now is 11:50.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.