Releasing all my private server codes

08/15/2008 16:46 _Emme_#16
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.

Emme

+thanks for god sake =D
08/15/2008 16:55 adz06676#17
lies not a chance u did all that in the thread. biggest piece of bullshit i've heard all week lol
08/15/2008 17:51 Bottingpunk#18
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
08/15/2008 20:44 _Emme_#19
@adz

I did all that in this thread,but ofcourse I had refferences in a notepad,with codes like add stuffs,remove,npctalk,all that shit,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.
08/15/2008 21:54 Bottingpunk#20
@emme hey man okay i have an npc that double reborn's you and i want to change it how would i change it? any idea
08/15/2008 23:19 nTL3fTy#21
Quote:
Originally Posted by Kratos59 View Post
Ok i'm french sorry if my english is bad ^^

When, i have rebirth, in my server ... and it's works but one problem don't work and the problem is the StatPoints.

The Statpoint when i push the points, it's ok but if i go offline and online after, my statpoint has lost and don't save ...
That is because in the released LOTF source, the character's unallocated stat points are not loaded.
  1. Find the function GetCharInfo(Character Charr, string UserName) in DataBase.cs.
  2. Where you see all of the Character variables being set from data returned from the mySQL query, add this:
    Code:
    Charr.StatP = ushort.Parse((string)DR["StatPoints"]);

No. It's not tested.
08/16/2008 00:07 Bottingpunk#22
Code:
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
08/16/2008 00:13 ciphas009#23
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...

so /fail to you too.
08/16/2008 00:22 _Emme_#24
@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 crap? 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 .
08/16/2008 00:24 _Emme_#25
@Bottingpunk

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
08/16/2008 01:17 Bottingpunk#26
@emme no your not newbie lol. Where is the other part of your guide?
08/16/2008 02:27 ciphas009#27
Quote:
Originally Posted by emildayan1 View Post
@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 crap? 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 ass... and FYI I never said I was using your god damn shitty code.

That I have done already >.>
08/16/2008 07:49 _Emme_#28
@Bottingpunk
I will add it later when I got time,dont atm :P

@Ciphas009
Ye ye
08/16/2008 20:54 Bottingpunk#29
aiiet well when you get time could you add KO bored cause that one guys kinshi or ever dosn't work :(
08/17/2008 05:50 kinshi88#30
It doesn't work for you cause your a little noob using a nooby source.