C9 - Adding Resurrection Scrolls into the Database.

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Proficient Member Juntoa is offline
    MemberRank
    Dec 2008 Join Date
    162Posts

    C9 - Adding Resurrection Scrolls into the Database.

    How to add Resurrection Scrolls:
    Use the query window and then execute it.

    USE [C9World]
    GO

    DECLARE @return_value int,
    @pSetRsrtCoin int

    SELECT @pSetRsrtCoin = 6000

    EXEC @return_value = [Game].[UspSetRsrtCoin]
    @pPcNo = 2,
    @pSetRsrtCoin = @pSetRsrtCoin OUTPUT,
    @pMaxRsrtCoin = 6000,
    @pIsCheckBound = 1

    SELECT @pSetRsrtCoin as N'@pSetRsrtCoin'

    SELECT 'Return Value' = @return_value

    GO

    I was using MSSQL 2008 R2
    @pPcNo = 2, This is the account number found in C9Unity Auth.TBLAccount table "cAccNo".

    @pSetRsrtCoin, @pMaxRsrtCoin i set those both to the same value and after relogging into the server it is updated.


  2. #2
    Proficient Member Juntoa is offline
    MemberRank
    Dec 2008 Join Date
    162Posts

    Re: RELEASE - C9 Adding Resurrection Scrolls into the Database.

    How to add Gold to Character:
    Code:
    USE [C9World]
    GO
    
    DECLARE           @return_value int,
                   @paddMoney int
    
    SELECT           @paddMoney = 10000
    
    EXEC           @return_value = [Game].[UspAddPcMoney]
            @pPcNo = 2,
                   @paddMoney =        @paddMoney OUTPUT,
            @pMaxMoney = 100000
    
    SELECT           @paddMoney as N        @paddMoney'
    
    SELECT    'Return Value' =        @return_value
    
    GO
    I was using MSSQL 2008 R2
    @paddMoney sets how much will be added and @pMaxMoney set the maximal per transaction so @paddMoney needs to be slightly smaller or less than @pMaxMoney.



    This adds gold to the character again must log out for it to update. @paddMoney needs to say pAdd but the post keeps getting edited.

    - - - Updated - - -

    Add Points "Maybe Wcoins" I used it to buy cash shop items.

    Code:
    USE [C9World]
    GO
    
    DECLARE     @return_value int,
    	     @paddWB int
    
    SELECT     @paddWB = 100
    
    EXEC     @return_value = [Game].[UspAddPcWB]
    		@pPcNo = 2,
    		@pMaxWB = 10000,
    	     @paddWB =     @paddWB OUTPUT
    
    SELECT     @paddWB as N     @paddWB'
    
    SELECT	'Return Value' =     @return_value
    
    GO


    @paddWB = 100 this is the quantity adding, @pMaxWB = 10000, Max value, @pPcNo = 2, account number again.

    - - - Updated - - -

    Update the Experience of the Character:

    Code:
    USE [C9World]
    GO
    
    DECLARE   @return_value int
    
    EXEC   @return_value = [Admin].[UspUpdatePcExp]
    		@pPcNo = 2,
    		@pExp = 4400
    
    SELECT	'Return Value' =   @return_value
    
    GO
    I'm having issues when posting the code in snippets so verify that code matches the pics.
    Last edited by Juntoa; 15-11-15 at 01:49 AM.

  3. #3
    Enthusiast WildWild is offline
    MemberRank
    Jan 2015 Join Date
    Vũng Tàu, VieLocation
    46Posts

    Re: C9 - Adding Resurrection Scrolls into the Database.

    Change your account to GM and type :
    /levelup xxx
    xxx= number of level

    @

  4. #4
    Apprentice bas2000 is offline
    MemberRank
    Apr 2014 Join Date
    7Posts

    Re: C9 - Adding Resurrection Scrolls into the Database.

    stats up ^^

    - - - Updated - - -

    this is where you can increase item upgrade success


  5. #5
    Proficient Member Juntoa is offline
    MemberRank
    Dec 2008 Join Date
    162Posts

    Re: C9 - Adding Resurrection Scrolls into the Database.

    It very well looks that way but i have not played with it yet to confirm.

  6. #6
    Apprentice Sun12 is offline
    MemberRank
    Aug 2015 Join Date
    16Posts

    Re: C9 - Adding Resurrection Scrolls into the Database.

    Quote Originally Posted by bas2000 View Post
    stats up ^^

    - - - Updated - - -

    this is where you can increase item upgrade success

    Not work for me, broken at 10 ..

  7. #7
    Enthusiast WildWild is offline
    MemberRank
    Jan 2015 Join Date
    Vũng Tàu, VieLocation
    46Posts

    Re: C9 - Adding Resurrection Scrolls into the Database.

    Enchant +10 by Gm command

    /enchant 10

    The First Item in your Inventory will be enchant to 10.

    /enchant 10 2 meant The Second Item in your Inventory will be enchant to 10
    @bas2000 your should change your status, i dont think change item stats is wise

  8. #8
    Valued Member st-m4il is offline
    MemberRank
    Feb 2007 Join Date
    Left of LondonLocation
    136Posts

    Re: C9 - Adding Resurrection Scrolls into the Database.

    @Juntoa using using MSSQL 2008 R2. Typed (did not copy paste) from screenshots exact query. Got good Results (100) Return value (0) Query executed successfully. No points or coins added to a level 1 (non GM) account :( Log out, log in, even restart the server. Run query again and result increments (ie now 200 coins) but still no luck in game :(
    Verified account number cAccNo=3. No luck.

    Pic of SQL Game.TblPcInfo click to make larger:

    tblpcinfo.png

    Ideas? Needs cPaidRsrtCoin?

    Ahh according to this must restart World Server!?! PAIN!

    https://forum.ragezone.com/f857/rele...ml#post8527585

    Hopefully someone can find a way to do it without a World Server Restart!
    Last edited by st-m4il; 18-11-15 at 09:47 PM.

  9. #9
    Proficient Member Juntoa is offline
    MemberRank
    Dec 2008 Join Date
    162Posts

    Re: C9 - Adding Resurrection Scrolls into the Database.

    Quote Originally Posted by st-m4il View Post
    @Juntoa using using MSSQL 2008 R2. Typed (did not copy paste) from screenshots exact query. Got good Results (100) Return value (0) Query executed successfully. No points or coins added to a level 1 (non GM) account :( Log out, log in, even restart the server. Run query again and result increments (ie now 200 coins) but still no luck in game :(
    Verified account number cAccNo=3. No luck.

    Pic of SQL Game.TblPcInfo click to make larger:

    tblpcinfo.png

    Ideas? Needs cPaidRsrtCoin?

    Ahh according to this must restart World Server!?! PAIN!

    https://forum.ragezone.com/f857/rele...ml#post8527585

    Hopefully someone can find a way to do it without a World Server Restart!
    stored procedure : game.UspAddPcMoney run when your logged off not while your on server locks the database transactions. go to character select screen and run it select character go back in game and it should be there. Also the max need to be larger than what your adding or is does not add it.
    But i would use server stored procedures to add to games all field will properly be updated.

  10. #10
    Apprentice Sun12 is offline
    MemberRank
    Aug 2015 Join Date
    16Posts

    Re: C9 - Adding Resurrection Scrolls into the Database.

    Thanks.
    Where i can see all Gm comman ?

  11. #11
    Enthusiast WildWild is offline
    MemberRank
    Jan 2015 Join Date
    Vũng Tàu, VieLocation
    46Posts

    Re: C9 - Adding Resurrection Scrolls into the Database.

    Quote Originally Posted by st-m4il View Post
    @Juntoa using using MSSQL 2008 R2. Typed (did not copy paste) from screenshots exact query. Got good Results (100) Return value (0) Query executed successfully. No points or coins added to a level 1 (non GM) account :( Log out, log in, even restart the server. Run query again and result increments (ie now 200 coins) but still no luck in game :(
    Verified account number cAccNo=3. No luck.

    Pic of SQL Game.TblPcInfo click to make larger:

    tblpcinfo.png

    Ideas? Needs cPaidRsrtCoin?

    Ahh according to this must restart World Server!?! PAIN!

    https://forum.ragezone.com/f857/rele...ml#post8527585

    Hopefully someone can find a way to do it without a World Server Restart!
    I use Navicat Premium connect to database and change many thing without restart server.
    Must be loggoff

  12. #12
    UnknOwN harlem321 is offline
    MemberRank
    Feb 2013 Join Date
    At your back!Location
    290Posts

    Re: C9 - Adding Resurrection Scrolls into the Database.

    Quote Originally Posted by bas2000 View Post
    stats up ^^

    - - - Updated - - -

    this is where you can increase item upgrade success


    how did u upgrade ur stats using gm commands?

  13. #13
    Novice zapuxas098 is offline
    MemberRank
    Dec 2015 Join Date
    2Posts

    Re: C9 - Adding Resurrection Scrolls into the Database.

    How to edit enchantment rates? The one in SQL didn't work. Any solutions?

  14. #14
    Account Upgraded | Title Enabled! klugor is offline
    MemberRank
    Sep 2008 Join Date
    252Posts

    Re: C9 - Adding Resurrection Scrolls into the Database.

    Good evening
    How to add items to cashshop?
    thank you beforehand

  15. #15
    Proficient Member Juntoa is offline
    MemberRank
    Dec 2008 Join Date
    162Posts

    Re: C9 - Adding Resurrection Scrolls into the Database.

    Quote Originally Posted by klugor View Post
    Good evening
    How to add items to cashshop?
    thank you beforehand


    https://forum.ragezone.com/f859/c9-h...1/index16.html



Page 1 of 2 12 LastLast

Advertisement