it must edit by C# 2008 ?Quote:
[FONT="Fixedsys"]
Ladyluck:With this code you can do the lottery unlimited times.Code:case 923: { if (Control == 0) { GC.AddSend(Packets.NPCSay(("Welcome to the Lottery Center! There are meny LuckyBoxes which have innumerable treasure such as super gems,two-socket gears, up to 500,000,000 silvers etc. in them. If you are level 70 or above, you are allowed to enter the Lottery Center as much as you want."))); GC.AddSend(Packets.NPCSay(("And I charge you only 27 CPs for each admission.Come on, Try your luck right now!"))); GC.AddSend(Packets.NPCLink("Wow, good deal!", 1)); GC.AddSend(Packets.NPCLink("May I know the rules first?", 2)); GC.AddSend(Packets.NPCLink("No Thanks!", 255)); GC.AddSend(Packets.NPCSetFace(N.Avatar)); GC.AddSend(Packets.NPCFinish()); } else if (Control == 1) { GC.MyChar.Teleport(700, 40, 50); return; } if (GC.MyChar.Level >= 70) { if (GC.MyChar.Inventory.Count < 40) { if (GC.MyChar.CPs >= 27) { GC.MyChar.Teleport(700, 40, 50); GC.MyChar.CPs -= 27; GC.MyChar.Lottery = true; } else { GC.AddSend(Packets.NPCSay("I'm sorry you do not have the required CPs.")); GC.AddSend(Packets.NPCLink("Okay, I will be back when I have 27 CPs.", 255)); GC.AddSend(Packets.NPCSetFace(N.Avatar)); GC.AddSend(Packets.NPCFinish()); } } else { GC.AddSend(Packets.NPCSay("Please make some room in your item box first.")); GC.AddSend(Packets.NPCLink("Okay...", 255)); GC.AddSend(Packets.NPCSetFace(N.Avatar)); GC.AddSend(Packets.NPCFinish()); } } else { GC.AddSend(Packets.NPCSay("I'm sorry you do not have the required Level 70.")); GC.AddSend(Packets.NPCLink("Okay...", 255)); GC.AddSend(Packets.NPCSetFace(N.Avatar)); GC.AddSend(Packets.NPCFinish()); } } if (Control == 2) { GC.AddSend(Packets.NPCSay("You will be teleported to Lottery Center where there are many LuckyBoxes after you pay me 27 CPs. You may choose one box to try your luck at your will.")); GC.AddSend(Packets.NPCSay("Remeber you have only one chance to open a LuckyBox every time. If you want to open another box, you have to leave the room to re-enrol in Market.")); GC.AddSend(Packets.NPCLink("Okay...", 255)); GC.AddSend(Packets.NPCSetFace(N.Avatar)); GC.AddSend(Packets.NPCFinish()); } break; }
[/B]
because i edit NPCdialog.cs by notepad++ but it's not change
[Only registered and activated users can see links. Click Here To Register...]
Uploaded with [Only registered and activated users can see links. Click Here To Register...]