Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Poder Habilitar Rage Fighter y Summoner, Files Season 12 IGCN Muemu  (Visto 3352 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline Anemone Posteado: June 09, 2018, 03:25:11 AM | Modificado: June 11, 2018, 11:40:39 AM by Anemone

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 205
  • Gracias recibida: 87
  • cl
Buenas Noches

Tengo una duda la cual es el poder incluir al Rage Fighter y Summoner para poder crearlos con un cierto lvl, similar al darklord y mg....creo que en estos files se crean con la moneda wcoin.

he buscado en los files del cliente, files y sql, pero no logro dar con la opción y que debería colocar,
he buscado en soporte alguna solución pero no la encuentro, solo encuentro la que dan zen o items al crearse un PJ pero con otros files.

He encontrado esto en las guiás de MuEmu:

 SUM / RF Creation Level Requirement

The tutorial will describe how to restrict creation of summoner or ragefighter from a certain level.

Follow to \Server\Database\Extras\Triggers and open with notepad Summoner_RageFighter_Creation.sql file

    *Copy the query given below and replace with existing in Summoner_RageFighter_Creation.sql.
    *Adjust your level for RF / SUM creation in SECTION B, CASE 3 and CASE 4.
    *For a custom configuration with for example SUM available at start, and RF from
      certain level - edit @AllowCreate property in SECTION A and SECTION B.
    * Save and execute Summoner_RageFighter_Creation.sql.

Spoiler for Hiden:
    USE [MuOnline] -- set a current MuOnline database name here
    GO

    ALTER TABLE [AccountCharacter] DROP CONSTRAINT [DF_AccountCharacter_Summoner];
    ALTER TABLE [AccountCharacter]  ALTER COLUMN [Summoner] int not null;
    ALTER TABLE [AccountCharacter] ADD  CONSTRAINT [DF_AccountCharacter_Summoner]  DEFAULT ((0)) FOR [Summoner];

    ALTER TABLE [AccountCharacter] DROP CONSTRAINT [DF_AccountCharacter_RageFighter];
    ALTER TABLE [AccountCharacter]  ALTER COLUMN [RageFighter] int not null;
    ALTER TABLE [AccountCharacter] ADD  CONSTRAINT [DF_AccountCharacter_RageFighter]  DEFAULT ((0)) FOR [RageFighter];


    -- #################################################################################################
    -- If set to 1 the option will remove previously added triggers
    -- #################################################################################################
    DECLARE @RemoveTriggers INT = 0

    -- ///// CONFIG SECTION START //////////////////////////////////////////////////////////////////////
    -- #################################################################################################
    -- SECTION A -- if any value from section A set to 1 then section B must be set to 0, and vice-versa
    -- #################################################################################################

    -- set to 1 if wanting allow all players creating Summoner from level 1
    DECLARE @AllowCreateSummonnerFromLevel1 INT = 0

    -- set to 1 if wanting allow all players creating Rage Fighter from level 1
    DECLARE @AllowCreateSummonnerFromLevel1 INT = 0

    -- /////////////////////////////////////////////////////////////////////////////////////////////////
    -- #################################################################################################
    -- SECTION B -- if any value from section B set to 1 then section A must be set to 0, and vice-versa
    -- #################################################################################################

    -- set to 1 if wanting restrict players to create Summoner from specified level
    DECLARE @AllowCreateSummonerAtDesiredLevel INT = 1

    -- set to 1 if wanting reset ability to create Summoner to current players
    DECLARE @ResetCurrentPlayersPossibilityToCreateSummoner INT = 0

    -- set minimum level of character requiring to create Summoner
    DECLARE @SummonerCreateLevel INT = 150


    -- set to 1 if wanting restrict players to create Rage Fighter from specified level
    DECLARE @AllowCreateRageFighterAtDesiredLevel INT = 1

    -- set to 1 if wanting reset ability to create Rage Fighter to current players
    DECLARE @ResetCurrentPlayersPossibilityToCreateRageFighter INT = 0

    -- set minimum level of character requiring to create Rage Fighter
    DECLARE @RageFighterCreateLevel INT = 200

    IF (@RemoveTriggers = 1)
     BEGIN
      IF EXISTS (SELECT * FROM sysobjects WHERE name = 'RageFighterActivation' AND type = 'TR')
       BEGIN
       DROP TRIGGER RageFighterActivation
       print (N'INFO: RageFighterActivation deleted succesfully');
       END
       
      IF EXISTS (SELECT * FROM sysobjects WHERE name = 'SummonerActivation' AND type = 'TR')
       BEGIN
       DROP TRIGGER SummonerActivation
       print (N'INFO: SummonerActivation deleted succesfully');
       END
      RETURN
     END
    -- /////////////////////////////////////////////////////////////////////////////////////////////////
    -- ##### CONFIG SECTION END -- DO NOT MODIFY BELOW #################################################

    -- CASE 1
    IF (@AllowCreateSummonnerFromLevel1 = 1 AND @AllowCreateSummonerAtDesiredLevel = 0)
       BEGIN
          IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_AccountCharacter_Summoner]'))
             BEGIN
                ALTER TABLE dbo.AccountCharacter DROP CONSTRAINT DF_AccountCharacter_Summoner
             END

          ALTER TABLE dbo.AccountCharacter ADD CONSTRAINT DF_AccountCharacter_Summoner DEFAULT ((1)) FOR Summoner;
          
          UPDATE dbo.AccountCharacter SET Summoner = 1
          print (N'CASE 1: ALL OK')
       END

    ELSE IF (@AllowCreateSummonnerFromLevel1 = 1 AND @AllowCreateSummonerAtDesiredLevel = 1)
       print CHAR(13) + N'Something went wrong, verify configuration' + CHAR(13) + N'CASE 1: AllowCreateSummonnerFromLevel1
     or AllowCreateSummonerAtDesiredLevel mis-configured, refer to Section A and B description'


    -- CASE 2
    IF (@AllowCreateRageFighterFromLevel1 = 1 AND @AllowCreateRageFighterAtDesiredLevel = 0)
       BEGIN
          IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_AccountCharacter_RageFighter]'))
             BEGIN
                ALTER TABLE dbo.AccountCharacter DROP CONSTRAINT DF_AccountCharacter_RageFighter
             END

          ALTER TABLE dbo.AccountCharacter ADD CONSTRAINT DF_AccountCharacter_RageFighter DEFAULT ((1)) FOR RageFighter;
             
          UPDATE dbo.AccountCharacter SET RageFighter = 1
          print (N'CASE 2: ALL OK')
       END

    ELSE IF (@AllowCreateRageFighterFromLevel1 = 1 AND @AllowCreateRageFighterAtDesiredLevel = 1)
       print CHAR(13) + N'Something went wrong, verify configuration' + CHAR(13) + N'CASE 2: AllowCreateRageFighterFromLevel1
     or @AllowCreateRageFighterAtDesiredLevel mis-configured, refer to Section A and B description'


    -- CASE 3
    IF (@AllowCreateSummonnerFromLevel1 = 0 AND @AllowCreateSummonerAtDesiredLevel = 1)
       BEGIN
          IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_AccountCharacter_Summoner]'))
             BEGIN
                ALTER TABLE dbo.AccountCharacter DROP CONSTRAINT DF_AccountCharacter_Summoner
             END

          ALTER TABLE dbo.AccountCharacter ADD CONSTRAINT DF_AccountCharacter_Summoner DEFAULT ((150)) FOR Summoner;
          
          IF (@ResetCurrentPlayersPossibilityToCreateSummoner = 1)
             BEGIN
                UPDATE dbo.AccountCharacter SET Summoner = 0
             END

          IF EXISTS (SELECT * FROM sys.objects WHERE [type] = 'TR' AND [name] = 'SummonerActivation')
          DROP TRIGGER SummonerActivation;
          
          EXEC ('
             CREATE TRIGGER SummonerActivation ON [dbo].[Character]
             FOR UPDATE
             AS
             SET NOCOUNT ON
                DECLARE @AccountID varchar(10);
                DECLARE @cLevel int;
                SELECT @AccountID=i.AccountID FROM inserted i;   
                SELECT @cLevel=i.cLevel FROM inserted i;
       
                   IF (UPDATE(cLevel) AND (@cLevel >= ' + @SummonerCreateLevel + '))
                   UPDATE dbo.AccountCharacter SET Summoner = 1 WHERE Id = @AccountID
             ')
             print (N'CASE 3: ALL OK')
          END

    ELSE IF (@AllowCreateSummonnerFromLevel1 = 1 AND @AllowCreateSummonerAtDesiredLevel = 1)
       print CHAR(13) + N'Something went wrong, verify configuration' + CHAR(13) + N'CASE 3: AllowCreateSummonnerFromLevel1
     or AllowCreateSummonerAtDesiredLevel mis-configured, refer to Section A and B description'


    -- CASE 4
    IF (@AllowCreateRageFighterFromLevel1 = 0 AND @AllowCreateRageFighterAtDesiredLevel = 1)
       BEGIN

          IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_AccountCharacter_RageFighter]'))
             BEGIN
                ALTER TABLE dbo.AccountCharacter DROP CONSTRAINT DF_AccountCharacter_RageFighter
             END

          ALTER TABLE dbo.AccountCharacter ADD CONSTRAINT DF_AccountCharacter_RageFighter DEFAULT ((200)) FOR RageFighter;
             
             IF (@ResetCurrentPlayersPossibilityToCreateRageFighter = 1)
                BEGIN
                   UPDATE dbo.AccountCharacter SET RageFighter = 0
                END

          IF EXISTS (SELECT * FROM sys.objects WHERE [type] = 'TR' AND [name] = 'RageFighterActivation')
          DROP TRIGGER RageFighterActivation;
          
          EXEC ('
             CREATE TRIGGER RageFighterActivation ON [dbo].[Character]
             FOR UPDATE
             AS
             SET NOCOUNT ON
                DECLARE @AccountID varchar(10);
                DECLARE @cLevel int;
                SELECT @AccountID=i.AccountID FROM inserted i;
                SELECT @cLevel=i.cLevel FROM inserted i;
       
                   IF (UPDATE(cLevel) AND (@cLevel >= ' + @RageFighterCreateLevel + '))
                   UPDATE dbo.AccountCharacter SET RageFighter = 1 WHERE Id = @AccountID
             ')
             print (N'CASE 4: ALL OK')
       END

    ELSE IF (@AllowCreateRageFighterFromLevel1 = 1 AND @AllowCreateRageFighterAtDesiredLevel = 1)
       print CHAR(13) + N'Something went wrong, verify configuration' + CHAR(13) + N'CASE 4: AllowCreateRageFighterFromLevel1
     or AllowCreateRageFighterAtDesiredLevel mis-configured, refer to Section A and B description'
    GO

Esto es lo que quiero hacer exactamente, poder crearlos RF y SUM como un determinado lvl sin la Wcoin, pero no encuentro esta carpeta \Extras\Triggers en mi DataBase para poder pegarlo.
Estoy usando los files Files Season 12 IGCN y SQL2012 RE  - MuEmu aportados aqui en el foro.

Ruego si podrían ayudarme por favor que estoy hace días con este problema, Disculpen las molestias causadas, muchas gracias.


Offline Anemone #1 Posteado: June 12, 2018, 02:33:08 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 205
  • Gracias recibida: 87
  • cl

Offline josexluis #2 Posteado: June 12, 2018, 04:10:13 PM

  • 0 puntos por ventas
  • *
  • Rank: Experto
  • Posts: 156
  • Gracias recibida: 25
  • pe
depende que files estas usando o que base de datos yo no tengo problemas con la creacion de esos 2 pj usa la base de datos de muemu de su web


Offline Prophet #3 Posteado: June 12, 2018, 04:59:50 PM

  • 0 puntos por ventas
  • *
  • Rank: Usuario activo
  • Posts: 60
  • Gracias recibida: 8
  • cl
Ese código que dejaste ahí correlo como una query en el sql, y modifica lo que se te pide solamente :)


Offline Anemone #4 Posteado: June 12, 2018, 07:04:03 PM | Modificado: June 12, 2018, 07:10:20 PM by Anemone

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 205
  • Gracias recibida: 87
  • cl
Ese código que dejaste ahí correlo como una query en el sql, y modifica lo que se te pide solamente :)

Gracias por la atención, estoy usando los files muemu aportados aquí:
http://tuservermu.com.ve/index.php?topic=9775.0

Como les digo estos pj RF y Sum no están habilitados para crearlos dependiendo del level, asi como el Dl o el MG. creo que estan por la moneda Wcoin. la Query no la puedo crear ya que no estan estas carpetas en el Sql:

\Server\Database: las tengo
\Extras\Triggers: no las tengo

Asi que no se donde incluir esta Query.


depende que files estas usando o que base de datos yo no tengo problemas con la creacion de esos 2 pj usa la base de datos de muemu de su web

Los files los puse, son los muemu season 12 IGCN, y el Sql es el que recomenderan, Sql 2012 R2. no entiendo como es posible que tu no tengas problemas, ya que en estos files el RF y la SUM, no se crean directamente como un DL o MG de acuerdo al level para desbloquearlos.
si no solo comprándolos por la Wcoin.


Offline josexluis #5 Posteado: June 13, 2018, 01:58:15 AM | Modificado: June 13, 2018, 02:02:29 AM by josexluis

  • 0 puntos por ventas
  • *
  • Rank: Experto
  • Posts: 156
  • Gracias recibida: 25
  • pe
yo lo tengo normal hace un tiempo use una query dejame buscar si lo encuentro te apoyo


Offline Anemone #6 Posteado: June 13, 2018, 02:03:26 AM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 205
  • Gracias recibida: 87
  • cl
yo lo tengo normal hace un tiempo use una query dejame buscar si lo encuentro te apoyo https://ibb.co/nm9yCy

Te lo agradeciera mucho compañero, no sabes como.
Para meter la query solo tengo las carpetas en mi sql de: \Server\Database\

pero las que siguen para poder poner alguna query como este ejemplo \Server\Database\Extras\Triggers, no las tengo, puede ser que este ejemplo que encontré es muy viejo.


Offline josexluis #7 Posteado: June 13, 2018, 02:21:37 AM

  • 0 puntos por ventas
  • *
  • Rank: Experto
  • Posts: 156
  • Gracias recibida: 25
  • pe
Ese código que dejaste ahí correlo como una query en el sql, y modifica lo que se te pide solamente :)

lo siento amigo no encontre mi query pero ahi esta lo que dice el compañero usa la query de muemu agregalo atu base de datos y solo cambias solo lo que te pide


Offline Anemone #8 Posteado: June 13, 2018, 02:53:45 AM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 205
  • Gracias recibida: 87
  • cl
Quiero tratar de colocar la query pero me faltan esas 2 carpetas en mi sql, la que sigue a la database.


Offline josexluis #9 Posteado: June 13, 2018, 07:05:45 PM

  • 0 puntos por ventas
  • *
  • Rank: Experto
  • Posts: 156
  • Gracias recibida: 25
  • pe
no nesecitas las 2 carpetas tienes que agregarlo la query como un analizar de consulta y listo

Gracias:


Offline Prophet #10 Posteado: June 13, 2018, 08:56:53 PM

  • 0 puntos por ventas
  • *
  • Rank: Usuario activo
  • Posts: 60
  • Gracias recibida: 8
  • cl
Abres el SQL y pon donde dice "New Query" y ahi pegas el código y modificas lo que te pide y como quieras que sea la creación.

Luego en la misma pantalla del SQL donde pegaste la query, das click derecho y pones Execute y listo

Gracias:


Offline Anemone #11 Posteado: June 14, 2018, 03:56:33 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 205
  • Gracias recibida: 87
  • cl
no nesecitas las 2 carpetas tienes que agregarlo la query como un analizar de consulta y listo

Abres el SQL y pon donde dice "New Query" y ahi pegas el código y modificas lo que te pide y como quieras que sea la creación.

Luego en la misma pantalla del SQL donde pegaste la query, das click derecho y pones Execute y listo

Gracias chicos por la ayuda, ingrese la query como ustedes me han dicho, pero no la toma, puede ser a lo mejor que esta no es para la S12.

estaré intentando como poder hacerlo, si saben otra solución se los agradecería mucho


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
2 Replies
3388 Views
Last post July 12, 2018, 05:22:04 PM
by xBebo1994x
2 Replies
1723 Views
Last post May 06, 2018, 09:48:20 PM
by jose1k
0 Replies
968 Views
Last post September 01, 2018, 12:07:14 PM
by IvanZeta
1 Replies
939 Views
Last post April 21, 2019, 04:59:11 AM
by J0RG325
0 Replies
498 Views
Last post June 21, 2020, 11:08:45 PM
by ramaxx