HELP witch my code npc

06/02/2009 21:53 mejo33#1
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 Zanzibar#2
Go check the level command.
06/02/2009 22:00 mejo33#3
and? i need make a npc give lvl. i am know command for gm/pm...
06/02/2009 22:02 Zanzibar#4
Use what's inside the command and edit it a little bit, IE the level.
06/02/2009 22:08 mejo33#5
how i can use inside command on NPC?
06/02/2009 22:16 Zanzibar#6
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 mejo33#7
thanks that work!!
06/02/2009 22:45 mejo33#8
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 scottdavey#9
Learn to indent.
06/03/2009 01:40 Undress My Shadow#10
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 mejo33#11
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?