|
You last visited: Today at 03:48
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.
06/02/2009, 21:53
|
#1
|
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
|
|
|
06/02/2009, 21:58
|
#2
|
elite*gold: 0
Join Date: Jun 2007
Posts: 323
Received Thanks: 30
|
Go check the level command.
|
|
|
06/02/2009, 22:00
|
#3
|
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...
|
|
|
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.
|
|
|
06/02/2009, 22:08
|
#5
|
elite*gold: 0
Join Date: Sep 2007
Posts: 370
Received Thanks: 117
|
how i can use inside command on NPC?
|
|
|
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 =]
|
|
|
06/02/2009, 22:35
|
#7
|
elite*gold: 0
Join Date: Sep 2007
Posts: 370
Received Thanks: 117
|
thanks that work!!
|
|
|
06/02/2009, 22:45
|
#8
|
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
|
|
|
06/03/2009, 01:31
|
#9
|
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
|
Learn to indent.
|
|
|
06/03/2009, 01:40
|
#10
|
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..
|
|
|
06/03/2009, 07:31
|
#11
|
elite*gold: 0
Join Date: Sep 2007
Posts: 370
Received Thanks: 117
|
Quote:
Originally Posted by Undress My Shadow
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?
|
|
|
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.
|
|