help vitth Chumpy's.CashShop.v1.5

Results 1 to 11 of 11
  1. #1
    Enthusiast eragons is offline
    MemberRank
    Mar 2009 Join Date
    38Posts

    help vitth Chumpy's.CashShop.v1.5

    I dont understand how to set that shop i know how to config it but the databese is the problem plz canenybody plz give me cashshop database??


  2. #2
    Apprentice robson10 is offline
    MemberRank
    Apr 2009 Join Date
    10Posts

    Re: help vitth Chumpy's.CashShop.v1.5

    post screen shoot of your problem

  3. #3
    Enthusiast eragons is offline
    MemberRank
    Mar 2009 Join Date
    38Posts

    Re: help vitth Chumpy's.CashShop.v1.5


  4. #4
    Apprentice jm_lapido is offline
    MemberRank
    Nov 2006 Join Date
    19Posts

    Re: help vitth Chumpy's.CashShop.v1.5

    You did not follow this instruction:

    Create a new database called "CashShop" and run database/db.sql on it.

  5. #5
    Enthusiast eragons is offline
    MemberRank
    Mar 2009 Join Date
    38Posts

    Re: help vitth Chumpy's.CashShop.v1.5

    but I dont understand how to run on it that descripcion is small and many dont understand specialy me :p D:D so plz help

  6. #6
    Enthusiast eragons is offline
    MemberRank
    Mar 2009 Join Date
    38Posts

    Re: help vitth Chumpy's.CashShop.v1.5

    but cant you yust give me plz that databaze?? I will try to do what you wrote but still plz give me that databaze
    and another question how to add image to items??
    Last edited by eragons; 20-04-09 at 09:39 PM. Reason: no newer mind I did it thanks man you saved my life :D:D:D:D

  7. #7
    Apprentice Helvis is offline
    MemberRank
    Jan 2008 Join Date
    23Posts

    Re: help vitth Chumpy's.CashShop.v1.5

    Setting clear. How do I add cashshop items?
    Sorry for my bad english

  8. #8
    The Cat in the Hat cypher is offline
    MemberRank
    Oct 2005 Join Date
    IrelandLocation
    5,073Posts

    Re: help vitth Chumpy's.CashShop.v1.5

    read the effing readme!

  9. #9
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: help vitth Chumpy's.CashShop.v1.5

    Quote Originally Posted by eragons View Post
    but cant you yust give me plz that databaze?? I will try to do what you wrote but still plz give me that databaze
    and another question how to add image to items??
    People struggle with restoring databases even more which is why i did it as a query. Just create a new db and run that query on it and it will create the db tables.

    Quote Originally Posted by Helvis View Post
    Setting clear. How do I add cashshop items?
    Sorry for my bad english
    Log into the cash shop with an account that has at least 1 GM (nation=3) and you will get an admin button on the left.

  10. #10
    Enthusiast eragons is offline
    MemberRank
    Mar 2009 Join Date
    38Posts

    Re: help vitth Chumpy's.CashShop.v1.5

    yes I know that now thanks I just didn't know obout that how to het those storedprocedures :p

  11. #11
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: help vitth Chumpy's.CashShop.v1.5

    Find the "New Query" button on the toolbar. In SQL2005/2008 is is called literally "New Query" in the management studio and in SQL2000 it is the leftmost icon that looks like a text document. Run the query below and it will create the DB and tables for you.

    Code:
    CREATE DATABASE cashshop
    GO
    USE cashshop
    GO
    
    CREATE TABLE [dbo].[Bank] (
    [UserNum] [int] NOT NULL ,
    [Alz] [bigint] NOT NULL
    ) ON [PRIMARY]
    GO
    
    CREATE TABLE [dbo].[ShopItems] (
    [Id] [int] IDENTITY (1, 1) NOT NULL ,
    [Name] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
    [Description] [varchar] (200) COLLATE Chinese_PRC_CI_AS NOT NULL ,
    [ItemIdx] [int] NOT NULL ,
    [DurationIdx] [int] NOT NULL ,
    [ItemOpt] [int] NOT NULL ,
    [Image] [varchar] (200) COLLATE Chinese_PRC_CI_AS NOT NULL ,
    [Honour] [int] NULL ,
    [Alz] [int] NULL ,
    [Category] [int] NOT NULL ,
    [Available] [int] NOT NULL
    ) ON [PRIMARY]
    GO
    
    SET QUOTED_IDENTIFIER OFF
    GO
    SET ANSI_NULLS OFF
    GO
    
    
    CREATE PROCEDURE SetBankAlz( @UserNum int, @Alz bigint)
    AS
    BEGIN
    BEGIN TRAN
    IF NOT EXISTS( SELECT UserNum
    FROM Bank
    WHERE UserNum = @UserNum )
    BEGIN
    INSERT Bank (UserNum, Alz)
    VALUES ( @UserNum, 0)
    END
    ELSE
    BEGIN
    UPDATE Bank
    SET Alz = @Alz
    WHERE UserNum = @UserNum
    END
    COMMIT TRAN
    END
    
    
    GO
    SET QUOTED_IDENTIFIER OFF
    GO
    SET ANSI_NULLS ON
    GO
    
    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_NULLS OFF
    GO
    
    CREATE PROCEDURE [dbo].[GetBankAlz]( @UserNum int ) AS
    BEGIN
    if ( SELECT UserNum FROM Bank WHERE UserNum = @UserNum ) is Null
    BEGIN
    INSERT Bank ( UserNum, Alz)
    VALUES( @UserNum, 0)
    END
    SELECT UserNum, Alz
    FROM Bank
    WHERE UserNum = @UserNum
    END
    
    GO
    SET QUOTED_IDENTIFIER OFF
    GO
    SET ANSI_NULLS ON
    GO



Advertisement