[SQL] auto free Silk/Hour based on the Online time (System)

Page 10 of 10 FirstFirst ... 2345678910
Results 136 to 145 of 145
  1. #136
    Enthusiast L0ckam is offline
    MemberRank
    Dec 2011 Join Date
    TurkeyLocation
    28Posts

    Re: [SQL] auto free Silk/Hour based on the Online time (System)

    Everything works but dont add any silk to chars :S

  2. #137
    Account Upgraded | Title Enabled! infor is offline
    MemberRank
    Mar 2011 Join Date
    277Posts

    Re: [SQL] auto free Silk/Hour based on the Online time (System)

    like putting the car free silk look in minutes active time

    will someone passes me a tutorial on how to configure this application


  3. #138
    Member tk69 is offline
    MemberRank
    Oct 2013 Join Date
    70Posts

    Re: [SQL] auto free Silk/Hour based on the Online time (System)

    not work full bug /:

  4. #139
    Proficient Member tschulian is offline
    MemberRank
    Jul 2012 Join Date
    ErlangenLocation
    151Posts

    Re: [SQL] auto free Silk/Hour based on the Online time (System)

    Works 50:50, but it wont update the OnlineOffline table when new chars are created..

  5. #140
    Valued Member DrugDealers is offline
    MemberRank
    Jan 2013 Join Date
    125Posts

    Re: [SQL] auto free Silk/Hour based on the Online time (System)

    good release

  6. #141

    Re: [SQL] auto free Silk/Hour based on the Online time (System)

    I got a problem i add all tables and strored procedures like you write on topic.
    I using SQL Manager 2012 and SQL Express 2012 everything worknig fine without adding silks after 60 mins + gone.
    I already waiting 100 mins and didnt get the silks.Trying to Relog,Teleport,Restart the server and nothing.

    Maybe someone find the solution how to fix it on SQL 2012?
    Thanks for answers.

  7. #142
    Apprentice dunarsund is offline
    MemberRank
    Sep 2012 Join Date
    14Posts

    Re: [SQL] auto free Silk/Hour based on the Online time (System)

    Quote Originally Posted by Caipi View Post
    @ _AddLogChar :)


    from

    PHP Code:
        IF exists (SELECT [WEEKDAYSFROM [_Silk/Hour-ConfigWHERE [WEEKDAYSlike DATENAME(WEEKDAYGETDATE()))
            
    BEGIN
                UPDATE _OnlineOffline
                SET 
    [eSilk] = [eSilk] + (@Silk*[Silk/Hour])
                
    WHERE CharID = @CharID
                        
                exec SRO_VT_ACCOUNT
    .dbo._extraSilk @CharID, @Silk
            END 
    to »

    PHP Code:
    IF exists (SELECT [WEEKDAYSFROM [_Silk/Hour-ConfigWHERE [WEEKDAYS] = DATENAME(WEEKDAYGETDATE()))
        
    BEGIN
            
    Declare @CurLevel smallint;
            
    SELECT @CurLevel CurLevel FROM SRO_VT_SHARD.dbo._Char with(NOLOCKWHERE CharID = @CharID
            
            
    IF (@CurLevel >= 60)
                
    BEGIN
                    UPDATE _OnlineOffline
                    SET 
    [eSilk] = ISNULL([eSilk],0) + (@Silk*[Silk/Hour])
                    
    WHERE CharID = @CharID
                        
                    exec SRO_VT_ACCOUNT
    .dbo._extraSilk @CharID, @Silk
                END
        END 
    Ok i tried this code but i get an error wich says "Incorrect Syntax near 'END'

    Some help will be greatly appreciated :)

  8. #143
    Account Upgraded | Title Enabled! asianking is offline
    MemberRank
    Aug 2009 Join Date
    273Posts

    Re: [SQL] auto free Silk/Hour based on the Online time (System)

    worked for me, but the auto notification always show play 0 hour. I do get the silk, but the auto notification is showing wrong hour.

  9. #144
    Proficient Member tschulian is offline
    MemberRank
    Jul 2012 Join Date
    ErlangenLocation
    151Posts

    Re: [SQL] auto free Silk/Hour based on the Online time (System)

    I was checking out the whole query and added one thing which increases the performance enormously. Because without that little "addon" the WHOLE tables is being updated everytime a Char Triggers the _AddLogChar Procedure.



    And can some1 tell me what eSilk means?
    Since what I found it the only possible thing is that this are the Amount of Silks given out in total. Am I right?


  10. #145
    Member hellspawn80 is offline
    MemberRank
    Apr 2012 Join Date
    95Posts

    Re: [SQL] auto free Silk/Hour based on the Online time (System)

    still work good! i added it to Blackrogue 110cap DB with SQL 2014!

    thx



Page 10 of 10 FirstFirst ... 2345678910

Advertisement