تسجيل الدخول دائمآ
ط·آ§ط¸â€‍ط·آ¥ط·آ¹ط¸â€‍ط·آ§ط¸â€ ط·آ§ط·ع¾

الـجـروب الـخـاص بـالـمـنـتـدي Silkroad4arab Facebook | Official Group 



قسم الشروحات و البرامج المستخدمة في عمل السيرفرات الخاصة [ قسم متخصص فى شروحات و البرامج في عمل السيرفرات الخاصة ] [ يرجى عدم وضع الأسئلة والاستفسارات في هذا القسم ]

 
 
أدوات الموضوع انواع عرض الموضوع
قديم 16-03-2015, 09:37 PM   #1

Dev. iLegend
عضو لامع



الصورة الرمزية Dev. iLegend


• الانـتـسـاب » Jul 2013
• رقـم العـضـويـة » 112689
• المشـــاركـات » 1,050
• الـدولـة » Egypt - Tanta
• الـهـوايـة » always try for a best features
• اسـم الـسـيـرفـر » Private Server
• الـجـنـس » Male
• نقـاط التقييم » 34
Dev. iLegend صـاعـد

Dev. iLegend غير متواجد حالياً


إرسال رسالة عبر Yahoo إلى Dev. iLegend

(25) ♔ Release : New Automatic Unique Kills Reward ♔










بناءاً على طلب بعض الأعضاء
أقدم لكم


Automatic Unique Killer Reward


المهم ندخل فى الشرح .. بس قبل الشرح احب اوضح بعض النقط الهامة عشان ملاقيش حد حاطط رد ملوش لازمة ..

الفكرة بتاعت العضو Jaffa وشغلى 100% وبالنسبة للي عاوز ينقلها لمواقع اجنبية مش مشكلة بس يذكر المصدر وحقوق صاحب الموضوع !!

نخش فى المفيد ..

أولاً عشان يشتغل السيستم لازم تكون شغال بملفات srZor وعندك جدول srZor_uniques اللى بيتسجل فيه لوج اي حد قتل يونيك

ثانياً اللى عامل على الموقع بتاعه من صفحات جدول srZor_uniques رانك او Latest Unique kills ميقلقش والموضوع هيشتغل معاه عادي جداً مع اي رانك او حاجة عشان باختصار اللوج مش بيتمسح انا مجرد اني بدي ريوارد مش اكتر ..

ثالثاً مضاف جدول خاص بإعدادات السيستم بتحدد فيه الريوارد وكذلك تتحكم فى اسماء اليونيكات بالكود نيم طبعاً وعدد الكوين او الريوارد اللي هيوصل للاكونت لما يموت اليونك بعدد 50 يونك يعني يعتبر لكل اليونكات اللي عندك عشان مفيش برايفت سيرفر بيعدي 50 يونك .. زي ما موضح فى الصورة .




اما تضيف اي يونيكات زيادة عندك من 10 لحد 50 تضيف فيهم بس العامود الاول اللى اسمه Object متغيرش فيه حاجة غير بس فى الكود نيم وعدد الكوين مش اكتر و فى اول سطر ملكش دعوة بـ -1 دي ملهاش لازمة ..

ندخل بقا على الاضافات

نعمل execute للكيوري دي بأسم الـ SRO_VT_ACCOUNT اللى عندك ..

كود PHP:
Use [SRO_VT_ACCOUNT]
ALTER TABLE [dbo].[srZor_uniques]
ADD RewardCount Int ; 


عشان نضيف عامود جديد للجدول srZor_uniques
بعدين نعمل execute للكيوري دي عشان نكريت جدول بأسم الـSHARDLOG اللى عندك ونطبظ منه الإعدادات زي منا موضح فى الصورة اللي فوق

كود PHP:
Use [SRO_VT_SHARDLOG]
Create Table [dbo].[_iLegend_Settings]
(
Object varchar(max) NOT NULL , CodeName128 Varchar(128) , RewardCount INT)
Insert InTo [dbo].[_iLegend_Settings] (Object,CodeName128,RewardCount) Values ('Reward','ITEM_ETC_SD_TOKEN_02',-1)
Insert InTo [dbo].[_iLegend_Settings] (Object,CodeName128,RewardCount) Values ('Unique No.1','MOB_CH_TIGERWOMAN',2)
Insert InTo [dbo].[_iLegend_Settings] (Object,CodeName128,RewardCount) Values ('Unique No.2','MOB_EU_KERBEROS',2)
Insert InTo [dbo].[_iLegend_Settings] (Object,CodeName128,RewardCount) Values ('Unique No.3','MOB_AM_IVY',3)
Insert InTo [dbo].[_iLegend_Settings] (Object,CodeName128,RewardCount) Values ('Unique No.4','MOB_OA_URUCHI',3)
Insert InTo [dbo].[_iLegend_Settings] (Object,CodeName128,RewardCount) Values ('Unique No.5','MOB_KK_ISYUTARU',4)
Insert InTo [dbo].[_iLegend_Settings] (Object,CodeName128,RewardCount) Values ('Unique No.6','MOB_TK_BONELORD',4)
Insert InTo [dbo].[_iLegend_Settings] (Object,CodeName128,RewardCount) Values ('Unique No.7','MOB_RM_TAHOMET',5)
Insert InTo [dbo].[_iLegend_Settings] (Object,CodeName128,RewardCount) Values ('Unique No.8','MOB_TQ_WHITESNAKE',10)
Insert InTo [dbo].[_iLegend_Settings] (Object,CodeName128,RewardCount) Values ('Unique No.9','MOB_RM_ROC',20)
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.10')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.11')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.12')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.13')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.14')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.15')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.16')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.17')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.18')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.19')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.20')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.21')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.22')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.23')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.24')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.25')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.26')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.27')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.28')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.29')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.30')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.31')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.32')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.33')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.34')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.35')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.36')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.37')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.38')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.39')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.40')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.41')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.42')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.43')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.44')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.45')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.46')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.47')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.48')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.49')
Insert InTo [dbo].[_iLegend_Settings] (Object) Values ('Unique No.50') 


بعد كدا نعمل execute للـ Procedure ده عشان يتكريت بأسم الـ SHARDLOG برضه

كود PHP:
USE [SRO_VT_SHARDLOG]
GO
/****** Object:  StoredProcedure [dbo].[_UniqueReward]    Script Date: 03/16/2015 08:04:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

Create PROCEDURE 
[dbo].[_UniqueReward]
 @
CharID   INT
  
As

                                        
/**  Full credits reserved to [iLegend]  **/
                            /**  Facebook : https://www.facebook.com/designer.ramy.saied  **/
                                             /**  Idea reserved to Jaffa  **/
                                          /**  Don't copy under your name  **/
                                                /**  Silkroad 4 Arab  **/

 
-- Declare expressions.
 Declare @
CharName Varchar(max), @RewardCodeName Varchar(max) , @RewardCount INT ,
 @
U1 Varchar(128)  , @RC1 INT  , @U2 Varchar(128)  , @RC2 INT  , @U3 Varchar(128)  , @RC3 INT  , @U4 Varchar(128)  , @RC4 INT  , @U5 Varchar(128)  , @RC5 INT  , @U6 Varchar(128)  , @RC6 INT  ,
 @
U7 Varchar(128)  , @RC7 INT  , @U8 Varchar(128)  , @RC8 INT  , @U9 Varchar(128)  , @RC9 INT  , @U10 Varchar(128) , @RC10 INT , @U11 Varchar(128) , @RC11 INT , @U12 Varchar(128) , @RC12 INT ,
 @
U13 Varchar(128) , @RC13 INT , @U14 Varchar(128) , @RC14 INT , @U15 Varchar(128) , @RC15 INT , @U16 Varchar(128) , @RC16 INT , @U17 Varchar(128) , @RC17 INT , @U18 Varchar(128) , @RC18 INT ,
 @
U19 Varchar(128) , @RC19 INT , @U20 Varchar(128) , @RC20 INT , @U21 Varchar(128) , @RC21 INT , @U22 Varchar(128) , @RC22 INT , @U23 Varchar(128) , @RC23 INT , @U24 Varchar(128) , @RC24 INT ,
 @
U25 Varchar(128) , @RC25 INT , @U26 Varchar(128) , @RC26 INT , @U27 Varchar(128) , @RC27 INT , @U28 Varchar(128) , @RC28 INT , @U29 Varchar(128) , @RC29 INT , @U30 Varchar(128) , @RC30 INT ,
 @
U31 Varchar(128) , @RC31 INT , @U32 Varchar(128) , @RC32 INT , @U33 Varchar(128) , @RC33 INT , @U34 Varchar(128) , @RC34 INT , @U35 Varchar(128) , @RC35 INT , @U36 Varchar(128) , @RC36 INT ,
 @
U37 Varchar(128) , @RC37 INT , @U38 Varchar(128) , @RC38 INT , @U39 Varchar(128) , @RC39 INT , @U40 Varchar(128) , @RC40 INT , @U41 Varchar(128) , @RC41 INT , @U42 Varchar(128) , @RC42 INT ,
 @
U43 Varchar(128) , @RC43 INT , @U44 Varchar(128) , @RC44 INT , @U45 Varchar(128) , @RC45 INT , @U46 Varchar(128) , @RC46 INT , @U47 Varchar(128) , @RC47 INT , @U48 Varchar(128) , @RC48 INT ,
 @
U49 Varchar(128) , @RC49 INT , @U50 Varchar(128) , @RC50 INT
-----------------------------------------------------------------------
 --> 
Get Character name by CharID
 Set 
@CharName = (Select CharName16 From [SRO_VT_SHARD].[dbo].[_Char] Where CharID = @CharID)
 --> 
Unique reward codename :
 
Set @RewardCodeName = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Reward')
 --> 
Uniques Codename :
 
Set @U1 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.1')        Set @U2 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.2')        Set @U3 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.3')
 
Set @U4 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.4')        Set @U5 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.5')        Set @U6 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.6')
 
Set @U7 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.7')        Set @U8 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.8')        Set @U9 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.9')
 
Set @U10 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.10')    Set @U11 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.11')        Set @U12 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.12')
 
Set @U13 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.13')    Set @U14 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.14')        Set @U15 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.15')
 
Set @U16 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.16')    Set @U17 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.17')        Set @U18 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.18')
 
Set @U19 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.19')    Set @U20 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.20')        Set @U21 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.21')
 
Set @U22 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.22')    Set @U23 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.23')        Set @U24 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.24')
 
Set @U25 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.25')    Set @U26 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.26')        Set @U27 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.27')
 
Set @U28 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.28')    Set @U29 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.29')        Set @U30 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.30')
 
Set @U31 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.31')    Set @U32 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.32')        Set @U33 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.33')
 
Set @U34 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.34')    Set @U35 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.35')        Set @U36 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.36')
 
Set @U37 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.37')    Set @U38 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.38')        Set @U39 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.39')
 
Set @U40 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.40')    Set @U41 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.41')        Set @U42 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.42')
 
Set @U43 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.43')    Set @U44 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.44')        Set @U45 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.45')
 
Set @U46 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.46')    Set @U47 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.47')        Set @U48 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.48')
 
Set @U49 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.49')    Set @U50 = (Select CodeName128 From [dbo].[_iLegend_Settings] Where Object like 'Unique No.50')
 --> 
Unique reward count :
 
Set @RC1 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.1')        Set @RC2 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.2')        Set @RC3 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.3')
 
Set @RC4 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.4')        Set @RC5 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.5')        Set @RC6 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.6')
 
Set @RC7 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.7')        Set @RC8 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.8')        Set @RC9 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.9')
 
Set @RC10 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.10')    Set @RC11 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.11')        Set @RC12 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.12')
 
Set @RC13 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.13')    Set @RC14 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.14')        Set @RC15 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.15')
 
Set @RC16 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.16')    Set @RC17 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.17')        Set @RC18 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.18')
 
Set @RC19 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.19')    Set @RC20 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.20')        Set @RC21 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.21')
 
Set @RC22 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.22')    Set @RC23 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.23')        Set @RC24 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.24')
 
Set @RC25 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.25')    Set @RC26 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.26')        Set @RC27 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.27')
 
Set @RC28 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.28')    Set @RC29 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.29')        Set @RC30 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.30')
 
Set @RC31 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.31')    Set @RC32 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.32')        Set @RC33 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.33')
 
Set @RC34 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.34')    Set @RC35 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.35')        Set @RC36 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.36')
 
Set @RC37 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.37')    Set @RC38 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.38')        Set @RC39 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.39')
 
Set @RC40 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.40')    Set @RC41 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.41')        Set @RC42 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.42')
 
Set @RC43 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.43')    Set @RC44 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.44')        Set @RC45 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.45')
 
Set @RC46 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.46')    Set @RC47 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.47')        Set @RC48 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.48')
 
Set @RC49 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.49')    Set @RC50 = (Select RewardCount From [dbo].[_iLegend_Settings] Where Object like 'Unique No.50')
-----------------------------------------------------------------------
 -- 
Set each unique reward value :
 
Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC1    Where MobName = @U1  and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC2    Where MobName = @U2  and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC3    Where MobName = @U3  and RewardCount IS NULL
 Update 
[SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC4    Where MobName = @U4  and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC5    Where MobName = @U5  and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC6    Where MobName = @U6  and RewardCount IS NULL
 Update 
[SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC7    Where MobName = @U7  and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC8    Where MobName = @U8  and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC9    Where MobName = @U9  and RewardCount IS NULL
 Update 
[SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC10    Where MobName = @U10 and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC11    Where MobName = @U11 and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC12    Where MobName = @U12 and RewardCount IS NULL
 Update 
[SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC13    Where MobName = @U13 and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC14    Where MobName = @U14 and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC15    Where MobName = @U15 and RewardCount IS NULL
 Update 
[SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC16    Where MobName = @U16 and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC17    Where MobName = @U17 and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC18    Where MobName = @U18 and RewardCount IS NULL
 Update 
[SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC19    Where MobName = @U19 and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC20    Where MobName = @U20 and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC21    Where MobName = @U21 and RewardCount IS NULL
 Update 
[SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC22    Where MobName = @U22 and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC23    Where MobName = @U23 and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC24    Where MobName = @U24 and RewardCount IS NULL
 Update 
[SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC25    Where MobName = @U25 and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC26    Where MobName = @U26 and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC27    Where MobName = @U27 and RewardCount IS NULL
 Update 
[SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC28    Where MobName = @U28 and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC29    Where MobName = @U29 and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC30    Where MobName = @U30 and RewardCount IS NULL
 Update 
[SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC31    Where MobName = @U31 and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC32    Where MobName = @U32 and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC33    Where MobName = @U33 and RewardCount IS NULL
 Update 
[SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC34    Where MobName = @U34 and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC35    Where MobName = @U35 and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC36    Where MobName = @U36 and RewardCount IS NULL
 Update 
[SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC37    Where MobName = @U37 and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC38    Where MobName = @U38 and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC39    Where MobName = @U39 and RewardCount IS NULL
 Update 
[SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC40    Where MobName = @U40 and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC41    Where MobName = @U41 and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC42    Where MobName = @U42 and RewardCount IS NULL
 Update 
[SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC43    Where MobName = @U43 and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC44    Where MobName = @U44 and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC45    Where MobName = @U45 and RewardCount IS NULL
 Update 
[SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC46    Where MobName = @U46 and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC47    Where MobName = @U47 and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC48    Where MobName = @U48 and RewardCount IS NULL
 Update 
[SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC49    Where MobName = @U49 and RewardCount IS NULL        Update [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = @RC50    Where MobName = @U50 and RewardCount IS NULL
-----------------------------------------------------------------------

   IF 
EXISTS (Select * From [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Where CharName = @CharName and RewardCount IS NOT NULL and RewardCount > 0 
      
And MobName in (@U1,@U2,@U3,@U4,@U5,@U6,@U7,@U8,@U9,@U10,@U11,@U12,@U13,@U14,@U15,@U16,@U17,@U18,@U19,@U20,@U21,@U22,@U23,@U24,@U25,@U26,@U27,@U28,@U29,@U30,@U31,@U32,@U33,@U34,@U35,@U36,@U37,@U38,@U39,@U40,@U41,@U42,@U43,@U44,@U45,@U46,@U47,@U48,@U49,@U50))
    
Begin
     Set 
@RewardCount = (Select SUM(RewardCount) From [SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Where CharName = @CharName and RewardCount IS NOT NULL and RewardCount > 0)
    -- 
Begin
     Execute 
[SRO_VT_SHARD].[dbo].[_ADD_ITEM_EXTERN] @CharName,@RewardCodeName,@RewardCount,1
     Update 
[SRO_VT_ACCOUNT].[dbo].[srZor_uniques] Set RewardCount = 0 Where CharName = @CharName and MobName in (@U1,@U2,@U3,@U4,@U5,@U6,@U7,@U8,@U9,@U10,@U11,@U12,@U13,@U14,@U15,@U16,@U17,@U18,@U19,@U20,@U21,@U22,@U23,@U24,@U25,@U26,@U27,@U28,@U29,@U30,@U31,@U32,@U33,@U34,@U35,@U36,@U37,@U38,@U39,@U40,@U41,@U42,@U43,@U44,@U45,@U46,@U47,@U48,@U49,@U50)
    -- 
End
    End 


هو طويل شوية بس دا عشان خمسين يونك كل سطر من الجدول ليه كذا سطر فى الـ Procedure المهم بعد كدا هنروح على

SRO_VT_SHARDLOG > Programmability > Stored Procedures > dbo._AddLogChar

وننزل تحت خالص ونضيف الكام سطر دوول

كود PHP:
    IF @EventID = 11 -- IF Character Teleported.
     
Begin
      Execute 
[SRO_VT_SHARDLOG].[dbo].[_UniqueReward] @CharID
     End 


محدش يقوللي دا مش شغال وهو اصلاً مش شغال بملفات سيرفر srZor واعتقد الشرح واضح أي عيب فى السيستم ممكن تعمل ريبورت ع الفيس او هنا فى الموضوع وانا هصحله انشاء الله بس انا مجربه وانشاء الله شغال تمام ..

اشوفكوا فى الموضوع الجاي بفكرة جديدة انشاء الله ..

# iLegend #




توقيع Dev. iLegend :
Skype : dev.ramy1
Facebook : عفوا ,,, لايمكنك مشاهده الروابط لانك غير مسجل لدينا [ للتسجيل اضغط هنا ]
Yahoo : [email protected]
-----------------------------------------
My Intro



-----------------------------------------


التعديل الأخير تم بواسطة Dev. iLegend ; 17-03-2015 الساعة 03:22 AM

رد مع اقتباس
إعلانات google

 


يتصفح الموضوع حالياً : 1 (0 عضو و 1 زائر)
 

ضوابط المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code متاحة
كود [IMG] متاحة
كود HTML معطلة

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

المواضيع المتشابهه
الموضوع كاتب الموضوع المنتدى الردود آخر مشاركة
♔ Release : New Automatic Unique Kills Reward ♔ Dev. iLegend قسم الشروحات و البرامج المستخدمة في عمل السيرفرات الخاصة 0 17-03-2015 04:09 AM
♔ Release : New Automatic Unique Kills Reward ♔ Dev. Ramy قسم الشروحات و البرامج المستخدمة في عمل السيرفرات الخاصة 0 17-03-2015 03:56 AM


الساعة الآن 08:24 AM.