منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   تطوير سيرفرات كونكر (https://code.vpscairo.com/forumdisplay.php?f=11)
-   -   حل مشكله الانتقال بالدوامات (https://code.vpscairo.com/showthread.php?t=141)

محمد ياسر 2019-04-23 03:28 PM

حل مشكله الانتقال بالدوامات
 

بسم الله الرحمن الرحيم

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

المشكله فى معظم السورسات الانتقال فى الدومات ينقلك الى مكان واحد فقط

افتح [ PacketHandler.cs ]

ابحث عن
كود PHP:

static void UsePortal(Data generalDataClient.GameState client

اغلقه من الناقص الموجوده بجانبه و استبدله بالاتى
كود PHP:

enum MapsIDsByCorrM ushort
        
{
            
TwinCity 1002,
            
Phoenix 1011,
            
ApeCity 1020,
            
DesertCity 1000,
            
BirdIsland 1015,
            
MineCave 1003
        
}

        static 
void UsePortal(Data generalDataClient.GameState client)
        {
            
client.Entity.Action ZaLMaN.Game.Enums.ConquerAction.None;
            
client.ReviveStamp Time32.Now;
            
client.Attackable false;
            
ushort portal_X = (ushort)(generalData.dwParam 0xFFFF);
            
ushort portal_Y = (ushort)(generalData.dwParam >> 16);

            
string portal_ID portal_X.ToString() + ":" portal_Y.ToString() + ":" client.Map.ID.ToString();
            if (
client.Account.State == Database.AccountTable.AccountState.ProjectManager)
                
client.Send(new Message("Portal ID: " portal_IDSystem.Drawing.Color.WhiteNetwork.GamePackets.Message.TopLeft));

            
// Twin To Phoenix
            
if (portal_X == 811 && portal_Y == 523 && client.Map.ID == (ushort)MapsIDsByCorrM.TwinCity)
                
client.Entity.Teleport((ushort)MapsIDsByCorrM.Phoenix12378);

            
// Phoenix To Twin
            
if (portal_X == && portal_Y == 376 && client.Map.ID == (ushort)MapsIDsByCorrM.Phoenix)
                
client.Entity.Teleport((ushort)MapsIDsByCorrM.TwinCity808525);

            
// Twin To App
            
if (portal_X == 523 && portal_Y == 811 && client.Map.ID == (ushort)MapsIDsByCorrM.TwinCity)
                
client.Entity.Teleport((ushort)MapsIDsByCorrM.ApeCity37813);

            
// App To Twin
            
if (portal_X == 376 && portal_Y == && client.Map.ID == (ushort)MapsIDsByCorrM.ApeCity)
                
client.Entity.Teleport((ushort)MapsIDsByCorrM.TwinCity525809);

            
// Twin To Desert
            
if (portal_X == 67 && portal_Y == 350 && client.Map.ID == (ushort)MapsIDsByCorrM.TwinCity)
                
client.Entity.Teleport((ushort)MapsIDsByCorrM.DesertCity973668);

            
// Desert To Twin
            
if (portal_X == 977 && portal_Y == 668 && client.Map.ID == (ushort)MapsIDsByCorrM.DesertCity)
                
client.Entity.Teleport((ushort)MapsIDsByCorrM.TwinCity72348);

            
// MineCave To Twin
            
if (portal_X == 70 && portal_Y == 44 && client.Map.ID == (ushort)MapsIDsByCorrM.MineCave)
                
client.Entity.Teleport((ushort)MapsIDsByCorrM.TwinCity300278);

            
// Twin To Bird
            
if (portal_X == 528 && portal_Y == 328 && client.Map.ID == (ushort)MapsIDsByCorrM.TwinCity)
                
client.Entity.Teleport((ushort)MapsIDsByCorrM.BirdIsland1015710);

            
// Bird To Twin
            
if (portal_X == 1014 && portal_Y == 706 && client.Map.ID == (ushort)MapsIDsByCorrM.BirdIsland)
                
client.Entity.Teleport((ushort)MapsIDsByCorrM.TwinCity525330);

        } 


Users 2019-09-26 10:25 PM

رد: حل مشكله الانتقال بالدوامات
 
عاااش


الساعة الآن 07:54 PM

مرحبا بكم في منتدي اكواد لتطوير الالعاب