Sistema do DBZ Legacy: Colocando [ADM] e [GM] do lado do NICK
Página 1 de 1
Sistema do DBZ Legacy: Colocando [ADM] e [GM] do lado do NICK
O tutorial é 100% Client-Side
Irei logo avisando, esse tutorial só funcionará se o servidor estiver programado para sprites 32x32 =]
Na sub BltPlayerName vá no final dela (na End Sub)
Subindo algumas linhas verá: Call DrawText(...
Substitua esta linha inteira por:
Indo umas 3 linhas para cima, verá: TextX = ...
Substitua essa linha inteira por:
Suba uma linha e adicione:
Subindo algumas linhas, verá outro Call DrawText
Substitua esta linha inteira por:
Umas 3 linhas para cima verá outro TextX = ...
Substitua novamente a linha por:
Suba uma linha e adicione:
Logo à cima, verá: If index = MyIndex Then
Logo em cima dessa linha adicione:
Coisa simples
Obs:
Caso tenha algo como: If lvl >= 1 Then
Terá dois Call DrawText e dois TextX, substitua no de baixo ^^
Créditos:felipebn
Irei logo avisando, esse tutorial só funcionará se o servidor estiver programado para sprites 32x32 =]
Na sub BltPlayerName vá no final dela (na End Sub)
Subindo algumas linhas verá: Call DrawText(...
Substitua esta linha inteira por:
- Código:
Call DrawText(TexthDC, TextX - (NewPlayerX * PIC_X) - NewXOffset, TextY - (NewPlayerY * PIC_Y) - NewYOffset, Add & GetPlayerName(index), color)
Indo umas 3 linhas para cima, verá: TextX = ...
Substitua essa linha inteira por:
- Código:
TextX = GetPlayerX(index) * PIC_X + sx + Player(index).xOffset + Int(PIC_X / 2) - (((Len(GetPlayerName(index)) + Len(Add)) / 2) * 8)
Suba uma linha e adicione:
- Código:
If GetPlayerAccess(index) > 0 And GetPlayerAccess(index) < 5 Then
Add = "[GM]"
End If
If GetPlayerAccess(index) = 5 Then
Add = "[ADM]"
End If
Subindo algumas linhas, verá outro Call DrawText
Substitua esta linha inteira por:
- Código:
Call DrawText(TexthDC, TextX, TextY, Add & "" & GetPlayerName(MyIndex), color)
Umas 3 linhas para cima verá outro TextX = ...
Substitua novamente a linha por:
- Código:
TextX = NewX + sx + Int(PIC_X / 2) - (((Len(GetPlayerName(MyIndex)) + Len(Add)) / 2) * 8)
Suba uma linha e adicione:
- Código:
If GetPlayerAccess(MyIndex) > 0 And GetPlayerAccess(MyIndex) < 5 Then
Add = "[GM]"
End If
If GetPlayerAccess(MyIndex) = 5 Then
Add = "[ADM]"
End If
Logo à cima, verá: If index = MyIndex Then
Logo em cima dessa linha adicione:
- Código:
Dim Add
Coisa simples
Obs:
Caso tenha algo como: If lvl >= 1 Then
Terá dois Call DrawText e dois TextX, substitua no de baixo ^^
Créditos:felipebn
- Pontos : 0
Data de inscrição : 31/12/1969
Desineria RPG Maker
Nível de atividade:
(138/1000)
Tópicos semelhantes
» Colocando HP, MP e EXP na tela
» Colocando HP, MP e EXP fora do Status
» Sistema de Cash
» sistema de contagen kill e death
» Colocando HP, MP e EXP fora do Status
» Sistema de Cash
» sistema de contagen kill e death
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos
|
|