Hi all,
Maybe you people already know this. But i wanna share this knowledge with you people.
Make the GIID in the Database above 1,000,000.
Example
GIID = 1000001
Name = " Choice an name"
Desc = " Choice something you like"
Price = the price you want
RegDat = An date in the past
StartDat = an date in the past.
LifeTimeHour = The time how long an item will be in the shop, in hours << i think
IsCash = 0 for bounty 1 for premium
Opened = 1 Else i wont work.
ect,ect,ect....
Use the Bought Gamble items you need an small change in your DB.
Execute this in your DB and it shall work all fine,Code:GO /****** Object: StoredProcedure [dbo].[spChangeGambleItemToRewardItem] Script Date: 12/26/2009 14:49:16 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROC [dbo].[spChangeGambleItemToRewardItem] @CID int , @CIID int , @GIID int , @RewardItemID int AS BEGIN SET NOCOUNT ON DECLARE @RentHourPeriod smallint SELECT @RentHourPeriod = RentHourPeriod FROM GambleRewardItem WHERE GIID = @GIID AND (ItemIDMale = @RewardItemID OR ItemIDFemale = @RewardItemID) IF @RentHourPeriod IS NULL BEGIN SELECT -1 as 'Ret' RETURN END BEGIN TRAN UPDATE CharacterItem SET ItemID = @RewardItemID, RentHourPeriod = @RentHourPeriod , RentDate = GETDATE() WHERE CID = @CID AND CIID = @CIID AND ItemID = @GIID IF (0 <> @@ERROR) OR (0 = @@ROWCOUNT) BEGIN ROLLBACK TRAN SELECT -2 AS 'Ret' RETURN END COMMIT TRAN SELECT 1 AS 'Ret' END
Please take an look to the ScreenShot your DB Should be something like this. It works.
50% of the credits Are for Maxteam.
50% of the credits Are for ME.
Press Thanks if i helped you people.



Reply With Quote




