منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   مشكلات السيرفيرات كونكر الشخصيه (https://code.vpscairo.com/forumdisplay.php?f=12)
-   -   مشكلة بخصوص جايزة الجيلد وار (https://code.vpscairo.com/showthread.php?t=4268)

AhmedGadd 2020-04-05 01:41 AM

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

ElSaher 2020-04-05 02:11 AM

رد: مشكلة بخصوص جايزة الجيلد وار
 
دي الرسالة هتبدلها بلي عندك في World

كود PHP:

            #region GuildWar
            
if ((Now64.Hour == 19 && Now64.Minute == 5 && Now64.Second == 0))
            {
                
Kernel.SendWorldMessage(new Message("Guild War now work will end at 21:00 Server time have Chance To Get [500.000.000] !", Color.White, Message.BroadcastMessage), Program.Values);
                foreach (var 
client in Program.Values)
                    
client.MessageBox(" Guild War now work will end at 21:00 Server time?",
                    
p => { p.Player.Teleport(1002, 224, 237); }, null, 20);
            }
            
#endregion
            #region GuildWar
            
if (GuildWar.IsWar)
            {
                if (
Time32.Now > GuildWar.ScoreSendStamp.AddSeconds(3))
                {
                    
GuildWar.ScoreSendStamp = Time32.Now;
                    
GuildWar.SendScores();
                }

            }
            if ((
Now64.Hour >= 01 && Now64.Hour <= 20))
            {
                if (!
GuildWar.IsWar)
                {
                    
GuildWar.Start();
                    foreach (
Client.GameState client in Kernel.GamePool.Values)
                    {
                        if (
client.Map.BaseID != 6001 && client.Map.BaseID != 6000 && !client.Player.Dead)
                        {
                            
EventAlert alert = new EventAlert
                            
{
                                
StrResID = 10515,
                                
Countdown = 60,
                                
UK12 = 1
                            
};
                            
client.Player.StrResID = 10515;
                            
client.Send(alert);
                        }
                    }
                }
            }
            if (
GuildWar.IsWar)
            {
                if (
Now64.Hour == 21 && Now64.Second <= 00)
                {
                    
GuildWar.Flame10th = false;
                    
GuildWar.End();
                }
            }
            
#endregion 

دا الي npc بدلو بلي عندك
كود PHP:

                    #region Guild war
                    
case 1038:
                        {
                            switch (
client.ActiveNpc)
                            {
                                
#region Pole
                                
case 810:
                                    {
                                        
dialog.Text("Please, don't hurt me!.");
                                        
dialog.Option("Sorry.", 255);
                                        
dialog.Send();
                                        break;
                                    }
                                
#endregion
                                #region Prize Seller
                                
case 200033:
                                    {
                                        switch (
npcRequest.OptionID)
                                        {
                                            case 
0:
                                                {
                                                    
dialog.Text("Greetings! I'm a great seller, I have the most precious items in the entire ");
                                                    
dialog.Text("world. What do you want to get?");
                                                    
dialog.Option("GoldPrize [5 LordTokens]", 2);
                                                    
dialog.Option("Just passing by.", 255);
                                                    
dialog.Avatar(85);
                                                    
dialog.Send();
                                                    break;
                                                }
                                            case 
2:
                                                {
                                                    if (
client.Inventory.Contains(723467, 5))
                                                    {
                                                        
client.Inventory.Remove(723467, 5);
                                                        
client.Inventory.Add(2100075, 0, 0, 0, 0, 0, 0, 1, true);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("You don't have enough 5 LordTokens ");
                                                        
dialog.Option("I see.", 255);
                                                        
dialog.Avatar(85);
                                                        
dialog.Send();
                                                    }
                                                    break;
                                                }
                                        }
                                        break;
                                    }
                                
#endregion
                                #region*ClaimGuildPrize

                                
case 4482114:
                                    {
                                        switch (
npcRequest.OptionID)
                                        {
                                            case 
0:
                                                {
                                                    
dialog.Text("Hello*there.*Do*you*want*to*Claim*GuildWar*Prize*you*can*only*Claim*it*1*Time*if*you*won*GW.");
                                                    
dialog.Option("Claim*TopGuildLeader.", 1);
                                                    
dialog.Option("Claim*TopDeputyLeader 20 Tops.", 7);
                                                    
dialog.Option("Claim*TopMemberLeader.", 100);
                                                    
dialog.Option("Just*Passing*By!", 255);
                                                    
dialog.Send();
                                                    break;
                                                }
                                            case 
1:
                                                {
                                                    if (
client.Guild != null)
                                                    {
                                                        if (
client.Guild.PoleKeeper && client.Guild != null && client.AsMember.Rank == Mr_Panda.Game.Enums.GuildMemberRank.GuildLeader)
                                                        {
                                                            
dialog.Text("Are you sure you want to Claim your Prize?");
                                                            
dialog.Option("Yes.", 2);
                                                            
dialog.Option("Ah, nevermind.", 255);
                                                            
dialog.Send();
                                                        }
                                                        else
                                                        {
                                                            
dialog.Text("Sorry only GuildLeader of the Winner Guild can Claim The Prize After GuildWar End.");
                                                            
dialog.Option("Ahh.", 255);
                                                            
dialog.Send();
                                                        }
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry You are not Member in any guild yet");
                                                        
dialog.Option("Ahh.", 255);
                                                        
dialog.Send();
                                                    }
                                                    break;
                                                }
                                            case 
2:
                                                {
                                                    if (!
GuildWar.IsWar && GuildWar.Claim && client.Player.GuildID == GuildWar.KeeperID && client.Player.GuildRank == (ushort)Game.Enums.GuildMemberRank.GuildLeader)
                                                    {
                                                        
Program.AddWarLog("GuildWar", "[500.000.000] ConquerPoint", client.Player.Name);
                                                        
GuildWar.Claim = false;
                                                        
GuildWar.KeeperID = 0;
                                                        
client.Player.ConquerPoints += 500000000;
                                                        
ClassPk.AddGl();
                                                        
client.Player.AddTopStatus(Update.Flags.TopGuildLeader, 1, DateTime.Now.AddDays(1));
                                                        
Mr_Panda.Kernel.SendWorldMessage(new Message(" Congratulations ! " + client.Player.Name + " Leader of " + client.Guild.PoleKeeper + " The winner guild has Claimed Guild War Prize 500.000.000 Cps", System.Drawing.Color.White, Message.TopLeft), Program.Values);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you dont have Any Prize to claim only GL of the winner guild can claim Prize After GW");
                                                        
dialog.Option("Ahh.", 255);
                                                        
dialog.Send();
                                                    }
                                                    break;
                                                }
                                            case 
3:
                                                {
                                                    if (
client.Guild != null)
                                                    {
                                                        if (
client.Guild.PoleKeeper && client.Guild != null && client.AsMember.Rank == Mr_Panda.Game.Enums.GuildMemberRank.DeputyLeader)
                                                        {
                                                            
dialog.Text("Are*you*sure*you*want*to*Claim*your*Prize?");
                                                            
dialog.Option("Yes.", 4);
                                                            
dialog.Option("Ah,*nevermind.", 255);
                                                            
dialog.Send();
                                                        }
                                                        else
                                                        {
                                                            
dialog.Text("Sorry*only*DeputyLeader*of*the*Winner*Guild*can*Claim*The*Prize*After*GuildWar*End.");
                                                            
dialog.Option("Ahh.", 255);
                                                            
dialog.Send();
                                                        }

                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry*You*are*not*Member*in*any*guild*yet");
                                                        
dialog.Option("Ahh.", 255);
                                                        
dialog.Send();
                                                    }
                                                    break;
                                                }
                                            case 
4:
                                                {

                                                    {
                                                        if (!
GuildWar.IsWar && client.Guild.PoleKeeper && client.Guild != null && client.AsMember.Rank == Game.Enums.GuildMemberRank.DeputyLeader && ClassPk.TopDlClaim <= 8)
                                                        {
                                                            
ClassPk.AddDl();
                                                            
client.Player.AddTopStatus(Update.Flags.TopDeputyLeader, 1, DateTime.Now.AddDays(1));
                                                            
Kernel.SendWorldMessage(new Message(" Congratulations !*" + client.Player.Name + "*From*" + client.Guild.PoleKeeper + "*Has*Claimed*TopDeputyLeader*Halo!", System.Drawing.Color.White, Message.TopLeft), Program.Values);
                                                        }
                                                        else
                                                        {
                                                            
dialog.Text("Sorry*you*dont*have*Any*Prize*to*claim*only*Dl*of*the*Winner*Guild*Can*claim*the*halo*After*GW*end.");
                                                            
dialog.Option("Ahh.", 255);
                                                            
dialog.Send();
                                                        }
                                                    }
                                                    break;
                                                }
                                            case 
6:
                                                {
                                                    if (
client.Guild != null)
                                                    {
                                                        if (
client.Guild.PoleKeeper && client.Guild != null && client.AsMember.Rank != Mr_Panda.Game.Enums.GuildMemberRank.GuildLeader && client.AsMember.Rank != Mr_Panda.Game.Enums.GuildMemberRank.DeputyLeader)
                                                        {
                                                            
dialog.Text("Are*you*sure*you*want*to*Claim*your*Prize?");
                                                            
dialog.Option("Yes.", 7);
                                                            
dialog.Option("Ah,*nevermind.", 255);
                                                            
dialog.Send();
                                                        }
                                                        else
                                                        {
                                                            
dialog.Text("Sorry*only*MemberLeader*of*the*Winner*Guild*can*Claim*The*Prize*After*GuildWar*End.");
                                                            
dialog.Option("Ahh.", 255);
                                                            
dialog.Send();
                                                        }

                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry*You*are*not*Member*in*any*guild*yet");
                                                        
dialog.Option("Ahh.", 255);
                                                        
dialog.Send();
                                                    }
                                                    break;
                                                }
                                            case 
7:
                                                {

                                                    {
                                                        if (!
GuildWar.IsWar && client.Guild.PoleKeeper && client.Guild != null && client.AsMember.Rank == Game.Enums.GuildMemberRank.DeputyLeader && ClassPk.TopDlClaim <= 8)
                                                        {
                                                            
client.Player.AddTopStatus(Update.Flags.TopDeputyLeader, 1, DateTime.Now.AddDays(1));
                                                            
Kernel.SendWorldMessage(new Message(" Congratulations !*" + client.Player.Name + "*From*" + client.Guild.PoleKeeper + "*Has*Claimed*TopDboutyLeader*", System.Drawing.Color.White, Message.TopLeft), Program.Values);
                                                        }
                                                        else
                                                        {
                                                            
dialog.Text("Sorry*you*dont*have*Any*Prize*to*claim*only*Member*of*the*Winner*Guild*Can*claim*the*halo*After*GW*end.");
                                                            
dialog.Option("Ahh.", 255);
                                                            
dialog.Send();
                                                        }
                                                    }
                                                    break;
                                                }
                                        }
                                        break;
                                    }
                                
#endregion

                                #region Gates
                                
case 516074:
                                    {
                                        if (
client.Guild != null)
                                        {
                                            if (
client.Guild.PoleKeeper)
                                            {
                                                switch (
npcRequest.OptionID)
                                                {
                                                    case 
0:
                                                        
dialog.Text("Select the option you want to pursue.");
                                                        if (
client.AsMember.Rank == Mr_Panda.Game.Enums.GuildMemberRank.GuildLeader || client.AsMember.Rank == Mr_Panda.Game.Enums.GuildMemberRank.DeputyLeader)
                                                        {
                                                            
dialog.Option("Open gate.", 1);
                                                            if (
Game.GuildWar.LeftGate.Hitpoints == 0)
                                                                
dialog.Option("Repair gate.", 22);
                                                            else
                                                                
dialog.Option("Close gate.", 2);
                                                        }
                                                        
dialog.Option("Get inside.", 3);
                                                        
dialog.Option("Nothing.", 255);
                                                        
dialog.Send();
                                                        break;
                                                    case 
1:
                                                        {
                                                            
Mr_Panda.Game.GuildWar.LeftGate.Mesh = (ushort)(250 + Mr_Panda.Game.GuildWar.LeftGate.Mesh % 10);

                                                            
Update upd = new Update(true);
                                                            
upd.UID = Mr_Panda.Game.GuildWar.LeftGate.UID;
                                                            
upd.Append(Update.Mesh, Mr_Panda.Game.GuildWar.LeftGate.Mesh);
                                                            
client.SendScreen(upd, true);
                                                            break;
                                                        }
                                                    case 
2:
                                                        {
                                                            if (
Game.GuildWar.LeftGate.Hitpoints == 0)
                                                                return;
                                                            
Game.GuildWar.LeftGate.Mesh = (ushort)(240 + Game.GuildWar.LeftGate.Mesh % 10);
                                                            
Update upd = new Update(true);
                                                            
upd.UID = Mr_Panda.Game.GuildWar.LeftGate.UID;
                                                            
upd.Append(Update.Mesh, Mr_Panda.Game.GuildWar.LeftGate.Mesh);
                                                            
upd.Append(Update.Hitpoints, Mr_Panda.Game.GuildWar.LeftGate.Hitpoints);
                                                            
client.SendScreen(upd, true);
                                                            break;
                                                        }
                                                    case 
22:
                                                        {
                                                            
Game.GuildWar.LeftGate.Mesh = (ushort)(240 + Game.GuildWar.LeftGate.Mesh % 10);
                                                            if (
Game.GuildWar.LeftGate.Hitpoints == 0)
                                                                
Game.GuildWar.LeftGate.Hitpoints = Game.GuildWar.LeftGate.MaxHitpoints;
                                                            
Update upd = new Update(true);
                                                            
upd.UID = Mr_Panda.Game.GuildWar.LeftGate.UID;
                                                            
upd.Append(Update.Mesh, Mr_Panda.Game.GuildWar.LeftGate.Mesh);
                                                            
upd.Append(Update.Hitpoints, Mr_Panda.Game.GuildWar.LeftGate.Hitpoints);
                                                            
client.SendScreen(upd, true);
                                                            break;
                                                        }
                                                    case 
3:
                                                        {
                                                            
client.Player.Teleport(1038, 162, 198);
                                                            break;
                                                        }
                                                }
                                            }
                                        }
                                        break;
                                    }
                                case 
516075:
                                    {
                                        if (
client.Guild != null)
                                        {
                                            if (
client.Guild.PoleKeeper)
                                            {
                                                switch (
npcRequest.OptionID)
                                                {
                                                    case 
0:
                                                        
dialog.Text("Select the option you want to pursue.");
                                                        if (
client.AsMember.Rank == Mr_Panda.Game.Enums.GuildMemberRank.GuildLeader || client.AsMember.Rank == Mr_Panda.Game.Enums.GuildMemberRank.DeputyLeader)
                                                        {
                                                            
dialog.Option("Open gate.", 1);
                                                            if (
Game.GuildWar.RightGate.Hitpoints == 0)
                                                                
dialog.Option("Repair gate.", 22);
                                                            else
                                                                
dialog.Option("Close gate.", 2);
                                                        }
                                                        
dialog.Option("Get inside.", 3);
                                                        
dialog.Option("Nothing.", 255);
                                                        
dialog.Send();
                                                        break;
                                                    case 
1:
                                                        {
                                                            
Mr_Panda.Game.GuildWar.RightGate.Mesh = (ushort)(280 + Mr_Panda.Game.GuildWar.RightGate.Mesh % 10);

                                                            
Update upd = new Update(true);
                                                            
upd.UID = Mr_Panda.Game.GuildWar.RightGate.UID;
                                                            
upd.Append(Update.Mesh, Mr_Panda.Game.GuildWar.RightGate.Mesh);
                                                            
client.SendScreen(upd, true);
                                                            break;
                                                        }
                                                    case 
2:
                                                        {
                                                            if (
Game.GuildWar.RightGate.Hitpoints == 0)
                                                                return;
                                                            
Mr_Panda.Game.GuildWar.RightGate.Mesh = (ushort)(270 + Mr_Panda.Game.GuildWar.RightGate.Mesh % 10);
                                                            
Update upd = new Update(true);
                                                            
upd.UID = Mr_Panda.Game.GuildWar.RightGate.UID;
                                                            
upd.Append(Update.Mesh, Mr_Panda.Game.GuildWar.RightGate.Mesh);
                                                            
upd.Append(Update.Hitpoints, Mr_Panda.Game.GuildWar.RightGate.Hitpoints);
                                                            
client.SendScreen(upd, true);
                                                            break;
                                                        }
                                                    case 
22:
                                                        {
                                                            
Mr_Panda.Game.GuildWar.RightGate.Mesh = (ushort)(270 + Mr_Panda.Game.GuildWar.RightGate.Mesh % 10);
                                                            if (
Game.GuildWar.RightGate.Hitpoints == 0)
                                                                
Game.GuildWar.RightGate.Hitpoints = Game.GuildWar.RightGate.MaxHitpoints;
                                                            
Update upd = new Update(true);
                                                            
upd.UID = Mr_Panda.Game.GuildWar.RightGate.UID;
                                                            
upd.Append(Update.Mesh, Mr_Panda.Game.GuildWar.RightGate.Mesh);
                                                            
upd.Append(Update.Hitpoints, Mr_Panda.Game.GuildWar.RightGate.Hitpoints);
                                                            
client.SendScreen(upd, true);
                                                            break;
                                                        }
                                                    case 
3:
                                                        {
                                                            
client.Player.Teleport(1038, 210, 177);
                                                            break;
                                                        }
                                                }
                                            }
                                        }
                                        break;
                                    }
                                
#endregion

                                #region Guild Conductresses

                                #region Exit Guild Arena
                                
case 7000:
                                    {
                                        switch (
npcRequest.OptionID)
                                        {
                                            case 
0:
                                                {
                                                    
dialog.Text("Do you want to leave the guild arena?");
                                                    
dialog.Option("Yes.", 1);
                                                    
dialog.Option("No.", 255);
                                                    
dialog.Send();
                                                    break;
                                                }
                                            case 
1:
                                                {
                                                    
client.Player.Teleport(1002, 300, 278);
                                                    break;
                                                }
                                        }
                                        break;
                                    }
                                
#endregion


                                #endregion

                                #region Guild Conductors
                                #region IN
                                
case 9884:
                                case 
9885:
                                case 
9886:
                                case 
9887:
                                    {
                                        switch (
npcRequest.OptionID)
                                        {
                                            case 
0:
                                                {
                                                    
dialog.Text("In exchange of a fee of 1000gold, I will teleport you to a special place. If you don't have money, don't bother me.");
                                                    
dialog.Option("Teleport me.", 1);
                                                    
dialog.Option("I'm too poor.", 255);
                                                    
dialog.Send();
                                                    break;
                                                }
                                            case 
2:
                                                {
                                                    if (
client.Player.Money >= 10000)
                                                    {
                                                        if (
client.Inventory.Count < 40)
                                                        {
                                                            
client.Player.Money -= 10000;
                                                            switch (
client.ActiveNpc)
                                                            {
                                                                case 
9884:
                                                                    {
                                                                        
client.Inventory.Add(720021, 0, 1);
                                                                        break;
                                                                    }
                                                                case 
9885:
                                                                    {
                                                                        
client.Inventory.Add(720022, 0, 1);
                                                                        break;
                                                                    }
                                                                case 
9886:
                                                                    {
                                                                        
client.Inventory.Add(720023, 0, 1);
                                                                        break;
                                                                    }
                                                                case 
9887:
                                                                    {
                                                                        
client.Inventory.Add(720024, 0, 1);
                                                                        break;
                                                                    }


                                                            }
                                                        }
                                                        else
                                                        {
                                                            
dialog.Text("Sorry, you inventory is full");
                                                            
dialog.Option("Ah, ok", 255);
                                                            
dialog.Send();
                                                        }
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry, you not have 10.000 silver.");
                                                        
dialog.Option("Ah, ok", 255);
                                                        
dialog.Send();
                                                    }

                                                    break;
                                                }
                                            case 
1:
                                                {
                                                    if (
client.Player.Money >= 1000)
                                                    {
                                                        
client.Player.Money -= 1000;


                                                        
Database.GuildCondutors.Conductor cond = null;
                                                        if (
Database.GuildCondutors.GuildConductors.TryGetValue((uint)(client.ActiveNpc + 110), out cond))
                                                        {

                                                            
client.Player.Teleport(cond.Teleport_MapId, cond.Teleport_X, cond.Teleport_Y);
                                                        }
                                                        break;


                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry, you not have 1.000 silver.");
                                                        
dialog.Option("Ah, ok", 255);
                                                        
dialog.Send();
                                                    }
                                                    break;
                                                }
                                        }
                                        break;
                                    }
                                
#endregion
                                #endregion
                            
}
                            break;
                        }
                    
#endregion 

وكدا يكون تم الحل انشاء الله

AhmedGadd 2020-04-05 02:16 AM

رد: مشكلة بخصوص جايزة الجيلد وار
 
انا طبعا مقدر اهتمامك والله ومتشكر جدا لإجابتك بس انا عايز اعدل على مدة استلام الهدية بس مش الانبي سي و الورلد كله عشان ما صدقت ظبطته على يوم الجمعه و التلات و شكرا للمره التانيه ♥

AhmedGadd 2020-04-05 02:50 AM

رد: مشكلة بخصوص جايزة الجيلد وار
 
اقتباس:

المشاركة الأصلية كتبت بواسطة mohamed x black (المشاركة 35509)
دي الرسالة هتبدلها بلي عندك في world

كود PHP:

            #region guildwar
            
if ((now64.hour == 19 && now64.minute == 5 && now64.second == 0))
            {
                
kernel.sendworldmessage(new message("guild war now work will end at 21:00 server time have chance to get [500.000.000] !", color.white, message.broadcastmessage), program.values);
                foreach (var 
client in program.values)
                    
client.messagebox(" guild war now work will end at 21:00 server time?",
                    
p => { p.player.teleport(1002, 224, 237); }, null, 20);
            }
            
#endregion
            #region guildwar
            
if (guildwar.iswar)
            {
                if (
time32.now > guildwar.scoresendstamp.addseconds(3))
                {
                    
guildwar.scoresendstamp = time32.now;
                    
guildwar.sendscores();
                }

            }
            if ((
now64.hour >= 01 && now64.hour <= 20))
            {
                if (!
guildwar.iswar)
                {
                    
guildwar.start();
                    foreach (
client.gamestate client in kernel.gamepool.values)
                    {
                        if (
client.map.baseid != 6001 && client.map.baseid != 6000 && !client.player.dead)
                        {
                            
eventalert alert = new eventalert
                            
{
                                
strresid = 10515,
                                
countdown = 60,
                                
uk12 = 1
                            
};
                            
client.player.strresid = 10515;
                            
client.send(alert);
                        }
                    }
                }
            }
            if (
guildwar.iswar)
            {
                if (
now64.hour == 21 && now64.second <= 00)
                {
                    
guildwar.flame10th = false;
                    
guildwar.end();
                }
            }
            
#endregion 

دا الي npc بدلو بلي عندك
كود PHP:

                    #region guild war
                    
case 1038:
                        {
                            switch (
client.activenpc)
                            {
                                
#region pole
                                
case 810:
                                    {
                                        
dialog.text("please, don't hurt me!.");
                                        
dialog.option("sorry.", 255);
                                        
dialog.send();
                                        break;
                                    }
                                
#endregion
                                #region prize seller
                                
case 200033:
                                    {
                                        switch (
npcrequest.optionid)
                                        {
                                            case 
0:
                                                {
                                                    
dialog.text("greetings! I'm a great seller, i have the most precious items in the entire ");
                                                    
dialog.text("world. What do you want to get?");
                                                    
dialog.option("goldprize [5 lordtokens]", 2);
                                                    
dialog.option("just passing by.", 255);
                                                    
dialog.avatar(85);
                                                    
dialog.send();
                                                    break;
                                                }
                                            case 
2:
                                                {
                                                    if (
client.inventory.contains(723467, 5))
                                                    {
                                                        
client.inventory.remove(723467, 5);
                                                        
client.inventory.add(2100075, 0, 0, 0, 0, 0, 0, 1, true);
                                                    }
                                                    else
                                                    {
                                                        
dialog.text("you don't have enough 5 lordtokens ");
                                                        
dialog.option("i see.", 255);
                                                        
dialog.avatar(85);
                                                        
dialog.send();
                                                    }
                                                    break;
                                                }
                                        }
                                        break;
                                    }
                                
#endregion
                                #region*claimguildprize

                                
case 4482114:
                                    {
                                        switch (
npcrequest.optionid)
                                        {
                                            case 
0:
                                                {
                                                    
dialog.text("hello*there.*do*you*want*to*claim*guildwar*prize*you*can*only*claim*it*1*time*if*you*won*gw.");
                                                    
dialog.option("claim*topguildleader.", 1);
                                                    
dialog.option("claim*topdeputyleader 20 tops.", 7);
                                                    
dialog.option("claim*topmemberleader.", 100);
                                                    
dialog.option("just*passing*by!", 255);
                                                    
dialog.send();
                                                    break;
                                                }
                                            case 
1:
                                                {
                                                    if (
client.guild != null)
                                                    {
                                                        if (
client.guild.polekeeper && client.guild != null && client.asmember.rank == mr_panda.game.enums.guildmemberrank.guildleader)
                                                        {
                                                            
dialog.text("are you sure you want to claim your prize?");
                                                            
dialog.option("yes.", 2);
                                                            
dialog.option("ah, nevermind.", 255);
                                                            
dialog.send();
                                                        }
                                                        else
                                                        {
                                                            
dialog.text("sorry only guildleader of the winner guild can claim the prize after guildwar end.");
                                                            
dialog.option("ahh.", 255);
                                                            
dialog.send();
                                                        }
                                                    }
                                                    else
                                                    {
                                                        
dialog.text("sorry you are not member in any guild yet");
                                                        
dialog.option("ahh.", 255);
                                                        
dialog.send();
                                                    }
                                                    break;
                                                }
                                            case 
2:
                                                {
                                                    if (!
guildwar.iswar && guildwar.claim && client.player.guildid == guildwar.keeperid && client.player.guildrank == (ushort)game.enums.guildmemberrank.guildleader)
                                                    {
                                                        
program.addwarlog("guildwar", "[500.000.000] conquerpoint", client.player.name);
                                                        
guildwar.claim = false;
                                                        
guildwar.keeperid = 0;
                                                        
client.player.conquerpoints += 500000000;
                                                        
classpk.addgl();
                                                        
client.player.addtopstatus(update.flags.topguildleader, 1, datetime.now.adddays(1));
                                                        
mr_panda.kernel.sendworldmessage(new message(" congratulations ! " + client.player.name + " leader of " + client.guild.polekeeper + " the winner guild has claimed guild war prize 500.000.000 cps", system.drawing.color.white, message.topleft), program.values);
                                                    }
                                                    else
                                                    {
                                                        
dialog.text("sorry you dont have any prize to claim only gl of the winner guild can claim prize after gw");
                                                        
dialog.option("ahh.", 255);
                                                        
dialog.send();
                                                    }
                                                    break;
                                                }
                                            case 
3:
                                                {
                                                    if (
client.guild != null)
                                                    {
                                                        if (
client.guild.polekeeper && client.guild != null && client.asmember.rank == mr_panda.game.enums.guildmemberrank.deputyleader)
                                                        {
                                                            
dialog.text("are*you*sure*you*want*to*claim*your*prize?");
                                                            
dialog.option("yes.", 4);
                                                            
dialog.option("ah,*nevermind.", 255);
                                                            
dialog.send();
                                                        }
                                                        else
                                                        {
                                                            
dialog.text("sorry*only*deputyleader*of*the*winner*guild*can*claim*the*prize*after*guildwar*end.");
                                                            
dialog.option("ahh.", 255);
                                                            
dialog.send();
                                                        }

                                                    }
                                                    else
                                                    {
                                                        
dialog.text("sorry*you*are*not*member*in*any*guild*yet");
                                                        
dialog.option("ahh.", 255);
                                                        
dialog.send();
                                                    }
                                                    break;
                                                }
                                            case 
4:
                                                {

                                                    {
                                                        if (!
guildwar.iswar && client.guild.polekeeper && client.guild != null && client.asmember.rank == game.enums.guildmemberrank.deputyleader && classpk.topdlclaim <= 8)
                                                        {
                                                            
classpk.adddl();
                                                            
client.player.addtopstatus(update.flags.topdeputyleader, 1, datetime.now.adddays(1));
                                                            
kernel.sendworldmessage(new message(" congratulations !*" + client.player.name + "*from*" + client.guild.polekeeper + "*has*claimed*topdeputyleader*halo!", system.drawing.color.white, message.topleft), program.values);
                                                        }
                                                        else
                                                        {
                                                            
dialog.text("sorry*you*dont*have*any*prize*to*claim*only*dl*of*the*winner*guild*can*claim*the*halo*after*gw*end.");
                                                            
dialog.option("ahh.", 255);
                                                            
dialog.send();
                                                        }
                                                    }
                                                    break;
                                                }
                                            case 
6:
                                                {
                                                    if (
client.guild != null)
                                                    {
                                                        if (
client.guild.polekeeper && client.guild != null && client.asmember.rank != mr_panda.game.enums.guildmemberrank.guildleader && client.asmember.rank != mr_panda.game.enums.guildmemberrank.deputyleader)
                                                        {
                                                            
dialog.text("are*you*sure*you*want*to*claim*your*prize?");
                                                            
dialog.option("yes.", 7);
                                                            
dialog.option("ah,*nevermind.", 255);
                                                            
dialog.send();
                                                        }
                                                        else
                                                        {
                                                            
dialog.text("sorry*only*memberleader*of*the*winner*guild*can*claim*the*prize*after*guildwar*end.");
                                                            
dialog.option("ahh.", 255);
                                                            
dialog.send();
                                                        }

                                                    }
                                                    else
                                                    {
                                                        
dialog.text("sorry*you*are*not*member*in*any*guild*yet");
                                                        
dialog.option("ahh.", 255);
                                                        
dialog.send();
                                                    }
                                                    break;
                                                }
                                            case 
7:
                                                {

                                                    {
                                                        if (!
guildwar.iswar && client.guild.polekeeper && client.guild != null && client.asmember.rank == game.enums.guildmemberrank.deputyleader && classpk.topdlclaim <= 8)
                                                        {
                                                            
client.player.addtopstatus(update.flags.topdeputyleader, 1, datetime.now.adddays(1));
                                                            
kernel.sendworldmessage(new message(" congratulations !*" + client.player.name + "*from*" + client.guild.polekeeper + "*has*claimed*topdboutyleader*", system.drawing.color.white, message.topleft), program.values);
                                                        }
                                                        else
                                                        {
                                                            
dialog.text("sorry*you*dont*have*any*prize*to*claim*only*member*of*the*winner*guild*can*claim*the*halo*after*gw*end.");
                                                            
dialog.option("ahh.", 255);
                                                            
dialog.send();
                                                        }
                                                    }
                                                    break;
                                                }
                                        }
                                        break;
                                    }
                                
#endregion

                                #region gates
                                
case 516074:
                                    {
                                        if (
client.guild != null)
                                        {
                                            if (
client.guild.polekeeper)
                                            {
                                                switch (
npcrequest.optionid)
                                                {
                                                    case 
0:
                                                        
Dialog.text("select the option you want to pursue.");
                                                        if (
client.asmember.rank == mr_panda.game.enums.guildmemberrank.guildleader || client.asmember.rank == mr_panda.game.enums.guildmemberrank.deputyleader)
                                                        {
                                                            
dialog.option("open gate.", 1);
                                                            if (
game.guildwar.leftgate.hitpoints == 0)
                                                                
dialog.option("repair gate.", 22);
                                                            else
                                                                
dialog.option("close gate.", 2);
                                                        }
                                                        
dialog.option("get inside.", 3);
                                                        
dialog.option("nothing.", 255);
                                                        
dialog.send();
                                                        break;
                                                    case 
1:
                                                        {
                                                            
mr_panda.game.guildwar.leftgate.mesh = (ushort)(250 + mr_panda.game.guildwar.leftgate.mesh % 10);

                                                            
update upd = new update(true);
                                                            
upd.uid = mr_panda.game.guildwar.leftgate.uid;
                                                            
upd.append(update.mesh, mr_panda.game.guildwar.leftgate.mesh);
                                                            
client.sendscreen(upd, true);
                                                            break;
                                                        }
                                                    case 
2:
                                                        {
                                                            if (
game.guildwar.leftgate.hitpoints == 0)
                                                                return;
                                                            
game.guildwar.leftgate.mesh = (ushort)(240 + game.guildwar.leftgate.mesh % 10);
                                                            
update upd = new update(true);
                                                            
upd.uid = mr_panda.game.guildwar.leftgate.uid;
                                                            
upd.append(update.mesh, mr_panda.game.guildwar.leftgate.mesh);
                                                            
upd.append(update.hitpoints, mr_panda.game.guildwar.leftgate.hitpoints);
                                                            
client.sendscreen(upd, true);
                                                            break;
                                                        }
                                                    case 
22:
                                                        {
                                                            
game.guildwar.leftgate.mesh = (ushort)(240 + game.guildwar.leftgate.mesh % 10);
                                                            if (
game.guildwar.leftgate.hitpoints == 0)
                                                                
game.guildwar.leftgate.hitpoints = game.guildwar.leftgate.maxhitpoints;
                                                            
update upd = new update(true);
                                                            
upd.uid = mr_panda.game.guildwar.leftgate.uid;
                                                            
upd.append(update.mesh, mr_panda.game.guildwar.leftgate.mesh);
                                                            
upd.append(update.hitpoints, mr_panda.game.guildwar.leftgate.hitpoints);
                                                            
client.sendscreen(upd, true);
                                                            break;
                                                        }
                                                    case 
3:
                                                        {
                                                            
client.player.teleport(1038, 162, 198);
                                                            break;
                                                        }
                                                }
                                            }
                                        }
                                        break;
                                    }
                                case 
516075:
                                    {
                                        if (
client.guild != null)
                                        {
                                            if (
client.guild.polekeeper)
                                            {
                                                switch (
npcrequest.optionid)
                                                {
                                                    case 
0:
                                                        
Dialog.text("select the option you want to pursue.");
                                                        if (
client.asmember.rank == mr_panda.game.enums.guildmemberrank.guildleader || client.asmember.rank == mr_panda.game.enums.guildmemberrank.deputyleader)
                                                        {
                                                            
dialog.option("open gate.", 1);
                                                            if (
game.guildwar.rightgate.hitpoints == 0)
                                                                
dialog.option("repair gate.", 22);
                                                            else
                                                                
dialog.option("close gate.", 2);
                                                        }
                                                        
dialog.option("get inside.", 3);
                                                        
dialog.option("nothing.", 255);
                                                        
dialog.send();
                                                        break;
                                                    case 
1:
                                                        {
                                                            
mr_panda.game.guildwar.rightgate.mesh = (ushort)(280 + mr_panda.game.guildwar.rightgate.mesh % 10);

                                                            
update upd = new update(true);
                                                            
upd.uid = mr_panda.game.guildwar.rightgate.uid;
                                                            
upd.append(update.mesh, mr_panda.game.guildwar.rightgate.mesh);
                                                            
client.sendscreen(upd, true);
                                                            break;
                                                        }
                                                    case 
2:
                                                        {
                                                            if (
game.guildwar.rightgate.hitpoints == 0)
                                                                return;
                                                            
mr_panda.game.guildwar.rightgate.mesh = (ushort)(270 + mr_panda.game.guildwar.rightgate.mesh % 10);
                                                            
update upd = new update(true);
                                                            
upd.uid = mr_panda.game.guildwar.rightgate.uid;
                                                            
upd.append(update.mesh, mr_panda.game.guildwar.rightgate.mesh);
                                                            
upd.append(update.hitpoints, mr_panda.game.guildwar.rightgate.hitpoints);
                                                            
client.sendscreen(upd, true);
                                                            break;
                                                        }
                                                    case 
22:
                                                        {
                                                            
mr_panda.game.guildwar.rightgate.mesh = (ushort)(270 + mr_panda.game.guildwar.rightgate.mesh % 10);
                                                            if (
game.guildwar.rightgate.hitpoints == 0)
                                                                
game.guildwar.rightgate.hitpoints = game.guildwar.rightgate.maxhitpoints;
                                                            
update upd = new update(true);
                                                            
upd.uid = mr_panda.game.guildwar.rightgate.uid;
                                                            
upd.append(update.mesh, mr_panda.game.guildwar.rightgate.mesh);
                                                            
upd.append(update.hitpoints, mr_panda.game.guildwar.rightgate.hitpoints);
                                                            
client.sendscreen(upd, true);
                                                            break;
                                                        }
                                                    case 
3:
                                                        {
                                                            
client.player.teleport(1038, 210, 177);
                                                            break;
                                                        }
                                                }
                                            }
                                        }
                                        break;
                                    }
                                
#endregion

                                #region guild conductresses

                                #region exit guild arena
                                
case 7000:
                                    {
                                        switch (
npcrequest.optionid)
                                        {
                                            case 
0:
                                                {
                                                    
dialog.text("do you want to leave the guild arena?");
                                                    
dialog.option("yes.", 1);
                                                    
dialog.option("no.", 255);
                                                    
dialog.send();
                                                    break;
                                                }
                                            case 
1:
                                                {
                                                    
client.player.teleport(1002, 300, 278);
                                                    break;
                                                }
                                        }
                                        break;
                                    }
                                
#endregion


                                #endregion

                                #region guild conductors
                                #region in
                                
case 9884:
                                Case 
9885:
                                Case 
9886:
                                Case 
9887:
                                    {
                                        switch (
npcrequest.optionid)
                                        {
                                            case 
0:
                                                {
                                                    
dialog.text("in exchange of a fee of 1000gold, i will teleport you to a special place. If you don't have money, don't bother me.");
                                                    
dialog.option("teleport me.", 1);
                                                    
dialog.option("i'm too poor.", 255);
                                                    
dialog.send();
                                                    break;
                                                }
                                            case 
2:
                                                {
                                                    if (
client.player.money >= 10000)
                                                    {
                                                        if (
client.inventory.count < 40)
                                                        {
                                                            
client.player.money -= 10000;
                                                            switch (
client.activenpc)
                                                            {
                                                                case 
9884:
                                                                    {
                                                                        
client.inventory.add(720021, 0, 1);
                                                                        break;
                                                                    }
                                                                case 
9885:
                                                                    {
                                                                        
client.inventory.add(720022, 0, 1);
                                                                        break;
                                                                    }
                                                                case 
9886:
                                                                    {
                                                                        
client.inventory.add(720023, 0, 1);
                                                                        break;
                                                                    }
                                                                case 
9887:
                                                                    {
                                                                        
client.inventory.add(720024, 0, 1);
                                                                        break;
                                                                    }


                                                            }
                                                        }
                                                        else
                                                        {
                                                            
dialog.text("sorry, you inventory is full");
                                                            
dialog.option("ah, ok", 255);
                                                            
dialog.send();
                                                        }
                                                    }
                                                    else
                                                    {
                                                        
dialog.text("sorry, you not have 10.000 silver.");
                                                        
dialog.option("ah, ok", 255);
                                                        
dialog.send();
                                                    }

                                                    break;
                                                }
                                            case 
1:
                                                {
                                                    if (
client.player.money >= 1000)
                                                    {
                                                        
client.player.money -= 1000;


                                                        
database.guildcondutors.conductor cond = null;
                                                        if (
database.guildcondutors.guildconductors.trygetvalue((uint)(client.activenpc + 110), out cond))
                                                        {

                                                            
client.player.teleport(cond.teleport_mapid, cond.teleport_x, cond.teleport_y);
                                                        }
                                                        break;


                                                    }
                                                    else
                                                    {
                                                        
dialog.text("sorry, you not have 1.000 silver.");
                                                        
dialog.option("ah, ok", 255);
                                                        
dialog.send();
                                                    }
                                                    break;
                                                }
                                        }
                                        break;
                                    }
                                
#endregion
                                #endregion
                            
}
                            break;
                        }
                    
#endregion 

وكدا يكون تم الحل انشاء الله

انا طبعا مقدر اهتمامك والله ومتشكر جدا لإجابتك بس انا عايز اعدل على مدة استلام الهدية بس مش الانبي سي و الورلد كله عشان ما صدقت ظبطته على يوم الجمعه و التلات و شكرا للمره التانيه ♥

ElSaher 2020-04-05 02:57 AM

رد: مشكلة بخصوص جايزة الجيلد وار
 
تمام يا حوب سواني اعملهالك

ElSaher 2020-04-05 02:57 AM

رد: مشكلة بخصوص جايزة الجيلد وار
 
استخدم الموضوع داا

https://code.vpscairo.com/showthread.php?t=2464

Tefa 2020-04-05 03:01 AM

رد: مشكلة بخصوص جايزة الجيلد وار
 
يا ريت توضح اكواد تشغيل الوار و اكواد اغلاق الوار و اكواد الاستلام

AhmedGadd 2020-04-05 09:27 AM

رد: مشكلة بخصوص جايزة الجيلد وار
 
اقتباس:

المشاركة الأصلية كتبت بواسطة rider (المشاركة 35528)
يا ريت توضح اكواد تشغيل الوار و اكواد اغلاق الوار و اكواد الاستلام

متشكر جداً لاهتمامكم بس انا مش مشكلتي في معاد الجيلد وار ولا معاد الشتغيل ولا القفل , مشكلتي في ان الجايزه بتختفي و الواد بيقدر يستلمها تاني هي دي المشكله مش اكتر يعني التعديل على الانبيسي مش على الورلد

ahmedfathy 2020-04-05 10:06 AM

رد: مشكلة بخصوص جايزة الجيلد وار
 
السلام عليكم نخوش علي الحل بسرعة عشان مضيعش وقت

ركز معايا الاول انت عايز تحل مشكلة اختفاء توب الوار يعني انت بتقول بيقعد يومين ويختفي الحل الاول افتح ملف npc تمام ودور علي السطر
كود PHP:

topguildleader 

وحل مشكلة هيكون كدا زي اللي في الصورة ركز معايا بقي

الخانة الاول دي
كود PHP:

DateTime.Now.AddDays(1)); 

دا وقت اختفاء التوب انا عملها 24 ساعة يعني يوم عشان الوار عندي كل يوم اعملها انت 7 ايام
نخوش علي مشكلتك التانية انت بتقول ممكن 2 يستلمو توب الوار لا في نفس السطر هتلقي بيقولك استلام التوب 1
اللي هو السطر دا اللي في الصوره
https://g.top4top.io/p_1556u51d11.png

هنا المشكلة عندك دا السطر اللي في بيقولك انا هسلم توب جيلد ليدر مرة واحده دا السطر عدل عليه برحتك
كود PHP:

TopGuildLeader, 1, DateTime 

اعمله زي ما انا عمله في الصوره 1

AhmedGadd 2020-04-05 04:09 PM

رد: مشكلة بخصوص جايزة الجيلد وار
 
اقتباس:

المشاركة الأصلية كتبت بواسطة ahmedfathy (المشاركة 35594)
السلام عليكم نخوش علي الحل بسرعة عشان مضيعش وقت

ركز معايا الاول انت عايز تحل مشكلة اختفاء توب الوار يعني انت بتقول بيقعد يومين ويختفي الحل الاول افتح ملف npc تمام ودور علي السطر
كود PHP:

topguildleader 

وحل مشكلة هيكون كدا زي اللي في الصورة ركز معايا بقي

الخانة الاول دي
كود PHP:

datetime.now.adddays(1)); 

دا وقت اختفاء التوب انا عملها 24 ساعة يعني يوم عشان الوار عندي كل يوم اعملها انت 7 ايام
نخوش علي مشكلتك التانية انت بتقول ممكن 2 يستلمو توب الوار لا في نفس السطر هتلقي بيقولك استلام التوب 1
اللي هو السطر دا اللي في الصوره


هنا المشكلة عندك دا السطر اللي في بيقولك انا هسلم توب جيلد ليدر مرة واحده دا السطر عدل عليه برحتك
كود PHP:

topguildleader, 1, datetime 

اعمله زي ما انا عمله في الصوره 1

الله ينور عليك متشكر جدا لأهتمامك و اجباتك , و متشكر لكل الي ردوا عليا و ساعدوا ♥


الساعة الآن 04:25 PM

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