Plus Auto Notice(Sample + Source)

Page 12 of 25 FirstFirst ... 2456789101112131415161718192022 ... LastLast
Results 166 to 180 of 372
  1. #166
    In the Emperor name Caosfox is offline
    MemberRank
    Jun 2011 Join Date
    Balcora GateLocation
    1,608Posts

    Re: Plus Auto Notice(Sample + Source)

    Quote Originally Posted by saxz View Post
    thx for your fast reply , what about this one

    if (@Operation = 90 OR @Operation = 160)
    begin
    set @len_desc1 = CHARINDEX (']',@strDesc)
    if(@len_desc1 = 9)
    begin
    set @strDesc = SUBSTRING(@strDesc,0,9)
    set @strDesc_separado = SUBSTRING(@strDesc, 8, 1)
    end
    else if(@len_desc1 = 10)
    begin
    set @strDesc = SUBSTRING(@strDesc,0,10)
    set @strDesc_separado = SUBSTRING(@strDesc, 8, 2)
    end
    if(@strDesc_separado >= 8)
    begin
    --set @strDesc_separado = @len_desc1
    insert _LogItemPlus(CharID, Serial64, Plus, Data, Lido)
    values(@CharID, @ItemSerial, @strDesc_separado, GetDate(), '0')
    end
    end
    i have to add this as well ?
    yes ofc, at that procedure, you must add this:


    declare @azar INT declare @randomfile varchar(50) SELECT top 1 @azar = (ABS(CHECKSUM(NEWID())) % 10000) FROM Master.dbo.Syscolumns select @randomfile = 'C:\MSSQLTips\' + convert(varchar, @azar) + '.txt' SELECT dbo.WriteTextFile(@veremos, @randomfile, 0)

    this part creates the txt file so noteice.exe can read it

  2. #167
    Account Upgraded | Title Enabled! saxz is offline
    MemberRank
    Jul 2010 Join Date
    1,293Posts

    Re: Plus Auto Notice(Sample + Source)

    Quote Originally Posted by Caosfox View Post
    yes ofc, at that procedure, you must add this:


    declare @azar INT declare @randomfile varchar(50) SELECT top 1 @azar = (ABS(CHECKSUM(NEWID())) % 10000) FROM Master.dbo.Syscolumns select @randomfile = 'C:\MSSQLTips\' + convert(varchar, @azar) + '.txt' SELECT dbo.WriteTextFile(@veremos, @randomfile, 0)

    this part creates the txt file so noteice.exe can read it
    thx ^_^

    EDIT : BTW it works with every plus ?
    example : if the item is + 0 and it became + 1 , it will make a notice ? thx

  3. #168
    In the Emperor name Caosfox is offline
    MemberRank
    Jun 2011 Join Date
    Balcora GateLocation
    1,608Posts

    Re: Plus Auto Notice(Sample + Source)

    yup, you define it on the procedure, in fact if you copy a text file with "im epic" inside and copy it at mssqltips folder, you send a notice with "im epic"

  4. #169
    Account Upgraded | Title Enabled! saxz is offline
    MemberRank
    Jul 2010 Join Date
    1,293Posts

    Re: Plus Auto Notice(Sample + Source)

    Quote Originally Posted by Caosfox View Post
    yup, you define it on the procedure, in fact if you copy a text file with "im epic" inside and copy it at mssqltips folder, you send a notice with "im epic"
    well i have problem
    i think i have to make my gateway port 15779 right ?
    cant change it ?

  5. #170
    In the Emperor name Caosfox is offline
    MemberRank
    Jun 2011 Join Date
    Balcora GateLocation
    1,608Posts

    Re: Plus Auto Notice(Sample + Source)

    pm me your port and i send a new version, or if you have visual studio 2010 you can recompile it with the port you want

  6. #171
    Account Upgraded | Title Enabled! saxz is offline
    MemberRank
    Jul 2010 Join Date
    1,293Posts

    Re: Plus Auto Notice(Sample + Source)

    Quote Originally Posted by Caosfox View Post
    pm me your port and i send a new version, or if you have visual studio 2010 you can recompile it with the port you want
    ah i will download visual studio 2010 to do it xD
    thx anyway

  7. #172
    In the Emperor name Caosfox is offline
    MemberRank
    Jun 2011 Join Date
    Balcora GateLocation
    1,608Posts

    Re: Plus Auto Notice(Sample + Source)

    try this one, in theory you can set the port
    Notice.rar

    tell me if works

  8. #173
    Account Upgraded | Title Enabled! saxz is offline
    MemberRank
    Jul 2010 Join Date
    1,293Posts

    Re: Plus Auto Notice(Sample + Source)

    Quote Originally Posted by Caosfox View Post
    try this one, in theory you can set the port
    Notice.rar

    tell me if works
    thx ^_^

    Quote Originally Posted by Caosfox View Post
    try this one, in theory you can set the port
    Notice.rar

    tell me if works
    hmmm no notice in game xD
    no idea why
    i made everything right

  9. #174
    In the Emperor name Caosfox is offline
    MemberRank
    Jun 2011 Join Date
    Balcora GateLocation
    1,608Posts

    Re: Plus Auto Notice(Sample + Source)

    and you see the plus something enable on the prog?

  10. #175
    Account Upgraded | Title Enabled! saxz is offline
    MemberRank
    Jul 2010 Join Date
    1,293Posts

    Re: Plus Auto Notice(Sample + Source)

    Quote Originally Posted by Caosfox View Post
    and you see the plus something enable on the prog?
    yes ,
    ah btw auto notice is working very well
    but the plus notice no xD

  11. #176
    In the Emperor name Caosfox is offline
    MemberRank
    Jun 2011 Join Date
    Balcora GateLocation
    1,608Posts

    Re: Plus Auto Notice(Sample + Source)

    post the procedure of adlogitem, the part about notice, i check it

  12. #177
    Account Upgraded | Title Enabled! saxz is offline
    MemberRank
    Jul 2010 Join Date
    1,293Posts

    Re: Plus Auto Notice(Sample + Source)

    Quote Originally Posted by Caosfox View Post
    post the procedure of adlogitem, the part about notice, i check it
    declare @azar INT , @veremos INT ;
    declare @randomfile varchar(50)
    SELECT top 1 @azar = (ABS(CHECKSUM(NEWID())) % 10000) FROM Master.dbo.Syscolumns
    select @randomfile = 'C:\MSSQLTips\' + convert(varchar, @azar) + '.txt'
    SELECT dbo.WriteTextFile(@veremos, @randomfile, 0)



    DECLARE @len_desc1 varchar(50) , @strDesc_separado varchar(50) ;

    if (@Operation = 90 OR @Operation = 160)
    begin
    set @len_desc1 = CHARINDEX (']',@strDesc)
    if(@len_desc1 = 9)
    begin
    set @strDesc = SUBSTRING(@strDesc,0,9)
    set @strDesc_separado = SUBSTRING(@strDesc, 8, 1)
    end
    else if(@len_desc1 = 10)
    begin
    set @strDesc = SUBSTRING(@strDesc,0,10)
    set @strDesc_separado = SUBSTRING(@strDesc, 8, 2)
    end
    if(@strDesc_separado >= 8)
    begin
    --set @strDesc_separado = @len_desc1
    insert _LogItemPlus(CharID, Serial64, Plus, Data, Lido)
    values(@CharID, @ItemSerial, @strDesc_separado, GetDate(), '0')
    end

    END

    END

  13. #178
    In the Emperor name Caosfox is offline
    MemberRank
    Jun 2011 Join Date
    Balcora GateLocation
    1,608Posts

    Re: Plus Auto Notice(Sample + Source)

    backup your proc and try this in place of your operation 90 part
    Code:
       if(@Operation = 90)
       begin
        declare @iname varchar(129)
        declare @iid int
        declare @nombre varchar(200)
        declare @plus varchar(5)    
        declare @cname varchar(64)
        select @iid = RefItemID from SRO_VT_SHARD.dbo._Items where Serial64 = @ItemSerial
        select @iname = NameStrID128 from SRO_VT_SHARD.dbo._RefObjCommon where id = @iid
        select @cname = CharName16 from SRO_VT_SHARD.dbo._Char where CharID = @CharID
        select @plus = SUBSTRING(@strDesc, CHARINDEX('+',@strDesc,0) + 1, LEN(@strDesc)) 
        declare @veremos varchar(200)
        select @veremos = '[' + @cname +']'+ ' has increased '+'[' + @nombre + ']'+' to level [' + @plus
        declare @azar INT
        declare @randomfile varchar(50) 
        SELECT top 1 @azar = (ABS(CHECKSUM(NEWID())) % 10000) FROM Master.dbo.Syscolumns
        select @randomfile = 'C:\MSSQLTips\' + convert(varchar, @azar) + '.txt'
        SELECT dbo.WriteTextFile(@veremos, @randomfile, 0)
    end
    i create this in like 5 minutes, so expect bugs, but at least must show some notice
    Last edited by Caosfox; 03-07-13 at 12:59 AM. Reason: missed one end command

  14. #179
    Account Upgraded | Title Enabled! saxz is offline
    MemberRank
    Jul 2010 Join Date
    1,293Posts

    Re: Plus Auto Notice(Sample + Source)

    Quote Originally Posted by Caosfox View Post
    backup your proc and try this in place of your operation 90 part
    Code:
       if(@Operation = 90)
       begin
        declare @iname varchar(129)
        declare @iid int
        declare @nombre varchar(200)
        declare @plus varchar(5)    
        declare @cname varchar(64)
        select @iid = RefItemID from SRO_VT_SHARD.dbo._Items where Serial64 = @ItemSerial
        select @iname = NameStrID128 from SRO_VT_SHARD.dbo._RefObjCommon where id = @iid
        select @cname = CharName16 from SRO_VT_SHARD.dbo._Char where CharID = @CharID
        select @plus = SUBSTRING(@strDesc, CHARINDEX('+',@strDesc,0) + 1, LEN(@strDesc)) 
        declare @veremos varchar(200)
        select @veremos = '[' + @cname +']'+ ' has increased '+'[' + @nombre + ']'+' to level [' + @plus
        declare @azar INT
        declare @randomfile varchar(50) 
        SELECT top 1 @azar = (ABS(CHECKSUM(NEWID())) % 10000) FROM Master.dbo.Syscolumns
        select @randomfile = 'C:\MSSQLTips\' + convert(varchar, @azar) + '.txt'
        SELECT dbo.WriteTextFile(@veremos, @randomfile, 0)
    end
    i create this in like 5 minutes, so expect bugs, but at least must show some notice
    Code:
    	   if(@Operation = 90)
       begin
        declare @iname varchar(129)
        declare @iid int
        declare @nombre varchar(200)
        declare @plus varchar(5)    
        declare @cname varchar(64)
        select @iid = RefItemID from SRO_VT_SHARD_INIT.dbo._Items where Serial64 = @ItemSerial
        select @iname = NameStrID128 from SRO_VT_SHARD_INIT.dbo._RefObjCommon where id = @iid
        select @cname = CharName16 from SRO_VT_SHARD_INIT.dbo._Char where CharID = @CharID
        select @plus = SUBSTRING(@strDesc, CHARINDEX('+',@strDesc,0) + 1, LEN(@strDesc)) 
        declare @veremos varchar(200)
        select @veremos = '[' + @cname +']'+ ' has increased '+'[' + @nombre + ']'+' to level [' + @plus
        declare @azar INT
        declare @randomfile varchar(50) 
        SELECT top 1 @azar = (ABS(CHECKSUM(NEWID())) % 10000) FROM Master.dbo.Syscolumns
        select @randomfile = 'C:\MSSQLTips\' + convert(varchar, @azar) + '.txt'
        SELECT dbo.WriteTextFile(@veremos, @randomfile, 0)
    end		
        
        
        DECLARE @len_desc1 varchar(50) , @strDesc_separado varchar(50) ;
        
        if (@Operation = 90 OR @Operation = 160) 
    begin 
    set @len_desc1 = CHARINDEX (']',@strDesc) 
    if(@len_desc1 = 9) 
    begin 
    set @strDesc = SUBSTRING(@strDesc,0,9) 
    set @strDesc_separado = SUBSTRING(@strDesc, 8, 1) 
    end 
    else if(@len_desc1 = 10) 
    begin 
    set @strDesc = SUBSTRING(@strDesc,0,10) 
    set @strDesc_separado = SUBSTRING(@strDesc, 8, 2) 
    end 
    if(@strDesc_separado >= 8) 
    begin 
    --set @strDesc_separado = @len_desc1 
    insert _LogItemPlus(CharID, Serial64, Plus, Data, Lido) 
    values(@CharID, @ItemSerial, @strDesc_separado, GetDate(), '0') 
    end 
    
    END
    END
    so this is right ?

  15. #180
    In the Emperor name Caosfox is offline
    MemberRank
    Jun 2011 Join Date
    Balcora GateLocation
    1,608Posts

    Re: Plus Auto Notice(Sample + Source)

    replace this
    Code:
        if (@Operation = 90 OR @Operation = 160) 
    begin 
    set @len_desc1 = CHARINDEX (']',@strDesc) 
    if(@len_desc1 = 9) 
    begin 
    set @strDesc = SUBSTRING(@strDesc,0,9) 
    set @strDesc_separado = SUBSTRING(@strDesc, 8, 1) 
    end 
    else if(@len_desc1 = 10) 
    begin 
    set @strDesc = SUBSTRING(@strDesc,0,10) 
    set @strDesc_separado = SUBSTRING(@strDesc, 8, 2) 
    end 
    if(@strDesc_separado >= 8) 
    begin 
    --set @strDesc_separado = @len_desc1 
    insert _LogItemPlus(CharID, Serial64, Plus, Data, Lido) 
    values(@CharID, @ItemSerial, @strDesc_separado, GetDate(), '0') 
    end 
    END
    for this
    Code:
    if(@Operation = 90)
       begin
        declare @iname varchar(129)
        declare @iid int
        declare @nombre varchar(200)
        declare @plus varchar(5)    
        declare @cname varchar(64)
        select @iid = RefItemID from SRO_VT_SHARD.dbo._Items where Serial64 = @ItemSerial
        select @iname = NameStrID128 from SRO_VT_SHARD.dbo._RefObjCommon where id = @iid
        select @cname = CharName16 from SRO_VT_SHARD.dbo._Char where CharID = @CharID
        select @plus = SUBSTRING(@strDesc, CHARINDEX('+',@strDesc,0) + 1, LEN(@strDesc)) 
        declare @veremos varchar(200)
        select @veremos = '[' + @cname +']'+ ' has increased '+'[' + @nombre + ']'+' to level [' + @plus
        declare @azar INT
        declare @randomfile varchar(50) 
        SELECT top 1 @azar = (ABS(CHECKSUM(NEWID())) % 10000) FROM Master.dbo.Syscolumns
        select @randomfile = 'C:\MSSQLTips\' + convert(varchar, @azar) + '.txt'
        SELECT dbo.WriteTextFile(@veremos, @randomfile, 0)
    end



Advertisement