New Upgrade System Weapon ^^ Fixed

Results 1 to 13 of 13
  1. #1
    Member xaviar is offline
    MemberRank
    Oct 2012 Join Date
    72Posts

    big grin New Upgrade System Weapon ^^ Fixed

    this thread and this idea i see it in section but when i make test for code not work

    i make some change in code and now working with me fine

    Here is Upgrade System Scroll ^^,If you Do any Weapon Or Acc Or Armor +7 you can get the Next D PLUS 0 Have Fun ........

    Code:
                if (@JobID = 'skill id')
    			begin
    				DECLARE @OldItemCodeName varchar(128) 
    				set @OldItemCodeName= 'ITEM_EU_TSWORD_14_B_RARE'
    				DECLARE @OldItemPlus int 
    				set @OldItemPlus =7
    				DECLARE @NewItemCodeName varchar(128) 
    				set @NewItemCodeName =  ('ITEM_EU_TSWORD_15_A_RARE')
    				DECLARE @NewItemPlus int 
    				set @NewItemPlus = 0
    				DECLARE @ReplaceID int 
    				SET @REPLACEID = (select top 1 ItemID from _Inventory as inv inner join _Items as itm on inv.ItemID  = itm.ID64 inner join _RefObjCommon as common on itm.RefItemID = common.ID where inv.CharID = @CharID and common.CodeName128 = @olditemCodeName and itm.OptLevel >= @OldItemPlus)
    				if (@ReplaceID > 0)
    				begin
    					Update _Inventory set ItemID = 0 where ItemID = @ReplaceID and CharID = @CharID
    					select @CharName16 =CharName16  from _Char where CharID=@CharID
    					exec _ADD_ITEM_EXTERN @CharName16,@NewItemCodeName,1,@NewItemPlus 
    				end
    				return -3
    				end


  2. #2
    (⌐■_■) NourAyman is offline
    MemberRank
    Feb 2012 Join Date
    Behind you :PLocation
    683Posts

    Re: New Upgrade System Weapon ^^ Fixed

    Good but would be better in a replay on the same thread not at a new one

  3. #3
    Proficient Member Royalblade is offline
    MemberRank
    Jan 2013 Join Date
    167Posts

    Re: New Upgrade System Weapon ^^ Fixed

    Nothing is fixed.
    Tell me which part did u not understand.


    Quote Originally Posted by Royalblade View Post
    Don't Use This!!!

    Theres a bigass dupe bug possible if you use a scroll like that. Even if you use direct disconnecting...

    You are setting the ItemID = 0, however the gameserver only reads this at an inventory reload, which happens at world reload usually. Meaning, if you make a simple bot to use the scroll + drop item in mere miliseconds, you will have a dropped item AND receive the "new" item.

    The "developer" who made this (3 minutes of work anyways and its done very very very inefficiently) must be an idiot....

    But well guys, use it and I'll show people how to dupe items.
    Silverlight from Devias made this mistake before using "Silk Event Boxes"... Ask one of the people that made over 4mil silk.

    If you want to code something even as simple as this, you should at least know what ur doing, dont put others at risk cuz ur an dumbass

  4. #4
    Learning denise456 is offline
    MemberRank
    Feb 2012 Join Date
    BrasilLocation
    318Posts

    Re: New Upgrade System Weapon ^^ Fixed

    I don't like bla bla bla only post your best

  5. #5
    SilkRoad vSro Service MaDenGo is offline
    MemberRank
    Aug 2012 Join Date
    vSro CommunityLocation
    512Posts

    Re: New Upgrade System Weapon ^^ Fixed

    PHP Code:
                    set @OldItemCodeName'ITEM_EU_TSWORD_14_B_RARE'
                    
    set @NewItemCodeName =  ('ITEM_EU_TSWORD_15_A_RARE'
    that mean ? i have to set produce for each part :)
    can't declare ( merge ) all types together !

  6. #6
    Apprentice Xiayno is offline
    MemberRank
    Sep 2013 Join Date
    italyLocation
    7Posts

    Re: New Upgrade System Weapon ^^ Fixed

    this code is just sux but anyway i will fix it to make it more faster for you guys !
    by Quenth online developer
    PHP Code:
      if (@JobID 'skill id')
                
    begin
                    
    DECLARE @OldItemCodeName varchar(128) = 'ITEM_EU_TSWORD_14_B_RARE' ,  @OldItemPlus int  =7
                    
    DECLARE @NewItemCodeName varchar(128) =  ('ITEM_EU_TSWORD_15_A_RARE'), @NewItemPlus int 0
                    
    DECLARE @ReplaceID int = (select top 1 ItemID from _Inventory as inv inner join _Items as itm on inv.ItemID  itm.ID64 inner join _RefObjCommon as common on itm.RefItemID common.ID where inv.CharID = @CharID and common.CodeName128 = @olditemCodeName and itm.OptLevel >= @OldItemPlus)
                    if (@
    ReplaceID 0)
                    
    begin
                        Update _Inventory set ItemID 
    0 where ItemID = @ReplaceID and CharID = @CharID
                        select 
    @CharName16 =CharName16  from _Char where CharID=@CharID
                        exec _ADD_ITEM_EXTERN 
    @CharName16,@NewItemCodeName,1,@NewItemPlus 
                    end
                    
    return -3
                    end 

  7. #7
    Member xaviar is offline
    MemberRank
    Oct 2012 Join Date
    72Posts

    Re: New Upgrade System Weapon ^^ Fixed

    Quote Originally Posted by MaDenGo View Post
    PHP Code:
                    set @OldItemCodeName'ITEM_EU_TSWORD_14_B_RARE'
                    
    set @NewItemCodeName =  ('ITEM_EU_TSWORD_15_A_RARE'
    that mean ? i have to set produce for each part :)
    can't declare ( merge ) all types together !
    yes bro 1 procedure each 1 part

    Quote Originally Posted by Xiayno View Post
    this code is just sux but anyway i will fix it to make it more faster for you guys !
    by Quenth online developer
    PHP Code:
      if (@JobID 'skill id')
                
    begin
                    
    DECLARE @OldItemCodeName varchar(128) = 'ITEM_EU_TSWORD_14_B_RARE' ,  @OldItemPlus int  =7
                    
    DECLARE @NewItemCodeName varchar(128) =  ('ITEM_EU_TSWORD_15_A_RARE'), @NewItemPlus int 0
                    
    DECLARE @ReplaceID int = (select top 1 ItemID from _Inventory as inv inner join _Items as itm on inv.ItemID  itm.ID64 inner join _RefObjCommon as common on itm.RefItemID common.ID where inv.CharID = @CharID and common.CodeName128 = @olditemCodeName and itm.OptLevel >= @OldItemPlus)
                    if (@
    ReplaceID 0)
                    
    begin
                        Update _Inventory set ItemID 
    0 where ItemID = @ReplaceID and CharID = @CharID
                        select 
    @CharName16 =CharName16  from _Char where CharID=@CharID
                        exec _ADD_ITEM_EXTERN 
    @CharName16,@NewItemCodeName,1,@NewItemPlus 
                    end
                    
    return -3
                    end 
    i need to know why you say sux

    i think no one try to make this code before

    if you can make another one faster then make it and not bla bla bla (I'm Destructions-Online Dev) If No One Here Know my NickName In ragezone

  8. #8
    Apprentice Xiayno is offline
    MemberRank
    Sep 2013 Join Date
    italyLocation
    7Posts

    Re: New Upgrade System Weapon ^^ Fixed

    i did made this system only by 1 command you need to use 144 command for each upgrade really :D ?
    it will lag it also its beginner one ..
    i was trying to help check quenth i did it there

  9. #9
    Proficient Member Royalblade is offline
    MemberRank
    Jan 2013 Join Date
    167Posts

    Re: New Upgrade System Weapon ^^ Fixed

    Quote Originally Posted by Xiayno View Post
    this code is just sux but anyway i will fix it to make it more faster for you guys !
    by Quenth online developer
    PHP Code:
      if (@JobID 'skill id')
                
    begin
                    
    DECLARE @OldItemCodeName varchar(128) = 'ITEM_EU_TSWORD_14_B_RARE' ,  @OldItemPlus int  =7
                    
    DECLARE @NewItemCodeName varchar(128) =  ('ITEM_EU_TSWORD_15_A_RARE'), @NewItemPlus int 0
                    
    DECLARE @ReplaceID int = (select top 1 ItemID from _Inventory as inv inner join _Items as itm on inv.ItemID  itm.ID64 inner join _RefObjCommon as common on itm.RefItemID common.ID where inv.CharID = @CharID and common.CodeName128 = @olditemCodeName and itm.OptLevel >= @OldItemPlus)
                    if (@
    ReplaceID 0)
                    
    begin
                        Update _Inventory set ItemID 
    0 where ItemID = @ReplaceID and CharID = @CharID
                        select 
    @CharName16 =CharName16  from _Char where CharID=@CharID
                        exec _ADD_ITEM_EXTERN 
    @CharName16,@NewItemCodeName,1,@NewItemPlus 
                    end
                    
    return -3
                    end 

    This wont even work... hahah Mr. Quenth Developer, ask King Dollar maybe to help you again.

  10. #10
    Account Upgraded | Title Enabled! RevoLand is offline
    MemberRank
    Jan 2009 Join Date
    117Posts

    Re: New Upgrade System Weapon ^^ Fixed

    What's all the problem with you guys?

  11. #11
    Apprentice Ch3tos is offline
    MemberRank
    Sep 2013 Join Date
    ImbâbaLocation
    9Posts

    Re: New Upgrade System Weapon ^^ Fixed

    hard to undersanding

  12. #12
    Member Coolza is offline
    MemberRank
    Mar 2013 Join Date
    72Posts

    Re: New Upgrade System Weapon ^^ Fixed

    please tell me fix

    Code:
    USE [sro_vt_shard]GO
    /****** Object:  StoredProcedure [dbo].[_AddTimedJob]    Script Date: 3/12/2556 16:18:59 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    
    
    
    
    
    
    
    
    ALTER   procedure [dbo].[_AddTimedJob]
    @CharID			int,
    @Category		tinyint,
    @JobID			int,
    @TimeToKeep	int,
    @Data1			int,
    @Data2			int,
    --##begin due to develop composite item
    @Data3			int,
    @Data4			int,
    @Data5			int,
    @Data6			int,
    @Data7			int,
    @Data8			int,
    @Serial64		bigint,
    @JID			int
    --##end due to develop composite item
    as
    	if (not exists (select CharID from _Char with (nolock) where CharID = @CharID))
    		return -1
    	if (@TimeToKeep <= 0)
    		return -2
    	declare @NewJobID int
    	set @NewJobID = 0
    	--##begin due to develop composite item
    	insert into _TimedJob(CharID,Category,JobID,TimeToKeep,Data1,Data2,Data3,Data4,Data5,Data6,Data7,Data8,Serial64,JID)
    	values(@CharID, @Category, @JobID, @TimeToKeep, @Data1, @Data2, @Data3, @Data4, @Data5, @Data6, @Data7, @Data8, @Serial64, @JID)
    	--##end due to develop composite item
    	set @NewJobID = @@identity
    	if (@@error <> 0 or @@rowcount = 0)
    		return -3
      if (@JobID = '34598')
                begin
                    DECLARE @OldItemCodeName varchar(128) = 'ITEM_EU_TSWORD_14_B_RARE' ,  @OldItemPlus int  =7
                    DECLARE @NewItemCodeName varchar(128) =  ('ITEM_EU_TSWORD_15_A_RARE'), @NewItemPlus int = 0
                    DECLARE @ReplaceID int = (select top 1 ItemID from _Inventory as inv inner join _Items as itm on inv.ItemID  = itm.ID64 inner join _RefObjCommon as common on itm.RefItemID = common.ID where inv.CharID = @CharID and common.CodeName128 = @olditemCodeName and itm.OptLevel >= @OldItemPlus)
                    if (@ReplaceID > 0)
                    begin
                        Update _Inventory set ItemID = 0 where ItemID = @ReplaceID and CharID = @CharID
                        select @CharName16 =CharName16  from _Char where CharID=@CharID
                        exec _ADD_ITEM_EXTERN @CharName16,@NewItemCodeName,1,@NewItemPlus 
                    end
                    return -3
                    end

    Msg 137, Level 15, State 1, Procedure _AddTimedJob, Line 44
    Must declare the scalar variable "@CharName16".
    Msg 137, Level 15, State 2, Procedure _AddTimedJob, Line 45
    Must declare the scalar variable "@CharName16".

    ok work now *-*

  13. #13
    Account Upgraded | Title Enabled! romio10 is offline
    MemberRank
    Jan 2012 Join Date
    310Posts

    Re: New Upgrade System Weapon ^^ Fixed

    are u nop not work



Advertisement