Colocando tag [ADM] e [GM] do lado do nick (32x64)
2 participantes
MMO Maker Brasil :: Eclipse :: Tutoriais
Página 1 de 1
Colocando tag [ADM] e [GM] do lado do nick (32x64)
Esse tutorial pode ser MUITO complicado
Prestem BASTANTEEE atenção pois tenho certeza que terá muitas reclamações
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 ^^
Prestem BASTANTEEE atenção pois tenho certeza que terá muitas reclamações
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:
- 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 ^^
lordsams- Mod. Global
- Mensagens : 3
Créditos : 1
Data de inscrição : 19/07/2011
MMO Maker Brasil :: Eclipse :: Tutoriais
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos
|
|
Qua Jul 20, 2011 11:28 pm por RenanR
» Guerra de Guilds - Script
Qua Jul 20, 2011 11:52 am por lordsams
» Dando Reset Pelo Serve
Qua Jul 20, 2011 11:49 am por lordsams
» Vagas para a Equipe MMBR
Ter Jul 19, 2011 11:48 pm por RenanR
» Regras do ChatBox
Seg Jul 18, 2011 11:27 pm por RenanR
» Botando acesso nas malditas packets.
Sáb Jun 18, 2011 9:02 pm por RenanR
» Party/Trade por CommandButton
Qui Jun 09, 2011 5:56 pm por RenanR
» Apenas Vips(jogadores com acesso 1 ou maior) Podem dropar items
Qui Jun 09, 2011 5:46 pm por RenanR
» Botão Deletar Item
Qui Jun 09, 2011 5:42 pm por RenanR