Logo DM

=> Chat GG <=



Olá, venha avisar sobre as regras do xat, são elas: - Proibido Divulgar outros Xats - Proibido Divulgar outros portais - Proibido Repetições (flood) - Proibido Links - Proibido Ofensas - Maximo de 4 linhas por msg By.: Lucas

Auto-Reset

Auto Reset:
1º Va em SLQ Server Enterprise Manager.


2º Va em Databases, Muonline e Tables.


3º Na tabela Character Click com botão direito, Design Table.


4º Va até o ultimo campo (collun name) escrito e crie um chamado Reset.


5º Colunname = Reset , DataType = int , Default value = 1 , salve e feche.


6º Agora em Management.


7º Va em SQL Server Agent.


8º Va em Jobs, e click com botão direito e NewJob.


9º Va em General coloque um nome como AutoReset.


10º Depois vai em Steps.


11º New em Steps em "name" coloque AutoReset tambem.


12º Va em Type deixe Transact-SQL Script (TSQL).


13º Em Database selecione MUOnline.


14º No Command coloque o seguinte codigo :



[[ [ Auto Reset Para Vip na table MEMB_INFO ]



Reset não acumulativo (Pontos x Resets) + VIP



-- Definindo as variaveis (Não mexer)


declare


@MaxLevel int,


@PontosReset int,


@ZenReq int,


@Forca int,


@Agilidade int,


@Vitalidade int,


@Energia int,


@MaxLevelVIP int,


@PontosResetVIP int,


@ZenReqVIP int,


@ForcaVIP int,


@AgilidadeVIP int,


@VitalidadeVIP int,


@EnergiaVIP int


Postarei O Resto Com Mais Tempo ;)



0 comentários:

Postar um comentário