i hope it is that simple , i slept for a while tho , thank you
*
*
now for who want to forbid the PK at Ma and Lotto , follow this
-open sourcePacketHandler.cs
-add this code line 192
Code:
case 1022: //Attack
{
int kind = (Data[23] << 24) + (Data[22] << 16) + (Data[21] << 8) + (Data[20]);
//Console.WriteLine("Packet - Attack request {0} {1}", PacketId, kind);
[COLOR=blue]if (AClient.MyChar.PosMap == 1036 || AClient.MyChar.PosMap == 700)[/COLOR]
[COLOR=blue] {[/COLOR]
[COLOR=blue] AClient.SendPacket(ThePackets.SendMsg(AClient.MessageId, "SYSTEM", AClient.MyChar.CharName, "This Map is protected .", 2015));[/COLOR]
[COLOR=blue] break;[/COLOR]
[COLOR=blue] }[/COLOR]
[COLOR=blue] else [/COLOR]
Msg = new Attack(Data,AClient);
break;
}
the blue lines are the adds
for the Exp rate , there are 3 edits needed ,
1- worldhandler.cs line 129
Charr.MyClient.MyChar.AddExp(DMG*TheMob.Level/15);
2-Character.cs line 1036
MyClient.MyChar.AddExp(AttackDMG *Target.Level/22);
3- Character.cs line 1134
MyClient.MyChar.AddExp(AttackDMG *Target.Level/22);
edit the red color numbers