قديم 2020-04-05, 02:11 AM
المشاركة 2
ElSaher
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: مشكلة بخصوص جايزة الجيلد وار
دي الرسالة هتبدلها بلي عندك في World


كود:
            #region GuildWar
            
if ((Now64.Hour == 19 && Now64.Minute == && 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.WhiteMessage.BroadcastMessage), Program.Values);
                foreach (var 
client in Program.Values)
                    
client.MessageBox(" Guild War now work will end at 21:00 Server time?",
                    
=> { p.Player.Teleport(1002224237); }, null20);
            }
            
#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 بدلو بلي عندك

كود:
                    #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(7234675))
                                                    {
                                                        
client.Inventory.Remove(7234675);
                                                        
client.Inventory.Add(21000750000001true);
                                                    }
                                                    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.TopGuildLeader1DateTime.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.WhiteMessage.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.TopDeputyLeader1DateTime.Now.AddDays(1));
                                                            
Kernel.SendWorldMessage(new Message(" Congratulations !*" client.Player.Name "*From*" client.Guild.PoleKeeper "*Has*Claimed*TopDeputyLeader*Halo!"System.Drawing.Color.WhiteMessage.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.TopDeputyLeader1DateTime.Now.AddDays(1));
                                                            
Kernel.SendWorldMessage(new Message(" Congratulations !*" client.Player.Name "*From*" client.Guild.PoleKeeper "*Has*Claimed*TopDboutyLeader*"System.Drawing.Color.WhiteMessage.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.MeshMr_Panda.Game.GuildWar.LeftGate.Mesh);
                                                            
client.SendScreen(updtrue);
                                                            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.MeshMr_Panda.Game.GuildWar.LeftGate.Mesh);
                                                            
upd.Append(Update.HitpointsMr_Panda.Game.GuildWar.LeftGate.Hitpoints);
                                                            
client.SendScreen(updtrue);
                                                            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.MeshMr_Panda.Game.GuildWar.LeftGate.Mesh);
                                                            
upd.Append(Update.HitpointsMr_Panda.Game.GuildWar.LeftGate.Hitpoints);
                                                            
client.SendScreen(updtrue);
                                                            break;
                                                        }
                                                    case 
3:
                                                        {
                                                            
client.Player.Teleport(1038162198);
                                                            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.MeshMr_Panda.Game.GuildWar.RightGate.Mesh);
                                                            
client.SendScreen(updtrue);
                                                            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.MeshMr_Panda.Game.GuildWar.RightGate.Mesh);
                                                            
upd.Append(Update.HitpointsMr_Panda.Game.GuildWar.RightGate.Hitpoints);
                                                            
client.SendScreen(updtrue);
                                                            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.MeshMr_Panda.Game.GuildWar.RightGate.Mesh);
                                                            
upd.Append(Update.HitpointsMr_Panda.Game.GuildWar.RightGate.Hitpoints);
                                                            
client.SendScreen(updtrue);
                                                            break;
                                                        }
                                                    case 
3:
                                                        {
                                                            
client.Player.Teleport(1038210177);
                                                            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(1002300278);
                                                    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(72002101);
                                                                        break;
                                                                    }
                                                                case 
9885:
                                                                    {
                                                                        
client.Inventory.Add(72002201);
                                                                        break;
                                                                    }
                                                                case 
9886:
                                                                    {
                                                                        
client.Inventory.Add(72002301);
                                                                        break;
                                                                    }
                                                                case 
9887:
                                                                    {
                                                                        
client.Inventory.Add(72002401);
                                                                        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_MapIdcond.Teleport_Xcond.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 

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

قديم 2020-04-05, 02:16 AM
المشاركة 3
AhmedGadd
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: مشكلة بخصوص جايزة الجيلد وار
انا طبعا مقدر اهتمامك والله ومتشكر جدا لإجابتك بس انا عايز اعدل على مدة استلام الهدية بس مش الانبي سي و الورلد كله عشان ما صدقت ظبطته على يوم الجمعه و التلات و شكرا للمره التانيه ♥

قديم 2020-04-05, 02:50 AM
المشاركة 4
AhmedGadd
.:: عضو نشيط ::.
  • غير متواجد
exclamationpointss رد: مشكلة بخصوص جايزة الجيلد وار
دي الرسالة هتبدلها بلي عندك في world


كود:
            #region guildwar
            
if ((now64.hour == 19 && now64.minute == && 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.whitemessage.broadcastmessage), program.values);
                foreach (var 
client in program.values)
                    
client.messagebox(" guild war now work will end at 21:00 server time?",
                    
=> { p.player.teleport(1002224237); }, null20);
            }
            
#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 بدلو بلي عندك

كود:
                    #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(7234675))
                                                    {
                                                        
client.inventory.remove(7234675);
                                                        
client.inventory.add(21000750000001true);
                                                    }
                                                    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.topguildleader1datetime.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.whitemessage.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.topdeputyleader1datetime.now.adddays(1));
                                                            
kernel.sendworldmessage(new message(" congratulations !*" client.player.name "*from*" client.guild.polekeeper "*has*claimed*topdeputyleader*halo!"system.drawing.color.whitemessage.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.topdeputyleader1datetime.now.adddays(1));
                                                            
kernel.sendworldmessage(new message(" congratulations !*" client.player.name "*from*" client.guild.polekeeper "*has*claimed*topdboutyleader*"system.drawing.color.whitemessage.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.meshmr_panda.game.guildwar.leftgate.mesh);
                                                            
client.sendscreen(updtrue);
                                                            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.meshmr_panda.game.guildwar.leftgate.mesh);
                                                            
upd.append(update.hitpointsmr_panda.game.guildwar.leftgate.hitpoints);
                                                            
client.sendscreen(updtrue);
                                                            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.meshmr_panda.game.guildwar.leftgate.mesh);
                                                            
upd.append(update.hitpointsmr_panda.game.guildwar.leftgate.hitpoints);
                                                            
client.sendscreen(updtrue);
                                                            break;
                                                        }
                                                    case 
3:
                                                        {
                                                            
client.player.teleport(1038162198);
                                                            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.meshmr_panda.game.guildwar.rightgate.mesh);
                                                            
client.sendscreen(updtrue);
                                                            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.meshmr_panda.game.guildwar.rightgate.mesh);
                                                            
upd.append(update.hitpointsmr_panda.game.guildwar.rightgate.hitpoints);
                                                            
client.sendscreen(updtrue);
                                                            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.meshmr_panda.game.guildwar.rightgate.mesh);
                                                            
upd.append(update.hitpointsmr_panda.game.guildwar.rightgate.hitpoints);
                                                            
client.sendscreen(updtrue);
                                                            break;
                                                        }
                                                    case 
3:
                                                        {
                                                            
client.player.teleport(1038210177);
                                                            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(1002300278);
                                                    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(72002101);
                                                                        break;
                                                                    }
                                                                case 
9885:
                                                                    {
                                                                        
client.inventory.add(72002201);
                                                                        break;
                                                                    }
                                                                case 
9886:
                                                                    {
                                                                        
client.inventory.add(72002301);
                                                                        break;
                                                                    }
                                                                case 
9887:
                                                                    {
                                                                        
client.inventory.add(72002401);
                                                                        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_mapidcond.teleport_xcond.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 

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

قديم 2020-04-05, 02:57 AM
المشاركة 5
ElSaher
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: مشكلة بخصوص جايزة الجيلد وار
تمام يا حوب سواني اعملهالك

قديم 2020-04-05, 02:57 AM
المشاركة 6
ElSaher
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: مشكلة بخصوص جايزة الجيلد وار
استخدم الموضوع داا

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

قديم 2020-04-05, 03:01 AM
المشاركة 7
Tefa
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: مشكلة بخصوص جايزة الجيلد وار
يا ريت توضح اكواد تشغيل الوار و اكواد اغلاق الوار و اكواد الاستلام

قديم 2020-04-05, 09:27 AM
المشاركة 8
AhmedGadd
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: مشكلة بخصوص جايزة الجيلد وار
يا ريت توضح اكواد تشغيل الوار و اكواد اغلاق الوار و اكواد الاستلام
متشكر جداً لاهتمامكم بس انا مش مشكلتي في معاد الجيلد وار ولا معاد الشتغيل ولا القفل , مشكلتي في ان الجايزه بتختفي و الواد بيقدر يستلمها تاني هي دي المشكله مش اكتر يعني التعديل على الانبيسي مش على الورلد

قديم 2020-04-05, 10:06 AM
المشاركة 9
ahmedfathy
.:: عضو مميز ::.
  • غير متواجد
افتراضي رد: مشكلة بخصوص جايزة الجيلد وار
السلام عليكم نخوش علي الحل بسرعة عشان مضيعش وقت

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

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

الخانة الاول دي
كود:
DateTime.Now.AddDays(1)); 

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


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

كود:
TopGuildLeader1DateTime 

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

قديم 2020-04-05, 04:09 PM
المشاركة 10
AhmedGadd
.:: عضو نشيط ::.
  • غير متواجد
Distinctive رد: مشكلة بخصوص جايزة الجيلد وار
السلام عليكم نخوش علي الحل بسرعة عشان مضيعش وقت

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

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

الخانة الاول دي
كود:
datetime.now.adddays(1)); 

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


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

كود:
topguildleader1datetime 

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


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



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

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

المواضيع المتشابهه للموضوع: مشكلة بخصوص جايزة الجيلد وار
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
مشكلة في حرب الجيلد xHazem مشكلات السيرفيرات كونكر الشخصيه 8 2020-05-03 11:24 PM
بخصوص الجيلد xAttack مشكلات السيرفيرات كونكر الشخصيه 2 2020-05-03 10:34 AM
مشكلة في الجيلد وار AhmedGadd مشكلات السيرفيرات كونكر الشخصيه 1 2020-04-20 02:24 PM
بخصوص حرب الجيلد وار صاحب السعادة مشكلات السيرفيرات كونكر الشخصيه 2 2020-02-05 04:21 PM
مشكلة ف الجيلد nova مشكلات السيرفيرات كونكر الشخصيه 1 2019-11-26 09:05 AM


الساعة الآن 03:50 AM

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