Universal Fórum
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.
Procurar
 
 

Resultados por:
 


Rechercher Pesquisa avançada

Entrar

Esqueci-me da senha

Últimos assuntos
» Civilization
[Tutorial] Ranking PK e HERO Acumulativo! EmptySáb Ago 24, 2024 9:59 am por Civilization

» [UF] Reinauguração da Universal Fórum
[Tutorial] Ranking PK e HERO Acumulativo! EmptySeg Jul 08, 2024 8:54 pm por Reset

» Reencontro Mensal
[Tutorial] Ranking PK e HERO Acumulativo! EmptySex Nov 24, 2023 5:04 pm por -Destruidor

» O que VOCÊ faz hoje em dia
[Tutorial] Ranking PK e HERO Acumulativo! EmptyTer Set 05, 2023 11:49 pm por αvαsŧ™

» mais um ano xD
[Tutorial] Ranking PK e HERO Acumulativo! EmptyTer Ago 22, 2023 11:16 am por SouthPark.

» Retorno do Droops.
[Tutorial] Ranking PK e HERO Acumulativo! EmptyQui Mar 09, 2023 6:32 pm por , WallMaster

» 10 anos de Universal Fórum
[Tutorial] Ranking PK e HERO Acumulativo! EmptyTer maio 10, 2022 4:47 pm por Reset

» Saudades rs'
[Tutorial] Ranking PK e HERO Acumulativo! EmptyQui Mar 17, 2022 11:24 pm por HeaD

» Saudades de vocês
[Tutorial] Ranking PK e HERO Acumulativo! EmptySáb Fev 05, 2022 3:52 pm por -Gui

» Sim... é mais um post de um antigo usuário com saudade do fórum
[Tutorial] Ranking PK e HERO Acumulativo! EmptyQua Nov 17, 2021 9:35 pm por HeaD

Top dos mais postadores
Niak (5977)
[Tutorial] Ranking PK e HERO Acumulativo! Vote_lcap[Tutorial] Ranking PK e HERO Acumulativo! Voting_bar[Tutorial] Ranking PK e HERO Acumulativo! Vote_rcap 
qυicкscσρє™ (5569)
[Tutorial] Ranking PK e HERO Acumulativo! Vote_lcap[Tutorial] Ranking PK e HERO Acumulativo! Voting_bar[Tutorial] Ranking PK e HERO Acumulativo! Vote_rcap 
тнєвєєsτ™ (5194)
[Tutorial] Ranking PK e HERO Acumulativo! Vote_lcap[Tutorial] Ranking PK e HERO Acumulativo! Voting_bar[Tutorial] Ranking PK e HERO Acumulativo! Vote_rcap 
Sheik (4936)
[Tutorial] Ranking PK e HERO Acumulativo! Vote_lcap[Tutorial] Ranking PK e HERO Acumulativo! Voting_bar[Tutorial] Ranking PK e HERO Acumulativo! Vote_rcap 
THIΛĞØ (4651)
[Tutorial] Ranking PK e HERO Acumulativo! Vote_lcap[Tutorial] Ranking PK e HERO Acumulativo! Voting_bar[Tutorial] Ranking PK e HERO Acumulativo! Vote_rcap 
HeaD (4252)
[Tutorial] Ranking PK e HERO Acumulativo! Vote_lcap[Tutorial] Ranking PK e HERO Acumulativo! Voting_bar[Tutorial] Ranking PK e HERO Acumulativo! Vote_rcap 
Civilization (4150)
[Tutorial] Ranking PK e HERO Acumulativo! Vote_lcap[Tutorial] Ranking PK e HERO Acumulativo! Voting_bar[Tutorial] Ranking PK e HERO Acumulativo! Vote_rcap 
Stronda (4146)
[Tutorial] Ranking PK e HERO Acumulativo! Vote_lcap[Tutorial] Ranking PK e HERO Acumulativo! Voting_bar[Tutorial] Ranking PK e HERO Acumulativo! Vote_rcap 
Arthur29 (4099)
[Tutorial] Ranking PK e HERO Acumulativo! Vote_lcap[Tutorial] Ranking PK e HERO Acumulativo! Voting_bar[Tutorial] Ranking PK e HERO Acumulativo! Vote_rcap 
ϟ Nunnes (4050)
[Tutorial] Ranking PK e HERO Acumulativo! Vote_lcap[Tutorial] Ranking PK e HERO Acumulativo! Voting_bar[Tutorial] Ranking PK e HERO Acumulativo! Vote_rcap 

Os membros mais ativos do mês
Nenhum usuário

Usuário:

Senha:

Lembrar dados?


[Tutorial] Ranking PK e HERO Acumulativo!

3 participantes

Ir para baixo

[Tutorial] Ranking PK e HERO Acumulativo! Empty [Tutorial] Ranking PK e HERO Acumulativo!

Mensagem por ,StorY! Ter Nov 13, 2012 11:13 am

Olá,

Muitos Administradores até conseguem fazer um ranking pk acumulativo, mas tem problemas com o hero.
Alguns dizem que o problema do hero não funcionar é por causa do gs contar até "-3 mortes". NÃO TEM NADA HAVER!

Meu Servidor conta apenas -1 morte e o top hero tem mais de -5000 kills. (lógico que tem servidores que contam até -3 e outros que vão até -100, mas isso depende do gs).

Mas vamos ao que interessa, estarei abaixo ensinando como fazer o ranking pk e hero Diário, Semanal, Mensal e Total!

Siga abaixo:

Caso você já tenha usado alguma trigger para fazer o ranking pk e hero, rode isto no query analizer com a db MuOnline selecionada:

DROP TRIGGER [dbo].[RankingHeroPK]

-----------

Depois crie as seguintes colunas na Tabela Character:
(OBS: Sempre Int 4 com Default value: 0 , e NOT NULLs (Desmarcado) )

PkHeroDiario
PkHeroSemanal
PkHeroMensal
PkHeroTotal

----------
Depois rode a seguinte trigger no query analizer:

CREATE TRIGGER [dbo].[RankingHeroPK]
ON [dbo].[Character]
after update
as

IF UPDATE(pkcount)
begin SET NOCOUNT ON;
Update [Character] set [Character].PkHeroDiario=PkHeroDiario+1,[Character].PkHeroSemanal=PkHeroSemanal+1,
[Character].PkHeroMensal=PkHeroMensal+1,[Character].PkHeroTotal=PkHeroTotal+1, pkcount=0
Where [Character].accountid=(SELECT accountid FROM Inserted)
and [Character].name=(SELECT name FROM Inserted) and [character].pkcount < 0
end

------------
Após isso os rankings Pk e hero estarão funcionando corretamente!
Para que as mortes apareçam corretamente no site, você deve colocar DESC para o PK e ASC para o Hero.

Espero ter ajudado, qualquer dúvida postem aí!
,StorY!
,StorY!
Expert
Expert

Mensagens : 1620
Reputação : 181
Pontos : 4572

Ir para o topo Ir para baixo

O autor desta mensagem foi banido do fórum - Mostrar mensagem

[Tutorial] Ranking PK e HERO Acumulativo! Empty Re: [Tutorial] Ranking PK e HERO Acumulativo!

Mensagem por fakeeee Qua Nov 14, 2012 6:55 pm

obrigado por conpartilhar com o forum!
fakeeee
fakeeee
Membro
Membro

Mensagens : 172
Reputação : 36
Pontos : 4973

Ir para o topo Ir para baixo

[Tutorial] Ranking PK e HERO Acumulativo! Empty Re: [Tutorial] Ranking PK e HERO Acumulativo!

Mensagem por Conteúdo patrocinado


Conteúdo patrocinado


Ir para o topo Ir para baixo

Ir para o topo

- Tópicos semelhantes

 
Permissões neste sub-fórum
Não podes responder a tópicos