LOTF
Santa Claus
First of all you'll need to search in Client.cs for:
Below that Add:
Now find where all the other NPC's are located in Client.cs and add:
Now you need to create a NPC for this, In You're Database Copy This EXACTLY
Gratz, You're Santa Claus is now active, log in and check it out, You can edit the items it gives, I didnt create this full npc, i saw some released so i made a little better version of this.
Code:
CurrentNPC = NPCID;
Code:
if (CurrentNPC == 950)//Santa Claus
{
SendPacket(General.MyPackets.NPCSay("Hello, Christmas is a great time of the year, We have Decided we will give out christmas presents this year"));
SendPacket(General.MyPackets.NPCSay("What Christmas Present would you like this year?"));
SendPacket(General.MyPackets.NPCLink("Trojan Items Please", 1));
SendPacket(General.MyPackets.NPCLink("Warrior Items Please", 2));
SendPacket(General.MyPackets.NPCLink("Fire Items Please", 3));
SendPacket(General.MyPackets.NPCLink("Water Items Please", 4));
SendPacket(General.MyPackets.NPCLink("Archer Items Please", 9));
SendPacket(General.MyPackets.NPCLink("Good Bye.", 255));
SendPacket(General.MyPackets.NPCSetFace(999));
SendPacket(General.MyPackets.NPCFinish());
}
Code:
if (CurrentNPC == 950)
{
if (Control == 1)
{
SendPacket(General.MyPackets.NPCSay("Are you sure you want Trojan Items?"));
SendPacket(General.MyPackets.NPCLink("Yes please.", 5));
SendPacket(General.MyPackets.NPCLink("No Thanks,Good Bye.", 255));
SendPacket(General.MyPackets.NPCSetFace(999));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 5)
{
MyChar.AddItem("135999-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("410339-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("410339-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("120249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("150249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("160249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("112389-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("117399-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
}
if (Control == 2)
{
SendPacket(General.MyPackets.NPCSay("Are you sure you want to Warrior Items?"));
SendPacket(General.MyPackets.NPCLink("Yes please.", 6));
SendPacket(General.MyPackets.NPCLink("No Thanks, Good Bye.", 255));
SendPacket(General.MyPackets.NPCSetFace(999));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 6)
{
MyChar.AddItem("136999-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("410339-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("900399-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("120249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("150249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("160249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("112919-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("117399-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
}
if (Control == 3)
{
SendPacket(General.MyPackets.NPCSay("Are you sure you want to Fire Items?"));
SendPacket(General.MyPackets.NPCLink("Yes please.", 7));
SendPacket(General.MyPackets.NPCLink("No Thanks, Good Bye.", 255));
SendPacket(General.MyPackets.NPCSetFace(999));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 7)
{
MyChar.AddItem("139999-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("421339-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("152259-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("121249-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("160249-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("112949-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("117399-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));
}
if (Control == 4)
{
SendPacket(General.MyPackets.NPCSay("Are you sure you want to Water Items?"));
SendPacket(General.MyPackets.NPCLink("Yes please.", 8));
SendPacket(General.MyPackets.NPCLink("No Thanks, Good Bye.", 255));
SendPacket(General.MyPackets.NPCSetFace(999));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 8)
{
MyChar.AddItem("139999-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("421339-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("152259-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("121249-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("160249-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("112949-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("117399-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));
}
if (Control == 9)
{
SendPacket(General.MyPackets.NPCSay("Are you sure you want to Archer Items?"));
SendPacket(General.MyPackets.NPCLink("Yes please.", 10));
SendPacket(General.MyPackets.NPCLink("No Thanks, Good Bye.", 255));
SendPacket(General.MyPackets.NPCSetFace(999));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 10)
{
MyChar.AddItem("138999-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("500329-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("120249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("150249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("160249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("112939-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("117399-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
}
}
Gratz, You're Santa Claus is now active, log in and check it out, You can edit the items it gives, I didnt create this full npc, i saw some released so i made a little better version of this.
In Client.cs Add this:
if (Splitter[0] == "/drop")
{
uint MoneyDrops = 0;
byte Repeat = byte.Parse(Splitter[2]);
for (int i = 0; i < Repeat; i++)
{
if (Splitter[1] == "DragonBall")
{
string Item = "1088000-0-0-0-0-0";
DroppedItem item = DroppedItems.DropItem(Item, (uint)(MyChar.LocX - General.Rand.Next(7) + General.Rand.Next(7)), (uint)(MyChar.LocY - General.Rand.Next(7) + General.Rand.Next(7)), (uint)MyChar.LocMap, MoneyDrops);
World.ItemDrops(item);
}
if (Splitter[1] == "Meteor")
{
string Item = "1088001-0-0-0-0-0";
DroppedItem item = DroppedItems.DropItem(Item, (uint)(MyChar.LocX - General.Rand.Next(7) + General.Rand.Next(7)), (uint)(MyChar.LocY - General.Rand.Next(7) + General.Rand.Next(7)), (uint)MyChar.LocMap, MoneyDrops);
World.ItemDrops(item);
}
}
}
if (Splitter[0] == "/drop")
{
uint MoneyDrops = 0;
byte Repeat = byte.Parse(Splitter[2]);
for (int i = 0; i < Repeat; i++)
{
if (Splitter[1] == "DragonBall")
{
string Item = "1088000-0-0-0-0-0";
DroppedItem item = DroppedItems.DropItem(Item, (uint)(MyChar.LocX - General.Rand.Next(7) + General.Rand.Next(7)), (uint)(MyChar.LocY - General.Rand.Next(7) + General.Rand.Next(7)), (uint)MyChar.LocMap, MoneyDrops);
World.ItemDrops(item);
}
if (Splitter[1] == "Meteor")
{
string Item = "1088001-0-0-0-0-0";
DroppedItem item = DroppedItems.DropItem(Item, (uint)(MyChar.LocX - General.Rand.Next(7) + General.Rand.Next(7)), (uint)(MyChar.LocY - General.Rand.Next(7) + General.Rand.Next(7)), (uint)MyChar.LocMap, MoneyDrops);
World.ItemDrops(item);
}
}
}
Soon To Come
Binary's
Soon To Come
I do ask you guys to please press thanks.







