Black Shield
14-03-2016, 07:46 PM
http://store2.up-00.com/2015-07/1437915467981.png
ازيكم يا رجالة
انا جايب لكم System مش عارف اذا كان اتعمل قبل كده ولا لا
بس انا دورت علية قبل ما اعمل الموضوع ملقتهوش
قولت اعمل بيه موضوع يمكن يفيد حد
http://i.imgur.com/bWvpBly.png
Silk Per Level System
هانعمل Create للـ tables ديه
USE [SRO_VT_SHARDLOG]
GO
/****** Object: Table [dbo].[_SilkPerLvl] Script Date: 14/03/2016 06:28:15 م ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[_SilkPerLvl](
[Charid] [int] NULL,
[Level] [int] NULL,
[Date] [date] NULL
) ON [PRIMARY]
GO
USE [SRO_VT_SHARDLOG]
GO
/****** Object: Table [dbo].[SilkPerLvl_AntiCheat] Script Date: 14/03/2016 06:29:46 م ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[SilkPerLvl_AntiCheat](
[Charname] [varchar](max) NULL,
[Jid] [int] NULL,
[Level] [int] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
هانضيف الجزء ده في _AddLogChar
--------------------------------------------- Black Shield -----------------------------------------------
---------------------------------------- [Silk Per Level System] -----------------------------------------
----------------------------------------------- S T A R T ------------------------------------------------
DECLARE @charname varchar(max) = ( select charname16 from sro_vt_shard.._char where charid = @charid )
DECLARE @jid int = (select UserJID from SRO_VT_SHARD.._User where CharID = @CharID)
if (@eventid = 22 and not exists ( select * from SRO_VT_SHARDLOG.._silkperlvl where charid = @charid and [level]=@data2 ))
BEGIN
update SRO_VT_ACCOUNT..SK_Silk set silk_own = silk_own +@Data2 where JID = @jid
insert into SRO_VT_SHARDLOG.._silkperLvl values (@CharID,@data2,getdate())
if exists ( select * from SRO_VT_SHARDLOG..silkperlvl_anticheat where jid=@jid and [level]=@data2 )
BEGIN
update SRO_VT_ACCOUNT..SK_Silk set silk_own = silk_own-@Data2 where JID = @jid
END
insert into SRO_VT_SHARDLOG..SilkPerLvl_AntiCheat values (@charname,@jid,@data2)
END
------------------------------------------------- E n d --------------------------------------------------
http://i.imgur.com/bWvpBly.png
Gold Per Level System
هانعمل Create للـ table ده
USE [SRO_VT_SHARDLOG]
GO
/****** Object: Table [dbo].[_GoldPerLvl] Script Date: 14/03/2016 06:42:10 م ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[_GoldPerLvl](
[Charid] [int] NULL,
[Level] [int] NULL,
[Date] [date] NULL
) ON [PRIMARY]
GO
هانضيف الجزء ده في _AddLogChar
--------------------------------------------- Black Shield -----------------------------------------------
---------------------------------------- [Gold Per Level System] -----------------------------------------
----------------------------------------------- S T A R T ------------------------------------------------
DECLARE @charname varchar(max) = ( select charname16 from sro_vt_shard.._char where charid = @charid )
DECLARE @jid int = (select UserJID from SRO_VT_SHARD.._User where CharID = @CharID)
if (@eventid = 22 and not exists ( select * from SRO_VT_SHARDLOG.._goldperlvl where charid = @charid and [level]=@data2 ))
BEGIN
update SRO_VT_SHARD.._Char set RemainGold = RemainGold+@Data2*100000 where charid = @CharID
insert into SRO_VT_SHARDLOG.._goldperLvl values (@CharID,@data2,getdate())
END
------------------------------------------------- E n d --------------------------------------------------
http://i.imgur.com/bWvpBly.png
## FQA ##
هي نسبة الsilk & gold اغيرها منين ؟
بالنسبه للـSilk هي معادلة تقدر تغيرها حسب ما انت عاوز
انا عاملها تضيف قيمة الـ Level الي انت فيه يعني دلوقتي انت Level 1 معاك 0 Silk
بقيت Level 2 الـSystem هايضيف القيمة الي هي 2 + قيمة الـSilk الي هي 0 = 2 سيلك
بقيت Level 3 الـSystem هايضيف القيمة الي هي 3 + قيمة الـSilk الي هي 2 = 5 سيلك
ممكن تغيرها حسب ما انت عاوز و ممكن تعمل جدول بالقيم الي انت عاوزها لكل Level
update SRO_VT_ACCOUNT..SK_Silk set silk_own = silk_own +@Data2 where JID = @jid
بالنسبة للـGold
update SRO_VT_SHARD.._Char set RemainGold = RemainGold+@Data2*100000 where charid = @CharID
نفس الفكرة بس انا ضايف في المعادلة انه يضرب قيمة الـ Level في 10000
لو عندك فكرة و عاوز تطبقها قول لي و ان شاء الله نعملها
http://i.imgur.com/bWvpBly.png
لو عــجـبــكـمـ الــمـوضــوع أرجــو الـتــقــيـم http://www.silkroad4arab.com/vb/3eed2012/buttons/reputation.gif http://www.silkroad4arab.com/vb/Silkroad4Arab2013/buttons/reputation.gif
جميعـ الحقوقـ محفوظه
All Rights Reserved®2011~2016
http://www14.0zz0.com/2013/08/04/16/684670676.png
http://www14.0zz0.com/2013/08/04/16/754915422.png
http://img5.imageshack.us/img5/3968/enjoyf.png
http://im25.gulfup.com/2012-07-05/1341435897929.png
ازيكم يا رجالة
انا جايب لكم System مش عارف اذا كان اتعمل قبل كده ولا لا
بس انا دورت علية قبل ما اعمل الموضوع ملقتهوش
قولت اعمل بيه موضوع يمكن يفيد حد
http://i.imgur.com/bWvpBly.png
Silk Per Level System
هانعمل Create للـ tables ديه
USE [SRO_VT_SHARDLOG]
GO
/****** Object: Table [dbo].[_SilkPerLvl] Script Date: 14/03/2016 06:28:15 م ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[_SilkPerLvl](
[Charid] [int] NULL,
[Level] [int] NULL,
[Date] [date] NULL
) ON [PRIMARY]
GO
USE [SRO_VT_SHARDLOG]
GO
/****** Object: Table [dbo].[SilkPerLvl_AntiCheat] Script Date: 14/03/2016 06:29:46 م ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[SilkPerLvl_AntiCheat](
[Charname] [varchar](max) NULL,
[Jid] [int] NULL,
[Level] [int] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
هانضيف الجزء ده في _AddLogChar
--------------------------------------------- Black Shield -----------------------------------------------
---------------------------------------- [Silk Per Level System] -----------------------------------------
----------------------------------------------- S T A R T ------------------------------------------------
DECLARE @charname varchar(max) = ( select charname16 from sro_vt_shard.._char where charid = @charid )
DECLARE @jid int = (select UserJID from SRO_VT_SHARD.._User where CharID = @CharID)
if (@eventid = 22 and not exists ( select * from SRO_VT_SHARDLOG.._silkperlvl where charid = @charid and [level]=@data2 ))
BEGIN
update SRO_VT_ACCOUNT..SK_Silk set silk_own = silk_own +@Data2 where JID = @jid
insert into SRO_VT_SHARDLOG.._silkperLvl values (@CharID,@data2,getdate())
if exists ( select * from SRO_VT_SHARDLOG..silkperlvl_anticheat where jid=@jid and [level]=@data2 )
BEGIN
update SRO_VT_ACCOUNT..SK_Silk set silk_own = silk_own-@Data2 where JID = @jid
END
insert into SRO_VT_SHARDLOG..SilkPerLvl_AntiCheat values (@charname,@jid,@data2)
END
------------------------------------------------- E n d --------------------------------------------------
http://i.imgur.com/bWvpBly.png
Gold Per Level System
هانعمل Create للـ table ده
USE [SRO_VT_SHARDLOG]
GO
/****** Object: Table [dbo].[_GoldPerLvl] Script Date: 14/03/2016 06:42:10 م ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[_GoldPerLvl](
[Charid] [int] NULL,
[Level] [int] NULL,
[Date] [date] NULL
) ON [PRIMARY]
GO
هانضيف الجزء ده في _AddLogChar
--------------------------------------------- Black Shield -----------------------------------------------
---------------------------------------- [Gold Per Level System] -----------------------------------------
----------------------------------------------- S T A R T ------------------------------------------------
DECLARE @charname varchar(max) = ( select charname16 from sro_vt_shard.._char where charid = @charid )
DECLARE @jid int = (select UserJID from SRO_VT_SHARD.._User where CharID = @CharID)
if (@eventid = 22 and not exists ( select * from SRO_VT_SHARDLOG.._goldperlvl where charid = @charid and [level]=@data2 ))
BEGIN
update SRO_VT_SHARD.._Char set RemainGold = RemainGold+@Data2*100000 where charid = @CharID
insert into SRO_VT_SHARDLOG.._goldperLvl values (@CharID,@data2,getdate())
END
------------------------------------------------- E n d --------------------------------------------------
http://i.imgur.com/bWvpBly.png
## FQA ##
هي نسبة الsilk & gold اغيرها منين ؟
بالنسبه للـSilk هي معادلة تقدر تغيرها حسب ما انت عاوز
انا عاملها تضيف قيمة الـ Level الي انت فيه يعني دلوقتي انت Level 1 معاك 0 Silk
بقيت Level 2 الـSystem هايضيف القيمة الي هي 2 + قيمة الـSilk الي هي 0 = 2 سيلك
بقيت Level 3 الـSystem هايضيف القيمة الي هي 3 + قيمة الـSilk الي هي 2 = 5 سيلك
ممكن تغيرها حسب ما انت عاوز و ممكن تعمل جدول بالقيم الي انت عاوزها لكل Level
update SRO_VT_ACCOUNT..SK_Silk set silk_own = silk_own +@Data2 where JID = @jid
بالنسبة للـGold
update SRO_VT_SHARD.._Char set RemainGold = RemainGold+@Data2*100000 where charid = @CharID
نفس الفكرة بس انا ضايف في المعادلة انه يضرب قيمة الـ Level في 10000
لو عندك فكرة و عاوز تطبقها قول لي و ان شاء الله نعملها
http://i.imgur.com/bWvpBly.png
لو عــجـبــكـمـ الــمـوضــوع أرجــو الـتــقــيـم http://www.silkroad4arab.com/vb/3eed2012/buttons/reputation.gif http://www.silkroad4arab.com/vb/Silkroad4Arab2013/buttons/reputation.gif
جميعـ الحقوقـ محفوظه
All Rights Reserved®2011~2016
http://www14.0zz0.com/2013/08/04/16/684670676.png
http://www14.0zz0.com/2013/08/04/16/754915422.png
http://img5.imageshack.us/img5/3968/enjoyf.png
http://im25.gulfup.com/2012-07-05/1341435897929.png