Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[EO 3.0][EA] Rendering Graphic Over Player Head


Prince
 Share

Recommended Posts

**Introduce**

I'm no programmer, i just mess around modgraphic and figure out this cool feature. Actually not a complete feature for a VIP system, so i just tittle it as Rendering graphic over player head. I will update this later to an complete VIP system.

I'm using GetPlayerAccess >= 1 to make the graphic appear.

**What it will look like**

![](http://www.freemmorpgmaker.com/files/imagehost/pics/74a9fe61ed0cbd1719ba4de81ad64ae3.png)

**Client Side Only**

- Download the attachment and put it into "client\data files\graphics\misc"

- Go to **ModGraphic**

Search for :

```

Public Tex_Shadow As DX8TextureRec

```

Under it add :

```

Public Tex_VIP As DX8TextureRec

```

- In **Private Sub LoadTexture**

Search for :

```

ReDim Preserve gTexture(NumTextures)

```
Under Add :

```

Tex_VIP.filepath = App.Path & "\data files\graphics\misc\vip.png"

Tex_VIP.Texture = NumTextures - 10

```

- In **Public Sub UnloadTextures()**

Search for :

```

Tex_Shadow.Texture = 0

```
Under Add :

```

Tex_VIP.Texture = 0

```

- In **Public Sub DrawPlayer(ByVal Index As Long)**

Search for :

```

If GetTickCount > TempPlayer(Index).StartFlash Then

Call DrawSprite(Sprite, X, Y, rec)

TempPlayer(Index).StartFlash = 0

Else

Call DrawSprite(Sprite, X, Y, rec, True)

End If

```
Under Add :

```

' render vip

If GetPlayerAccess(Index) >= 1 Then

RenderTexture Tex_VIP, ConvertMapX(X - 42), ConvertMapY(Y - 40), 0, 0, 128, 32, 128, 32, D3DColorRGBA(255, 255, 255, 200)

End If

```

I will make a complete of the VIP feature in the future. So i don't think this helpful for some reason. Anyway just share it.

Prince
Link to comment
Share on other sites

> Thank you for this tutorial !
>
> I didn't tryed that for the moment
>
> Edit : Tryed , Working perfectly thanks ![;)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/wink.png)

You cam make a GM icon instead, lol.
Link to comment
Share on other sites

Why do a Seperate Tex_ for that. Make an array

```

Public Tex_Staff(1 to ) As DX8TextureRec
```
And use that instead.

I'm thinking that way would seem better instead of bombarding the top of the Module with tons of Publics/Privates when you can use Arrays where needed ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)
Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...