How to let you buy Gamble Items for the Shop for Bounty

Page 1 of 4 1234 LastLast
Results 1 to 15 of 47
  1. #1
    The beer?? Its here !!! Rotana is offline
    MemberRank
    Jan 2007 Join Date
    The NetherlandsLocation
    1,733Posts

    How to let you buy Gamble Items for the Shop for Bounty

    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.

    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
    Execute this in your DB and it shall work all fine,

    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.
    Attached Thumbnails Attached Thumbnails nieuw-bitmapafbeelding.jpg  
    Last edited by Rotana; 26-12-09 at 04:18 PM.


  2. #2
    Account Upgraded | Title Enabled! maxteam is offline
    MemberRank
    Aug 2007 Join Date
    IndiaLocation
    428Posts

    Re: How to let you buy Gamble Items for the Shop for Bounty

    thank you

  3. #3
    Account Upgraded | Title Enabled! Axium is offline
    MemberRank
    May 2008 Join Date
    Delhi, IndiaLocation
    604Posts

    Re: How to let you buy Gamble Items for the Shop for Bounty

    Thanks Rotana :)

  4. #4
      Phoenix is offline
    ModeratorRank
    Mar 2009 Join Date
    6,890Posts

    Re: How to let you buy Gamble Items for the Shop for Bounty

    Thanks man!! You rock!

    Also, wish you a very Happy B'day in advance.
    Last edited by Phoenix; 26-12-09 at 02:58 PM.

  5. #5
    Account Upgraded | Title Enabled! Gosu[ru] is offline
    MemberRank
    Jan 2009 Join Date
    http://www.epicLocation
    359Posts

    Re: How to let you buy Gamble Items for the Shop for Bounty

    how to add in shop?

    10
    Inited client file list (1)
    Start GambleItem Init.
    GIID : 1000001
    GRIID : m(506005), f(506005).
    End GambleItem Init.

    Start shop GItem list log.
    GambleItemCount : 0.
    End shop GItem list log.


    === Dump GambleItem Info. ===
    Gamble item list.
    Gamble item. ID(1000001), Name(Test), IsTimeover(1).

    Send shop gamble item list.
    Shop gamble item count : 0
    === Completed Dump GambleItem Info. ===

  6. #6

    Re: How to let you buy Gamble Items for the Shop for Bounty

    Thanks a lot!

  7. #7
    The beer?? Its here !!! Rotana is offline
    MemberRank
    Jan 2007 Join Date
    The NetherlandsLocation
    1,733Posts

    Re: How to let you buy Gamble Items for the Shop for Bounty

    Updated Main post.

    ---------- Post added at 03:01 PM ---------- Previous post was at 02:57 PM ----------

    Quote Originally Posted by Gosu[ru] View Post
    how to add in shop?

    10
    Inited client file list (1)
    Start GambleItem Init.
    GIID : 1000001
    GRIID : m(506005), f(506005).
    End GambleItem Init.

    Start shop GItem list log.
    GambleItemCount : 0.
    End shop GItem list log.


    === Dump GambleItem Info. ===
    Gamble item list.
    Gamble item. ID(1000001), Name(Test), IsTimeover(1).

    Send shop gamble item list.
    Shop gamble item count : 0
    === Completed Dump GambleItem Info. ===
    Your probelly have the IsCash on 1 It must be 0

    See Main post.

  8. #8
    Account Upgraded | Title Enabled! Gosu[ru] is offline
    MemberRank
    Jan 2009 Join Date
    http://www.epicLocation
    359Posts

    Re: How to let you buy Gamble Items for the Shop for Bounty

    Dont work

    Code:
    Inited client file list (1)
    Start GambleItem Init.
    GIID : 1000001
      GRIID : m(506005), f(506005).
    End GambleItem Init.
    
    Start shop GItem list log.
    GambleItemCount : 0.
    End shop GItem list log.
    
    
    === Dump GambleItem Info. ===
    Gamble item list.
    Gamble item. ID(1000001), Name(Test), IsTimeover(1).
    
    Send shop gamble item list.
    Shop gamble item count : 0
    === Completed Dump GambleItem Info. ===

  9. #9

    Re: How to let you buy Gamble Items for the Shop for Bounty

    It isn't showing for me:

    Code:
    Inited client file list (1)
    Start GambleItem Init.
    GIID : 1000001
      GRIID : m(523501), f(523501).
    End GambleItem Init.
    
    Start shop GItem list log.
    GambleItemCount : 1.
    Shop GItem : 1000001
    End shop GItem list log.
    
    
    === Dump GambleItem Info. ===
    Gamble item list.
    Gamble item. ID(1000001), Name(Box), IsTimeover(0).
    
    Send shop gamble item list.
    Shop gamble item count : 1
    Shop gamble item. ID(1000001), Name(Box).
    === Completed Dump GambleItem Info. ===

  10. #10
      Phoenix is offline
    ModeratorRank
    Mar 2009 Join Date
    6,890Posts

    Re: How to let you buy Gamble Items for the Shop for Bounty

    The boxes still don't show up in the shop.





    My server log:
    Code:
    Load XML from memory : strings.xml(0x0037) - SUCCESS
    Load XML from memory : cserror.xml(0x0037) - SUCCESS
    [12/26/09 19:43:02] DBMS connected
    
    [12/26/09 19:43:02] Command registeration completed
    
    Inited client file list (1)
    Start GambleItem Init.
    GIID : 10000002
    End GambleItem Init.
    
    Start shop GItem list log.
    GambleItemCount : 0.
    End shop GItem list log.
    
    
    === Dump GambleItem Info. ===
    Gamble item list.
    Gamble item. ID(10000002), Name(Cakram), IsTimeover(1).
    
    Send shop gamble item list.
    Shop gamble item count : 0
    === Completed Dump GambleItem Info. ===
    
    success init security.

  11. #11
    Account Upgraded | Title Enabled! maxteam is offline
    MemberRank
    Aug 2007 Join Date
    IndiaLocation
    428Posts

    Re: How to let you buy Gamble Items for the Shop for Bounty

    there seems to be some problem with your [spGetGambleItemList]

    maybe use this Script, but i use the default ones.
    Code:
    USE [GunzDB]
    GO
    /****** Object:  StoredProcedure [dbo].[spGetGambleItemList]    Script Date: 12/26/2009 02:19:55 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    
    ALTER PROC [dbo].[spGetGambleItemList]
    AS
    BEGIN
     SET NOCOUNT ON
     
     SELECT GIID, Name, Description, Price
     , DATEDIFF(mi, GETDATE(), StartDate) AS 'StartDate'
     , LifeTimeHour * 60 as 'LifeTimeHour', Opened, IsCash
     FROM GambleItem(NOLOCK) 
    END
    update if it worked or not
    Last edited by maxteam; 26-12-09 at 03:17 PM.

  12. #12

    Re: How to let you buy Gamble Items for the Shop for Bounty

    Quote Originally Posted by phoenix_147 View Post
    The boxes still don't show up in the shop.





    My server log:
    Code:
    Load XML from memory : strings.xml(0x0037) - SUCCESS
    Load XML from memory : cserror.xml(0x0037) - SUCCESS
    [12/26/09 19:43:02] DBMS connected
    
    [12/26/09 19:43:02] Command registeration completed
    
    Inited client file list (1)
    Start GambleItem Init.
    GIID : 10000002
    End GambleItem Init.
    
    Start shop GItem list log.
    GambleItemCount : 0.
    End shop GItem list log.
    
    
    === Dump GambleItem Info. ===
    Gamble item list.
    Gamble item. ID(10000002), Name(Cakram), IsTimeover(1).
    
    Send shop gamble item list.
    Shop gamble item count : 0
    === Completed Dump GambleItem Info. ===
    
    success init security.
    Your RegDate and StartDate must be a recent one.

  13. #13
    Freelance GunZ Developer Touchwise is offline
    MemberRank
    Aug 2009 Join Date
    The NetherlandsLocation
    754Posts

    Re: How to let you buy Gamble Items for the Shop for Bounty

    Good job rotana not that hard to do but good job since much people don't know how to do it

  14. #14
    The beer?? Its here !!! Rotana is offline
    MemberRank
    Jan 2007 Join Date
    The NetherlandsLocation
    1,733Posts

    Re: How to let you buy Gamble Items for the Shop for Bounty

    The problem can be
    1> The StartDate is to old. Try make it yesterdays date and the LifeTimeHour 1000
    2> Opened should be 1 and IsCash 0

  15. #15
    Account Upgraded | Title Enabled! maxteam is offline
    MemberRank
    Aug 2007 Join Date
    IndiaLocation
    428Posts

    Re: How to let you buy Gamble Items for the Shop for Bounty

    if my old script dint work try this
    this must be the proper
    Code:
    USE [GunzDB]
    GO
    /****** Object:  StoredProcedure [dbo].[spGetGambleItemList]    Script Date: 12/26/2009 02:19:55 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    
    ALTER PROC [dbo].[spGetGambleItemList]
    AS
    BEGIN
     SET NOCOUNT ON
     
     SELECT GIID, Name, Description, Price, RegDate, StartDate, LifeTimeHour, Opened, IsCash
     FROM GambleItem(NOLOCK) 
    END
    Last edited by maxteam; 26-12-09 at 03:23 PM.



Page 1 of 4 1234 LastLast

Advertisement