Sure. Start off with going to Client.cs,around line 1208,and paste this in there:
Quote:
if (CurrentNPC == 886)
{
SendPacket(General.MyPackets.NPCSay("Hey there," + MyChar.Name + "! I can let you enter the labirinth if you"));
SendPacket(General.MyPackets.NPCSay("can offer me 2000 of your virtue points. Intresed?"));
SendPacket(General.MyPackets.NPCLink("Yeah,please send me there!", 1));
SendPacket(General.MyPackets.NPCLink("I want to claim price for my 17 SunDiamonds", 2));
SendPacket(General.MyPackets.NPCLink("I want to claim price for my 17 MoonDiamonds", 3));
SendPacket(General.MyPackets.NPCLink("I want to claim price for my 17 StarDiamonds", 4));
SendPacket(General.MyPackets.NPCLink("No thanks,not yet.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (CurrentNPC == 887)
{
SendPacket(General.MyPackets.NPCSay("Oh,are you ready to go to stage two? To pass there,I want an SkyToken"));
SendPacket(General.MyPackets.NPCLink("I got SkyToken,now get me to stage two", 1));
SendPacket(General.MyPackets.NPCLink("No thanks,not yet.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (CurrentNPC == 888)
{
SendPacket(General.MyPackets.NPCSay("Ready for stage three? I want an EarthToken to let you enter."));
SendPacket(General.MyPackets.NPCLink("I got the token,let me in!", 1));
SendPacket(General.MyPackets.NPCLink("No thanks,not yet.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (CurrentNPC == 889)
{
SendPacket(General.MyPackets.NPCSay("Ready for stage four? The monsters here are strong,but I think you can handle them. Give me an ???? token and I let you in"));
SendPacket(General.MyPackets.NPCLink("Heres the token,now tele me there!", 1));
SendPacket(General.MyPackets.NPCLink("No thanks,not yet.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
Now go around line 3100,still in Client.cs. Paste this there:
Quote:
if (CurrentNPC == 886)
{
if (Control == 1)
{
if (MyChar.VP >= 2000)
MyChar.Teleport(1700, 607, 625);
MyChar.VP -= 2000;
}
}
if (Control == 2)
{
if (MyChar.InventoryContains(721533, 17))
MyChar.AddItem("1088001-0-0-0-0-0", 2, (uint)General.Rand.Next(99999999));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
SendPacket(General.MyPackets.NPCLink("Thank you for the two meteors", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 3)
{
if (MyChar.InventoryContains(721534, 17))
MyChar.AddItem("1088001-0-0-0-0-0", 4, (uint)General.Rand.Next(99999999));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
SendPacket(General.MyPackets.NPCLink("Thank you for your four meteors", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 4)
{
if (MyChar.InventoryContains(721535, 17))
MyChar.AddItem("700012-0-0-0-0-0", 0, (uint)General.Rand.Next(99999999));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
SendPacket(General.MyPackets.NPCLink("Thank you for the refined DragonGem", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (CurrentNPC == 887)
{
if (Control == 1)
{
SendPacket(General.MyPackets.NPCSay("I will get you to stage two if you have an SkyToken,do you?"));
SendPacket(General.MyPackets.NPCLink("Yes,I have the SkyToken.", 2));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
{
if (Control == 2)
{
if (MyChar.InventoryContains(721537, 1))
{
MyChar.RemoveItem(MyChar.ItemNext(721537));
MyChar.Teleport(1351, 16, 126);
}
else
{
SendPacket(General.MyPackets.NPCSay("You dont have the token,please dont disturb me!!"));
SendPacket(General.MyPackets.NPCLink("My bad,sorry.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
}
}
}
if (CurrentNPC == 888)
{
if (Control == 1)
{
SendPacket(General.MyPackets.NPCSay("I will get you to stage three if you have an EarthToken,do you?"));
SendPacket(General.MyPackets.NPCLink("Yes,I have the EarthToken.", 2));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
{
if (Control == 2)
{
if (MyChar.InventoryContains(721538, 1))
{
MyChar.RemoveItem(MyChar.ItemNext(721538));
MyChar.Teleport(1352, 40, 211);
}
else
{
SendPacket(General.MyPackets.NPCSay("You dont have the token,please dont disturb me!!"));
SendPacket(General.MyPackets.NPCLink("My bad,sorry.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
}
}
}
if (CurrentNPC == 889)
{
if (Control == 1)
{
SendPacket(General.MyPackets.NPCSay("I will get you to stage four if you have an SoulToken,do you?"));
SendPacket(General.MyPackets.NPCLink("Yes,I have the SoulToken.", 2));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
{
if (Control == 2)
{
if (MyChar.InventoryContains(721539, 1))
{
MyChar.RemoveItem(MyChar.ItemNext(721539));
MyChar.Teleport(1353, 142, 146);
}
else
{
SendPacket(General.MyPackets.NPCSay("You dont have the token,please dont disturb me!!"));
SendPacket(General.MyPackets.NPCLink("My bad,sorry.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
}
}
}
Now,go into your database and add the npcs as they should be at,and also add so only the monster in lab drops the tokens & diamonds,i think i mentioned how to do that in another post. grats,you have now lab as it is in conquer =P
post any errors here,since i coded it directly at this post and didnt code it in C#,never tested this code or whatever,so yeh it CAN come up an bug or two,lol.
WOW emme freaking nice man! Ty for the dis thing btw when i was doing it i got like an error adding the UndeadSpearman so when i changed it like this
if (Name == "UndeadSpearman")
{ {
string Item = "723085-0-0-0-0-0";
DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
World.ItemDrops(item);
if (Other.ChanceSuccess(10) || BossMob && Other.ChanceSuccess(30)) ;
}
}
Worked perfect for me ty man ima add my thanks right now
Hey emme would u happen the know the npc types
I did all that in this thread,but ofcourse I had refferences in a notepad,with codes like add stuffs,remove,npctalk,all that ****,im using that one when im adding something new,so i dont have to search all the time to get different codes,so now i just used that one,and like bottingpunk said it worked.
if (CurrentNPC == 666)
{
if (Control == 1)
{
SendPacket(General.MyPackets.NPCSay("Second rebirth has a serveral requirments,lets check if you got those."));
SendPacket(General.MyPackets.NPCSay("* Level 120+"));
SendPacket(General.MyPackets.NPCSay("* Already first reborned"));
SendPacket(General.MyPackets.NPCLink("Yes sir,I have the requirments", 2));
SendPacket(General.MyPackets.NPCLink("No,sorry,let me come back another time.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 2)
{
if (MyChar.Level > 120 && MyChar.RBCount < 2)
MyChar.Teleport(1700, 607, 625);
}
}
if (CurrentNPC == 667)
{
if (Control == 1)
{
if (MyChar.InventoryContains(722723, 3) && MyChar.InventoryContains(722724, 3) && MyChar.InventoryContains(722725, 3))
{
MyChar.RemoveItem(MyChar.ItemNext(722723));
MyChar.RemoveItem(MyChar.ItemNext(722724));
MyChar.RemoveItem(MyChar.ItemNext(722725));
MyChar.RemoveItem(MyChar.ItemNext(722723));
MyChar.RemoveItem(MyChar.ItemNext(722724));
MyChar.RemoveItem(MyChar.ItemNext(722725));
MyChar.RemoveItem(MyChar.ItemNext(722723));
MyChar.RemoveItem(MyChar.ItemNext(722724));
MyChar.RemoveItem(MyChar.ItemNext(722725));
MyChar.AddItem("722730-0-0-0-0-0", 0, (uint)General.Rand.Next(99999999));
}
else
{
SendPacket(General.MyPackets.NPCSay("You dont have the required items,please get them!"));
SendPacket(General.MyPackets.NPCLink("My bad,sorry.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
}
if (CurrentNPC == 668)
{
if (Control == 1)
{
if (MyChar.InventoryContains(722730, 5))
{
SendPacket(General.MyPackets.NPCSay("Ready for stage two? This one is the fun part."));
SendPacket(General.MyPackets.NPCSay("You need to destroy an mountain of 30.000 meters,and per every kill"));
SendPacket(General.MyPackets.NPCSay(" it will sink by 30 meters,and DO NOT drop the SquamaBead during stage two. Are you ready?"));
SendPacket(General.MyPackets.NPCLink("Lets go!", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
MyChar.RemoveItem(MyChar.ItemNext(722730));
MyChar.RemoveItem(MyChar.ItemNext(722730));
MyChar.RemoveItem(MyChar.ItemNext(722730));
MyChar.RemoveItem(MyChar.ItemNext(722730));
MyChar.RemoveItem(MyChar.ItemNext(722730));
MyChar.AddItem("722727-0-0-0-0-0", 0, (uint)General.Rand.Next(99999999));
}
else
{
SendPacket(General.MyPackets.NPCSay("You dont have five PureVigors"));
SendPacket(General.MyPackets.NPCLink("Ok,sorry", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
}
if (CurrentNPC == 669)
{
if (Control == 1)
{
if (MyChar.[COLOR="Black"]Mountain[/COLOR] >= 30000)
{
SendPacket(General.MyPackets.NPCSay("Now you are going to fight Satan. Kill them in this order :"));
SendPacket(General.MyPackets.NPCSay("First FurySatan, then BeastSatan, then Satan. Goodluck! "));
SendPacket(General.MyPackets.NPCSay("Remember: You should get the PureVigor"));
SendPacket(General.MyPackets.NPCLink("Ok,thanks,im ready!", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
MyChar.Teleport(1767, 50, 50);
MyChar.QuestMob = "Satan";
MyChar.QuestKO = 0;
}
}
}
Ok the word i have high lighted Mountain i got an error saying can't find the deffintion or somthing to it ? what to do
Nice... but I'm deciding not to give + thanks cuz you flamed my server... and your a hypocrite because you said my server would fail if it was lotf but your using lotf for your guide...
@nTl
Thats already added in the source,it works for me,cant get why it wont work for him
@Bottingpunk
Doublereborn?
@ciphas
Hm,please use your brain! Why are you thinking im releasing all this ****? Because im not using loft source anymore. Lol <.<
You use my codes and dont +thanks, lmao,funny. And if you cant code,and take my codes,you will fail,thats the fact,sorry .
Oh gosh,im soo noobie. Watch the other part of my guide,forgot to add one part. Btw I never finished the quest,so you shouldnt use it either till the guide is done ==P
@nTl
Thats already added in the source,it works for me,cant get why it wont work for him
@Bottingpunk
Doublereborn?
@ciphas
Hm,please use your brain! Why are you thinking im releasing all this ****? Because im not using loft source anymore. Lol <.<
You use my codes and dont +thanks, lmao,funny. And if you cant code,and take my codes,you will fail,thats the fact,sorry .
Excuse me? um I can code... I can code in C#/C++ so blow it out your ***... and FYI I never said I was using your *** **** ****** code.
12sky Private Server Releasing Soon 02/20/2013 - 12Sky2 - 51 Replies Ok guy's well i'm gonna start working on 12sky Private Server cus im sick of playing 12sky2 and comparing it to 12sky and how much i like 12sky better and playing other games.If anyone could help me out or can i get like a team.I would appreciate some help if possiable to speed up the making of the private server.
PM Me if your interested in helping me out.
Leaving ConquerDev + Releasing my Codes here. 11/03/2008 - CO2 Private Server - 22 Replies I leaving ConquerProgramming and releasing the most of my Work to show other ppl that i can Code.
Other Releases will post soon.
Flat-File Database:
DataBase - Authenticate
public static byte Authenticate(string Username, string Password)
{
if (File.Exists(System.Windows.Forms.Application.Star tupPath + @"\accounts\\" + Username + ".xml"))