Post Original:
![]() |
|
Cliente:
Remplazamos el codigo del timer "tAnimacion":
- Private Sub tAnimacion_Timer()
- Dim SR As RECT
- Dim Grh As Long
- Dim color(3) As Long
- Static Frame As Byte
- Dim hWndDestWindowOverride As Long
- color(0) = D3DColorXRGB(255, 255, 255)
- color(1) = D3DColorXRGB(255, 255, 255)
- color(2) = D3DColorXRGB(255, 255, 255)
- color(3) = D3DColorXRGB(255, 255, 255)
- DirectDevice.Clear 0, ByVal 0, D3DCLEAR_TARGET, 0, 0, 0
- DirectDevice.BeginScene
- If currentGrh = 0 Then Exit Sub
- UserHead = CheckCabeza(UserHead)
- Frame = Frame + 1
- If Frame >= GrhData(currentGrh).NumFrames Then Frame = 1
- Grh = GrhData(currentGrh).Frames(Frame)
- With GrhData(Grh)
- SR.bottom = 65
- SR.Left = 0
- SR.Top = 0
- SR.Right = 41
- DDrawTransGrhIndextoSurface Grh, 6, 15, 0, color()
- Grh = HeadData(UserHead).Head(Dir).GrhIndex
- If UserRaza = eRaza.Elfo Or UserRaza = eRaza.ElfoOscuro Or UserRaza = eRaza.Humano Then
- DDrawTransGrhIndextoSurface Grh, 10, 5, 0, color()
- Else
- DDrawTransGrhIndextoSurface Grh, 10, 13, 0, color()
- End If
- hWndDestWindowOverride = frmCrearPersonaje.picPJ.hWnd
- End With
- DirectDevice.EndScene
- DirectDevice.Present SR, ByVal 0, hWndDestWindowOverride, ByVal 0
- End Sub
Remplazamos el Public Sub Engine_Render_CPJ por:
- Public Sub Engine_Render_CPJ(Optional ByVal Head As Integer, Optional ByVal PicIndex As Integer, Optional ByVal Dir As E_Heading = SOUTH, Optional ByVal Body As Integer)
- '*************************************
- 'Author: Martín Gomez (Samke)
- 'Fecha: 01/02/2012
- 'Fix Engine_Render_CPJ
- '*************************************
- Dim color(3) As Long
- Dim hWndDestWindowOverride As Long
- Dim Grh As Long
- Dim SR As RECT
- color(0) = D3DColorXRGB(255, 255, 255)
- color(1) = D3DColorXRGB(255, 255, 255)
- color(2) = D3DColorXRGB(255, 255, 255)
- color(3) = D3DColorXRGB(255, 255, 255)
- DirectDevice.Clear 0, ByVal 0, D3DCLEAR_TARGET, 0, 0, 0
- DirectDevice.BeginScene
- SR.bottom = 24
- SR.Left = 0
- SR.Top = 0
- SR.Right = 24
- Grh = HeadData(Head).Head(Dir).GrhIndex
- DDrawTransGrhIndextoSurface Grh, 0, 0, 0, color()
- hWndDestWindowOverride = frmCrearPersonaje.picHead(PicIndex).hWnd
- DirectDevice.EndScene
- DirectDevice.Present SR, ByVal 0, hWndDestWindowOverride, ByVal 0
- End Sub
Muestra:

Saludos








641![Dragon Ancestral [3] Dragon Ancestral [3]](./images/ranks/Rango32.gif)
![Newbie [4] Newbie [4]](./images/ranks/Rango3.gif)


![Aprendiz [2] Aprendiz [2]](./images/ranks/Rango7.gif)
![Newbie [3] Newbie [3]](./images/ranks/Rango2.gif)
![Newbie [2] Newbie [2]](./images/ranks/Rango1.gif)

![Dragon Ancestral [4] Dragon Ancestral [4]](./images/ranks/Rango33.gif)
