MuEMU s6.ep3 Reset wcoin reward

Results 1 to 9 of 9
  1. #1
    Newbie muonlinenoob is offline
    MemberRank
    Sep 2015 Join Date
    KievLocation
    17Posts

    sad MuEMU s6.ep3 Reset wcoin reward

    Hi all.
    I have a problem.
    I want to give players wcoin c for reset count.

    for example 30 wcoinC for each reset.

    When player make reset: wcoinC = wcoinC + 30

    But i cant find any configs and stored procedures in db.
    Found only goblin point for online config. But i need wcoinC for reset.


  2. #2

    Re: MuEMU s6.ep3 Reset wcoin reward

    how do players make reset? with website or files?

  3. #3
    Newbie muonlinenoob is offline
    MemberRank
    Sep 2015 Join Date
    KievLocation
    17Posts

    Re: MuEMU s6.ep3 Reset wcoin reward

    /reset command

    I wrote sql trigger for this, but i think it will be need many db resourses

  4. #4
    Member Andriusha is offline
    MemberRank
    Nov 2017 Join Date
    LithuaniaLocation
    32Posts

    Re: MuEMU s6.ep3 Reset wcoin reward

    Need that query , too , can somebody help ?

  5. #5
    Grand Master seedmaker is offline
    Grand MasterRank
    Feb 2017 Join Date
    127.0.0.1Location
    580Posts

    Re: MuEMU s6.ep3 Reset wcoin reward

    Like this ?

    Go on Stored Procedures Find "WZ_SetResetInfo" then add this bellow


    UPDATE Character SET ResetCount=@Reset WHERE AccountID=@Account AND Name=@Name


    UPDATE CashShopData Set WCoinC = WCoinC + 100

    This one if you type /reset its automatic gives your acc. with 100WCoinC

  6. #6
    Member Andriusha is offline
    MemberRank
    Nov 2017 Join Date
    LithuaniaLocation
    32Posts

    Re: MuEMU s6.ep3 Reset wcoin reward

    i'm using season 9 ep 2 igcn files, and can't find "WZ_SetResetInfo" . Maybe they use another table name

  7. #7
    Newbie ReaperKID is offline
    MemberRank
    May 2022 Join Date
    2Posts
    Quote Originally Posted by seedmaker View Post
    Like this ?

    Go on Stored Procedures Find "WZ_SetResetInfo" then add this bellow


    UPDATE Character SET ResetCount=@Reset WHERE AccountID=@Account AND Name=@Name


    UPDATE CashShopData Set WCoinC = WCoinC + 100

    This one if you type /reset its automatic gives your acc. with 100WCoinC
    Hi, I tried this SQL Script but the problem is, when someone use /reset then all the players will receive the amount you put on the Stored Procedure, how to make it individual? for accounts only of a player who use /reset not for all.

  8. #8
    C++ Developer zipper20032 is online now
    Grand MasterRank
    Oct 2006 Join Date
    0x198837ADLocation
    682Posts
    This one is the correct one.

    Code:
    UPDATE CashShopData Set WCoinC = WCoinC + 100 WHERE AccountID = @Account
    



  9. #9
    Newbie layzen1985 is offline
    MemberRank
    Mar 2023 Join Date
    1Posts
    USE MuOnline
    IF EXISTS (SELECT name FROM sysobjects
    WHERE name = 'ResetPorCash')
    DROP TRIGGER ResetPorCash
    GO

    CREATE TRIGGER dbo.ResetPorCash
    ON dbo.Character
    AFTER UPDATE
    AS
    BEGIN
    DECLARE
    @Char varchar(10)
    SELECT @Char = AccountID from inserted
    IF UPDATE(ResetCount)
    BEGIN
    UPDATE CashShopData
    SET
    WCoinC = WCoinC + 1000
    WHERE AccountID = @Char
    END
    END
    GO



Advertisement