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

Page 4 of 10 FirstFirst 12345678910 LastLast
Results 46 to 60 of 145
  1. #46
    Laravel Core Programmer Jangan is offline
    DeveloperRank
    Jul 2007 Join Date
    Dubai, UAELocation
    2,113Posts

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

    Dear god the amount of stupidity in this thread is marvellous! Why do you people run private servers if you cant even read simple things >.>


    Btw Caipi, i am using this on my server if you are interested in heavy loads of data and testing, i found few problems with the system, if you are interested i will let you on my server to play around for performance etc...

    talk to you on skype ;)

  2. #47
    #Yummi.sql Caipi is offline
    MemberRank
    Sep 2011 Join Date
    GermanyLocation
    403Posts

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

    Isn't everyone actually aiming on high loads, especially those who buy 96gig for 1 server :) leave me a message there

  3. #48
    Valued Member Juilet is offline
    MemberRank
    Oct 2011 Join Date
    114Posts

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

    Quote Originally Posted by Jangan View Post
    Perfection Network

    if anyone wants my ranking script pm me...
    ok i want it can you upload it and tell me link or just send me link at private msg? thanks

  4. #49
    Apprentice hym1988 is offline
    MemberRank
    Nov 2011 Join Date
    9Posts

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

    ok my previous problem was solved.

    iv got a question about this settings part:

    if we are initiatning our rates here
    INSERT INTO [_Silk/Hour-Config] SELECT 'Rates', 1, 2, 3, 4, 5, NULL
    why zeros are below ?(0,0,0,0,0)

    INSERT INTO [_Silk/Hour-Config] SELECT 'allowed Day #1', 0, 0, 0, 0, 0, 'Monday'
    INSERT INTO [_Silk/Hour-Config] SELECT 'allowed Day #2', 0, 0, 0, 0, 0, 'Tuesday'
    INSERT INTO [_Silk/Hour-Config] SELECT 'allowed Day #3', 0, 0, 0, 0, 0, 'Wednesday'
    INSERT INTO [_Silk/Hour-Config] SELECT 'allowed Day #4', 0, 0, 0, 0, 0, 'Thursday'
    INSERT INTO [_Silk/Hour-Config] SELECT 'allowed Day #5', 0, 0, 0, 0, 0, 'Friday'
    INSERT INTO [_Silk/Hour-Config] SELECT 'allowed Day #6', 0, 0, 0, 0, 0, 'Saturday'
    INSERT INTO [_Silk/Hour-Config] SELECT 'allowed Day #7', 0, 0, 0, 0, 0, 'Sunday'
    is this for over-writing our rates and we can for example:

    INSERT INTO [_Silk/Hour-Config] SELECT 'allowed Day #7', 2, 4, 6, 8, 10, 'Sunday'
    double our rates in sunday? is it working like this?
    Last edited by hym1988; 06-06-12 at 12:04 AM.

  5. #50
    Enthusiast Furious2 is offline
    MemberRank
    May 2012 Join Date
    35Posts

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

    Quote Originally Posted by hym1988 View Post
    ok my previous problem was solved.

    iv got a question about this settings part:

    if we are initiatning our rates here


    why zeros are below ?(0,0,0,0,0)



    is this for over-writing our rates and we can for example:



    double our rates in sunday? is it working like this?
    Well as u can see
    INSERT INTO [_Silk/Hour-Config] SELECT 'Rates', 1, 2, 3, 4, 5, NULL u can change that also
    the 0,0,0,0,0 u can change to :) do that and execute in the sql :) its works fine :)

  6. #51
    Apprentice hym1988 is offline
    MemberRank
    Nov 2011 Join Date
    9Posts

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

    but iam asking about this " 0,0,0,0,0"

    what will happend if I will change it from zeros for example in sunday?

  7. #52
    Member hellspawn80 is offline
    MemberRank
    Apr 2012 Join Date
    95Posts

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

    INSERT INTO [_Silk/Hour-Config] SELECT 'Rates', 1, 2, 3, 4, 5, NULL
    INSERT INTO [_Silk/Hour-Config] SELECT 'Requirements', 0, (60*24*7), (60*24*30), (60*24*365), 0, NULL
    INSERT INTO [_Silk/Hour-Config] SELECT 'allowed Day #1', 0, 0, 0, 0, 0, 'Monday'
    INSERT INTO [_Silk/Hour-Config] SELECT 'allowed Day #2', 0, 0, 0, 0, 0, 'Tuesday'
    INSERT INTO [_Silk/Hour-Config] SELECT 'allowed Day #3', 0, 0, 0, 0, 0, 'Wednesday'
    INSERT INTO [_Silk/Hour-Config] SELECT 'allowed Day #4', 0, 0, 0, 0, 0, 'Thursday'
    INSERT INTO [_Silk/Hour-Config] SELECT 'allowed Day #5', 0, 0, 0, 0, 0, 'Friday'
    INSERT INTO [_Silk/Hour-Config] SELECT 'allowed Day #6', 0, 0, 0, 0, 0, 'Saturday'
    INSERT INTO [_Silk/Hour-Config] SELECT 'allowed Day #7', 0, 0, 0, 0, 0, 'Sunday'[/PHP]
    What should i put if i want 1silk gain per hours ??

    thanks

  8. #53
    Apprentice hym1988 is offline
    MemberRank
    Nov 2011 Join Date
    9Posts

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

    if you want 1 silk per hour you need to set up like this


    INSERT INTO [_Silk/Hour-Config] SELECT 'Rates', 1, 1, 1, 1, 1, NULL

  9. #54
    Member djfisring is offline
    MemberRank
    Dec 2011 Join Date
    77Posts

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

    Quote Originally Posted by djfisring View Post
    After using this cleanup script this auto silk stoped working.
    It still count the minuntes and eSilk in the _onlineoffline table, but it does not load them to the sk_silk table.
    Any idea what could have been changed so it stoped working?

    Code:
    USE [SRO_VT_SHARD]
    GO
    TRUNCATE TABLE [dbo].[_Chest]
    TRUNCATE TABLE [dbo].[_ChestInfo]
    TRUNCATE TABLE [dbo].[_User]
    TRUNCATE TABLE [dbo].[_OpenMarket]
    DELETE FROM [dbo].[_AccountJID] 
    TRUNCATE TABLE [dbo].[_GuildWar]
    TRUNCATE TABLE [dbo].[_GuildMember]
    TRUNCATE TABLE [dbo].[_GuildChest]
    TRUNCATE TABLE [dbo].[_SiegeFortressStruct]
    TRUNCATE TABLE [dbo].[_SiegeFortressObject]
    TRUNCATE TABLE [dbo].[_SiegeFortressItemForge]
    DELETE FROM [dbo].[_SiegeFortress]
    INSERT INTO [dbo].[_SiegeFortress](FortressID) VALUES (1)
    INSERT INTO [dbo].[_SiegeFortress](FortressID) VALUES (3)
    INSERT INTO [dbo].[_SiegeFortress](FortressID) VALUES (6)
    UPDATE [dbo].[_AlliedClans] SET Ally1 = '0', Ally2 = '0', Ally3 = '0', Ally4 = '0', Ally5 = '0', Ally6 = '0', Ally7 = '0', Ally8 = '0'
    DELETE FROM [dbo].[_Guild] WHERE ID > 0
    DELETE FROM [dbo].[_AlliedClans] WHERE ID > 0
    TRUNCATE TABLE [dbo].[_InventoryForAvatar]
    TRUNCATE TABLE [dbo].[_TrainingCampSubMentorHonorPoint]
    TRUNCATE TABLE [dbo].[_BlockedWhisperers]
    TRUNCATE TABLE [dbo].[_TrainingCampMember]
    TRUNCATE TABLE [dbo].[_CharTrijobSafeTrade]
    DELETE FROM [dbo].[_CharTrijob] WHERE CharID > 0
    TRUNCATE TABLE [dbo].[_TimedJob]
    TRUNCATE TABLE [dbo].[_StaticAvatar]
    TRUNCATE TABLE [dbo].[_Inventory]
    TRUNCATE TABLE [dbo].[_Memo]
    TRUNCATE TABLE [dbo].[_FleaMarketNetwork]
    TRUNCATE TABLE [dbo].[_Friend]
    TRUNCATE TABLE [dbo].[_CharSkillMastery]
    TRUNCATE TABLE [dbo].[_CharSkill]
    TRUNCATE TABLE [dbo].[_InvCOS]
    DELETE FROM [dbo].[_CharCOS] WHERE ID > 0
    DELETE FROM [dbo].[_Char] WHERE CharID > 0
    TRUNCATE TABLE [dbo].[_CharCollectionBook]
    TRUNCATE TABLE [dbo].[_CharInstanceWorldData]
    TRUNCATE TABLE [dbo].[_CharNameList]
    TRUNCATE TABLE [dbo].[_CharNickNameList]
    TRUNCATE TABLE [dbo].[_CharQuest]
    TRUNCATE TABLE [dbo].[_ClientConfig]
    TRUNCATE TABLE [dbo].[_DeletedChar]
    TRUNCATE TABLE [dbo].[_GPHistory]
    TRUNCATE TABLE [dbo].[_InventoryForLinkedStorage]
    TRUNCATE TABLE [dbo].[_ItemPool]
    DELETE FROM [dbo].[_Items] WHERE ID64 > 0
    TRUNCATE TABLE [dbo].[_Skill_BaoHiem_TNET]
    TRUNCATE TABLE [dbo].[_TimedJobForPet]
    TRUNCATE TABLE [dbo].[_TrainingCampBuffStatus]
    TRUNCATE TABLE [dbo].[_TrainingCampHonorRank]
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (1)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (2)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (3)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (4)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (5)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (6)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (7)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (8)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (9)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (10)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (11)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (12)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (13)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (14)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (15)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (16)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (17)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (18)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (19)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (20)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (21)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (22)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (23)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (24)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (25)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (26)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (27)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (28)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (29)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (30)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (31)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (32)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (33)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (34)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (35)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (36)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (37)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (38)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (39)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (40)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (41)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (42)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (43)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (44)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (45)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (46)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (47)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (48)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (49)
    INSERT INTO [dbo].[_TrainingCampHonorRank](Ranking) VALUES (50)
    EXEC [dbo].[_TRAINING_CAMP_UPDATEHONORRANK]
    DELETE FROM [dbo].[_TrainingCamp]
    TRUNCATE TABLE [dbo].[Tab_RefRanking_HunterContribution]
    TRUNCATE TABLE [dbo].[Tab_RefRanking_RobberContribution]
    TRUNCATE TABLE [dbo].[Tab_RefRanking_TraderContribution]
    
    USE [Log_DB]
    GO
    TRUNCATE TABLE [dbo].[_LogCashItem]
    TRUNCATE TABLE [dbo].[_LogEventChar]
    TRUNCATE TABLE [dbo].[_LogEventItem]
    TRUNCATE TABLE [dbo].[_LogEventSiegeFortress]
    TRUNCATE TABLE [dbo].[_LogSchedule]
    TRUNCATE TABLE [dbo].[_LogServerEvent]
    
    USE [SRO_VT_ACCOUNT]
    GO
    TRUNCATE TABLE [dbo].[__SiegeFortressStatus__]
    TRUNCATE TABLE [dbo].[_BlockedUser]
    TRUNCATE TABLE [dbo].[_CasGMChatLog]
    TRUNCATE TABLE [dbo].[_Notice]
    TRUNCATE TABLE [dbo].[_Punishment]
    TRUNCATE TABLE [dbo].[_ServiceManagerLog]
    TRUNCATE TABLE [dbo].[_ShardCurrentUser]
    TRUNCATE TABLE [dbo].[_SMCLog]
    TRUNCATE TABLE [dbo].[QuaySoEpoint]
    TRUNCATE TABLE [dbo].[SK_CharRenameLog]
    TRUNCATE TABLE [dbo].[SK_DownLevelLog]
    TRUNCATE TABLE [dbo].[SK_ITEM_GuardLog]
    TRUNCATE TABLE [dbo].[SK_ItemSaleLog]
    TRUNCATE TABLE [dbo].[SK_PackageItemSaleLog]
    TRUNCATE TABLE [dbo].[SK_PK_UpdateLog]
    TRUNCATE TABLE [dbo].[SK_ResetSkillLog]
    TRUNCATE TABLE [dbo].[SK_Silk]
    TRUNCATE TABLE [dbo].[SK_SilkBuyList]
    TRUNCATE TABLE [dbo].[SK_SubtractSilk_VAS]
    TRUNCATE TABLE [dbo].[SR_ShardCharNames]
    TRUNCATE TABLE [dbo].[TB_Net2e]
    TRUNCATE TABLE [dbo].[TB_Net2e_Bak]
    TRUNCATE TABLE [dbo].[tb_partnerInfo]
    TRUNCATE TABLE [dbo].[tb_paygate_trans]
    TRUNCATE TABLE [dbo].[TB_User]
    TRUNCATE TABLE [dbo].[TB_User_Bak]
    TRUNCATE TABLE [dbo].[Test_HN]
    UPDATE [dbo].[_ShardService] SET ShardID = '64'
    Anyone knows what the problem is?

  10. #55
    Banned NoMore is offline
    BannedRank
    Oct 2011 Join Date
    Alexandria, EgyLocation
    268Posts

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

    Thanks UseFul But Make a Guide how to change max silks giving

  11. #56
    Valued Member modog1545 is offline
    MemberRank
    Dec 2011 Join Date
    122Posts

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

    Please please tel us how make it withe SQL 2005 :((((

  12. #57
    Banned lembo12 is offline
    BannedRank
    May 2012 Join Date
    EgyptLocation
    296Posts

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

    Working in 2005 Or NO ?

  13. #58
    Apprentice AppleBery is offline
    MemberRank
    Nov 2011 Join Date
    24Posts

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

    i need create my own schedule ? or just exec the querys?
    @edit nvm solved... ppl need relog for receive the silk.

  14. #59
    Novice lolkabolka is offline
    MemberRank
    Jul 2012 Join Date
    3Posts

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

    hello guys. i am really new with this sro system, but at my new job i need to do this, except, i should give 1silk/4hours.

    and i do not need give silk for random players.
    i've did set up the tables, and procedures, except randomplayer&date, and getrandomplayer, and modified the _AddLogChar procedure, and removed this:


    IF (((SELECT NextDate FROM [_RandomPlayer&Date] WHERE [Desc] like 'Next') IS NULL))
    BEGIN
    DECLARE @FirstDate datetime, @Today datetime = GETDATE(), @FirstCharID int;

    exec @FirstCharID = SRO_VT_SHARD.dbo._RandomPlayerID
    exec SRO_VT_SHARD.dbo._GetRandomTime @Today, @FirstDate OUTPUT

    UPDATE [_RandomPlayer&Date]
    SET
    NextDate = @FirstDate,
    RefreshedDate = GETDATE(),
    CharID = @FirstCharID,
    Charname = (SELECT CharName16 FROM SRO_VT_SHARD.dbo._Char WHERE CharID = @FirstCharID)
    WHERE [Desc] like 'Next';
    END

    IF ((SELECT NextDate FROM [_RandomPlayer&Date] WHERE [Desc] like 'Next') <= GETDATE())
    BEGIN
    UPDATE _OnlineOffline
    SET [Silk/Hour] = (SELECT RewardSilk FROM [_Silk/Hour-Config] WHERE [Desc] like 'Rates')
    WHERE CharID = (SELECT CharID FROM [_RandomPlayer&Date] WHERE [Desc] like 'Next');
    Declare
    @CurSilkperHour int,
    @OldCharID int = (SELECT CharID FROM [_RandomPlayer&Date] WHERE [Desc] like 'Current');
    IF (@OldCharID IS NOT NULL)
    BEGIN
    exec @CurSilkperHour = _GetSilkperHour @OldCharID
    UPDATE _OnlineOffline
    SET [Silk/Hour] = @CurSilkperHour
    WHERE CharID = @OldCharID;
    END
    UPDATE [_RandomPlayer&Date]
    SET
    NextDate = NULL,
    RefreshedDate = GETDATE(),
    CharID = (SELECT CharID FROM [_RandomPlayer&Date] WHERE [Desc] like 'Next'),
    Charname = (SELECT Charname FROM [_RandomPlayer&Date] WHERE [Desc] like 'Next')
    WHERE [Desc] like 'Current'

    /*new Random Time of Today+1*/
    DECLARE @NextDate datetime, @Tomorrow datetime = GETDATE()+1, @NewCharID int;

    exec @NewCharID = SRO_VT_SHARD.dbo._RandomPlayerID
    exec SRO_VT_SHARD.dbo._GetRandomTime @Tomorrow, @NextDate OUTPUT

    UPDATE [_RandomPlayer&Date]
    SET
    NextDate = @NextDate,
    RefreshedDate = GETDATE(),
    CharID = @NewCharID,
    Charname = (SELECT CharName16 FROM SRO_VT_SHARD.dbo._Char WHERE CharID = @NewCharID)
    WHERE [Desc] like 'Next'
    /*!new Random...*/
    END
    I have several questions:
    - i doesn't get any documentation like a develepores guide, where can i download one? I tried to search without success.
    - how can i change the time of extra silk from 1 hour to 4 hours?
    - i'd like to test is, so i would like to change the time to some minutes, to test it on my test server. is it possible?

  15. #60
    Banned lembo12 is offline
    BannedRank
    May 2012 Join Date
    EgyptLocation
    296Posts

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

    can anyone make video turtial that's will help us very mush :)

    Just Want to know
    i need create my own schedule ? or just exec the querys?



Advertisement