Plus Auto Notice(Sample + Source)

Page 17 of 25 FirstFirst ... 7910111213141516171819202122232425 LastLast
Results 241 to 255 of 372
  1. #241
    Learning denise456 is offline
    MemberRank
    Feb 2012 Join Date
    BrasilLocation
    318Posts

    thumbs up Re: Plus Auto Notice(Sample + Source)

    Caosfox
    lemoniscool


    When I change the port of the AgentServer CaN'T Loga My GM On Schedule

    When I use the port 15882 GM Account 100% more When mute The Door Of Agent not Loga At PlusNotice.


    Srry My Bad Inglesh '-'


  2. #242
    Account Upgraded | Title Enabled! lemoniscool is offline
    MemberRank
    Nov 2009 Join Date
    GermanyLocation
    579Posts

    Re: Plus Auto Notice(Sample + Source)

    uh try again please .. didnt understand a word you said ...

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

    Re: Plus Auto Notice(Sample + Source)

    Quote Originally Posted by lemoniscool View Post
    uh try again please .. didnt understand a word you said ...

    My Port AgentServer Is 15882 Login GM 100% In PlusNotice.

    When I put The Port 24789 Does not Log In PlusNotice.

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

    Re: Plus Auto Notice(Sample + Source)

    you need to edit source, change port and recompile

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

    Re: Plus Auto Notice(Sample + Source)

    Quote Originally Posted by Caosfox View Post
    you need to edit source, change port and recompile
    Thank's Bro

  6. #246
    Member alaabas is offline
    MemberRank
    Jan 2012 Join Date
    73Posts

    Re: Plus Auto Notice(Sample + Source)

    All tables are empty :( i done every thing but still empty

    when i type any thing in Plusnotice -- appear in game normal = Program working fine but the problem in DB . :( dose any one have solve ?

  7. #247
    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 alaabas View Post
    All tables are empty :( i done every thing but still empty

    when i type any thing in Plusnotice -- appear in game normal = Program working fine but the problem in DB . :( dose any one have solve ?
    check pm, you are using v3, that version dont use any table on db side

  8. #248
    Member alaabas is offline
    MemberRank
    Jan 2012 Join Date
    73Posts

    Re: Plus Auto Notice(Sample + Source)

    in notice plus ( tables clear ) in v3 gives me this

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

    Re: Plus Auto Notice(Sample + Source)

    that is ok, is part of the installation
    post your _addlogitem procedure, i bet the error is in that part

  10. #250
    Member alaabas is offline
    MemberRank
    Jan 2012 Join Date
    73Posts

    Re: Plus Auto Notice(Sample + Source)

    USE [SRO_VT_SHARDLOG]
    GO
    /****** Object: StoredProcedure [dbo].[_AddLogItem] Script Date: 07/30/2013 09:13:02 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER procedure [dbo].[_AddLogItem]
    @CharID int,
    @ItemRefID int,
    @ItemSerial bigint,
    @dwData int,
    @TargetStorage tinyint,
    @Operation tinyint,
    @Slot_From tinyint,
    @Slot_To tinyint,
    @EventPos varchar(64),
    @strDesc varchar(128),
    @Gold bigint -- #ifdef EXTEND_GOLD_TYPE »ðÀÔ
    as
    declare @len_pos int
    declare @len_desc int
    declare @strDesc_separado varchar(128)
    declare @len_desc1 int
    set @len_pos = len(@EventPos)
    set @len_desc = len(@strDesc)
    if (@len_pos > 0 and @len_desc > 0)
    begin
    insert _LogEventItem (EventTime, CharID, ItemRefID, dwData, TargetStorage, Operation, Slot_From, Slot_To, EventPos, strDesc, Serial64, Gold) -- #ifdef EXTEND_GOLD_TYPE ±³Ã¼
    values(GetDate(), @CharID, @ItemRefID, @dwData, @TargetStorage, @Operation, @Slot_From, @Slot_To, @EventPos, @strDesc, @ItemSerial, @Gold) -- #ifdef EXTEND_GOLD_TYPE ±³Ã¼
    end
    else if (@len_pos > 0 and @len_desc = 0)
    begin
    insert _LogEventItem (EventTime, CharID, ItemRefID, dwData, TargetStorage, Operation, Slot_From, Slot_To, EventPos, Serial64, Gold) -- #ifdef EXTEND_GOLD_TYPE ±³Ã¼
    values(GetDate(), @CharID, @ItemRefID, @dwData, @TargetStorage, @Operation, @Slot_From, @Slot_To, @EventPos, @ItemSerial, @Gold) -- #ifdef EXTEND_GOLD_TYPE ±³Ã¼
    end
    else if (@len_pos = 0 and @len_desc > 0)
    begin
    insert _LogEventItem (EventTime, CharID, ItemRefID, dwData, TargetStorage, Operation, Slot_From, Slot_To, strDesc, Serial64, Gold) -- #ifdef EXTEND_GOLD_TYPE ±³Ã¼
    values(GetDate(), @CharID, @ItemRefID, @dwData, @TargetStorage, @Operation, @Slot_From, @Slot_To, @strDesc, @ItemSerial, @Gold) -- #ifdef EXTEND_GOLD_TYPE ±³Ã¼
    end
    else if (@len_pos = 0 and @len_desc = 0)
    begin
    insert _LogEventItem (EventTime, CharID, ItemRefID, dwData, TargetStorage, Operation, Slot_From, Slot_To, Serial64, Gold) -- #ifdef EXTEND_GOLD_TYPE ±³Ã¼
    values(GetDate(), @CharID, @ItemRefID, @dwData, @TargetStorage, @Operation, @Slot_From, @Slot_To, @ItemSerial, @Gold) -- #ifdef EXTEND_GOLD_TYPE ±³Ã¼
    end
    -- À¯·á ¾ÆÀÌÅÛ ±¸ÀÔÀ̸é!
    -- #define LOG_ITEMEVENT_BUY_CASHITEM (BYTE)35
    if (@Operation = 35)
    begin
    insert _LogCashItem (RefItemID, CharID, Cnt, EventTime, Serial64)
    values(@ItemRefID, @CharID, @dwData, GetDate(), @ItemSerial)
    end
    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
    declare @azar INT
    declare @randomfile varchar(50)
    declare @veremos as varchar(max)
    declare @iname varchar(200)
    declare @iid int
    declare @nombre varchar(200)
    declare @plus varchar(200)
    declare @cname varchar(64)
    select @iid = RefItemID from SRO_VT_SHARD.dbo._Items where Serial64 = @ItemSerial
    select @iname = Name from SRO_VT_SHARD.dbo._ItemName where CodeName128 in(select CodeName128 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(0))
    select @veremos = '[' + @cname +']'+' has Succeeded in Plusing '+'[' + @iname + ']'+' to Plus [' + @plus + ']'
    SELECT top 1 @azar = (ABS(CHECKSUM(NEWID())) % 10000) FROM Master.dbo.Syscolumns
    select @randomfile = 'C:\MSSQLTips\' + convert(varchar, @azar) + '.txt'
    if (@plus >= 7) begin
    SELECT dbo.WriteTextFile(@veremos, @randomfile, 0)
    end







    Full one

  11. #251
    Novice Divnto is offline
    MemberRank
    Aug 2012 Join Date
    Alexandria, EgyLocation
    4Posts

    Re: Plus Auto Notice(Sample + Source)

    my problem is the part that i login with char in prog its not work ! !!!
    i keep click on account login and nothin just happen check my screen and thanks for the prog really !


    everything is good now but program wont sent notice about plus ! its only send notice for the normal

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

    Re: Plus Auto Notice(Sample + Source)

    try it with firewall off
    btw, works with no gm account?

  13. #253
    Valued Member trytokillme is offline
    MemberRank
    Nov 2011 Join Date
    101Posts

    Re: Plus Auto Notice(Sample + Source)

    Hey guys, i have the problem that the stored procedure dont insert anything in the log tables....
    Ingame i made a few +10 items but the _LogItemPlus and _LogEventItem tables are clean Ö_ö

    Also when i use your test query, it works, the tool sends the test message successfull and the result is 1
    SELECT dbo.WriteTextFile('this is a test', 'C:\MSSQLTips\test.txt', 1)


    This is my Stored Procedure:
    USE [u28gzUEanKJYL2aH9BRJap3Tx]
    GO
    /****** Object: StoredProcedure [dbo].[_AddLogItem] Script Date: 07/30/2013 09:13:02 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER procedure [dbo].[_AddLogItem]
    @CharID int,
    @ItemRefID int,
    @ItemSerial bigint,
    @dwData int,
    @TargetStorage tinyint,
    @Operation tinyint,
    @Slot_From tinyint,
    @Slot_To tinyint,
    @EventPos varchar(64),
    @strDesc varchar(128),
    @Gold bigint -- #ifdef EXTEND_GOLD_TYPE »ðÀÔ
    as
    declare @len_pos int
    declare @len_desc int
    declare @strDesc_separado varchar(128)
    declare @len_desc1 int
    set @len_pos = len(@EventPos)
    set @len_desc = len(@strDesc)
    if (@len_pos > 0 and @len_desc > 0)
    begin
    insert _LogEventItem (EventTime, CharID, ItemRefID, dwData, TargetStorage, Operation, Slot_From, Slot_To, EventPos, strDesc, Serial64, Gold) -- #ifdef EXTEND_GOLD_TYPE ±³Ã¼
    values(GetDate(), @CharID, @ItemRefID, @dwData, @TargetStorage, @Operation, @Slot_From, @Slot_To, @EventPos, @strDesc, @ItemSerial, @Gold) -- #ifdef EXTEND_GOLD_TYPE ±³Ã¼
    end
    else if (@len_pos > 0 and @len_desc = 0)
    begin
    insert _LogEventItem (EventTime, CharID, ItemRefID, dwData, TargetStorage, Operation, Slot_From, Slot_To, EventPos, Serial64, Gold) -- #ifdef EXTEND_GOLD_TYPE ±³Ã¼
    values(GetDate(), @CharID, @ItemRefID, @dwData, @TargetStorage, @Operation, @Slot_From, @Slot_To, @EventPos, @ItemSerial, @Gold) -- #ifdef EXTEND_GOLD_TYPE ±³Ã¼
    end
    else if (@len_pos = 0 and @len_desc > 0)
    begin
    insert _LogEventItem (EventTime, CharID, ItemRefID, dwData, TargetStorage, Operation, Slot_From, Slot_To, strDesc, Serial64, Gold) -- #ifdef EXTEND_GOLD_TYPE ±³Ã¼
    values(GetDate(), @CharID, @ItemRefID, @dwData, @TargetStorage, @Operation, @Slot_From, @Slot_To, @strDesc, @ItemSerial, @Gold) -- #ifdef EXTEND_GOLD_TYPE ±³Ã¼
    end
    else if (@len_pos = 0 and @len_desc = 0)
    begin
    insert _LogEventItem (EventTime, CharID, ItemRefID, dwData, TargetStorage, Operation, Slot_From, Slot_To, Serial64, Gold) -- #ifdef EXTEND_GOLD_TYPE ±³Ã¼
    values(GetDate(), @CharID, @ItemRefID, @dwData, @TargetStorage, @Operation, @Slot_From, @Slot_To, @ItemSerial, @Gold) -- #ifdef EXTEND_GOLD_TYPE ±³Ã¼
    end
    -- À¯·á ¾ÆÀÌÅÛ ±¸ÀÔÀ̸é!
    -- #define LOG_ITEMEVENT_BUY_CASHITEM (BYTE)35
    if (@Operation = 35)
    begin
    insert _LogCashItem (RefItemID, CharID, Cnt, EventTime, Serial64)
    values(@ItemRefID, @CharID, @dwData, GetDate(), @ItemSerial)
    end
    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
    declare @azar INT
    declare @randomfile varchar(50)
    declare @veremos as varchar(max)
    declare @iname varchar(200)
    declare @iid int
    declare @nombre varchar(200)
    declare @plus varchar(200)
    declare @cname varchar(64)
    select @iid = RefItemID from cKPekjnu5NKqdPbDh4CnVy9gS.dbo._Items where Serial64 = @ItemSerial
    select @iname = Name from cKPekjnu5NKqdPbDh4CnVy9gS.dbo._ItemName where CodeName128 in(select CodeName128 from cKPekjnu5NKqdPbDh4CnVy9gS.dbo._RefObjCommon where id = @iid)
    select @cname = CharName16 from cKPekjnu5NKqdPbDh4CnVy9gS.dbo._Char where CharID = @CharID
    select @plus = SUBSTRING(@strDesc, CHARINDEX('+',@strDesc,0) + 1, LEN(0))
    select @veremos = '[' + @cname +']'+' has Succeeded in Plusing '+'[' + @iname + ']'+' to Plus [' + @plus + ']'
    SELECT top 1 @azar = (ABS(CHECKSUM(NEWID())) % 10000) FROM Master.dbo.Syscolumns
    select @randomfile = 'C:\MSSQLTips\' + convert(varchar, @azar) + '.txt'
    if (@plus >= 7) begin
    SELECT dbo.WriteTextFile(@veremos, @randomfile, 0)
    end

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

    Re: Plus Auto Notice(Sample + Source)

    plus only works when is +7 or higher (remove if (@plus >= 7) begin and the last end and test again)

  15. #255
    Valued Member trytokillme is offline
    MemberRank
    Nov 2011 Join Date
    101Posts

    Re: Plus Auto Notice(Sample + Source)

    I made the items +10 and higher^^

    it still dont work. i delete the IF @plus



Advertisement