Register for your free account! | Forgot your password?

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

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

Advertisement



[help] i tryed to add a new npc but ehh failed:P

Discussion on [help] i tryed to add a new npc but ehh failed:P within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
xellios's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 310
Received Thanks: 13
[help] i tryed to add a new npc but ehh failed:P

I was never good with MYSQL but i cant add my coded npc??.
If someone can give me a lil .sql file with my npc in it i would be really happy.

case 10997: // Hell teleporter
{
if (LinkBack == 0)
{
Text("Hello I can help you train after you reach level 130,\n But I will charge you 3,000 cps.\n Would you like to go to Hell?", CSocket);
Link("Yes Please, Here are the cps", 1, CSocket);
Link("No Thank you I cannot afford it.", 255, CSocket);
End(CSocket);
}
else if (LinkBack == 1)
{
if (CSocket.Client.CPs >= 3000)
{
Teleport(2021, 219, 215, 0, CSocket);
CPs(-3000, CSocket);
}
else
{
Text("You dont have 3,000 cps!!", CSocket);
Link("I'm sorry, I forgot it.", 255, CSocket);
End(CSocket);
}
}
break;
}

THX!!!
xellios is offline  
Old 06/20/2009, 13:39   #2
 
elite*gold: 0
Join Date: Jun 2009
Posts: 33
Received Thanks: 3
Quote:
Originally Posted by xellios View Post
case 10997: // Hell teleporter
{
if (LinkBack == 0)
{
Text("Hello I can help you train after you reach level 130,\n But I will charge you 3,000 cps.\n Would you like to go to Hell?", CSocket);
Link("Yes Please, Here are the cps", 1, CSocket);
Link("No Thank you I cannot afford it.", 255, CSocket);
End(CSocket);
}
else if (LinkBack == 1)
{
if (CSocket.Client.CPs >= 3000)
{
CPs(-3000, CSocket);
Teleport(2021, 219, 215, 0, CSocket);
}
else
{
Text("You dont have 3,000 cps!!", CSocket);
Link("I'm sorry, I forgot it.", 255, CSocket);
End(CSocket);
}
}
break;
}
I switched the CPs(-3000) to the top, maybe itl work now.

By the way, what npc is that?
Akarama is offline  
Old 06/20/2009, 13:52   #3
 
xellios's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 310
Received Thanks: 13
Quote:
Originally Posted by Akarama View Post
I switched the CPs(-3000) to the top, maybe itl work now.

By the way, what npc is that?
it teleports you to hell made it myself though its not hard either

@MY problem is that i spawned it but it doesnt work it uses the default "Dialog is not coded" when the code is there?
xellios is offline  
Old 06/20/2009, 14:08   #4
 
elite*gold: 0
Join Date: Jun 2009
Posts: 33
Received Thanks: 3
Quote:
Originally Posted by xellios View Post
it teleports you to hell made it myself though its not hard either

@MY problem is that i spawned it but it doesnt work it uses the default "Dialog is not coded" when the code is there?
Tell me what npc it is.
maybe i can help you from there.
Akarama is offline  
Old 06/20/2009, 14:19   #5
 
xellios's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 310
Received Thanks: 13
Quote:
Originally Posted by Akarama View Post
Tell me what npc it is.
maybe i can help you from there.
Cant you read that? HELL TELEPORTER IT TELEPORTS YOU TO HEL!!!!:P:P
Anyways i sended you a PM.
xellios is offline  
Old 06/20/2009, 18:48   #6
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
here follow by this

NPCID = Any non taken number in MySQL

NPC Type = Any non taken number in MySQL (Case ID also)

SubType = What npc looks like (conquer folder/ini/npc.ini find what you want and add a 0 after that number)

Then put the map you want him in and the coords and put notnpctype = 2

if you need help just post
n0mansland is offline  
Old 06/20/2009, 21:29   #7
 
WHITELIONX's Avatar
 
elite*gold: 0
Join Date: Apr 2006
Posts: 534
Received Thanks: 66
Why not just use a current npc? I had a similar problem with rb guy but I just used Eternity case number and moved Eternity into market from AC and it worked no problems

case 10997: // Hell teleporter <<<---Change the case number to an npc that exists and you do not use?

Example
case 300500: /* Eternity Corrections would be appreciated since i am still learning how to code C Sharp */
{
if (LinkBack == 0)
{
Text("Would you like to be reborn? You need to be level 120 or higher to reborn.", CSocket);
Link("1st rb", 1, CSocket);
Link("2nd rb", 2, CSocket);
Link("No thanks", 225, CSocket);
End(CSocket);

}
else if (LinkBack == 1)

The case number was different originally so I found Eternity in AC checked the case numbers and changed case number to Eternities case number and changed name, I am unsure as to whether changing the actual npcs name makes a difference?
WHITELIONX is offline  
Reply


Similar Threads Similar Threads
? I tryed all the stuff i could find.
08/14/2009 - 12Sky2 - 10 Replies
Hey i have question i can only get a few things to work for areia 12 sky2. I can get cheat engine to work usein speed and attack speed. And i can get the single program for autopill 2 work. All the others like aio and bots i tryed never work and i read and did everything in the read only area. And use the cofig list and even tryed experminting but not 1 works for me. But obiously im a noob lol.
Someone had tryed this?
06/30/2009 - Cabal Online - 3 Replies
Someone had tryed wear an item (helm, gloves....) that can only wear a character (like shadowtitaniums items) with something in the slot an the cheat that can be another character?....How can explain me....If you are a blader and found an armour shadowtit with "2slot item drop", then make with cheat engine the trick that can change your character and wear this armour. I know that is a question, but is an idea too.
i cannot do it i tryed,could somebody help me?
05/07/2009 - Conquer Online 2 - 5 Replies
i have a CO server,and im at the beggining,its 5017,some players jump in a portal and the screen remains black,or the server is frozzing,i fallowd some tutorials,but it didnt help,could somebody use a TeamViewer to help me please? the server stuff is searious,i allready buyd a domain and have dual a MuOnline server,i search a gm on the CO btw,so who is interested [email protected] Please help me guys,post here,im sorry if i brake any rule The players jump in holes to warp in other...
i tryed everything now i am asking for help
11/30/2007 - Silkroad Online - 0 Replies
ok i set up tbot everything works right then he gos to the boting area then doesn't kill anything WtF:mad:
honestly i've must of tryed EVERYING
03/04/2007 - Conquer Online 2 - 1 Replies
i tryed everything at least 3 times to crack sv step by step. i don't know how to and i tryed i really have. now i'm asking for help, i have porvited pictures to help you help me step by step of what i have done. my sv has been roken for a long time and i can't auto-pot with bobo's. but , help would be very much welcomed. sorry for my bad spelling my rigth hand is broken. http://i123.photobucket.com/albums/o282/TehRubber Chicken/1.jpg...



All times are GMT +1. The time now is 21:41.


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.