عرض مشاركة واحدة
قديم 2019-07-02, 05:15 AM
المشاركة 6
AMREL3FREIT
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: فكره جديد بمناسبة انتهاء الامتحانات
ده ل 2d

كود:
 #region Stagma hazem
            #region action
            
if (client.Entity.MapID == 1002)//mapid  
            
{
                if (
new_X == 300 && new_Y == 300//x.y  
                
{
                    
client.Entity.AddFlag(Update.Flags.Stigma);
                    {
                        
client.Entity.StigmaStamp Time32.Now.AddSeconds(40);
                        
client.Entity.AddFlag((ulong)Update.Flags.Stigma);

                        
//client.Send(new MsgTalk("You have been teleported to " + client.Player.MapID + "!", System.Drawing.Color.Yellow, MsgTalk.Whisper)); 
                    
}
                }
            }
            
#endregion
            
if (SomailProject.Kernel.GetDistance(client.Entity.Xclient.Entity.Y300300) < 17 && !client.Effect3)
            {
                
client.Effect3 true;
                if (
client.Entity.MapID == 1002//mapid   
                
{
                    
Network.GamePackets.FloorItem floorItem = new Network.GamePackets.FloorItem(true);

                    
floorItem.ItemID 791//effectid   
                    
floorItem.MapID 1002;//mapid   
                    
floorItem.300//X,Co-ordinate   
                    
floorItem.300//Y,Co-ordinate   
                    
floorItem.Type Network.GamePackets.FloorItem.Effect;

                    
client.Send(floorItem);
                }
            }
            else
            {
                if (
SomailProject.Kernel.GetDistance(client.Entity.Xclient.Entity.Y300300) > 17)
                {
                    
client.Effect3 false;
                }
            }
            
#endregion 

تعديل بسيط عشان الان بي سي ميبقاش فيه مشكله

كود:
                    if (client.Player.PlayerFlag == COServer.Game.PlayerFlag.Player

ل

كود:
client.Entity.AddFlag(Update.Flags.Stigma); 

كدا هيشتغل كويس