قديم 2019-12-05, 08:04 PM
المشاركة 2
Hassan Emprator
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: التعديل ع portals
bin/debug/database/portals

قديم 2019-12-05, 08:57 PM
المشاركة 3
midoazoz
.:: عضو مميز ::.
  • غير متواجد
افتراضي رد: التعديل ع portals
انت اجاباتك بتبهرني منا عارف اعدل عليه ازاي واضيف واحده جديده ازاي وياريت تجربها قبل متقولي ياسطا معلش عشان انا حاولت وفيها ومظهرتش

قديم 2019-12-05, 10:46 PM
المشاركة 4
Rider
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: التعديل ع portals

كود:
static void UsePortal(Data generalDataClient.GameState client)
        {
            
client.Entity.Action KhaledMohamed.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.RedNetwork.GamePackets.Message.TopLeft));

            foreach (
Game.Portal portal in client.Map.Portals)
            {
                
int newmap portal.DestinationMapID 1000;
                if (
Kernel.GetDistance(portal.CurrentXportal.CurrentYclient.Entity.Xclient.Entity.Y) <= 4)
                {
                    if (
client.Player.Servernum == 1)
                    {
                        
client.Entity.Teleport(portal.DestinationMapIDportal.DestinationXportal.DestinationYfalse);
                        return;
                    }
                    else
                    {
                        if(
portal.DestinationMapID==1002)//
                            
client.Entity.Teleport(1004portal.DestinationXportal.DestinationYfalse);//  هتاخد سطر ده و الي فوقه كوبي  و باست عشان تضيف مابات تانيه
                        // 1002 مابه قديمه الي هتخرج فيها
                        //1004 مابه جديده الي هتخرج فيها طالما انته ف سيرفير تاني
                        
if (portal.DestinationMapID == 1002)
                            
client.Entity.Teleport(portal.DestinationMapIDportal.DestinationXportal.DestinationYfalse);
                        return;
                    }
                }
            }
            if (
client.Player.Servernum == 1)
            {
                
client.Entity.Teleport(1002300278);
            }
            else
            {
                
client.Entity.Teleport(1002300278); //مابه سيرفير تاني
            
}
        } 


قديم 2019-12-06, 12:40 AM
المشاركة 5
midoazoz
.:: عضو مميز ::.
  • غير متواجد
افتراضي رد: التعديل ع portals
كود:
static void useportal(data generaldataclient.gamestate client)
        {
            
client.entity.action khaledmohamed.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.rednetwork.gamepackets.message.topleft));

            foreach (
game.portal portal in client.map.portals)
            {
                
int newmap portal.destinationmapid 1000;
                if (
kernel.getdistance(portal.currentxportal.currentyclient.entity.xclient.entity.y) <= 4)
                {
                    if (
client.player.servernum == 1)
                    {
                        
client.entity.teleport(portal.destinationmapidportal.destinationxportal.destinationyfalse);
                        return;
                    }
                    else
                    {
                        if(
portal.destinationmapid==1002)//
                            
client.entity.teleport(1004portal.destinationxportal.destinationyfalse);//  هتاخد سطر ده و الي فوقه كوبي  و باست عشان تضيف مابات تانيه
                        // 1002 مابه قديمه الي هتخرج فيها
                        //1004 مابه جديده الي هتخرج فيها طالما انته ف سيرفير تاني
                        
if (portal.destinationmapid == 1002)
                            
client.entity.teleport(portal.destinationmapidportal.destinationxportal.destinationyfalse);
                        return;
                    }
                }
            }
            if (
client.player.servernum == 1)
            {
                
client.entity.teleport(1002300278);
            }
            else
            {
                
client.entity.teleport(1002300278); //مابه سيرفير تاني
            
}
        } 
شايف يا عم حسن اهو ده الكلام تسلم يا ريدار ^_^

قديم 2019-12-06, 03:08 AM
المشاركة 6
Hassan Emprator
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: التعديل ع portals
شايف يا عم حسن اهو ده الكلام تسلم يا ريدار ^_^
هههههههه انا كنت بحسب المكان يحب


العلامات المرجعية



الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1)
 

الانتقال السريع

المواضيع المتشابهه للموضوع: التعديل ع portals
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
التعديل علي ملفات c3 محمد ياسر تطوير سيرفرات كونكر 76 2024-04-11 09:10 PM
شرح التعديل علي الاتاك Mero تطوير سيرفرات كونكر 2 2022-04-08 02:18 AM
سلفر [Empire-War] بعد التعديل ElSaher اعلانات السيرفيرات الشخصية 0 2019-09-08 04:52 AM
طلب التعديل علي الاستريك ElSaher مشكلات السيرفيرات كونكر الشخصيه 4 2019-08-27 03:03 PM
التعديل على البرفكشن Users تطوير سيرفرات كونكر 4 2019-07-14 01:04 PM


الساعة الآن 09:35 AM

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.