Register for your free account! | Forgot your password?

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

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

Advertisement



HELP witch my code npc

Discussion on HELP witch my code npc within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
mejo33's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 370
Received Thanks: 117
HELP witch my code npc

Hello, here is a NPC:
Quote:
#region FreeLevel
case 211091:
{
if (LinkBack == 0)
if (CSocket.Client.Level <= 130)
{

Text("Hello. I can give you for free 135 lvl. Do you want to get?", CSocket); //Remove one ) and add, CSocket
Link("Yes, please give me!", 1, CSocket);
Link("No, I dont need", 255, CSocket);
Face(30, CSocket);
End(CSocket);
}
else
{
Text("You have max level. Your level now: 130.", CSocket);
Link("Ok, thanks.", 255, CSocket);
Face(30, CSocket);
End(CSocket);
}
else if (LinkBack == 1)
{

Text("Your level be added. Your level now: 130.", CSocket);
Link("Ok, thanks.", 255, CSocket);
Face(30, CSocket);
End(CSocket);
}
break;
}
#endregion
I need to added in link 1, npc give lvl 130. Search for function thanks for up
mejo33 is offline  
Thanks
1 User
Old 06/02/2009, 21:58   #2
 
elite*gold: 0
Join Date: Jun 2007
Posts: 323
Received Thanks: 30
Go check the level command.
Zanzibar is offline  
Old 06/02/2009, 22:00   #3
 
mejo33's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 370
Received Thanks: 117
and? i need make a npc give lvl. i am know command for gm/pm...
mejo33 is offline  
Thanks
1 User
Old 06/02/2009, 22:02   #4
 
elite*gold: 0
Join Date: Jun 2007
Posts: 323
Received Thanks: 30
Use what's inside the command and edit it a little bit, IE the level.
Zanzibar is offline  
Old 06/02/2009, 22:08   #5
 
mejo33's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 370
Received Thanks: 117
how i can use inside command on NPC?
mejo33 is offline  
Thanks
1 User
Old 06/02/2009, 22:16   #6
 
elite*gold: 0
Join Date: Jun 2007
Posts: 323
Received Thanks: 30
Edit this
Code:
Socket.Client.Level = NewLevel;
                                                            CSocket.Client.Exp = 0;
                                                            CSocket.Send(ConquerPacket.Status(CSocket, 2, CSocket.Client.Level, Struct.StatusTypes.Level));
                                                            ConquerPacket.ToLocal(ConquerPacket.Effect(CSocket.Client.ID, "LevelUp"), CSocket.Client.X, CSocket.Client.Y, (int)CSocket.Client.Map, 0, 0);
If you don't know what to do, GTFO =]
Zanzibar is offline  
Thanks
1 User
Old 06/02/2009, 22:35   #7
 
mejo33's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 370
Received Thanks: 117
thanks that work!!
mejo33 is offline  
Thanks
1 User
Old 06/02/2009, 22:45   #8
 
mejo33's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 370
Received Thanks: 117
Npc 90% working! Realsed:
Quote:
#region FreeLevel
case 211091:
{
if (LinkBack == 0)
if (CSocket.Client.Level <= 130)
{

Text("Hello. I can give you for free 135 lvl. Do you want to get?", CSocket); //Remove one ) and add, CSocket
Link("Yes, please give me!", 1, CSocket);
Link("No, I dont need", 255, CSocket);
Face(30, CSocket);
End(CSocket);
}
else
{
Text("You have max level. Your level now: 130.", CSocket);
Link("Ok, thanks.", 255, CSocket);
Face(30, CSocket);
End(CSocket);
}
else if (LinkBack == 1)
if (CSocket.Client.Level <= 130)
{
CSocket.Client.Level = 130;
CSocket.Client.Strength = 300;
CSocket.Client.Dexterity = 300;
CSocket.Client.Spirit = 300;
CSocket.Client.Vitality = 300;
CSocket.Client.StatPoints = 50;
CSocket.Client.Exp = 0;
CSocket.Send(ConquerPacket.Status(CSocket, 2, CSocket.Client.Level, Struct.StatusTypes.Level));
ConquerPacket.ToLocal(ConquerPacket.Effect(CSocket .Client.ID, "LevelUp"), CSocket.Client.X, CSocket.Client.Y, (int)CSocket.Client.Map, 0, 0);
Text("Your level be added. Your level now: 130.", CSocket);
Link("Ok, thanks.", 255, CSocket);
Face(30, CSocket);
End(CSocket);
}
else
{
Text("You have max level. Your level now: 130.", CSocket);
Link("Ok, thanks.", 255, CSocket);
Face(30, CSocket);
End(CSocket);
}
break;
}
#endregion
I need add npc to give all prof weapon skill, for katana, club, sword, wand etc who want help me? thanks
mejo33 is offline  
Thanks
1 User
Old 06/03/2009, 01:31   #9
 
scottdavey's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
Learn to indent.
scottdavey is offline  
Old 06/03/2009, 01:40   #10
 
Undress My Shadow's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 57
Received Thanks: 30
i think its easier to just make the characters automaticly get 135 when they create a char just modify your database..
Undress My Shadow is offline  
Old 06/03/2009, 07:31   #11
 
mejo33's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 370
Received Thanks: 117
Quote:
Originally Posted by Undress My Shadow View Post
i think its easier to just make the characters automaticly get 135 when they create a char just modify your database..
Yes, i know. NPC give lvl 130 in test serevr leter make quest on leveling server he give 40 lvl for 20 gold ore rate 4 ^^
Any one cant help me?
mejo33 is offline  
Reply


Similar Threads Similar Threads
Ice Witch
07/16/2010 - Metin2 Private Server - 0 Replies
Does anyone have the mob_proto line (mysql) of the Ice Witch (atlantis boss)?
witch
02/10/2010 - Silkroad Online - 4 Replies
witch bots is working for rsro
PLs help me witch vac Thx :))
10/07/2009 - Dekaron - 5 Replies
hi guys i need some help i use this vack : but i losing moobs ;/ wall, gm hack, spedd, and more working good. only vac dont word pls help me sry 4 bad englisch alloc(newmem,2048) label(returnhere) label(originalcode) label(exit)



All times are GMT +1. The time now is 03:48.


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.