Ir para conteúdo
Faça parte da equipe! (2024) ×
Conheça nossa Beta Zone! Novas áreas a caminho! ×
  • Quem está por aqui   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.

Aprenda a configurar o auto reset tabelado


 Compartilhar

Posts Recomendados

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 codigo do reset desejado, escolhe eles abaixo.

 

UPDATE Character

SET clevel=('1') , experience=('0') , LevelUpPoint=100+100*Resets , Resets=Resets+1 , Strength=('30') , Dexterity=('30') , Vitality=('30') , Energy=('30')

FROM Character join Memb_Stat on Character.Accountid = Memb_Stat.memb___id COLLATE Latin1_General_CS_AS

JOIN MEMB_INFO ON Character.AccountID=MEMB_INFO.memb___id COLLATE Latin1_General_CS_AS

WHERE clevel>319 and Resets<('20') and Money>('0') and MEMB_INFO.vip=0 and MEMB_STAT.ConnectStat=0

 

UPDATE Character

SET clevel=('1') , experience=('0') , LevelUpPoint=50+50*Resets+1000 , Resets=Resets+1 , Strength=('30') , Dexterity=('30') , Vitality=('30') , Energy=('30')

FROM Character join Memb_Stat on Character.Accountid = Memb_Stat.memb___id COLLATE Latin1_General_CS_AS

JOIN MEMB_INFO ON Character.AccountID=MEMB_INFO.memb___id COLLATE Latin1_General_CS_AS

WHERE clevel>339 and Resets<('100') and Money>('50000000') and MEMB_INFO.vip=0 and MEMB_STAT.ConnectStat=0

 

UPDATE Character

SET clevel=('1') , experience=('0') , LevelUpPoint=25+25*Resets+3500 , Resets=Resets+1 , Strength=('30') , Dexterity=('30') , Vitality=('30') , Energy=('30')

FROM Character join Memb_Stat on Character.Accountid = Memb_Stat.memb___id COLLATE Latin1_General_CS_AS

JOIN MEMB_INFO ON Character.AccountID=MEMB_INFO.memb___id COLLATE Latin1_General_CS_AS

WHERE clevel>349 and Resets<('5000') and Money>('50000000') and MEMB_INFO.vip=0 and MEMB_STAT.ConnectStat=0

 

UPDATE Character

SET clevel=('1') , experience=('0') , LevelUpPoint=200+200*Resets , Resets=Resets+1 , Strength=('50') , Dexterity=('50') , Vitality=('50') , Energy=('50')

FROM Character join Memb_Stat on Character.Accountid = Memb_Stat.memb___id COLLATE Latin1_General_CS_AS

JOIN MEMB_INFO ON Character.AccountID=MEMB_INFO.memb___id COLLATE Latin1_General_CS_AS

WHERE clevel>319 and Resets<('20') and Money>('0') and MEMB_INFO.vip=1 and MEMB_STAT.ConnectStat=0

 

UPDATE Character

SET clevel=('1') , experience=('0') , LevelUpPoint=100+100*Resets+2000 , Resets=Resets+1 , Strength=('50') , Dexterity=('50') , Vitality=('50') , Energy=('50')

FROM Character join Memb_Stat on Character.Accountid = Memb_Stat.memb___id COLLATE Latin1_General_CS_AS

JOIN MEMB_INFO ON Character.AccountID=MEMB_INFO.memb___id COLLATE Latin1_General_CS_AS

WHERE clevel>339 and Resets<('100') and Money>('25000000') and MEMB_INFO.vip=1 and MEMB_STAT.ConnectStat=0

 

UPDATE Character

SET clevel=('1') , experience=('0') , LevelUpPoint=50+50*Resets+7000 , Resets=Resets+1 , Strength=('50') , Dexterity=('50') , Vitality=('50') , Energy=('50')

FROM Character join Memb_Stat on Character.Accountid = Memb_Stat.memb___id COLLATE Latin1_General_CS_AS

JOIN MEMB_INFO ON Character.AccountID=MEMB_INFO.memb___id COLLATE Latin1_General_CS_AS

WHERE clevel>349 and Resets<('5000') and Money>('25000000') and MEMB_INFO.vip=1 and MEMB_STAT.ConnectStat=0

 

-------------------------------------------------------------------------------------------------------------

O Reset ficaria assim:

Tabela Reset Para Player Free

 

- Do 1º reset ate o 20º --> Reseta lvl 320 = 100 pontos por Reset "0"

- Do 21º reset ate o 100º --> Reseta lvl 340 = 50 pontos por Reset "50 kk" - Do 101º reset ate o 5000º --> Reseta lvl 350 = 25 pontos por Reset "50 kk"

 

Tabela Reset Para Player Vip

 

- Do 1º reset ate o 20º --> Reseta lvl 320 = 200 pontos por Reset "0"

- Do 21º reset ate o 100º --> Reseta lvl 340 = 100 pontos por Reset "25 kk"

- Do 101º reset ate o 5000º --> Reseta lvl 350 = 50 pontos por Reset "25 kk"

-------------------------------------------------------------------------------------------------------------

 

15º Depois clique em Parse e de OK.

16º Va para Schedules.

17º Em New Sechedule coloque tambem la AutoReset.

18º Depois clique em Change.

19º Na primeira parte selecione Daily e deixe em Every 1 day(s).

20º Depois selecione em baixo Occurs every e troque Hour(s) por Minute(s).

21º Duration selecione a data atual do dia e de ok.

22º Agora e so finalizar dando Aplicar e OK.

23º Pronto está feito AUTORESET.

24º Sempre de Start no SQL Server Agent, e deixe como auto start para facilitar.

 

-------------------------------------------------------------------------------------------------------------

Mudando o Código:

 

LevelUpPoint = 300*Reset

Significa que os pontos por reset vão ser definidos assim:

300 multiplicado pelo numero de resets atuais.

 

Strength= ('20') , Dexterity= ('20') , Vitality= ('20') , Energy= ('20')

Isso são os atributos que o char recomeça, ou seja, esse char recomeçaria com 20 pontos em todos os atributos (skills).

 

WHERE clevel>349

Level de Reset ( deixe -1 do lvl desejado ), nesse ele resetaria no 350.

-------------------------------------------------------------------------------------------------------------

 

 

créditos : ViciadosMU

ibbUGTN35F6EDr.png9Mah2l3.png

Link para o comentário
Compartilhar em outros sites

Este tópico está impedido de receber novos posts.
 Compartilhar

×
×
  • Criar Novo...

Informação Importante

Nós fazemos uso de cookies no seu dispositivo para ajudar a tornar este site melhor. Você pode ajustar suas configurações de cookies , caso contrário, vamos supor que você está bem para continuar.