كونكر عرب

كونكر عرب (https://conquer-arab.com/index.php)
-   تطوير سيرفرات كونكر (https://conquer-arab.com/forumdisplay.php?f=11)
-   -   حل مشكلة Pk في سورس Squad (https://conquer-arab.com/showthread.php?t=5693)

ElSaher 2020-07-31 04:17 AM

حل مشكلة Pk في سورس Squad
 
شكرا محمود محمد علي الجواب

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

public static void ChangePKMode( 

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


        
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.");
            }
        } 


خالد تركى 2020-08-01 01:53 AM

رد: حل مشكلة Pk في سورس Squad
 
تسلم بجد عامل شغل كويس فى السورس احيكو

خالد تركى 2020-08-01 03:09 PM

رد: حل مشكلة Pk في سورس Squad
 
اقتباس:

المشاركة الأصلية كتبت بواسطة ElSaher (المشاركة 54084)
شكرا محمود محمد علي الجواب

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

public static void ChangePKMode( 

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


        
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.");
            }
        } 


خلى بالك فى مشكلة كمان البور الكنج قارى عادى بس لما حد يكشف عليك بيظهر انك مش واخد بورك من رنك ديت صورة

عفواً لايمكن عرض الروابط إلا بعد الرد على الموضوع

Shit 2020-08-01 03:35 PM

رد: حل مشكلة Pk في سورس Squad
 
!!!!!!!!!!!!!!


الساعة الآن 08:12 AM

مرحبا بكم في منتدي اكواد لتطوير الالعاب
new notificatio by 9adq_ala7sas