Fix; Items moving to Storage

Results 1 to 24 of 24
  1. #1
    Sultan of Yolo Demantor is offline
    MemberRank
    May 2008 Join Date
    GermanyLocation
    1,266Posts

    thumbs up Fix; Items moving to Storage

    Don't ask me why i am here, yes i fucking quited!.

    Normal TUT [requires 1/4 a brain, if not go to the nub friendly down]:

    Some Servers are having the problem is their prem items which they sell, they aren't going into the CentralBank(Storage)

    Correctly, 1) The Button to move the items is disabled. 2) The Button works, but if its clicked the items disappears from both

    equipment and storage(CentralBank).

    The fix of this is pretty easy, the problem might be your ItemID which is lower than 40000, so that your Database isn't handling

    it as a prem item.

    You can simply remove it(the Check on the ItemID), so all your "iscash=true" items will work, but also any other item if set

    (item.dbo should be then too); But you can just edit the function to work fine with any id so:

    First Step:

    Go to your GunzDB --> Saved Procedures --> spBringBackAccountItem.

    This "Procedure" is responible to write the selected Item into your storage and to delete it from the equipment (moving to

    storage).

    Second Step:

    I'll just type you the edits, its 1, 2 lines only:

    1) Go and add this:
    Code:
    DECLARE @DEIIDCount int
    near all the declares.

    2) Before the first "If" Statment, add this:
    Code:
    SELECT @DEIIDCount=COUNT(*) FROM Item(nolock) WHERE 
    
    ItemID=@ItemID
    it will see if the item exists in the "item.dbo Table", if yes then our declare DEIIDCount should has the

    value 1 [1 Item Selected, 1 ItemID found in table which matchs it].

    3) In the "If" Statment, edit the first line of it to
    Code:
    (@ItemID IS NOT NULL) AND (@DEIIDCount = 1)
    i can't
    really remember what the orginal was, but just replace the one which checks the itemid if its bigger than 40000 with
    Code:
    (@DEIIDCount = 1)
    i think that was all then, i hope i didn't miss something.


    Idiots version(nubs friendly): [requires 1/10 a brain, if you still can't do it, get worried!]

    Step 1:

    Open Your MSSQL, go to GunzDB, Expand it, Select programmability (whatever its called), go to: Saved Procedures, Expand it.

    Step 2:

    Search for: "spBringBackAccountItem" (without the ""), Right click and select Edit.

    Step 3:

    Copy the text(in the CODE area) and Execute it [Replace the orginal text there with this).


    Code:
    set ANSI_NULLS ON
    set QUOTED_IDENTIFIER ON
    GO
    
    
    -- 내 캐릭터 캐쉬아이템을 창고에 넣기 ---------
    ALTER PROC [dbo].[spBringBackAccountItem]
    	@AID		int,
    	@CID		int,
    	@CIID		int
    AS
    SET NOCOUNT ON
    
    DECLARE @ItemID int
    DECLARE @RentDate		DATETIME
    DECLARE @RentHourPeriod	SMALLINT
    DECLARE @Cnt			SMALLINT
    
    DECLARE @HeadCIID 	int
    DECLARE @ChestCIID	int
    DECLARE @HandsCIID	int
    DECLARE @LegsCIID	int
    DECLARE @FeetCIID	int
    DECLARE @FingerLCIID	int
    DECLARE @FingerRCIID	int
    DECLARE @MeleeCIID	int
    DECLARE @PrimaryCIID	int
    DECLARE @SecondaryCIID	int
    DECLARE @Custom1CIID	int
    DECLARE @Custom2CIID	int
    
    DECLARE @DEIIDCount int
    
    SELECT 
    @HeadCIID=head_slot, @ChestCIID=chest_slot, @HandsCIID=hands_slot, 
    @LegsCIID=legs_slot, @FeetCIID=feet_slot, @FingerLCIID=fingerl_slot, @FingerRCIID=fingerr_slot, 
    @MeleeCIID=melee_slot, @PrimaryCIID=primary_slot, @SecondaryCIID=secondary_slot, 
    @Custom1CIID=custom1_slot, @Custom2CIID=custom2_slot
    FROM Character(nolock) WHERE cid=@CID AND aid=@AID
    
    SELECT @ItemID=ItemID, @RentDate=RentDate, @RentHourPeriod=RentHourPeriod, @Cnt=Cnt
    FROM CharacterItem WHERE CIID=@CIID AND CID=@CID
    
    SELECT @DEIIDCount=COUNT(*) FROM Item(nolock) WHERE ItemID=@ItemID
    	
    IF ((@ItemID IS NOT NULL) AND (@DEIIDCount = 1) AND
       (@HeadCIID IS NULL OR @HeadCIID != @CIID) AND
       (@ChestCIID IS NULL OR @ChestCIID != @CIID) AND 
       (@HandsCIID IS NULL OR @HandsCIID != @CIID) AND
       (@LegsCIID IS NULL OR @LegsCIID != @CIID) AND 
       (@FeetCIID IS NULL OR @FeetCIID != @CIID) AND
       (@FingerLCIID IS NULL OR @FingerLCIID != @CIID) AND 
       (@FingerRCIID IS NULL OR @FingerRCIID != @CIID) AND
       (@MeleeCIID IS NULL OR @MeleeCIID != @CIID) AND 
       (@PrimaryCIID IS NULL OR @PrimaryCIID != @CIID) AND
       (@SecondaryCIID IS NULL OR @SecondaryCIID != @CIID) AND 
       (@Custom1CIID IS NULL OR @Custom1CIID != @CIID) AND
       (@Custom2CIID IS NULL OR @Custom2CIID != @CIID))
    BEGIN
    	BEGIN TRAN -------------
    	UPDATE CharacterItem SET CID=NULL WHERE CIID=@CIID AND CID=@CID
    	IF 0 = @@ROWCOUNT BEGIN
    		ROLLBACK TRAN
    		RETURN
    	END
    
    	INSERT INTO AccountItem (AID, ItemID, RentDate, RentHourPeriod, Cnt) 
    	VALUES (@AID, @ItemID, @RentDate, @RentHourPeriod, @Cnt)
    	IF 0 <> @@ERROR BEGIN
    		ROLLBACK TRAN
    		RETURN
    	END
    	COMMIT TRAN -----------
    END
    -------------------------------------------------------------




    If you had this already, using a better/other way, don't reply saying shit.[TY]




    Hope it helps. :)
    Last edited by Demantor; 10-01-10 at 12:45 AM.


  2. #2
    I am THE DON Joe9099 is offline
    MemberRank
    Jan 2007 Join Date
    England, UkLocation
    3,655Posts

    Re: Fix; Items moving to Storage

    great tutorial mate, good job

  3. #3
    Enthusiast Hanguk is offline
    MemberRank
    Jan 2010 Join Date
    ChangwonLocation
    40Posts

    Re: Fix; Items moving to Storage

    Good job too.

  4. #4
    What year is this? pluke001 is offline
    MemberRank
    Nov 2008 Join Date
    LithuaniaLocation
    941Posts

    Re: Fix; Items moving to Storage

    good tutorial :)
    gone use it :P

  5. #5

    Re: Fix; Items moving to Storage

    Good job, and thanks!

  6. #6
    Account Upgraded | Title Enabled! wtfhacker is offline
    MemberRank
    Dec 2009 Join Date
    328Posts

    Re: Fix; Items moving to Storage

    Great tutorial.

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

    Re: Fix; Items moving to Storage

    Thanks, quitter :p

  8. #8
    @RaGEZONE IRC hackerz10001 is offline
    MemberRank
    Aug 2008 Join Date
    RaGEZONELocation
    579Posts

    Re: Fix; Items moving to Storage

    Good tut, wrong section. :P
    Last edited by hackerz10001; 09-01-10 at 05:21 AM.

  9. #9
    Sultan of Yolo Demantor is offline
    MemberRank
    May 2008 Join Date
    GermanyLocation
    1,266Posts

    Re: Fix; Items moving to Storage

    i know, but since i am using proxys, its hard to enter that section, its ever going here :P

  10. #10
    @RaGEZONE IRC hackerz10001 is offline
    MemberRank
    Aug 2008 Join Date
    RaGEZONELocation
    579Posts

    Re: Fix; Items moving to Storage

    Haha ok.

  11. #11
    Sharing is caring KillerStefan is offline
    MemberRank
    Feb 2007 Join Date
    NetherlandsLocation
    2,554Posts

    Re: Fix; Items moving to Storage

    Thank you sir!

  12. #12
    Sultan of Yolo Demantor is offline
    MemberRank
    May 2008 Join Date
    GermanyLocation
    1,266Posts

    Re: Fix; Items moving to Storage

    Finished the Idiots version xD

    Ty for replying :) :)

  13. #13
    Be Freestyle. mcsic is offline
    MemberRank
    May 2008 Join Date
    GermanyLocation
    330Posts

    Re: Fix; Items moving to Storage

    Thanks Demantor.
    I love the idiots version. =D

  14. #14
    Sultan of Yolo Demantor is offline
    MemberRank
    May 2008 Join Date
    GermanyLocation
    1,266Posts

    Re: Fix; Items moving to Storage

    Quote Originally Posted by mcsic View Post
    Thanks Demantor.
    I love the idiots version. =D
    Good to know that it makes sense that i made an idiots version too xD

  15. #15
    Account Upgraded | Title Enabled! Project is offline
    MemberRank
    Oct 2009 Join Date
    621Posts

    Re: Fix; Items moving to Storage

    Tyvm, needed this.

  16. #16
    人◕ ‿‿ ◕人 Forean is offline
    MemberRank
    Jul 2008 Join Date
    1,183Posts

    Re: Fix; Items moving to Storage

    Thanks dude.

  17. #17
    Account Upgraded | Title Enabled! hotgame is offline
    MemberRank
    Mar 2009 Join Date
    CanadaLocation
    305Posts

    Re: Fix; Items moving to Storage

    Thanks dude.

  18. #18
    GunZ Developer dacharles is offline
    MemberRank
    Oct 2006 Join Date
    476Posts

    Re: Fix; Items moving to Storage

    why dont u just change the minimun zitemid number?

    Edit: LOL sorry I did not read the last line.
    Last edited by dacharles; 06-04-10 at 03:05 AM.

  19. #19
    Banned Daemonz is offline
    BannedRank
    Jun 2010 Join Date
    19Posts

    Re: Fix; Items moving to Storage

    This won't work for me i excecuted the storage fix but it still won't work.

    How to fix?

  20. #20

    Re: Fix; Items moving to Storage

    Thanks bro.

  21. #21
    Sharing is caring KillerStefan is offline
    MemberRank
    Feb 2007 Join Date
    NetherlandsLocation
    2,554Posts

    Re: Fix; Items moving to Storage

    Moved.

  22. #22
    I am Dylan. I<3Bass is offline
    MemberRank
    Jun 2010 Join Date
    New YorkLocation
    953Posts

    Re: Fix; Items moving to Storage

    Nice,(He was my boss,but I cannot talk to him a ,lot)

  23. #23
    Apprentice [B]uddy is offline
    MemberRank
    Jun 2010 Join Date
    20Posts

    Re: Fix; Items moving to Storage

    Great TUT , really helped

  24. #24
    Valued Member PrØ is offline
    MemberRank
    Apr 2010 Join Date
    In ur assLocation
    128Posts

    Re: Fix; Items moving to Storage

    Good Job



Advertisement