Guys i have another question hehe the source i got the ladyluck is infinity. How can i set it to be only 10 per day? thanks
i like to see is going forward :)Quote:
Thanks a lot i made this:
if (GC.MyChar.LotteryUsed >= 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());
}
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());
}
GC.MyChar.LotteryUse += 1;
public int LotteryUse = 0;