PDA

View Full Version : |Dúvida| Removendo bonus para criarem personagens com atributo padrão



xtchabsx
19/07/2019, 09:54 PM
ola pessoal! estou querendo remover uma tg em meu db, mas tenho a duvida de como faco para fazer com que os personagens, ao criar, peguem os atributos padrão, pq tentei remover e os personagens continuam vindo full ao criar. obg a todos.

segue o tg



USE [MuOnline]
GO

DROP TRIGGER [dbo].[CRIAR_CHAR]
GO

CREATE TRIGGER [dbo].[CRIAR_CHAR] ON [dbo].[Character] FOR INSERT
AS
BEGIN
-- Bonus para Novos Chars
DECLARE
@Level INT,
@Resets INT,
@Pontos INT,
@Dinheiro INT,
@Forca INT,
@Agilidade INT,
@Vitalidade INT,
@Energia INT,
[Only registered and activated users can see links]
@Char varchar(10)
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]

[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]

[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]

UPDATE Dbo.Character
[Only registered and activated users can see links]
[Only registered and activated users can see links]

UPDATE Dbo.Character
[Only registered and activated users can see links]
[Only registered and activated users can see links]

END

Reenan
20/07/2019, 12:08 PM
Tente utilizar isso:


USE MuOnline
IF EXISTS (SELECT name FROM sysobjects
WHERE name = 'CRIAR_CHAR' AND type = 'TR')
DROP TRIGGER CRIAR_CHAR
GO

Obs: faça um backup de sua db antes de rodar isso

xtchabsx
20/07/2019, 03:28 PM
obg pela query, mas eu rodei e ao criar o char vem lvl 1, mas esta vindo full ainda. obs: verifiquei se realmente tinha deletado a tr, e realmente deletou, mas ao criar char ainda está vindo full. tem algum conselho? obg desde já!

Reenan
20/07/2019, 03:32 PM
Antes de mais nada, você reinicio o gs dps que removeu ?

Se sim..

Verifique na dbo.character se os atributos estão com o padrão 0 ou 32.767.

se ainda continuar vindo pode ser que já está dentro do gameserve para que possa vim full o char, ai teria que dar uma olhada nas config do serve para saber se é possível mudar.

xtchabsx
21/07/2019, 01:01 PM
obg pela atenção. verifiquei a tabela, colunas, settings do gs e nada.