|
You last visited: Today at 11:00
Advertisement
[Request] NPC gives Exp
Discussion on [Request] NPC gives Exp within the CO2 Private Server forum part of the Conquer Online 2 category.
08/06/2009, 17:47
|
#1
|
elite*gold: 0
Join Date: Jul 2009
Posts: 27
Received Thanks: 0
|
[Request] NPC gives Exp
Can someone make a code that NPC give exp... Please. Thanks.
|
|
|
08/06/2009, 19:25
|
#2
|
elite*gold: 0
Join Date: Aug 2007
Posts: 310
Received Thanks: 13
|
= Source?
|
|
|
08/07/2009, 17:47
|
#3
|
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 99
|
Make an npc that gives you say..10 exp ***** worth of Exp for LOTF.
|
|
|
08/07/2009, 18:05
|
#4
|
elite*gold: 0
Join Date: Aug 2006
Posts: 323
Received Thanks: 14
|
Quote:
Originally Posted by Jay1029
Make an npc that gives you say..10 exp balls worth of Exp for LOTF.
|
Code:
if (CurrentNPC == 1234)
{
SendPacket(General.MyPackets.NPCSay("Hello, you want some exp?"));
SendPacket(General.MyPackets.NPCLink("Yes please!", 1));
SendPacket(General.MyPackets.NPCLink("Get a job.", 255));
SendPacket(General.MyPackets.NPCSetFace(1));
SendPacket(General.MyPackets.NPCFinish());
}
if (CurrentNPC == 1234)
{
if (Control == 1)
{
if (Level < 100)
AddExp((ulong)(1295000 + Level * 500000), false);
else if (Level < 110)
AddExp((ulong)(1395000 + Level * 800000), false);
else if (Level < 115)
AddExp((ulong)(1595000 + Level * 1000000), false);
else if (Level < 120)
AddExp((ulong)(1895000 + Level * 1200000), false);
else if (Level < 125)
AddExp((ulong)(2095000 + Level * 1500000), false);
else if (Level < 130)
AddExp((ulong)(2395000 + Level * 1800000), false);
else if (Level < 135)
AddExp((ulong)(2895000 + Level * 2000000), false);
SendPacket(General.MyPackets.NPCSay("There you go."));
SendPacket(General.MyPackets.NPCLink("Thanks!", 255));
SendPacket(General.MyPackets.NPCSetFace(1));
SendPacket(General.MyPackets.NPCFinish());
}
}
First part is Talk second is Do.
|
|
|
08/07/2009, 22:01
|
#5
|
elite*gold: 0
Join Date: Jun 2008
Posts: 80
Received Thanks: 7
|
Killermickle... its a nice code xD!
|
|
|
08/09/2009, 05:23
|
#6
|
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 99
|
Yeah that is a nice code. I'm sure anyone with some decent knowledge of C# could make it work. At the moment it gives errors =p
|
|
|
08/09/2009, 11:58
|
#7
|
elite*gold: 0
Join Date: Aug 2006
Posts: 323
Received Thanks: 14
|
Quote:
Originally Posted by Jay1029
Yeah that is a nice code. I'm sure anyone with some decent knowledge of C# could make it work. At the moment it gives errors =p
|
Im assuming you're putting it in wrong.
case 2031:
Code:
if (CurrentNPC == 1234)
{
SendPacket(General.MyPackets.NPCSay("Hello, you want some exp?"));
SendPacket(General.MyPackets.NPCLink("Yes please!", 1));
SendPacket(General.MyPackets.NPCLink("Get a job.", 255));
SendPacket(General.MyPackets.NPCSetFace(1));
SendPacket(General.MyPackets.NPCFinish());
}
case 2032:
Code:
if (CurrentNPC == 1234)
{
if (Control == 1)
{
if (Level < 100)
AddExp((ulong)(1295000 + Level * 500000), false);
else if (Level < 110)
AddExp((ulong)(1395000 + Level * 800000), false);
else if (Level < 115)
AddExp((ulong)(1595000 + Level * 1000000), false);
else if (Level < 120)
AddExp((ulong)(1895000 + Level * 1200000), false);
else if (Level < 125)
AddExp((ulong)(2095000 + Level * 1500000), false);
else if (Level < 130)
AddExp((ulong)(2395000 + Level * 1800000), false);
else if (Level < 135)
AddExp((ulong)(2895000 + Level * 2000000), false);
SendPacket(General.MyPackets.NPCSay("There you go."));
SendPacket(General.MyPackets.NPCLink("Thanks!", 255));
SendPacket(General.MyPackets.NPCSetFace(1));
SendPacket(General.MyPackets.NPCFinish());
}
}
|
|
|
08/09/2009, 18:22
|
#8
|
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 99
|
Nope that's what I did. Maybe my source is coded differently idk
|
|
|
08/09/2009, 18:25
|
#9
|
elite*gold: 0
Join Date: Aug 2006
Posts: 323
Received Thanks: 14
|
Quote:
Originally Posted by Jay1029
Nope that's what I did. Maybe my source is coded differently idk
|
Sorry thats my fault, I should have tried it first.
Code:
if (CurrentNPC == 1234)
{
if (Control == 1)
{
if (MyChar.Level < 100)
MyChar.AddExp((ulong)(1295000 + MyChar.Level * 500000), false);
else if (MyChar.Level < 110)
MyChar.AddExp((ulong)(1395000 + MyChar.Level * 800000), false);
else if (MyChar.Level < 115)
MyChar.AddExp((ulong)(1595000 + MyChar.Level * 1000000), false);
else if (MyChar.Level < 120)
MyChar.AddExp((ulong)(1895000 + MyChar.Level * 1200000), false);
else if (MyChar.Level < 125)
MyChar.AddExp((ulong)(2095000 + MyChar.Level * 1500000), false);
else if (MyChar.Level < 130)
MyChar.AddExp((ulong)(2395000 + MyChar.Level * 1800000), false);
else if (MyChar.Level < 135)
MyChar.AddExp((ulong)(2895000 + MyChar.Level * 2000000), false);
SendPacket(General.MyPackets.NPCSay("There you go."));
SendPacket(General.MyPackets.NPCLink("Thanks!", 255));
SendPacket(General.MyPackets.NPCSetFace(1));
SendPacket(General.MyPackets.NPCFinish());
}
}
|
|
|
08/09/2009, 18:46
|
#10
|
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 99
|
There you go =) Nice work.
|
|
|
08/10/2009, 21:06
|
#11
|
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 99
|
Hey bro I got a question. I added something so that players above level 70 can not receive Exp. When I'm in the game it still gives me Exp although I'm above level 70. The NPC also keeps saying "Sorry this is only for players below level 70. To help them." Over and over every time I click "Oh, my bad" It says it again. I'm pretty sure everything is right too. Please have a look.
Code:
if (CurrentNPC == 1235)
{
if (Control == 1)
{
if (MyChar.Level < 100)
MyChar.AddExp((ulong)(1295000 + MyChar.Level * 1000000), false);
else if (MyChar.Level < 110)
MyChar.AddExp((ulong)(1395000 + MyChar.Level * 1600000), false);
else if (MyChar.Level < 115)
MyChar.AddExp((ulong)(1595000 + MyChar.Level * 2000000), false);
else if (MyChar.Level < 120)
MyChar.AddExp((ulong)(1895000 + MyChar.Level * 2400000), false);
else if (MyChar.Level < 125)
MyChar.AddExp((ulong)(2095000 + MyChar.Level * 3000000), false);
else if (MyChar.Level < 130)
MyChar.AddExp((ulong)(2395000 + MyChar.Level * 3600000), false);
else if (MyChar.Level < 135)
MyChar.AddExp((ulong)(2895000 + MyChar.Level * 4000000), false);
SendPacket(General.MyPackets.NPCSay("There you go."));
SendPacket(General.MyPackets.NPCLink("Thanks!", 255));
SendPacket(General.MyPackets.NPCSetFace(1));
SendPacket(General.MyPackets.NPCFinish());
}
if (MyChar.Level >= 70)
{
SendPacket(General.MyPackets.NPCSay("Sorry this is only for players to level 70 or below. To help them out."));
SendPacket(General.MyPackets.NPCLink("Oh, my bad.", 255));
SendPacket(General.MyPackets.NPCSetFace(1));
SendPacket(General.MyPackets.NPCFinish());
}
}
|
|
|
08/11/2009, 12:13
|
#12
|
elite*gold: 0
Join Date: Aug 2006
Posts: 323
Received Thanks: 14
|
Quote:
Originally Posted by Jay1029
Hey bro I got a question. I added something so that players above level 70 can not receive Exp. When I'm in the game it still gives me Exp although I'm above level 70. The NPC also keeps saying "Sorry this is only for players below level 70. To help them." Over and over every time I click "Oh, my bad" It says it again. I'm pretty sure everything is right too. Please have a look.
|
Code:
if (CurrentNPC == 1235)
{
if (Control == 1)
{
if (MyChar.Level <= 70)
MyChar.AddExp((ulong)(1295000 + MyChar.Level * 1000000), false);
SendPacket(General.MyPackets.NPCSay("There you go."));
SendPacket(General.MyPackets.NPCLink("Thanks!", 255));
SendPacket(General.MyPackets.NPCSetFace(1));
SendPacket(General.MyPackets.NPCFinish());
}
if (MyChar.Level > 70)
{
SendPacket(General.MyPackets.NPCSay("Sorry this is only for players to level 70 or below. To help them out."));
SendPacket(General.MyPackets.NPCLink("Oh, my bad.", 255));
SendPacket(General.MyPackets.NPCSetFace(1));
SendPacket(General.MyPackets.NPCFinish());
}
}
|
|
|
08/11/2009, 20:45
|
#13
|
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 99
|
Bah! I should have been able to figure that out -.-
Thanks again dude =D
|
|
|
All times are GMT +1. The time now is 11:00.
|
|