marsam
مدير عام
تاريخ التسجيل : 06/11/2010 اعيش فى : عددالمساهمات : 120 الجنس : تاريخ الميلاد : 01/01/1985 العمر : 39 الابراج : العمل : رسام نقاط : 18104 السٌّمعَة : 99 نشاط العضو :
| موضوع: ثغرة لجلب cps الإثنين 15 نوفمبر 2010 - 10:44 | |
| طبعان كلنا عارفين مسابقة 1ضد1 اللي في سورس 5165 اكتشفت فيها ثغرة ممكن تجيب منها 999999999 سي بي اس بدون مشاكل شرح الثغرة عبارة عن اتنين يخشو يلعبو قدام بعض وليكن مثلا هيلعبو علي 500 الف سي بي اس اي حد فيهم يشتري حاجة من الشوب ميل او يترد سي بي اس بحيث نو يبقي معاه في الايتم اقل من 500 الف سي بي اس وبعدين يخسر ويطلع بيبقي معاه 9999999999 سي بي اس نشوف الصور علشان توضح طب حلها اية نقفل السيرفر يعني هقؤلك لا ركز معاية علشان هنعدل حبة حجات كدة 1- هتشيل ال ان بي سي بتاع ال مسابقة اللي هم دول - الكود:
-
- اقتباس :
- #region Tourny 1v1
case 600565: { if (GC.AuthInfo.Status != "[GM]" || GC.AuthInfo.Status != "[PM]") { GC.MyChar.PkPuntos = 0; GC.MyChar.Luchando = false; { if (option == 0) { OptionText("Hello (Arena1), you want to participate in the 1v1 tournament against the opponent that you want?", GC); OptionLink("Yes, i want!", 20, GC); OptionLink("More information", 10, GC); OptionLink("Clear my quest quest", 100, GC); OptionLink("No thanks...", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } else if (option == 100) { Features.GuildWars.Ocupado = false; GC.MyChar.PkPuntos = 0; GC.MyChar.Luchando = false; GC.MyChar.Protection = false; GC.MyChar.Enemigo = ""; OptionText("You tornament clear try againg", GC); OptionLink("No thanks...", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } else if (option == 10) { OptionText("The battle is simple, choose the player you want, and then you will be transported to a map. There you will have to fight to fb and / or ss. Life does not matter, not hos sacareis nothing. A 10 touches.", GC); OptionLink("I accept", 20, GC); OptionLink("Ok, bye..", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } else if (option == 20) { if (Features.GuildWars.Ocupado == false) { if ((GC.MyChar.Equips.RightHand.ID >= 410003 && GC.MyChar.Equips.RightHand.ID <= 421339) || (GC.MyChar.Equips.LeftHand.ID >= 410003 && GC.MyChar.Equips.LeftHand.ID <= 421339)) { OptionText("Enter the bet you want to do with your enemy. For example, if you bet and win 50 fps, 50 fps you rob the opponent. If you lose, the opponent to stay with your CPs.", GC); OptionLink("10k CPs", 21, GC); OptionLink("50k CPs", 22, GC); OptionLink("100k CPs", 23, GC); OptionLink("500k CPs", 24, GC); OptionLink("1kk CPs", 25, GC); OptionLink("2kk CPs", 26, GC); OptionLink("3kk CPs", 27, GC); OptionLink("Good bye..", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } else { OptionText("Sorry, you need Blade, sword or backsword for figt.", GC); OptionLink("Oh.. i see..", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } } else { OptionText("Sorry, the map is occupied again later!", GC); OptionLink("Ok, i wait", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } } else if (option == 21) { GC.MyChar.Apuesta = 10000; OptionText("Okay, well written enter the opponent's name in the text box. Struggling with he for " + GC.MyChar.Apuesta + " CPs", GC); OptionLink2("Name", 2, GC); OptionLink("Bye guy...", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } else if (option == 22) { GC.MyChar.Apuesta = 50000; OptionText("Okay, well written enter the opponent's name in the text box. Struggling with he for " + GC.MyChar.Apuesta + " CPs", GC); OptionLink2("Name", 2, GC); OptionLink("Bye guy...", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } else if (option == 23) { GC.MyChar.Apuesta = 100000; OptionText("Okay, well written enter the opponent's name in the text box. Struggling with he for " + GC.MyChar.Apuesta + " CPs", GC); OptionLink2("Name", 2, GC); OptionLink("Bye guy...", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } else if (option == 24) { GC.MyChar.Apuesta = 500000; OptionText("Okay, well written enter the opponent's name in the text box. Struggling with he for " + GC.MyChar.Apuesta + " CPs", GC); OptionLink2("Name", 2, GC); OptionLink("Bye guy...", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } else if (option == 25) { GC.MyChar.Apuesta = 1000000; OptionText("Okay, well written enter the opponent's name in the text box. Struggling with he for " + GC.MyChar.Apuesta + " CPs", GC); OptionLink2("Name", 2, GC); OptionLink("Bye guy...", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } else if (option == 26) { GC.MyChar.Apuesta = 2000000; OptionText("Okay, well written enter the opponent's name in the text box. Struggling with he for " + GC.MyChar.Apuesta + " CPs", GC); OptionLink2("Name", 2, GC); OptionLink("Bye guy...", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } else if (option == 27) { GC.MyChar.Apuesta = 3000000; OptionText("Okay, well written enter the opponent's name in the text box. Struggling with he for " + GC.MyChar.Apuesta + " CPs", GC); OptionLink2("Name", 2, GC); OptionLink("Bye guy...", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } else if (option == 1) { OptionText("Okay, well written enter the opponent's name in the text box. Struggling with he for " + GC.MyChar.Apuesta + " CPs", GC); OptionLink2("Name", 2, GC); OptionLink("Bye guy...", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } else if (option == 2) {
GC.MyChar.Enemigo = ReadString(Data); { Game.Character C = Game.World.CharacterFromName(GC.MyChar.Enemigo); if (C != null && C != GC.MyChar) { if (GC.MyChar.CPs >= GC.MyChar.Apuesta) { if (C.CPs >= GC.MyChar.Apuesta) { if (C.Loc.Map == 1002) { OptionText("Really you want to invite " + GC.MyChar.Enemigo + " ?", GC); OptionLink("Yes!", 3, GC); OptionLink("No thanks..", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } else { OptionText("The character has to be in Twin City.", GC); OptionLink("Uhh ... Let me provide another", 10, GC); OptionLink("Ok, then, bye.", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } } else { OptionText("Elected opponent does not have enough CPs. Choose a better one ...", GC); OptionLink("Uhh ... Let me provide another", 20, GC); OptionLink("Ok, bye.", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } } else { OptionText("You dont have "+GC.MyChar.Apuesta+ "Cps ,try hack me ?lol", GC); OptionLink("Oh, sorry.", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } } else { OptionText("I feel the character is not connected or does not exist. Or did you choose yourself as a contender ..", GC); OptionLink("Uhh ... Let me provide another", 1, GC); OptionLink("Oh, sorry.", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); }
} } else if (option == 3) { Game.Character C = Game.World.CharacterFromName(GC.MyChar.Enemigo); { if ((C.Equips.RightHand.ID >= 410003 && C.Equips.RightHand.ID <= 421339) || (C.Equips.LeftHand.ID >= 410003 && C.Equips.LeftHand.ID <= 421339)) { if (C != null)// && C != GC.MyChar) { C.Apuesta = GC.MyChar.Apuesta; C.Enemigo = GC.MyChar.Name; C.MyClient.DialogNPC = 600566; PacketHandling.NPCDialog.Handle(C.MyClient, null, 600566, 0); C.MyClient.EndSend(); } } else { OptionText("The opponent who has asked not to have sword or blade, you can not fight with he!", GC); OptionLink("Uhh, let me choise another", 1, GC); OptionLink("Oh, bye", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } }
} } } else { OptionText("Sorry,but the tornament dont is for PM`s and GM`s", GC); OptionLink("Ah,ok", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } } break; #endregion #region Tourny 1v1 Checkout case 600566: { if (option == 0) { Game.Character C = Game.World.CharacterFromName(GC.MyChar.Enemigo); { OptionText(GC.MyChar.Enemigo + " has invited you to play for " + GC.MyChar.Apuesta + " CPs in a 1v1 battle, accept?", GC); OptionLink("Yes, i want figth.", 1, GC); OptionLink("More information of my enemy.", 3, GC); OptionLink("No thanks", 2, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } } else if (option == 1) { Game.Character C = Game.World.CharacterFromName(GC.MyChar.Enemigo); { try { GC.MyChar.PkPuntos = 0; GC.MyChar.Teleport(1707, 52, 43); Features.GuildWars.Ocupado = true; Game.World.SendMsgToAll(GC.MyChar.Name, GC.MyChar.Name + " and " + C.Name + " going to fight a battle for " + GC.MyChar.Apuesta + " CPs!", 2011, 0); // C.Teleport(GC.MyChar.Loc.Map, GC.MyChar.Loc.X,GC.MyChar.Loc.Y); C.Teleport(1707, 52, 43); GC.MyChar.PkPuntos = 0; Features.GuildWars.Ocupado = true; GC.MyChar.Luchando = true; C.Luchando = true; GC.MyChar.Protection = true; C.Protection = true; } catch { try { GC.MyChar.PkPuntos = 0; GC.MyChar.Teleport(1707, 52, 43); Features.GuildWars.Ocupado = true; // Game.World.SendMsgToAll(GC.MyChar.Name, GC.MyChar.Name + " and " + C.Name + " going to fight a battle for " + GC.MyChar.Apuesta + " CPs!", 2011, 0); // C.Teleport(GC.MyChar.Loc.Map, GC.MyChar.Loc.X,GC.MyChar.Loc.Y); C.Teleport(1707, 52, 43); GC.MyChar.PkPuntos = 0; Features.GuildWars.Ocupado = true; GC.MyChar.Luchando = true; C.Luchando = true; GC.MyChar.Protection = true; C.Protection = true; } catch { Console.WriteLine("EROR GM`s or PM`s at tornament 1 vs 1"); Console.WriteLine("EROR GM`s or PM`s at tornament 1 vs 1"); Console.WriteLine("EROR GM`s or PM`s at tornament 1 vs 1"); Console.WriteLine("EROR GM`s or PM`s at tornament 1 vs 1"); Features.GuildWars.Ocupado = false; GC.MyChar.PkPuntos = 0; GC.MyChar.Luchando = false; GC.MyChar.Protection = false; GC.MyChar.Enemigo = ""; C.PKPoints = 0; C.Luchando = false; C.Protection = false; C.Enemigo = ""; GC.MyChar.Teleport(1002, 444, 444); Console.WriteLine("EROR GM`s or PM`s at tornament 1 vs 1"); } } } } else if (option == 2) { Game.Character C = Game.World.CharacterFromName(GC.MyChar.Enemigo); { GC.MyChar.Enemigo = ""; C.MyClient.DialogNPC = 600567; PacketHandling.NPCDialog.Handle(C.MyClient, null, 600567, 0); C.MyClient.EndSend(); } } else if (option == 3) { Game.Character C = Game.World.CharacterFromName(GC.MyChar.Enemigo); { OptionText("Información of: " + C.Name + " | Level: " + C.Level + " | Potency: " + C.Potency + " | ", GC); OptionText("Max HP: " + C.MaxHP + " | MahMP: " + C.MaxMP + " | Job: " + C.Job + ".", GC); OptionLink("Ok, i want figth!", 1, GC); OptionLink("No guy.. bye", 2, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } } } break;
#endregion #region Tourny 1v1 rejected case 600567: { if (option == 0) { GC.MyChar.Enemigo = ""; OptionText("Your enemy has rejected you", GC); OptionLink("Uhh... Ok thanks...", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } } break;
ونبدلهم بدول
- الكود:
-
[size=21][quote]#region Tourny 1v1 case 600565: { if (GC.AuthInfo.Status != "[GM]" || GC.AuthInfo.Status != "[PM]") { GC.MyChar.PkPuntos = 0; GC.MyChar.Luchando = false; { if (option == 0) { OptionText("Hello, you want to participate in the 1v1 tournament against the opponent that you want?", GC); OptionLink("Yes, i want!", 20, GC); OptionLink("More information", 10, GC); OptionLink("Clear my quest quest", 100, GC); OptionLink("No thanks...", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } else if (option == 100) { Features.GuildWars.Ocupado = false; GC.MyChar.PkPuntos = 0; GC.MyChar.Luchando = false; GC.MyChar.Protection = false; GC.MyChar.Enemigo = ""; OptionText("You tornament clear try againg", GC); OptionLink("No thanks...", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } else if (option == 10) { OptionText("The battle is simple, choose the player you want, and then you will be transported to a map. There you will have to fight to fb and / or ss. Life does not matter, not hos sacareis nothing. A 10 touches.", GC); OptionLink("I accept", 20, GC); OptionLink("Ok, bye..", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } else if (option == 20) { if (Features.GuildWars.Ocupado == false) { if ((GC.MyChar.Equips.RightHand.ID >= 410003 && GC.MyChar.Equips.RightHand.ID <= 421339) || (GC.MyChar.Equips.LeftHand.ID >= 410003 && GC.MyChar.Equips.LeftHand.ID <= 421339)) { OptionText("Enter the bet you want to do with your enemy. For example, if you bet and win 50 fps, 50 fps you rob the opponent. If you lose, the opponent to stay with your CPs.", GC); OptionLink("10k CPs", 21, GC); OptionLink("50k CPs", 22, GC); OptionLink("100k CPs", 23, GC); OptionLink("500k CPs", 24, GC); OptionLink("1kk CPs", 25, GC); OptionLink("2kk CPs", 26, GC); OptionLink("3kk CPs", 27, GC); OptionLink("Good bye..", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } else { OptionText("Sorry, you need Blade, sword or backsword for figt.", GC); OptionLink("Oh.. i see..", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } } else { OptionText("Sorry, the map is occupied again later!", GC); OptionLink("Ok, i wait", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } } else if (option == 21) { GC.MyChar.Apuesta = 10000; OptionText("Okay, well written enter the opponent's name in the text box. Struggling with he for " + GC.MyChar.Apuesta + " CPs", GC); OptionLink2("Name", 2, GC); OptionLink("Bye guy...", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } else if (option == 22) { GC.MyChar.Apuesta = 50000; OptionText("Okay, well written enter the opponent's name in the text box. Struggling with he for " + GC.MyChar.Apuesta + " CPs", GC); OptionLink2("Name", 2, GC); OptionLink("Bye guy...", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } else if (option == 23) { GC.MyChar.Apuesta = 100000; OptionText("Okay, well written enter the opponent's name in the text box. Struggling with he for " + GC.MyChar.Apuesta + " CPs", GC); OptionLink2("Name", 2, GC); OptionLink("Bye guy...", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } else if (option == 24) { GC.MyChar.Apuesta = 500000; OptionText("Okay, well written enter the opponent's name in the text box. Struggling with he for " + GC.MyChar.Apuesta + " CPs", GC); OptionLink2("Name", 2, GC); OptionLink("Bye guy...", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } else if (option == 25) { GC.MyChar.Apuesta = 1000000; OptionText("Okay, well written enter the opponent's name in the text box. Struggling with he for " + GC.MyChar.Apuesta + " CPs", GC); OptionLink2("Name", 2, GC); OptionLink("Bye guy...", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } else if (option == 26) { GC.MyChar.Apuesta = 2000000; OptionText("Okay, well written enter the opponent's name in the text box. Struggling with he for " + GC.MyChar.Apuesta + " CPs", GC); OptionLink2("Name", 2, GC); OptionLink("Bye guy...", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } else if (option == 27) { GC.MyChar.Apuesta = 3000000; OptionText("Okay, well written enter the opponent's name in the text box. Struggling with he for " + GC.MyChar.Apuesta + " CPs", GC); OptionLink2("Name", 2, GC); OptionLink("Bye guy...", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } else if (option == 1) { OptionText("Okay, well written enter the opponent's name in the text box. Struggling with he for " + GC.MyChar.Apuesta + " CPs", GC); OptionLink2("Name", 2, GC); OptionLink("Bye guy...", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } else if (option == 2) {
GC.MyChar.Enemigo = ReadString(Data); { Game.Character C = Game.World.CharacterFromName(GC.MyChar.Enemigo); if (C != null && C != GC.MyChar) { if (GC.MyChar.CPs >= GC.MyChar.Apuesta) { if (C.CPs >= GC.MyChar.Apuesta) { if (C.Loc.Map == 1002) { OptionText("Really you want to invite " + GC.MyChar.Enemigo + " ?", GC); OptionLink("Yes!", 3, GC); OptionLink("No thanks..", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } else { OptionText("The character has to be in Twin City.", GC); OptionLink("Uhh ... Let me provide another", 10, GC); OptionLink("Ok, then, bye.", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } } else { OptionText("Elected opponent does not have enough CPs. Choose a better one ...", GC); OptionLink("Uhh ... Let me provide another", 20, GC); OptionLink("Ok, bye.", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } } else { OptionText("You dont have " + GC.MyChar.Apuesta + "Cps ,try hack me ?lol", GC); OptionLink("Oh, sorry.", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } } else { OptionText("I feel the character is not connected or does not exist. Or did you choose yourself as a contender ..", GC); OptionLink("Uhh ... Let me provide another", 1, GC); OptionLink("Oh, sorry.", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); }
} } else if (option == 3) { Game.Character C = Game.World.CharacterFromName(GC.MyChar.Enemigo); { if ((C.Equips.RightHand.ID >= 410003 && C.Equips.RightHand.ID <= 421339) || (C.Equips.LeftHand.ID >= 410003 && C.Equips.LeftHand.ID <= 421339)) { if (C != null)// && C != GC.MyChar) { C.Apuesta = GC.MyChar.Apuesta; C.Enemigo = GC.MyChar.Name; C.MyClient.DialogNPC = 600566; PacketHandling.NPCDialog.Handle(C.MyClient, null, 600566, 0); C.MyClient.EndSend(); } } else { OptionText("The opponent who has asked not to have sword or blade, you can not fight with he!", GC); OptionLink("Uhh, let me choise another", 1, GC); OptionLink("Oh, bye", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } }
} } } else { OptionText("Sorry,but the tornament dont is for PM`s and GM`s", GC); OptionLink("Ah,ok", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } } break; #endregion #region Tourny 1v1 Checkout case 600566: { if (option == 0) { Game.Character C = Game.World.CharacterFromName(GC.MyChar.Enemigo); { OptionText(GC.MyChar.Enemigo + " has invited you to play for " + GC.MyChar.Apuesta + " CPs in a 1v1 battle, accept?", GC); OptionLink("Yes, i want figth.", 1, GC); OptionLink("More information of my enemy.", 3, GC); OptionLink("No thanks", 2, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } } else if (option == 1) { Game.Character C = Game.World.CharacterFromName(GC.MyChar.Enemigo); { try { GC.MyChar.PkPuntos = 0; GC.MyChar.Teleport(1707, 52, 43); GC.MyChar.CPs -= (uint)GC.MyChar.Apuesta; Features.GuildWars.Ocupado = true; Game.World.SendMsgToAll(GC.MyChar.Name, GC.MyChar.Name + " and " + C.Name + " going to fight a battle for " + GC.MyChar.Apuesta + " CPs!", 2011, 0); // C.Teleport(GC.MyChar.Loc.Map, GC.MyChar.Loc.X,GC.MyChar.Loc.Y); C.Teleport(1707, 52, 43); C.CPs -= (uint)C.Apuesta; GC.MyChar.PkPuntos = 0; Features.GuildWars.Ocupado = true; GC.MyChar.Luchando = true; C.Luchando = true; GC.MyChar.Protection = true; C.Protection = true; } catch { try { GC.MyChar.PkPuntos = 0; GC.MyChar.Teleport(1707, 52, 43); Features.GuildWars.Ocupado = true; // Game.World.SendMsgToAll(GC.MyChar.Name, GC.MyChar.Name + " and " + C.Name + " going to fight a battle for " + GC.MyChar.Apuesta + " CPs!", 2011, 0); // C.Teleport(GC.MyChar.Loc.Map, GC.MyChar.Loc.X,GC.MyChar.Loc.Y); C.Teleport(1707, 52, 43); GC.MyChar.PkPuntos = 0; Features.GuildWars.Ocupado = true; GC.MyChar.Luchando = true; C.Luchando = true; GC.MyChar.Protection = true; C.Protection = true; } catch { Console.WriteLine("EROR GM`s or PM`s at tornament 1 vs 1"); Console.WriteLine("EROR GM`s or PM`s at tornament 1 vs 1"); Console.WriteLine("EROR GM`s or PM`s at tornament 1 vs 1"); Console.WriteLine("EROR GM`s or PM`s at tornament 1 vs 1"); Features.GuildWars.Ocupado = false; GC.MyChar.PkPuntos = 0; GC.MyChar.Luchando = false; GC.MyChar.Protection = false; GC.MyChar.Enemigo = ""; C.PKPoints = 0; C.Luchando = false; C.Protection = false; C.Enemigo = ""; GC.MyChar.Teleport(1002, 444, 444); Console.WriteLine("EROR GM`s or PM`s at tornament 1 vs 1"); } }
} } else if (option == 2) { Game.Character C = Game.World.CharacterFromName(GC.MyChar.Enemigo); { GC.MyChar.Enemigo = ""; C.MyClient.DialogNPC = 600567; PacketHandling.NPCDialog.Handle(C.MyClient, null, 600567, 0); C.MyClient.EndSend(); } } else if (option == 3) { Game.Character C = Game.World.CharacterFromName(GC.MyChar.Enemigo); { OptionText("Información of: " + C.Name + " | Level: " + C.Level + " | Potency: " + C.Potency + " | ", GC); OptionText("Max HP: " + C.MaxHP + " | MahMP: " + C.MaxMP + " | Job: " + C.Job + ".", GC); OptionLink("Ok, i want figth!", 1, GC); OptionLink("No guy.. bye", 2, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } } } break;
#endregion #region Tourny 1v1 rejected case 600567: { if (option == 0) { GC.MyChar.Enemigo = ""; OptionText("Your enemy has rejected you", GC); OptionLink("Uhh... Ok thanks...", 255, GC); GC.AddSend(Packets.NPCSetFace(50)); GC.AddSend(Packets.NPCFinish()); } } break[/quote][color=RoyalBlue];
[color=RoyalBlue]كدة تمام اول حاجة تاني حاجة هتفتح ملف skills.cs وتدور علي الكود دة و كود:
[code][/code][size=21][color=RoyalBlue]if (User.PkPuntos == 10) { Game.World.SendMsgToAll(User.Name, User.Name + " (" + User.PkPuntos + ")" + " has won " + User.Enemigo + " (" + J.PkPuntos + ")" + " in a battle of 1 v 1! The winner has won: " + User.Apuesta + " CPs", 2011, 0); J.Teleport(1002, 406, 400); User.Teleport(1002, 399, 400); User.Protection = false; J.Protection = false; User.Luchando = false; J.Luchando = false; User.PkPuntos = 0; J.PkPuntos = 0; User.Enemigo = ""; J.Enemigo = ""; User.CPs += (uint)User.Apuesta; J.CPs -= (uint)User.Apuesta; Features.GuildWars.Ocupado = false; [size=21][color=RoyalBlue]وتبدله بي دة كود PHP: [/color][/size][code][size=21][color=RoyalBlue]if (User.PkPuntos == 10) { Game.World.SendMsgToAll(User.Name, User.Name + " (" + User.PkPuntos + ")" + " has won " + User.Enemigo + " (" + J.PkPuntos + ")" + " in a battle of 1 v 1! The winner has won: " + User.Apuesta + " CPs", 2011, 0); J.Teleport(1002, 406, 400); User.Teleport(1002, 399, 400); User.Protection = false; J.Protection = false; User.Luchando = false; J.Luchando = false; User.PkPuntos = 0; J.PkPuntos = 0; User.Enemigo = ""; J.Enemigo = ""; User.CPs += (uint)User.Apuesta; User.CPs += (uint)User.Apuesta; Features.GuildWars.Ocupado = false;
[size=21][color=RoyalBlue]طب اية الجديد اللي انت عملتو الجديد ان اول متيجي تخش المسابقة بياخد منك السي بي اس الاول واللي بيكسب بياخدهم الضعف بالطريقة دي محدش هيخش المسابقة وياخد سي بي اس منها [/color][/size] }[/color][/size][/code] }[/color][/size]
[/color]
#endregion*/[/color][/size] | |
|