USE [SRO_VT_SHARDLOG] GO /****** Object: StoredProcedure [dbo].[_Job_Reward_By_Tyr] Script Date: 10/27/2014 6:26:23 AM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO
Create procedure [dbo].[_Job_Reward_By_Tyr] @CharID int, @EventID tinyint as DECLARE @CharnameJob varchar(268) = (Select CharName16 From SRO_VT_SHARD.dbo._Char where CharID = @CharID) DECLARE @Char_ReqLevel int = (Select CurLevel from SRO_VT_SHARD.dbo._char where CharID = @CharID) -- Begin Hunter Reward if @EventID = '6' begin Declare @CosID int = (select ID from SRO_VT_SHARD.dbo._CharCOS where OwnerCharID = @CharID) ----------------------------------------------------------Begin Delete pet if he loggout. Delete from SRO_VT_SHARD.dbo._InvCOS where COSID = @CosID Delete from SRO_VT_SHARD.dbo._CharCOS where OwnerCharID = @CharID and RefCharID between '2187' and '2189' or OwnerCharID = @CharID and RefCharID between '3915' and '3917' or OwnerCharID = @CharID and RefCharID between '3912' and '3914' or OwnerCharID = @CharID and RefCharID between '2184' and '2186' or OwnerCharID = @CharID and RefCharID between '23250' and '23257' or OwnerCharID = @CharID and RefCharID between '23258' and '23265' or OwnerCharID = @CharID and RefCharID between '23905' and '23912' if exists (Select * from SRO_VT_SHARD.dbo._CharTrijob where CharID = @CharID and Contribution >= '2099235' and JobType = '3' and @Char_ReqLevel >= '95' ) begin exec SRO_VT_SHARD.dbo._ADD_ITEM_EXTERN @charnameJob,ITEM_ETC_ARENA_COIN,20,0 Update SRO_VT_SHARD.dbo._CharTrijob set Contribution = '1' where CharID = @CharID end -- orig 3484407 if exists (Select * from SRO_VT_SHARD.dbo._CharTrijob where CharID = @CharID and Contribution >= '2928581' and JobType = '1' and @Char_ReqLevel >= '95') begin exec SRO_VT_SHARD.dbo._ADD_ITEM_EXTERN @charnameJob,ITEM_ETC_ARENA_COIN,22,0 Update SRO_VT_SHARD.dbo._CharTrijob set Contribution = '1' where CharID = @CharID end if exists (Select * from SRO_VT_SHARD.dbo._CharTrijob where CharID = @CharID and Contribution >= '2928581' and JobType = '2' and @Char_ReqLevel >= '95') begin exec SRO_VT_SHARD.dbo._ADD_ITEM_EXTERN @charnameJob,ITEM_ETC_ARENA_COIN,25,0 Update SRO_VT_SHARD.dbo._CharTrijob set Contribution = '1' where CharID = @CharID
end end
Addlogchar
كود PHP:
-- Trade Gold Coins + Anti Cheat if @EventID = '6' and exists (Select * from SRO_VT_SHARD.dbo._CharTrijob where CharID = @CharID and Contribution >= '2099235' ) begin Exec [dbo].[_Job_Reward_By_Tyr] @charid , @eventid end
عملتها في السيرفر عندي ويارتني ما عملتتها ^^
جابتلي بجاات الدنيا والدين والله العظيم
اول بج : البلاير يطلعو التريدا ولما يوصلو المدينة يوقعوها ويلمو 4 قطع بس ويسلموها ويعملو ريسترت يجلهم الريورد وكذا
تاني بج : البلاير لما يوصلو التريدا المدينة بيفتحو hunter ويجبوة البارتي ويوقع التريدا ويلمو 4 قطع والريورد يجي للاتنين بعد الريسترت
DECLARE @NewQuot FLOAT -- @ SRO_VT_SHARD
DECLARE @NewPrice INT
DECLARE @NewStack INT
DECLARE @NewSellPrice INT
SET @NewQuot = 650 -- Doubles the profit % trough "2.0" (e.g. 2.6 is also possible)
SET @NewPrice = 60000 -- Goods Price @ the Shop
SET @NewStack = 100000 -- Increases/Decreases the maximum Stack, Default = 40
SET @NewSellPrice = 10000000 -- Goods Price if you sell them directly again - without trading.
-- Profit %
UPDATE [dbo].[_ItemQuotation]
SET BaseQuot = BaseQuot*@NewQuot
WHERE RefItemID BETWEEN 2147 AND 2158
UPDATE [dbo].[_ItemQuotation]
SET Quot_LB = Quot_LB*@NewQuot
WHERE RefItemID BETWEEN 2147 AND 2158
UPDATE [dbo].[_ItemQuotation]
SET Quot_UB = Quot_UB*@NewQuot
WHERE RefItemID BETWEEN 2147 AND 2158
UPDATE [dbo].[_ItemQuotation]
SET BaseQuot = BaseQuot*@NewQuot
WHERE RefItemID BETWEEN 10394 AND 10401
UPDATE [dbo].[_ItemQuotation]
SET Quot_LB = Quot_LB*@NewQuot
WHERE RefItemID BETWEEN 10394 AND 10401
UPDATE [dbo].[_ItemQuotation]
SET Quot_UB = Quot_UB*@NewQuot
WHERE RefItemID BETWEEN 10394 AND 10401
UPDATE [dbo].[_ItemQuotation]
SET BaseQuot = BaseQuot*@NewQuot
WHERE RefItemID BETWEEN 24671 AND 24672
UPDATE [dbo].[_ItemQuotation]
SET Quot_LB = Quot_LB*@NewQuot
WHERE RefItemID BETWEEN 24671 AND 24672
UPDATE [dbo].[_ItemQuotation]
SET Quot_UB = Quot_UB*@NewQuot
WHERE RefItemID BETWEEN 24671 AND 24672
-- Price / SellPrice
UPDATE [dbo].[_RefObjCommon]
SET Price = @NewPrice
WHERE ID BETWEEN 2147 AND 2158
UPDATE [dbo].[_RefObjCommon]
SET SellPrice = @NewSellPrice
WHERE ID BETWEEN 2147 AND 2158