case 87452: { // thx for xabi he made me! if (option == 0) { GC.AddSend(Packets.NPCSay("Hello, I Can Sell You Levels For CPs!"));// thx for xabi he made me! GC.AddSend(Packets.NPCLink("Please do it!", 1)); // thx for xabi he made me! GC.AddSend(Packets.NPCLink("No thanks!", 255));// thx for xabi he made me! GC.AddSend(Packets.NPCSetFace(N.Avatar)); GC.AddSend(Packets.NPCFinish()); }
if (option == 1) { if (GC.MyChar.CPs >= 10000) { GC.MyChar.CPs -= 10000; Random R = new Random(); int Nr = R.Next(1, 10); if (Nr == 1) {
GC.MyChar.Level += 10; GC.Message(2005, GC.MyChar.Name + " Has won 2000 Cps From Lucky Level #08 "); } { GC.MyChar.Level -= 25; GC.Message(2005, GC.MyChar.Name + " Has Lost 2000 Cps From Lucky Level #08 "); } { if (GC.MyChar.Level < 130) GC.MyChar.Level += 100; GC.Message(2005, GC.MyChar.Name + " Has won 2000 Cps From Lucky Level #08 "); } { GC.MyChar.Level -= 137; GC.Message(2005, GC.MyChar.Name + " Has Lost His Levels From Lucky Level #08 "); }
GC.AddSend(Packets.NPCSay("Good Luck With Lucky Level.")); GC.AddSend(Packets.NPCLink("Thanks!", 255)); GC.AddSend(Packets.NPCSetFace(N.Avatar)); GC.AddSend(Packets.NPCFinish()); } else { GC.AddSend(Packets.NPCSay("You don't have 10000 Cps.")); GC.AddSend(Packets.NPCLink("I Can't Play With You.", 255)); GC.AddSend(Packets.NPCSetFace(N.Avatar)); GC.AddSend(Packets.NPCFinish()); }