إزيكو يا شباب عاملين إيه ,
واحشني والله ,
النهاردة جايبلكم فكرة جديدة
هنخلي الجالد مميز و هتعرف يعني إيه ناو حالا :)
تعالو بس الأول ميزات اللي هنعملو ده ,
هنخفف علي قاعدة البيانات كتــــــــــــــــير ,
هتخلي سيرفرك مميز .
واحشني والله ,
النهاردة جايبلكم فكرة جديدة
هنخلي الجالد مميز و هتعرف يعني إيه ناو حالا :)
تعالو بس الأول ميزات اللي هنعملو ده ,
هنخفف علي قاعدة البيانات كتــــــــــــــــير ,
هتخلي سيرفرك مميز .
إحنا النهاردة هنخلي اللي يعمل جالد جديد الكينجات فقط ,
أيوة يعني 3 جالدات بس ف اللعبة ,
طب و دي هتفيد ف إيه يا عم الناصح ,
أقولك يا عم النجم إنت لو واحد كينج عمل جالد و نزل برنس ,
بتديه فرصة يوم واحد عشان يرفع يا إما تمسح الجالد ,
يقوم االشحن ف الجيم يزيد لأن كلهم عاوزين جادلات ياخدو بيها الوار ,
عشان لازم الجايزة تكون كبيرة .
نيجي بقا للشرح ....
إفتح السورس بتاعك .
و بعدين ملف
اقتباس:
Dialogs.cs |
و بعدين تدور ع الكود ده :
اقتباس:
case 0x2713: |
وبعجين تشيل كل الإن بي سي ده و تحط ده مكانه
اقتباس:
case 0x2713: Guild.Member memberByName; switch (npcRequest.OptionID) { case 0: dialogs.Text("Hello there. Do you want to create a new guild? You need level 90 and 500000 silver and you have to not belong to any guild. If you are a guild leader, then you can name 5 deputy leaders."); dialogs.Option("Create guild.", 1); dialogs.Option("Name deputy leader.", 3); dialogs.Option("Move leadership.", 6); dialogs.Option("Disband guild.", 9); dialogs.Option("Remove ins From my items.", 15); dialogs.Option("I don't have that.", 0xff); dialogs.Send(); goto Label_1B9C5; case 1: if (((client.Guild == null) && (client.Entity.Level >= 90)) && (client.Entity.Money >= 0x7a120)) if (client.Entity.NobilityRank == NobilityRank.King) { dialogs.Text("Name your guild. The name must have less than 16 characters of any type."); dialogs.Input("Here:", 2, 0x10); dialogs.Option("Ah, nevermind.", 0xff); dialogs.Send(); } else { dialogs.Text("U Must Be King And Have 500 K Money To Create A Guild."); dialogs.Option("Ahh.", 0xff); dialogs.Send(); } goto Label_1B9C5; case 2: if ((((client.Guild == null) && (client.Entity.Level >= 90)) && (client.Entity.Money >= 0x7a120)) && (npcRequest.Input != "")) { if (!Guild.CheckNameExist(npcRequest.Input)) { client.Entity.Money -= 0x7a120; Guild guild = new Guild(client.Entity.Name) { ID = Guild.GuildCounter.Next, SilverFund = 0x7a120L }; Guild.Member member2 = new Guild.Member(guild.ID) { SilverDonation = 0x7a120L, ID = client.Entity.UID, Level = client.Entity.Level, Name = client.Entity.Name, Rank = Enums.GuildMemberRank.GuildLeader }; client.AsMember = member2; if (client.NobilityInformation != null) { client.AsMember.Gender = client.NobilityInformation.Gender; client.AsMember.NobilityRank = client.NobilityInformation.Rank; } client.Entity.GuildID = (ushort)guild.ID; client.Entity.GuildRank = 0x3e8; guild.Leader = client.AsMember; client.Guild = guild; guild.Create(npcRequest.Input); guild.Name = npcRequest.Input; guild.MemberCount++; guild.SendGuild(client); guild.SendName(client); client.Screen.FullWipe(); client.Screen.Reload(null); } else { dialogs.Text("There is a Guild Already with this Name i'm sorry."); dialogs.Option("Choose another Name", 1); dialogs.Option("Ok Sorry.", 0xff); dialogs.Send(); } } goto Label_1B9C5; case 3: if ((client.Guild != null) && (client.AsMember.Rank == Enums.GuildMemberRank.GuildLeader)) { dialogs.Text("You have now " + client.Guild.DeputyLeaderCount + " named deupty leaders."); if (client.Guild.DeputyLeaderCount == 5) { dialogs.Text("You cannot name any other deupty leader."); dialogs.Option("Ah, nevermind.", 0xff); dialogs.Send(); } else { dialogs.Text("Input here the member name you want to promote as deputy leader."); dialogs.Input("Here:", 4, 0x10); dialogs.Option("Ah, nevermind.", 0xff); dialogs.Send(); } } else { dialogs.Text("You don't meet the requierments."); dialogs.Option("Ahh.", 0xff); dialogs.Send(); } goto Label_1B9C5; case 4: if (((client.Guild != null) && (client.AsMember.Rank == Enums.GuildMemberRank.GuildLeader)) && (npcRequest.Input != "")) { memberByName = client.Guild.GetMemberByName(npcRequest.Input); if (memberByName == null) { dialogs.Text("There is no such member in your guild."); dialogs.Option("Ah, nevermind.", 0xff); dialogs.Send(); return; } if (memberByName.Rank != Enums.GuildMemberRank.Member) { dialogs.Text("You cannot promote this member anymore."); dialogs.Option("Ah, nevermind.", 0xff); dialogs.Send(); return; } memberByName.Rank = Enums.GuildMemberRank.DeputyLeader; if (memberByName.IsOnline) { client.Guild.SendGuild(memberByName.Client); memberByName.Client.Entity.GuildRank = (ushort)memberByName.Rank; memberByName.Client.Screen.FullWipe(); memberByName.Client.Screen.Reload(null); } client.Guild.DeputyLeaderCount++; } goto Label_1B9C5; case 5: case 8: case 11: case 12: case 13: case 14: goto Label_1B9C5; case 6: if ((client.Guild != null) && (client.AsMember.Rank == Enums.GuildMemberRank.GuildLeader)) { dialogs.Text("Input here the member name you want to promote as guild leader."); dialogs.Input("Here:", 7, 0x10); dialogs.Option("Ah, nevermind.", 0xff); dialogs.Send(); } else { dialogs.Text("You don't meet the requierments."); dialogs.Option("Ahh.", 0xff); dialogs.Send(); } goto Label_1B9C5; case 7: if (((client.Guild != null) && (client.AsMember.Rank == Enums.GuildMemberRank.GuildLeader)) && (npcRequest.Input != "")) { memberByName = client.Guild.GetMemberByName(npcRequest.Input); if (memberByName == null) { dialogs.Text("There is no such member in your guild."); dialogs.Option("Ah, nevermind.", 0xff); dialogs.Send(); return; } if (memberByName.Rank == Enums.GuildMemberRank.GuildLeader) { dialogs.Text("You cannot promote this member anymore."); dialogs.Option("Ah, nevermind.", 0xff); dialogs.Send(); return; } if (memberByName.Rank == Enums.GuildMemberRank.DeputyLeader) { client.Guild.DeputyLeaderCount--; } memberByName.Rank = Enums.GuildMemberRank.GuildLeader; if (memberByName.IsOnline) { client.Guild.SendGuild(memberByName.Client); memberByName.Client.Entity.GuildRank = (ushort)memberByName.Rank; memberByName.Client.Screen.FullWipe(); memberByName.Client.Screen.Reload(null); } client.AsMember.Rank = Enums.GuildMemberRank.DeputyLeader; if (client.AsMember.IsOnline) { client.Guild.SendGuild(client); client.Entity.GuildRank = (ushort)memberByName.Rank; client.Screen.FullWipe(); client.Screen.Reload(null); } client.Guild.DeputyLeaderCount++; } goto Label_1B9C5; case 9: if ((client.Guild != null) && (client.AsMember.Rank == Enums.GuildMemberRank.GuildLeader)) { dialogs.Text("Are you sure you want to disband your guild?"); dialogs.Option("Yes.", 10); dialogs.Option("Ah, nevermind.", 0xff); dialogs.Send(); } else { dialogs.Text("You don't meet the requierments."); dialogs.Option("Ahh.", 0xff); dialogs.Send(); } goto Label_1B9C5; case 10: if ((client.Guild != null) && (client.AsMember.Rank == Enums.GuildMemberRank.GuildLeader)) { client.Guild.Disband(); } goto Label_1B9C5; case 15: if (client.Guild != null) { dialogs.Text("Sorry you Already in guild i cant help you, need to Quit so i can help You."); dialogs.Option("Ahh.", 0xff); dialogs.Send(); } else { ConquerItemTable.deleteallguildins(client); dialogs.Text("Congratulations, all your items is back to normal status again, Now you need to Relog!"); dialogs.Option("Thanks, i'll relog.", 0xff); dialogs.Send(); } goto Label_1B9C5; } goto Label_1B9C5; |
و مبروك عليك ,
ملحوظة بسيطة :
ده لسورس كيمو فقط ,
0 التعليقات:
إرسال تعليق