Pet inventory 5/7 7000days with Item

Page 1 of 2 12 LastLast
Results 1 to 25 of 29
  1. #1
    Valued Member Mixizi is offline
    MemberRank
    Oct 2012 Join Date
    122Posts

    Pet inventory 5/7 7000days with Item

    Hello , so I didn't see anyone release that so lets do it ^^.

    That make working inventory pet expansion .

    Code:
    USE [SRO_VT_SHARD]
    GO
    /****** Object:  StoredProcedure [dbo].[_AddTimedJobForPet]    Script Date: 02/24/2013 12:26:27 ******/
    
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    
    
    
    --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    --	Edited by Mixizi Ethereal Online	
    --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    
    ALTER PROCEDURE [dbo].[_AddTimedJobForPet]
    	@CharID			int,
    	@Category		tinyint,
    	@JobID			int,
    	@TimeToKeep		int,
    	@Data1			int,
    	@Data2			int,
    	@Data3			int,
    	@Data4			int,
    	@Data5			int,
    	@Data6			int,
    	@Data7			int,
    	@Data8			int,
    	@Serial64		bigint
    as
    	if (not exists (select ID from _CharCOS with (nolock) where ID = @CharID))
    		return -1
    
    	declare @NewJobID int
    	set @NewJobID = 0
    
    	insert into _TimedJobForPet values(@CharID, @Category, @JobID, 1992999999, @Data1, @Data2, 112, @Data4, @Data5, @Data6, @Data7, @Data8, @Serial64, 0)
    	set @NewJobID = @@identity
    
    	if (@@error <> 0 or @@rowcount = 0)
    		return -2
    
    	return @NewJobID
    
    --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    In game just make the item :
    Code:
    ITEM_MALL_PET_WATCH_CHULHYEN_4W 1
    That give 5/7 Inventory page and 7306 Days expension and you only need to teleport your character after the item used.

    You are free to change the code for change the amout of page & time.


  2. #2
    Valued Member Crue is offline
    MemberRank
    Dec 2012 Join Date
    105Posts

    Re: Pet inventory 5/7 7000days with Item

    Nice..

  3. #3
    Pure Nightmare Jason1990 is offline
    MemberRank
    Jul 2012 Join Date
    GermanyLocation
    311Posts

    Re: Pet inventory 5/7 7000days with Item

    one question,

    when i change
    Code:
    insert into _TimedJobForPet values(@CharID, @Category, @JobID, 1992999999, @Data1, @Data2, 112, @Data4, @Data5, @Data6, @Data7, @Data8, @Serial64, 0)
    	set @NewJobID = @@identity
    Can i set in that way the 7306Days? because if my pet work 28Days, i only want to add the time for expansion for 28days too.

    Thanks for release! and thanks for answer (maybe) :D

  4. #4
    Valued Member Mixizi is offline
    MemberRank
    Oct 2012 Join Date
    122Posts

    Re: Pet inventory 5/7 7000days with Item

    Quote Originally Posted by Jason1990 View Post
    one question,

    when i change
    Code:
    insert into _TimedJobForPet values(@CharID, @Category, @JobID, 1992999999, @Data1, @Data2, 112, @Data4, @Data5, @Data6, @Data7, @Data8, @Serial64, 0)
    	set @NewJobID = @@identity
    Can i set in that way the 7306Days? because if my pet work 28Days, i only want to add the time for expansion for 28days too.

    Thanks for release! and thanks for answer (maybe) :D
    I've tried with 30days didn't work but I think I've find the solution , I'll say you more soon ;)

  5. #5
    Pure Nightmare Jason1990 is offline
    MemberRank
    Jul 2012 Join Date
    GermanyLocation
    311Posts

    Re: Pet inventory 5/7 7000days with Item

    Quote Originally Posted by Mixizi View Post
    I've tried with 30days didn't work but I think I've find the solution , I'll say you more soon ;)
    Would be very interesting! Because i search for an ability to use these item long time ago.
    Maybe u directly now how to add the same clock with only 1 extra page?^^

  6. #6
    Xeulin™ Showtek is offline
    MemberRank
    Nov 2011 Join Date
    UKLocation
    264Posts

    Re: Pet inventory 5/7 7000days with Item

    Yeah, i need it with 28 days too :)

  7. #7
    Enthusiast atef007 is offline
    MemberRank
    Sep 2011 Join Date
    31Posts

    Re: Pet inventory 5/7 7000days with Item

    Quote Originally Posted by Showtek View Post
    Yeah, i need it with 28 days too :)
    It's My Frist Answer In RageZone
    and i was here from 8 Years ^_^
    here ur Answer change To 5004000

  8. #8
    Pure Nightmare Jason1990 is offline
    MemberRank
    Jul 2012 Join Date
    GermanyLocation
    311Posts

    Re: Pet inventory 5/7 7000days with Item

    Quote Originally Posted by atef007 View Post
    It's My Frist Answer In RageZone
    and i was here from 8 Years ^_^
    here ur Answer change To 5004000
    Doesn't work, only give out 4pages and after teleport it's back to one :D but nice try hehe

  9. #9
    Enthusiast alandonilo is offline
    MemberRank
    Sep 2012 Join Date
    25Posts

    Re: Pet inventory 5/7 7000days with Item

    30 Days = 43200

  10. #10
    Valued Member Mixizi is offline
    MemberRank
    Oct 2012 Join Date
    122Posts

    Re: Pet inventory 5/7 7000days with Item

    Quote Originally Posted by alandonilo View Post
    30 Days = 43200
    You tested it ?

  11. #11
    Enthusiast alandonilo is offline
    MemberRank
    Sep 2012 Join Date
    25Posts

    Re: Pet inventory 5/7 7000days with Item

    yes !!

  12. #12
    Xeulin™ Showtek is offline
    MemberRank
    Nov 2011 Join Date
    UKLocation
    264Posts

    Re: Pet inventory 5/7 7000days with Item

    When i use this scroll before teleport i have 5 inventories, after teleport 4. wtf.

  13. #13
    Valued Member Mixizi is offline
    MemberRank
    Oct 2012 Join Date
    122Posts

    Re: Pet inventory 5/7 7000days with Item

    The 5 Days don't work !

  14. #14
    Proficient Member sroYunk is offline
    MemberRank
    Jan 2012 Join Date
    156Posts

    Re: Pet inventory 5/7 7000days with Item

    i have try alot of differnet values Nothing working only this one with 7000++ anyone
    have found out maybee how they have to change the value to fix up to maybee 28 days or so on =?

  15. #15
    I ♥ Coding BlackNova is offline
    MemberRank
    Jan 2010 Join Date
    235Posts

    Re: Pet inventory 5/7 7000days with Item

    Tried that and dont work.
    After 60 seks and teleport the pages are gone
    Last edited by BlackNova; 01-04-13 at 03:22 PM.

  16. #16
    Proficient Member sroYunk is offline
    MemberRank
    Jan 2012 Join Date
    156Posts

    Re: Pet inventory 5/7 7000days with Item

    no one have any Resolution set this item to example 1 page more = 28 days
    or 5 pages more 28 days

    or like any of these ??

  17. #17
    Proficient Member lepitismak is offline
    MemberRank
    May 2013 Join Date
    Fortaleza, BrazLocation
    170Posts

    Re: Pet inventory 5/7 7000days with Item

    lost pages when relog

  18. #18
    Don't touch my Nutella! Witchy Moo is offline
    MemberRank
    Aug 2013 Join Date
    SingaporeLocation
    208Posts

    Re: Pet inventory 5/7 7000days with Item

    Utilizing the original pet extension item with a modified SP, pretty good idea but it's never the proper way to put pet extension item to use.

    In other threads before this you can have 5/7 pages without any items right after spawning the pet and teleport the char.

    Just a little info:
    1. If you have modified SP (_AddTimedJobForPet), NO NEED to use extension item, just spawn the pet and teleport, and you'll have inventory expansion.
    2. But if you're gonna fix and use the item, NO NEED to modify the SP. it's the other way around ;)


    And a bit info about those two: (you have to pick either one)

    *) For you guys who wanna stick to the SP modifications:

    1992999999 = 7684 days
    put it into as variable (for example: @timeToKeep) so you can change it anytime you want, here's how you count it:

    change this:
    Code:
        insert into _TimedJobForPet values @CharID, @category, @jobID, 1992999999, @data1, @data2, 112, @data4, @data5, @data6, @data7, @data8, @serial64, 0)
        set @NewJobID = @@identity
    to this:
    Code:
        DECLARE @rentEndTime DATETIME
        DECLARE @newtime INT
        SELECT @rentEndTime = RentEndTime FROM _CharCOS WHERE ID = @CharID
        SET @newtime = DATEDIFF(s, '1970-01-01 00:00:00', GETUTCDATE())
        -- 3 days
        SET @timeToKeep = @newtime + 3 * 24 * 3600
        -- 24 days
        SET @timeToKeep = @newtime + 24 * 24 * 3600
    
        INSERT INTO _TimedJobForPet VALUES  @CharID, @category, @jobID, @timeToKeep, @data1, @data2, @data3, @data4, @data5, @data6, @data7, @data8, @serial64, 0)
        SET @NewJobID = @@identity
    *) And a little tips for you guys who wanna use the pet extension item, 28 days will never work for the buff, it works only for the inventory extension, it's because the item cannot have maximum value of INT (-1875767296) of 28 days in Media side, not in database side, so forcing it as it is will make the client bugged and instead you'll lose the skill buff after some period of time. So you should decrease into 24 days, and it will work fine.

    This is the result of using the item, in proper way:



    good luck ;)
    Last edited by Witchy Moo; 29-12-13 at 07:35 PM.

  19. #19
    kaju BadFist is offline
    MemberRank
    Nov 2011 Join Date
    833Posts

    Re: Pet inventory 5/7 7000days with Item

    or more simple with out editing noffing you can just add this... on skill -1875767296 and work only with a teleport.

  20. #20
    Don't touch my Nutella! Witchy Moo is offline
    MemberRank
    Aug 2013 Join Date
    SingaporeLocation
    208Posts

    Re: Pet inventory 5/7 7000days with Item

    Quote Originally Posted by BadFist View Post
    or more simple with out editing noffing you can just add this... on skill -1875767296 and work only with a teleport.
    Wrong, having -1875767296 value (28 days) will make the client have minus value as result and the skill will gone after some seconds. Only the inventory expansion will stay for 28 days. The workaround is to set it for 24 days.

  21. #21
    Proficient Member lepitismak is offline
    MemberRank
    May 2013 Join Date
    Fortaleza, BrazLocation
    170Posts

    Re: Pet inventory 5/7 7000days with Item

    make this

    USE [SRO_VT_SHARD]GO
    /****** Object: StoredProcedure [dbo].[_AddTimedJobForPet] Script Date: 02/24/2013 12:26:27 ******/


    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO






    --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    -- Edited by Mixizi Ethereal Online
    --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@


    ALTER PROCEDURE [dbo].[_AddTimedJobForPet]
    @CharID int,
    @Category tinyint,
    @JobID int,
    @TimeToKeep int,
    @Data1 int,
    @Data2 int,
    @Data3 int,
    @Data4 int,
    @Data5 int,
    @Data6 int,
    @Data7 int,
    @Data8 int,
    @Serial64 bigint
    as
    if (not exists (select ID from _CharCOS with (nolock) where ID = @CharID))
    return -1


    declare @NewJobID int
    set @NewJobID = 0


    DECLARE @rentEndTime DATETIME
    DECLARE @newtime INT
    SELECT @rentEndTime = RentEndTime FROM _CharCOS WHERE ID = @CharID
    SET @newtime = DATEDIFF(s, '1970-01-01 00:00:00', GETUTCDATE())
    -- 3 days
    SET @timeToKeep = @newtime + 3 * 24 * 3600
    -- 24 days
    SET @timeToKeep = @newtime + 24 * 24 * 3600


    INSERT INTO _TimedJobForPet VALUES @CharID, @category, @jobID, @timeToKeep, @data1, @data2, @data3, @data4, @data5, @data6, @data7, @data8, @serial64, 0)
    SET @NewJobID = @@identity


    if (@@error <> 0 or @@rowcount = 0)
    return -2


    return @NewJobID


    --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    and get this

    Msg 102, Level 15, State 1, Procedure _AddTimedJobForPet, Line 38Incorrect syntax near '@CharID'.


  22. #22
    kaju BadFist is offline
    MemberRank
    Nov 2011 Join Date
    833Posts

    Re: Pet inventory 5/7 7000days with Item

    Quote Originally Posted by Witchy Moo View Post
    Wrong, having -1875767296 value (28 days) will make the client have minus value as result and the skill will gone after some seconds. Only the inventory expansion will stay for 28 days. The workaround is to set it for 24 days.
    is work or not ? qqqq http://prntscr.com/2f2tqx

  23. #23
    Don't touch my Nutella! Witchy Moo is offline
    MemberRank
    Aug 2013 Join Date
    SingaporeLocation
    208Posts

    Re: Pet inventory 5/7 7000days with Item

    Quote Originally Posted by BadFist View Post
    is work or not ? qqqq http://prntscr.com/2f2tqx
    No, it's not, your pet missing "Skill" line, the working one would be like this:



    ;)

  24. #24
    Proficient Member lepitismak is offline
    MemberRank
    May 2013 Join Date
    Fortaleza, BrazLocation
    170Posts

    Re: Pet inventory 5/7 7000days with Item

    and if i need work with item?

  25. #25
    Don't touch my Nutella! Witchy Moo is offline
    MemberRank
    Aug 2013 Join Date
    SingaporeLocation
    208Posts

    Re: Pet inventory 5/7 7000days with Item

    Quote Originally Posted by lepitismak View Post
    and if i need work with item?
    find old items in _RefObjCommon, something called "CHULYAN" or "AGOL", and learn the item parameters, these items were made for pet extension. You'll find a way ;)



Page 1 of 2 12 LastLast

Advertisement