View Full Version : |Suporte| Trigger bonus pra novos chars SQL 2008
Victor_ScB
26/04/2020, 09:18 PM
ola, essa trigger parece não funcionar no meu sql 2008, pois novos chars nem logam , ficam presos no loading do mapa, ai dou enter pro jogo fechar... preciso reiniciar o server pq buga tudo :P
alguem tem ela pro sql 2008 ? ou será q basta eu editar o default value de resets e lvluppoints pelo design table msm ?
OBS: server 97d+99 fire team.
segue a trigger usada:
USE [MuOnline]
GO
/***** Object: Trigger [dbo].[MUC_BONUS] Script Date: 04/25/2020 20:19:04 *****/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
ALTER TRIGGER [dbo].[MUC_BONUS] ON [dbo].[Character] FOR INSERT
AS
BEGIN
-- Bonus para Novos Chars
-- Por Alex do Muciados
DECLARE
@Resets INT,
@Pontos INT,
@Dinheiro INT,
@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]
UPDATE Dbo.Character
[Only registered and activated users can see links]
[Only registered and activated users can see links]
END
Tente essa:
USE MuOnline
IF EXISTS (SELECT name FROM sysobjects
WHERE name = 'MUC_BONUS' AND type = 'TR')
DROP TRIGGER MUC_BONUS
GO
CREATE TRIGGER MUC_BONUS ON Dbo.Character FOR INSERT
AS
BEGIN
-- Bonus para Novos Chars
DECLARE
@Resets INT,
@Pontos INT,
@Dinheiro INT,
@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]
UPDATE Dbo.Character
[Only registered and activated users can see links]
[Only registered and activated users can see links]
END
Caso não dê certo utilize essa para remover:
USE MuOnline
IF EXISTS (SELECT name FROM sysobjects
WHERE name = 'MUC_BONUS' AND type = 'TR')
DROP TRIGGER MUC_BONUS
GO
Já utilizei pra clientes Fire Team e tudo correu normal. Lembre-se de excluir a que você usou.
Victor_ScB
26/04/2020, 11:32 PM
mas é a mesma.
Tente essa:
Caso não dê certo utilize essa para remover:
Já utilizei pra clientes Fire Team e tudo correu normal. Lembre-se de excluir a que você usou.
mas é a mesma.
Tem algumas diferenças, olhe bem. Eu analisei bem pra ver se era igualzinha.
[Only registered and activated users can see links]
Victor_ScB
27/04/2020, 01:12 AM
Fiz e continua o problema igual.
to vendo q terei q editar pelo design table mesmo .
não acho o problema, se é do muserver, ou seila oq.
Tem algumas diferenças, olhe bem. Eu analisei bem pra ver se era igualzinha.
[Only registered and activated users can see links]
cronusmaker
27/04/2020, 08:36 PM
não use trigger use o defalth class type e sete algumas values direto na tabela
Stark
27/04/2020, 09:22 PM
Cara, MuServer fireteam tem sistema de bônus para novos players direto na programação do Gameserver, salvo engano.
Veja com o Maykon, com certeza ele irá te ajudar.
Victor_ScB
06/05/2020, 11:36 PM
--------- EDIT -----
a trigger funcionou qndo eu crio novo char pelo muedit.
vai entender.
se crio pelo jogo buga tudo. e funcionava em outro muserver que usava. aff
não use trigger use o defalth class type e sete algumas values direto na tabela
tentei. só funcionou com Resets.
LEveluppoints nao.
terei que desativar o allownull dela ?
cronusmaker
10/05/2020, 03:41 PM
--------- EDIT -----
a trigger funcionou qndo eu crio novo char pelo muedit.
vai entender.
se crio pelo jogo buga tudo. e funcionava em outro muserver que usava. aff
tentei. só funcionou com Resets.
LEveluppoints nao.
terei que desativar o allownull dela ?
não e so alterar a defalth value a leveluppoints e responsavel pelos pontos para distribuir
se tu ta usando a a defatlth class type so seta o valor do level e dos atributos so talves tenha dado bug no valor binario
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.