شرح كيفية عمل ان بى سى بيدى جوائز 5375 الخطوة الاولى للclass pk
شرح كيفية عمل ان بى سى بيدى جوائز 5375 الخطوة الاولى للclass pk

ركز معايا شوية

اولا

دى الصورة


نقره لتكبير أو تصغير الصورة ونقرتين لعرض الصورة في صفحة مستقلة بحجمها الطبيعي


اظننا بنعمل ان بى سى عادى

=====================

كود:
#region Class1
                case 3961:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {

                                    dialog.Text("Would you like to leaveClassPkEnvony ?");

كود:

                                    dialog.Option("Yes.", 1);
                                    dialog.Option("ClamPrize.", 49);
                                    dialog.Option("No.", 255);
                                    dialog.Send();
                                    break;
                                }

اللعب كلة بعد كدة

كود:
case 1:
                                {
                                    if (DateTime.Now.DayOfWeek == DayOfWeek.Saturday)
                                    {
                                        if (client.Entity.Class == 15  && (DateTime.Now.Hour == 21 && DateTime.Now.Minute >=  0))
                                        {
                                            client.Entity.Teleport(1002, 431, 379);
                                            client.Entity.Action = 250;
                                            dialog.Text("Thank You To Join Come Again Later.");
                                            dialog.Option("Thanks.", 255);
                                            dialog.Send();
                                            break;
                                        }
                                        else
                                        {
                                            dialog.Text("If U Want To  leave The Class Pk envory in the right Time and come at 21:00");
                                            dialog.Option("Ok.$orry", 255);
                                            dialog.Send();
                                            break;
                                        }
                                    }
                                    else
                                    {
                                        dialog.Text("This is not the correct Time Come later in correct Time");
                                        dialog.Option("sorry...I will come in correct Time", 255);
                                        dialog.Send();
                                    }
                                    break;
                                } 


لاحط الميعاد
if (DateTime.Now.DayOfWeek == DayOfWeek.Saturday)
{
if (client.Entity.Class == 15 && (DateTime.Now.Hour == 21 && DateTime.Now.Minute >= 0))

========================

دا تعديل الوقت عدلة براحتك
نيجى للاهم
===================

كود:
#region BoundItems
                            case 49:
                                {

                                    dialog.Text("You Is The Best In Your Class.Choose What U need?");



كود:

                                    if (!client.PrizeClaim)
                                        dialog.Option("GoldPrize.", 50);
                                    dialog.Option("Nothing.", 255);
                                    dialog.Send();
                                    break;
                                }
                            case 50:
                                {

                                    client.Entity.Teleport(1002, 429, 378);
                                    uint itemid = 2100075;
                                    byte level = 15;
                                    if (!client.PrizeClaim)
                                    {
                                        if (client.Entity.Level >= level)
                                        {
                                            ConquerItem item = new ConquerItem(true);
                                            item.ID = itemid;
                                            item.Color = Conquer_Online_Server.Game.Enums.Color.White;
                                            item.Bound = true;
                                            item.Plus = 3;
                                            item.Durability =  item.MaximDurability =  Conquer_Online_Server.Database.ConquerItemInformation.BaseInformations[itemid].Durability;
                                            if  (client.Inventory.Add(item,  Conquer_Online_Server.Game.Enums.ItemUse.CreateAndAdd))
                                            {
                                                client.HeadgearClaim = true;
                                            }
                                            else
                                            {
                                                dialog.Text("You need atleast one free slot in your inventory.");
                                                dialog.Option("Alright.", 255);
                                                dialog.Send();
                                            }
                                        }
                                        else
                                        {
                                            dialog.Text("You don't have atleast level " + level + ".");
                                            dialog.Option("Alright.", 255);
                                            dialog.Send();
                                        }
                                    }
                                    else
                                    {
                                        dialog.Text("You cannot claim it twice.");
                                        dialog.Option("Alright.", 255);
                                        dialog.Send();

                                    }
                                    break;
                                }
                            #endregion
                        }
                        break;
                    }
                #endregion 

ركز هنا

كود:
client.Entity.Teleport(1002, 429, 378);
                                    uint itemid = 2100075;
                                    byte level = 15;
                                    if (!client.WeaponClaim)
                                    {
                                        if (client.Entity.Level >= level)
                                        {
                                            ConquerItem item = new ConquerItem(true);
                                            item.ID = itemid;
                                            item.Color = Conquer_Online_Server.Game.Enums.Color.White;
                                            item.Bound = true;
                                            item.Plus = 3;
                                            item.Durability =   item.MaximDurability =   Conquer_Online_Server.Database.ConquerItemInformation.BaseInformations[itemid].Durability;
                                            if   (client.Inventory.Add(item,   Conquer_Online_Server.Game.Enums.ItemUse.CreateAndAdd))
                                            {
                                                client.HeadgearClaim = true;


كود:
     uint itemid = 2100075;    


كود:
     byte level = 15;    



كود:
if (!client.WeaponClaim)


دى الكود الى فى النافى كات الى اسمة
weaponclaim
====================
الى فى
entities
تب لازمتة اية د الى بيحدد انك خدت الجائزة وهاكذا
ممكن ring
ممكن boot
ممكن الى واحدة claim
تب دلوقتى انا عايز اعمل claim جديد
شوف التكملة
============================
نيجى لتعديل النافى كات
-===========================
اعمل dump ل entities
وبعد ما اعمل

كود:
     /*
Navicat MySQL Data Transfer
Source Host     : localhost:3306
Source Database : codatabase
Target Host     : localhost:3306
Target Database : codatabase
Date: 6/7/2011 5نقره لتكبير أو تصغير الصورة ونقرتين لعرض الصورة في صفحة مستقلة بحجمها الطبيعي05 AM
*/

SET FOREIGN_KEY_CHECKS=0;    



كود:

-- ----------------------------
-- Table structure for entities
-- ----------------------------
DROP TABLE IF EXISTS `entities`;
CREATE TABLE `entities` (
  `Name` varchar(16) NOT NULL,
  `UID` bigint(18) unsigned NOT NULL,
  `Owner` varchar(45) NOT NULL,
  `HairStyle` smallint(12) unsigned default '430',
  `Class` tinyint(5) unsigned NOT NULL default '10',
  `Money` bigint(18) unsigned default '50000',
  `ConquerPoints` bigint(18) unsigned default '215',
  `Body` smallint(12) unsigned NOT NULL,
  `Face` smallint(12) unsigned NOT NULL,
  `Level` tinyint(5) unsigned default '1',
  `Strength` smallint(12) unsigned default '1',
  `Agility` smallint(12) unsigned default '1',
  `Vitality` smallint(12) unsigned default '1',
  `Spirit` smallint(12) unsigned default '0',
  `Atributes` smallint(12) unsigned default '0',
  `Hitpoints` mediumint(16) unsigned default '93',
  `Mana` mediumint(16) unsigned default '0',
  `MapID` smallint(12) unsigned default '1002',
  `X` smallint(12) unsigned default '438',
  `Y` smallint(12) unsigned default '377',
  `PKPoints` smallint(12) unsigned default '0',
  `Experience` bigint(255) unsigned default '0',
  `QuizPoints` mediumint(30) unsigned default '0',
  `PreviousMapID` smallint(12) unsigned default '1010',
  `Reborn` tinyint(2) unsigned default '0',
  `1stClass` tinyint(5) unsigned default '10',
  `2ndClass` tinyint(2) unsigned default '0',
  `3rdClass` tinyint(2) unsigned default '0',
  `Spouse` varchar(16) default 'None',
  `WarehousePW` varchar(16) default '',
  `MoneySave` bigint(18) unsigned default '0',
  `FirstRebornClass` tinyint(5) unsigned default '0',
  `SecondRebornClass` tinyint(5) unsigned default '0',
  `FirstRebornLevel` tinyint(5) unsigned default '0',
  `SecondRebornLevel` tinyint(5) unsigned default '0',
  `Online` tinyint(2) unsigned default '0',
  `EnlightenPoints` bigint(18) unsigned default '0',
  `DoubleExpTime` bigint(18) unsigned default '0',
  `gwkill` bigint(18) unsigned default '0',
  `HeavenBlessingTime` bigint(255) unsigned default '0',
  `BlessTime` bigint(18) unsigned default '0',
  `LastDragonBallUse` bigint(255) default '0',
  `LastResetTime` bigint(255) default '0',
  `EnlightsReceived` tinyint(5) unsigned default '0',
  `EnlightmentWait` mediumint(100) unsigned default '0',
  `DoubleExpToday` tinyint(5) unsigned default '0',
  `GuildID` bigint(18) unsigned default '0',
  `GuildRank` bigint(18) unsigned default '0',
  `GuildSilverDonation` bigint(255) unsigned default '0',
  `GuildConquerPointDonation` bigint(255) unsigned default '0',
  `VIPLevel` tinyint(5) unsigned default '0',
  `VirtuePoints` bigint(255) unsigned default '0',
  `HeadgearClaim` tinyint(5) unsigned default '0',
  `NecklaceClaim` tinyint(5) unsigned default '0',
  `ArmorClaim` tinyint(5) unsigned default '0',
  `WeaponClaim` tinyint(5) unsigned default '0',
  `BootsClaim` tinyint(5) unsigned default '0',
  `TowerClaim` tinyint(5) unsigned default '0',
  `FanClaim` tinyint(5) unsigned default '0',
  `RingClaim` tinyint(5) unsigned default '0',
  `CabalClaim` tinyint(5) unsigned default '0',
  `Ninja2011Claim` tinyint(5) unsigned default '0',
  `KingClaim` tinyint(5) unsigned default '0',
  `MohamedClaim` tinyint(5) unsigned default '0',
  `TopClaim` tinyint(5) unsigned default '0',
  `pkEnvonyClaim` tinyint(5) unsigned default '0',
  `EliteClaim` tinyint(5) unsigned default '0',
  `SuperClaim` tinyint(5) unsigned default '0',
  `VendingDisguise` smallint(5) default '0',
  `kokoClaim` tinyint(5) unsigned default '0',
  `ChatBanTime` bigint(255) default '0',
  `ChatBanLasts` bigint(255) default '0',
  `ChatBanned` tinyint(5) default '0',
  `InLottery` tinyint(5) default '0',
  `LotteryEntries` mediumint(10) default '0',
  `LastLotteryEntry` bigint(255) default '0',
  `PreviousX` mediumint(10) default '0',
  `PreviousY` mediumint(10) default '0',
  `OfflineTGEnterTime` bigint(255) default '0',
  `ExpBalls` mediumint(10) default '0',
  PRIMARY KEY  (`UID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

ركز فى `

كود:
RingClaim` tinyint(5) unsigned default '0',    


خد تحتيها خط واكتب

كود PHP:
prizeClaim` tinyint(5) unsigned default '0', 
وكدا نبقى خلصنا


شرح كيفية عمل ان بى سى بيدى جوائز 5375 الخطوة الاولى للclass pk
شرح كيفية عمل ان بى سى بيدى جوائز 5375 الخطوة الاولى للclass pk
شرح كيفية عمل ان بى سى بيدى جوائز 5375 الخطوة الاولى للclass pk