Code:
if (GC.MyChar.LotteryUse == 10)
{
GC.AddSend(Packets.NPCSay(("You cant try the luck more than 10 times. bye")));
GC.AddSend(Packets.NPCLink("Alright!", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
then when enter put:
Code:
GC.MyChar.LotteryUse += 1;
then in character.cs put a
Code:
public int LotteryUse = 0;
but also you will need some timer to check if there have been 24hours.