الموضوع: طلب Clan war
عرض مشاركة واحدة
قديم 2020-02-13, 04:54 PM
المشاركة 4
mohamedomar
.:: عضو نشيط ::.
  • غير متواجد
Thumbs up رد: طلب Clan war
با النسبة للجوايز ابحث بدل دا با الى عندك

كود:
                #region clanwar
                
case 48116:
                    {
                        switch (
npcrequest.optionid)
                        {
                            case 
0:
                                {
                                    
dialog.text("hello there. Do you want to join the clanwar.. It start [20.00 to 21.00] everyday excpt friday?.");
                                    
dialog.option("yes please."1);
                                    
dialog.option("cliam prize."2);
                                    
dialog.option("just passing by!"255);
                                    
dialog.send();
                                    break;
                                }
                            case 
1:
                                {
                                    if (
clanwar.iswar)
                                    {
                                        
client.entity.teleport(150982119);
                                        
client.entity.pkmode game.enums.pkmode.pk;
                                        
client.send(new data(true) { uid client.entity.uidid data.changepkmodedwparam = (uint)client.entity.pkmode });
                                    }
                                    else
                                    {
                                        
dialog.text("the war has not started it start [20.00 to 21.00] everyday excpt friday");
                                        
dialog.option("aww ok!"255);
                                        
dialog.send();
                                    }
                                    break;
                                }
                            case 
2:
                                {
                                    if (
clanwar.keeperid != && !clanwar.iswar && clanwar.claim && client.entity.clanid == clanwar.keeperid && client.entity.clanrank == clan.ranks.clanleader)
                                    {

                                        
program.addwarlog("clanwar""[prize : 1,000,000]"client.entity.name);
                                        
clanwar.claim false;
                                        
clanwar.keeperid 0;
                                        
client.entity.onlinepoints += 1;
                                        
client.entity.conquerpoints += 1000000;
                                        
client.entity.boundcps += 100000;
                                        
khaledmohamed.kernel.sendworldmessage(new message(" congratulations  " client.entity.name " leader of " client.entity.clanname " the winner clan has claimed clan war prize " 1000000 "[1,000,000] conquerpoints & [100.000] cpsbound "system.drawing.color.whitemessage.topleft), program.values);
                                    }
                                    else
                                    {
                                        
dialog.text("sorry you dont have any prize to claim only cl of the winner clan can claim prize after cw");
                                        
dialog.option("ahh."255);
                                        
dialog.send();
                                    }

                                    break;
                                }
                        }
                        break;
                    }
                case 
4482115:
                    {
                        switch (
npcrequest.optionid)
                        {
                            case 
0:
                                {
                                    
dialog.text("hello there. Do you want to teleport to twincity.");
                                    
dialog.option(" send me there. "1);
                                    
dialog.option("just passing by!"255);
                                    
dialog.send();
                                    break;
                                }
                            case 
1:
                                {
                                    
client.entity.teleport(1002284146);
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion 

با النسبة للوقت عدل برحتك بقا


كود:
            #region clan war [14h] to [16h]

            
if (!game.clanwar.iswar)
            {
                if ((
now64.hour == 14) && now64.minute == 00 && now64.second == 15 && !clanwar.iswar)
                {
                    
game.clanwar.start();
                    
clanwarai false;
                    if (
now64.hour != 2)
                    {
                        
clanwarai now64.hour != 2;
                        foreach (var 
client in program.values)
                            if (
client.entity.guildid != 0)
                                
client.messagebox("clanwar has begun! Would you like to join?",
                                    
=> { p.entity.teleport(1002285148); }, null);
                    }
                }
                if ((
datetime.now.hour == 14 && datetime.now.minute == 55 && now64.second == 58))
                {
                    
clanwarai true;
                    foreach (var 
client in program.values)
                        if (
client.entity.guildid != 0)
                            
client.messagebox("clanwar has begun would you like to join prize [100,000,000] conquerpoints & [100.000]",
                                
=> { p.entity.teleport(1002286143); }, null);
                }
                if (
datetime.now.hour == 15 && datetime.now.minute == 00 && now64.second == 10)
                {
                    
game.clanwar.end();
                }
                if (
game.clanwar.iswar)
                {
                    if (
time32.now game.clanwar.scoresendstamp.addseconds(3))
                    {
                        
game.clanwar.scoresendstamp time32.now;
                        
game.clanwar.sendscores();
                    }
                }
            }
            
#endregion 

بعد ازنك الكود الاول احطو ف الانبي سي طيب التاني دا احطو فين بظبط