[HELP] Players initial inventory

Results 1 to 4 of 4
  1. #1
    Enthusiast Tupano is offline
    MemberRank
    Apr 2013 Join Date
    47Posts

    note [HELP] Players initial inventory

    How can i change the players initial inventory? (Flashlight, bandages, etc...)


  2. #2
    Proficient Member MadScripter is offline
    MemberRank
    Apr 2013 Join Date
    187Posts

    Re: [HELP] Players initial inventory

    Navicat > connect to your database > functions > WZ_CharCreate, and then you have this:
    Code:
     if(@CharsCreated <= 5) begin		-- add some default items - BE ULTRA CAREFUL with BackpackSlot number
    		insert into UsersInventory (CustomerID, CharID, BackpackSlot, ItemID, LeasedUntil, Quantity)
    			values (@in_CustomerID, @CharID, 1, 101306, '2020-1-1', 1) -- Flashlight
    		insert into UsersInventory (CustomerID, CharID, BackpackSlot, ItemID, LeasedUntil, Quantity)
    			values (@in_CustomerID, @CharID, 2, 101261, '2020-1-1', 1) -- Bandages
    		insert into UsersInventory (CustomerID, CharID, BackpackSlot, ItemID, LeasedUntil, Quantity)
    			values (@in_CustomerID, @CharID, 3, 101296, '2020-1-1', 1) -- Can of Soda
    		insert into UsersInventory (CustomerID, CharID, BackpackSlot, ItemID, LeasedUntil, Quantity)
    			values (@in_CustomerID, @CharID, 4, 101289, '2020-1-1', 1) -- Granola Bar
    	end
    And you change the values, or add new ones, I think it's pretty self-explanatory :)

  3. #3
    Enthusiast Tupano is offline
    MemberRank
    Apr 2013 Join Date
    47Posts

    Re: [HELP] Players initial inventory

    Quote Originally Posted by MadScripter View Post
    Navicat > connect to your database > functions > WZ_CharCreate, and then you have this:
    Code:
     if(@CharsCreated <= 5) begin        -- add some default items - BE ULTRA CAREFUL with BackpackSlot number
            insert into UsersInventory (CustomerID, CharID, BackpackSlot, ItemID, LeasedUntil, Quantity)
                values (@in_CustomerID, @CharID, 1, 101306, '2020-1-1', 1) -- Flashlight
            insert into UsersInventory (CustomerID, CharID, BackpackSlot, ItemID, LeasedUntil, Quantity)
                values (@in_CustomerID, @CharID, 2, 101261, '2020-1-1', 1) -- Bandages
            insert into UsersInventory (CustomerID, CharID, BackpackSlot, ItemID, LeasedUntil, Quantity)
                values (@in_CustomerID, @CharID, 3, 101296, '2020-1-1', 1) -- Can of Soda
            insert into UsersInventory (CustomerID, CharID, BackpackSlot, ItemID, LeasedUntil, Quantity)
                values (@in_CustomerID, @CharID, 4, 101289, '2020-1-1', 1) -- Granola Bar
        end
    And you change the values, or add new ones, I think it's pretty self-explanatory :)
    Thanks mate. :3

  4. #4
    Proficient Member MadScripter is offline
    MemberRank
    Apr 2013 Join Date
    187Posts

    Re: [HELP] Players initial inventory

    No problem!



Advertisement