عرض مشاركة واحدة
قديم 2020-07-31, 04:29 AM
المشاركة 10
MaZzGanGYy
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: يرجاله مشكله ضروررى ف سورس اكواد النزل اليومين دول
هو ده عيب ابجريد بروتو بس حله سهل مش صعب ركز معايه يا حج

هتبحث فى السورس كلو عن الفويد ده


كود:
public static void ChangePKMode( 

بعد كدا هتبدل الفويد كلو بالفويد ده


كود:
        public static void ChangePKMode(MsgAction action, GameState client)
        {
            if (
client.Player.PKMode == Game.Enums.PKMode.Kongfu)
            {
                if ((
Game.Enums.PKMode)(byte)action.dwParam != Game.Enums.PKMode.Kongfu)
                {
                    
client.Send("You`ll quit the Jiang Hu in 10 minutes.");
                }
            }
            if (
client.InTeamQualifier()) return;
            
client.Player.AttackPacket = null;
            
client.Player.PKMode = (Game.Enums.PKMode)(byte)action.dwParam;
            
action.buffer.wParam1 = action.buffer.dwParam;
        
//    action.dwParam = 3;هنا لو فعلت الكود ده المفروض الاكونت منين ما يفتح يكون واخد وضع الرقم الى انت محدده
            
client.Send(action);
            if ((
client.Player.PKMode == Game.Enums.PKMode.Kongfu) && (client.Player.MyKongFu != null))
            {
                
client.Player.MyKongFu.OnJiangMode = true;
                
client.Player.MyKongFu.SendStatusMode(client);
            }
            if (
client.Player.PKMode == Enums.PKMode.PK)
            {
                
client.Send("Free PK mode: you can attack monsters and all Players.");
            }
            else if (
client.Player.PKMode == Enums.PKMode.Peace)
            {
                
client.Send("Peace mode: You can only attack monsters.");
            }
            else if (
client.Player.PKMode == Enums.PKMode.Team)
            {
                
client.Send("Team mode: slay monsters, and all other players (including cross-server players) not in your current team or guild. ");
            }
            else if (
client.Player.PKMode == Enums.PKMode.Capture)
            {
                
client.Send("Capture mode: Slay monsters, black/blue-name criminals, and cross-server players.");
            }
            else if (
client.Player.PKMode == Enums.PKMode.Revenge)
            {
                
client.Send("revenge mode: Slay your listed enemies, monsters, and cross-server players.");
            }
            else if (
client.Player.PKMode == Enums.PKMode.Union)
            {
                
client.Send("The `Plander` mode only allow you to other players in enemy Union.");
            }
            else if (
client.Player.PKMode == Enums.PKMode.Guild)
            {
                
client.Send("Guild mode: Slay monsters, and players in your enemy guilds, and cross-server players.");
            }
            else if (
client.Player.PKMode == Enums.PKMode.Kongfu)
            {
                
client.Send("Jiang Hu mode: Slay Jiang Hu fighters, black/blue-name criminals, and cross-server players.");
            }
            else if (
client.Player.PKMode == Enums.PKMode.CS)
            {
                
client.Send("CS (Cross-Server) mode: Attack cross-server players. No Pk punishment.");
            }
            else if (
client.Player.PKMode == Enums.PKMode.Invade)
            {
                
client.Send("Invade mode: Only attack players of the target (current) server No Pk punishment.");
            }
        } 

ختاما كل سنه وانت طيب
غلط طبعا يسطا

هعتبرك نسيت

بس ال wParam1 غلط هي المفروض dwParam2الي هي ميمبر 5 ومينفعش تكون غير كدا