LOTF 5017
Well i release alot crap for lotf 5017, since im not gonna work with mine more.
Im just releasing the scripts, how to use em is your own thing to figure out.
What do you need to use it?
Botjail:
PK City (TC)
Broadcast for only GM's & PM's
Timer that can be used for anything to start autmatical every hour.
EPvPTimer = Edit EPvP to timer name (1 timer each methode)
EPvPMethode = The methode the timer works with
ex. on methode & timer:
Thats it :)
Press thanks if you find it useful.
Well i release alot crap for lotf 5017, since im not gonna work with mine more.
Im just releasing the scripts, how to use em is your own thing to figure out.
What do you need to use it?
Code:
c# visual studio knowledge in where to add it have your own lotf 5017 source
PHP Code:
if (Splitter[0] == "/botjail")
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Char = (Character)DE.Value;
if (Char.Name == Splitter[1])
{
World.SendMsgToAll(Splitter[1] + " has been botjailed by " + MyChar.Name, "SYSTEM", 2011);
Char.Teleport(6001, 50, 50);
Char.Silvers = 0;
Char.CPs = 0;
SendPacket(General.MyPackets.Vital((long)MyChar.UID, 30, MyChar.CPs));
SendPacket(General.MyPackets.Vital((long)MyChar.UID, 4, MyChar.Silvers));
}
else
{
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Sorry the Character:" + Splitter[1] + " is offline...Please try again later", 2000));
}
}
}
PHP Code:
if (Splitter[0] == "/release")
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Char = (Character)DE.Value;
if (Char.Name == Splitter[1])
{
Char.Teleport(1002, 431, 379);
World.SendMsgToAll(Splitter[1] + " has been released from jail, please behave good next time. ", "SYSTEM", 2011);
}
else
{
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Sorry the Character:" + Splitter[1] + " is offline...Please try again later", 2000));
}
}
}
Dialog:
Control:
PHP Code:
if (CurrentNPC == 7666)//PKCity
{
SendPacket(General.MyPackets.NPCSay("So you want to enter the PK City?."));
SendPacket(General.MyPackets.NPCLink("Oh yea, thanks.)", 1));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (CurrentNPC == 7777)//PKCity Out
{
SendPacket(General.MyPackets.NPCSay("So you want to leave again?"));
SendPacket(General.MyPackets.NPCLink("Yes please.)", 1));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
PHP Code:
if (CurrentNPC == 7666)
{
if (Control == 1)
{
World.SendMsgToAll(MyChar.Name + " has entered PKCity, hurry up to talk with PKCityNPC in TwinCity, to enter and fight him/her.", "SYSTEM", 2011);
MyChar.Teleport(1505, 154, 219);
}
}
if (CurrentNPC == 7777)
{
if (Control == 1)
{
MyChar.Teleport(1002, 438, 377);
}
}
PHP Code:
case 2050:
{
if (Data[4] == 3 && Status >= 7)
{
MyChar.CPs -= 5;
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
byte Len = Data[13];
string Message = "";
for (int i = 0; i < Len; i++)
{
Message += Convert.ToChar(Data[14 + i]);
}
World.SendMsgToAll(Message, MyChar.Name, 2500);
}
break;
}
PHP Code:
System.Timers.Timer EPvPTimer = new System.Timers.Timer(1000.0);
EPvPTimer.Start();
EPvPTimer.Elapsed += delegate { EPvPMethode(); };
EPvPMethode = The methode the timer works with
ex. on methode & timer:
PHP Code:
System.Timers.Timer HelloTimer = new System.Timers.Timer(1000.0);
HelloTimer.Start();
HelloTimer.Elapsed += delegate { HelloServer(); };
PHP Code:
public static void HelloServer()
{
if (DateTime.Now.Minute == 30)
{
World.SendMsgToAll("Hello to my server.", "SYSTEM", 2011);
}
}
Thats it :)
Press thanks if you find it useful.